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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80ddd57a8247d69edb42415474c4e81a66d869f2 | 63648b8d970c2739f9edc49c743fe55e8732f370 | /TrainingGym/tools/district/filterDistricts.py | 7bd49578b57c5e156c51c5ffff8871901b049858 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | Sahmwell/G15_Capstone | a0038b047fe6ba2fc4538137cb038ee1e1236463 | 6d2944a6d472e82fe01b1a9bf28a8ae153abcb77 | refs/heads/master | 2023-04-14T03:06:46.876134 | 2021-04-09T03:43:48 | 2021-04-09T03:43:48 | 310,671,914 | 5 | 1 | MIT | 2021-04-09T03:43:49 | 2020-11-06T18:09:52 | Python | UTF-8 | Python | false | false | 3,112 | py | #!/usr/bin/env python
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
# Copyright (C) 2007-2020 German Aerospace Center (DLR) and others.
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.ec... | [
"samuelandersonsss@gmail.com"
] | samuelandersonsss@gmail.com |
bedc11276de29aefce2c028f1df14ecf7d5c3b91 | b5d3a3f37355683d38a3d886b51fea4481b94ac8 | /Arrays and Strings/Str3.py | 9e2bf1a9bee1dc2ea14955055050ed8cbbe1bf40 | [] | no_license | Prad06/Python-DSA | b22821f58338177a29da43a862f58a03704fc227 | b7c3044594421cf84e021a9ca5865d42ef468afb | refs/heads/main | 2023-05-15T09:05:28.868140 | 2021-06-02T21:07:23 | 2021-06-02T21:07:23 | 371,734,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | # Pradnyesh Choudhari
# Mon May 31 22:18:40 2021
# Longest Palindromic Substring.
def lcs(X, Y, n, m):
if n == 0 or m == 0:
return 0
if X[n-1] == Y[m-1]:
return 1 + lcs(X, Y, n-1, m-1)
else:
return max(lcs(X, Y, n-1, m), lcs(X, Y, n, m-1))
string = input()
print(lcs(string, str... | [
"pc612001@gmail.com"
] | pc612001@gmail.com |
10d235444bf5dc9bb3b89428124e8aaefa93df38 | 7cd0eea38c65bff36904a4278349ce43a69f1bfe | /gui/multihoproute.py | fb2f068d2a252fbdc7eb6ad1373751829d789d13 | [] | no_license | Majorjjamo5/mEDI_s-Elite-Tools | 58ec0a088d6c1339b8f49ce3f6f81af48c41babd | c6927c79358a3781bdf9da0db82c8c7d46f70dc6 | refs/heads/master | 2020-03-29T00:07:24.763740 | 2017-11-27T01:27:36 | 2017-11-27T01:27:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,524 | py | # -*- coding: UTF8
'''
Created on 19.08.2015
@author: mEDI
'''
from PySide import QtCore, QtGui
import elite
import timeit
import gui.guitools as guitools
__toolname__ = "Multi Hop Route Finder"
__internalName__ = "MuHoRoFi"
__statusTip__ = "Open A %s Window" % __toolname__
_debug = None
class ... | [
"medi@255.li"
] | medi@255.li |
90b8850b0a21353a665b3a4868e12780485007c5 | b3b353f20f94364bd31e46fec0bc839eb7ac0738 | /pi1/motorTest.py | 30240cc23fa03de9bfd7c3373a3a17c8d1f20890 | [
"MIT"
] | permissive | Rose-Hulman-Rover-Team/Rover-2019-2020 | 4fbfd0b1250fe926d31806b6e287e1b92760a886 | d75a9086fa733f8a8b5240005bee058737ad82c7 | refs/heads/master | 2021-06-17T09:32:21.412169 | 2021-05-28T21:22:58 | 2021-05-28T21:22:58 | 208,160,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | # Simple demo of of the PCA9685 PWM servo/LED controller library.
# This will move channel 0 from min to max position repeatedly.
# Author: Tony DiCola
# License: Public Domain
from __future__ import division
import time
# Import the PCA9685 module.
import Adafruit_PCA9685
# Uncomment to enable debug outp... | [
"chenz16@rose-hulman.edu"
] | chenz16@rose-hulman.edu |
0527ac0974bc9e0bb251c33ed09182b31d508867 | 5fefc7b4b3e0022ffa1985bff2944d8b5ce24665 | /Tsang_sim_archive/test_ls_cen.py | 961ed1a960c700639ee1dfc23508baa42dac8aae | [] | no_license | William-SKC/SLAM_Simulation | 23284c95b0139b57be40724c1141e52ee47edfd5 | 1ef1594aede469e595ce1339ade6051a9893ace7 | refs/heads/master | 2021-01-12T03:39:28.173723 | 2018-07-11T19:36:34 | 2018-07-11T19:36:34 | 78,247,689 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | py | from numpy import matrix
from numpy import linalg as LA
import numpy as np
import robot_team_ls_cen
import sim_env
import math
N = 5 # number of robot
M = 1 # number of landmark
###
iteration = 500
time_end = 2000
sigma_tr_arr = [0] * time_end
sigma_th_tr_arr = [0] * time_end
error_arr = [0] * time_end
fo... | [
"billyskc@ucla.edu"
] | billyskc@ucla.edu |
ce18ad1b15d57f14c990673732248c4a12e960b5 | a0e777ea7e0d00c061068db132a30a8fa545cc75 | /FluentPython/insort.py | 58c686082c39f50d5c8b0b43a9736306a5726539 | [] | no_license | aadisetyaa/Python-Cookbook | 87215b64d2d3631d6b18e90a68a09400e7d80919 | a8df0343a39725312686423296bfd860dbaf70ad | refs/heads/master | 2022-04-08T13:41:27.255352 | 2017-11-27T03:54:29 | 2017-11-27T03:54:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | import bisect
import random
SIZE = 7
random.seed(1729)
my_list = []
for i in range(SIZE):
new_item = random.randrange(SIZE*2)
bisect.insort(my_list, new_item)
print('%2d ->' % new_item, my_list)
| [
"wpr101@hotmail.com"
] | wpr101@hotmail.com |
59d8e4f5bc64a72352af0319f883401bedcd1567 | 3054445ca866d8054717bd14b9c4f4ef79560540 | /Rama Myrian/perro.py | 285d80de13d57527267166e412125aa95604aa5b | [] | no_license | javibautista/PrimerRepo | 7d493db03dd1c5cf1dd1ade899fdd34084b76170 | 990b28b567db488a3141f05ff7fef37b22da72a8 | refs/heads/master | 2020-03-25T06:01:54.065521 | 2019-06-23T23:49:59 | 2019-06-23T23:49:59 | 143,479,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | class Perro:
def __init__(self, posicion):
self.posicion = 0
def caminar(self):
self.posicion += 4
def ladrar(self):
print("GUAU GUAU")
if __name__ == '__main__':
perro = Perro(0)
perro.caminar()
print(perro.posicion)
perro.ladrar()
def pasear_mascota(caminar):
caminar += 5
camina = caminar + p... | [
"javibautista333@gmail.com"
] | javibautista333@gmail.com |
e73ff28ee191a345f27aada2786db28d6dace4a9 | 661d78ddd1d157a84cb3f25a94b1961ef44fbcbf | /hw6/hw6_test.py | 7324e53313c46d11a30a7aeedbffdffd5abb8707 | [] | no_license | Jennifer-Shiau/ML2019SPRING | 7670ffb654565643b751f5f3c6ecde8a6fd3289d | 0a7ebb5fff24bc2d8da84d895ba3c54e3cc6701e | refs/heads/master | 2022-03-05T22:44:09.758033 | 2019-10-30T06:26:23 | 2019-10-30T06:26:23 | 171,809,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,512 | py | import numpy as np
import pandas as pd
import csv
import json
import random
import sys
from keras.models import load_model
import jieba
def load_data(test_x_path):
data = pd.read_csv(test_x_path, header = 0)
data = np.array(data.values)
test_x = data[:, 1]
# test_x.shape = (20000,)
return test_x
... | [
"b05901068@ntu.edu.tw"
] | b05901068@ntu.edu.tw |
33db18461299fbbbabfda70980708db958b521a0 | 06ea7950e48945725e7442c4cb4588750e6b6656 | /app/core/migrations/0005_auto_20210107_1826.py | 45b3ff01f2dfb7161f374f06d844a09d5c6333ac | [] | no_license | AhmedBafadal/ten | a0954dec883e03b72439fecdb8a443c92f68be42 | 5cca62a4db84b2f0e6b3c1e253890220fbb2553a | refs/heads/main | 2023-02-10T00:06:12.672524 | 2021-01-08T02:56:17 | 2021-01-08T02:56:17 | 327,774,232 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | # Generated by Django 2.1.3 on 2021-01-07 18:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('core', '0004_auto_20210107_1818'),
]
operations = [
migrations.AlterField(
model_name='inventory',
name='description... | [
"a.m.bafadal@gmail.com"
] | a.m.bafadal@gmail.com |
fb915ef699daa0ad6453ca4cf0910c8ec5d44441 | d395cd51965fb98c9956834c40ab00b67196f413 | /PKUTreeMaker/test/Wcrab/crab3_analysisZZ2.py | 5f93dc810f63b03a8e79694787c6cd65fa1a80cd | [] | no_license | qianminghuang/VBSWA_JESR-94X | 0c6d81b841bc80b4d03a241e011bcfc832f5e3de | bbade3ef61f791f14c954c0f5566a23a50384105 | refs/heads/master | 2020-09-10T15:27:42.976213 | 2019-12-04T12:41:52 | 2019-12-04T12:41:52 | 221,738,090 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | from WMCore.Configuration import Configuration
config = Configuration()
config.section_("General")
#config.General.requestName = 'ZZ-1'
config.General.requestName = 'ZZ-2'
config.General.transferLogs = True
config.section_("JobType")
config.JobType.pluginName = 'Analysis'
config.JobType.inputFiles = ['Summer16_23... | [
"qianming.huang@cern.ch"
] | qianming.huang@cern.ch |
20d8cf0d76f39ae1bf0ce1a70b5f25df1fad9a8b | cb71749d5708c0012f7cffb5a1ebcbce358b407b | /split_col+func.py | dcb99ddc3b6966b1236018461055a25ccae81db4 | [] | no_license | mbmarcin/code_examples | 80928675d30ae1cf1909d9b85fbfb723d353bbec | 0a62537cd06f2f68263a02c92bca3fcfc9121e78 | refs/heads/master | 2023-02-19T12:29:32.876500 | 2021-01-23T21:44:40 | 2021-01-23T21:44:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | # Given a pandas dataframe containing a pandas series/column of tuples B,
# we want to extract B into B1 and B2 and assign them into separate pandas series
# Method 1: (faster)
# use pd.Series.tolist() method to return a list of tuples
# use pd.DataFrame on the resulting list to turn it into a new pd.DataFrame ... | [
"noreply@github.com"
] | mbmarcin.noreply@github.com |
4c18ab2948b1020a0de83bc83581060979fd7077 | 1a95d3d1217abae2cf6b2691381945b228a4fe73 | /utils/prepare_data/split_label.py | d331495055725f0d4e33102ec69e369f68413893 | [] | no_license | fanjuncai/Net | 38cccb64494536ed396ab2df8bc96b905b85e0e4 | aa45452ad9d32fce7f79754167dfa79f21629569 | refs/heads/master | 2020-09-04T22:10:12.912397 | 2018-06-12T12:37:02 | 2018-06-12T12:37:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,075 | py | import os
import numpy as np
import math
import cv2 as cv
path = '/home/north-computer/Text/data/2017/train_image'
gt_path = '/home/north-computer/Text/data/2017/train_gt'
out_path = 're_image'
if not os.path.exists(out_path):
os.makedirs(out_path)
files = os.listdir(path)
files.sort()
#files=files[:100]
for file ... | [
"2289331373@qq.com"
] | 2289331373@qq.com |
58257717c180347561efa5a064b1c55da39fffe1 | eda5634f00ad384b8179e19c1d7a4fd4dcabdaa1 | /run.py | a84d2605aceb9d918a30bc971cad150984adaf84 | [] | no_license | somoire/password-locker | 628d02b8c7288aa86767bc74ff82e2823c18387b | 01f3ce5d6cdce4e3aff20bc97782e701c57e5067 | refs/heads/master | 2020-05-05T10:57:07.959292 | 2019-04-09T08:01:17 | 2019-04-09T08:01:17 | 179,968,063 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,215 | py | #!/usr/bin/env python3.6
import unittest
import random
import string
from user import User
from user import credentials
def create_user(user_name,account_name):
'''
Function to create a new user
'''
new_user = User(user_name,account_name)
return new_user
def create_credential(user_password):
'... | [
"rayr30667@gmail.com"
] | rayr30667@gmail.com |
994997eb7f427a82eb6de2770c1bf2fb474740c7 | a67492bfae08b2a2dc486f93fd9b3e5f5da4edaf | /lib/bbob_pproc/comp2/pptable2.py | 4a53b8601b7aea47bd29ef7b90ec11ee71861894 | [
"Beerware"
] | permissive | Oueee/SOS | 107f67889580f712dfc3655d0d220fadae3fb011 | d2c646da4c89b638595c918e5367a15e1a68c768 | refs/heads/master | 2021-01-01T03:42:24.586197 | 2016-05-21T15:52:14 | 2016-05-21T15:52:14 | 58,935,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,613 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""Rank-sum tests table on "Final Data Points".
That is, for example, using 1/#fevals(ftarget) if ftarget was reached
and -f_final otherwise as input for the rank-sum test, where obviously
the larger the better.
One table per function and dimension.
"""
from __future__... | [
"n.toussaint@etu.unistra.fr"
] | n.toussaint@etu.unistra.fr |
927ac19569c4c3feeef69c7929f4b580c5822dd2 | e1c0e35cf4c92e5b05f7267378a0e733c31a3e40 | /Math/Sum_of_Multiples.py | e5579b94762546262ee5b10435595f0bcde6364e | [] | no_license | rahulcode22/Data-structures | a2c8e00294e4398983f4acba49fc9ccfe6f4ec86 | 8e5e562c54be46cdf2493e19f4a74c016e62eeb4 | refs/heads/master | 2021-01-13T15:09:07.861247 | 2018-04-07T02:43:27 | 2018-04-07T02:43:27 | 79,187,451 | 20 | 9 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | '''Given a number a and limit N. Find the sum of multiple of a upto N.'''
#Simple Iterative O(n) Approach
def sumUpto(a,n):
sum_ = 0
i = a
while i <= n:
sum_ += i
i += a
return sum_
print sumUpto(7,49)
#Another O(1) Approach
def sumUpto(a,n):
m = n/a
sum_ = m*(m+1)/2
ans =... | [
"rahulrock0082@gmail.com"
] | rahulrock0082@gmail.com |
438fd8832059fe5b0451726baa1d120d574784c1 | 3a6c82d923bd7caccbb5b62c9b5baf93b1cf49b4 | /WFS_devel/WFS_class_devel/Parameters.py | f675b0669112fed0b2d541273c998162ff377a25 | [] | no_license | wenh81/vlc_simulator | c3a88911db5573de9635e3e8f9f6dbd1a47b681a | 825a0eab64be709efe161b9a48eb54c4bc5c1bef | refs/heads/master | 2023-04-26T01:21:15.202421 | 2021-05-21T18:54:20 | 2021-05-21T18:54:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | #Sinalizes for interference between QCs
with_without = "with"
# Wavelenght(um)
wave = 0.633
# Number of Zernike terms
zernike = 20
# Sinalizes for use of defocus term
defocus = 0
# Quantity of microlens
quantity = 4
# Diameter of microlen [um]
diameter = 1000
# focal distance [um]
focal = 200000
# Reflectance
re... | [
"pnabelmonte@gmail.com"
] | pnabelmonte@gmail.com |
835ed4c4515af9f0df52405b2f1f0673e9ae8878 | 27ee4bc83a7094abfca59c0cfe3eeca752bfc2fa | /prac02/randoms.py | 6329a1bed00fbfd5dff93b08b8a9662b1fd06604 | [] | no_license | NANGSENGKHAN/cp1404practicals | 6c1fe3ad3e402b87f37b97a695b8bcbbf6c5f1f5 | 5e9e1b400a69d27aad340fd6abd99c290c4aabe1 | refs/heads/master | 2021-05-22T01:28:54.068687 | 2020-05-26T11:18:33 | 2020-05-26T11:18:33 | 252,907,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 818 | py | import random
print(random.randint(5, 20)) # line 1
"""What did you see on line 1?
In line 1, 5 to 20 is an integer.
What was the smallest number you could have seen, what was the largest?
The smallest number is 5 and the largest is 19"""
print(random.randrange(3, 10, 2)) # line 2
"""What did you see on li... | [
"62389440+NANGSENGKHAN@users.noreply.github.com"
] | 62389440+NANGSENGKHAN@users.noreply.github.com |
4d84e13fb35103abb3193a3f30ef46fa3dc1b855 | c9b9a120d7c0d05f41d9e88b2cc4b5a6e9e5bf77 | /DataWrangling/TFRecords/map_char_text_to_tfrecords.py | 0aec89c12d85c9caff7c6ad1a03800e003a85e16 | [] | no_license | sjakati98/PixelLinkCharacter | a1c5c34f4264639265de78f29897ec4fd44f3d0b | 2b3d094eb433eabf875cc23a61ed70caab5857f2 | refs/heads/master | 2020-04-20T02:50:08.138431 | 2019-11-14T18:15:31 | 2019-11-14T18:15:31 | 168,581,618 | 2 | 0 | null | 2019-11-14T18:15:32 | 2019-01-31T19:15:32 | Python | UTF-8 | Python | false | false | 4,226 | py | #encoding=utf-8
import numpy as np;
import tensorflow as tf
import util
import os
from dataset_utils import int64_feature, float_feature, bytes_feature, convert_to_example
import sys
sys.path.append('/home/sgkelley/pixel_link')
import config
def cvt_to_tfrecords(output_path , data_path, gt_path):
image... | [
"shishir.jakati98@gmail.com"
] | shishir.jakati98@gmail.com |
a538476fd0732344642771e31ec36381a70890ac | 0339b0d09502bbb1dbd080214c956ea020a76c1f | /Hackerrank/sherlock.py | 42f7e07265a0092eb761125cbdd2f8fd458d08e9 | [] | no_license | lamalgopach/codeforces | aae785e2b09ac34f3927fb2ceeb5858ccf10656c | 632dc09ba6bc04d9d22597a183965a9eec0b4607 | refs/heads/master | 2021-06-14T04:08:15.857020 | 2021-03-26T01:58:14 | 2021-03-26T01:58:14 | 170,820,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | """
Given an array B and must determine an array A. For all i, B[i] >= A[i] >= 1. Select
a series of A[i] such that the sum of the absolute difference of consecutive pairs of A
is maximized. This will be the array's cost.
Input:
- t: number of test cases
- n: length of B
- space-separated integers of B[i]
Output... | [
"37968756+lamalgopach@users.noreply.github.com"
] | 37968756+lamalgopach@users.noreply.github.com |
016945284302b73e1f0f4111554725b781791239 | ad3b84e710a8a25573a1a58e833bcc53e3093934 | /odltools/mdsal/tests/test_cli.py | ccffb17e120a73b13ec0b8000391a696e06bb7b8 | [
"Apache-2.0"
] | permissive | shague/odltools | a8af0a676882a66e0d00e4a832cec4bb71221cf9 | 13f95f2280cfdc68f61e0adc092a422c77e587b8 | refs/heads/master | 2021-01-15T10:57:54.927460 | 2018-06-18T12:36:36 | 2018-06-18T12:36:36 | 99,604,714 | 2 | 4 | Apache-2.0 | 2018-07-24T15:56:38 | 2017-08-07T17:52:15 | Python | UTF-8 | Python | false | false | 2,834 | py | # Copyright 2018 Red Hat, Inc. and others. 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 appli... | [
"shague@gmail.com"
] | shague@gmail.com |
a2936c966636ca9cbb405f2fd922dd31e6cabfcd | dbfcf24deb94c6119a507367f52b2745f30dc5df | /XML_Extract.py | 833263a36a1e068a0751a018af32b3aece262c78 | [] | no_license | Almostdante/Hello2.7 | 71cd310217ea93806983b294382e18bad7366927 | f6ccea6ee607ef0cd713b1eac2c479c57d19b39a | refs/heads/master | 2021-01-13T14:37:01.680360 | 2016-01-30T06:07:33 | 2016-01-30T06:07:33 | 50,710,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 376 | py | import urllib
import xml.etree.ElementTree as ET
#sample_URL = raw_input('Enter location: ')
#counts = ET.fromstring(urllib.urlopen(sample_URL).read()).findall('.//count')
#print 'Retrieving', sample_URL, '\n' 'Retrieved',len(urllib.urlopen(sample_URL).read()),'characters', '\n', "Count:", len(counts), '\n', 'Sum:', s... | [
"almostdante@gmail.com"
] | almostdante@gmail.com |
e2e8ea0a466e23c8e16d87986d7e3b1a609a32af | 1ec2222b8a189b997af0b54971e61ad9e62297a2 | /googledrive.py | bfdda7602cd9b083c8dc67d91db50d34b64e9b15 | [] | no_license | kwrd/underwater_measurement_system | 8f9a97a2a755ba1143b8b4dd01b88e91df68cd72 | 9d401758c5cd68dabc81ec535855ec2dff86baf9 | refs/heads/master | 2023-02-27T16:30:44.274198 | 2021-02-03T10:03:40 | 2021-02-03T10:03:40 | 335,579,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,383 | py | from __future__ import print_function
import pickle
import os.path
from googleapiclient.discovery import build
from googleapiclient.http import MediaFileUpload
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
# If modifying these scopes, delete the file token.pi... | [
"robertstoko@gmail.com"
] | robertstoko@gmail.com |
7ff65a88ec2461648484bb4576702dc93a63a38f | 10ce30fad109998ad2b8dcd59d76764cde919a93 | /cruditor/forms.py | b4ad2a08ffffff32b237b4331d3fe24e5deb9f9b | [
"BSD-3-Clause"
] | permissive | Francislley/CrudDajndo2017.2 | 282bc6cfe4f80c3a68f38f1b21613ed1e32cd3c9 | 355a442670d28cd91526fd0127b7a01ce733cf2b | refs/heads/master | 2021-09-04T09:07:57.237212 | 2017-09-01T10:36:24 | 2017-09-01T10:36:24 | 117,854,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | import floppyforms.__future__ as forms
from django.contrib.auth.forms import AuthenticationForm, SetPasswordForm
from django.utils.translation import ugettext_lazy as _
class LoginForm(AuthenticationForm, forms.Form):
username = forms.CharField(max_length=30)
password = forms.CharField(widget=forms.PasswordIn... | [
"steph@rdev.info"
] | steph@rdev.info |
5e9b8c17419ceaabe925b977cc19de21d004d025 | 4a9ed707b3b9adffd3e2f98c39040cede7dc0cc8 | /garage/theano/envs/base.py | f99f2c6012914984454187916446df1668e1925a | [
"MIT"
] | permissive | flyers/garage | f0c568bd850a0770a0f13d6c550318338049a462 | 745dff67d6777b78c5faaf2f2bfafcaf6f71d575 | refs/heads/master | 2020-04-15T15:38:42.500998 | 2019-01-29T11:56:29 | 2019-01-29T11:56:29 | 164,802,583 | 0 | 0 | MIT | 2019-01-29T12:11:13 | 2019-01-09T06:28:48 | Python | UTF-8 | Python | false | false | 2,098 | py | """Wrapper class that converts gym.Env into TheanoEnv."""
from cached_property import cached_property
from gym.spaces import Box as GymBox
from gym.spaces import Dict as GymDict
from gym.spaces import Discrete as GymDiscrete
from gym.spaces import Tuple as GymTuple
from garage.envs import GarageEnv
from garage.envs.en... | [
"noreply@github.com"
] | flyers.noreply@github.com |
2191aee5ffad061805676545cbf9cca04c0cf064 | aa90107cd69b5a64875be76f0bda5b443f024a98 | /fibonacci_by_bound.py | 9522012db301bc52fdf752eef7732d2c2734b29a | [] | no_license | brahmaduttan/Programming_Lab_Python_TKM | 9454762c71178d15c6a556d0c2c58ba5a989fe98 | 8dc72fa818cd7d642975abb4e13e5abfb6958eeb | refs/heads/main | 2023-03-26T23:40:52.740934 | 2021-03-17T16:40:06 | 2021-03-17T16:40:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | def getFibonacci(start,end):
length = end
series = [0,1]
if(length == 1):
print(str([0]))
if(length == 2):
print(str([0,1]))
if(length>=3):
i = 2
while(i<length):
term = series[i-2]+series[i-1]
series.append(term)
i=i+1
filt... | [
"rasikmhd10@gmail.com"
] | rasikmhd10@gmail.com |
5d0f4c54f194f751993b9a62e06c4ece90fdc2c3 | 0a351ffd2b59a8de2898555d7c0e28b953e5b0fe | /less10_return_statement.py | 1b9ba168abc2727a05cb89bd0c0426b6484c2f2b | [] | no_license | abervit/Python-Base | 05200f79826286ca2ccdfbfb67f836eb7f3ba839 | 4b1f864b0efbeb2a5c28717c9a3b5c96ccf1275b | refs/heads/master | 2022-11-22T03:29:03.121646 | 2022-11-17T17:10:17 | 2022-11-17T17:10:17 | 210,211,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # Return Statement
"""When we want to get some information back from a function - we use 'return' statement"""
def cube(number):
"""after return statement we can't write a code, it won't work"""
return number ** 3, number * number * number
cube(3)
print(cube(3)) # --> (27, 27)
result = cube(4) # stores ... | [
"vitaliy.kachkovskiy@gmail.com"
] | vitaliy.kachkovskiy@gmail.com |
24936bad414d5c96ca59533a1c3ef6da0c72206d | 5d4d4f5a0237b8584e48bb090e4171d30d0bdf81 | /yuyu_protocol_export/ProtocolOnline/protocal/export_config.py | 3f343547c63fde8962469da85817fd3bb4219993 | [] | no_license | dmxzxy/Love2DCrowdTest | b7233d61d42fdab15ba5d6962bff604e07736c0f | bbee735cebfcb9820922b17a49575395bce8ab50 | refs/heads/master | 2021-01-22T02:21:03.999914 | 2018-02-23T10:35:11 | 2018-02-23T10:35:11 | 92,353,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | import os
import traceback, sys
from protocal.utils import cmd_call
import zipfile
TOOL_PATH = "D:/workspace/yuyu/program/Tools/ConfigExport"
XLS_PATH = "D:/workspace/yuyu/data/yh_170931_dev(M1)"
VERSION = "1.0"
def do_export(ex_path):
the_export_path = ex_path + '/config'
cmd = 'svn update "%s"'%(XLS_PATH)
... | [
"xiaoyu.zhang@dena.com"
] | xiaoyu.zhang@dena.com |
5d248757a078c26aa4bf2e272e4583eb0f63adf8 | 6bfde8bd8fea228f574a7c819ad8a13172e225db | /src/chisubmit/tests/common.py | f7ef5bbfbd23dbc1a790478bd62637fef8dd9545 | [] | no_license | pscollins/chisubmit | 4013bc292153319792a376a3b03a2085292dddc3 | 5fb9422d4e59eee61e4d225d6648d181dcde2de3 | refs/heads/master | 2021-01-17T20:25:20.381372 | 2015-04-22T22:10:00 | 2015-04-22T22:10:00 | 34,418,284 | 0 | 0 | null | 2015-04-22T22:00:06 | 2015-04-22T22:00:06 | null | UTF-8 | Python | false | false | 22,427 | py | import tempfile
import os
import json
import yaml
import sys
import colorama
import git
import functools
import unittest
import random
import string
import re
import chisubmit.client.session as session
from click.testing import CliRunner
from chisubmit.cli import chisubmit_cmd
from dateutil.parser import parse
from ch... | [
"borja@cs.uchicago.edu"
] | borja@cs.uchicago.edu |
14030f6e7871f73633cf3167b5313582beaaa3fe | c55ed318cbe079d62def7611948a0358c381ac9b | /src/asteroids_agents.py | bf1303348213860f05ba5c739377cab870c4f2d0 | [] | no_license | TheCahyag/asteroids_ai | 66edb8f65676be6b048248790bd58fc23f39e339 | 2170d3cf7742d6c3f0adae469f9ef24c2df373cd | refs/heads/master | 2022-02-24T20:58:58.951594 | 2019-10-18T06:37:31 | 2019-10-18T06:37:31 | 207,828,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,097 | py | import argparse
import random
import gym
from gym import logger
from agents.direction_minimize_agent import DegreeMinimizing
from agents.random_agent import RandomAgent
from agents.distance_minimize_agent import DistanceMinimizing
# Structuring the arguments
parser = argparse.ArgumentParser(description='Main program... | [
"brandonnavel@outlook.com"
] | brandonnavel@outlook.com |
5feb19918e49555e534516f2d8cf4659ad6e859b | e05a64a23dcd2c09294690b54ac24d250c5f01af | /Gilad And Dennis Projects/Backend/ShopSite/wsgi.py | a362fdb3ee7113e3e5c1f5867b740c5592572c1b | [] | no_license | yosinovo1/CoronaTime | 981dad71a163224af32b1b9de1c2e1120a0365bc | 693409787b3738fb4489ac0b2e25945a07796f4d | refs/heads/master | 2022-12-10T02:49:43.960104 | 2020-07-30T15:33:50 | 2020-07-30T15:33:50 | 250,558,445 | 0 | 1 | null | 2022-12-08T09:28:44 | 2020-03-27T14:38:52 | JavaScript | UTF-8 | Python | false | false | 393 | py | """
WSGI config for ShopSite 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"denisgerman11@gmail.com"
] | denisgerman11@gmail.com |
a42943dfe2d2b8559fa581e341df9f227132462b | 41298e9f0e3b29f62a52d00723bfb489697f5a14 | /tests/pgrep/examples/bash.py | ef8b81bfe03a09ddae5d98eb6266faf8cce7c4fc | [
"Unlicense"
] | permissive | andrewp-as-is/pgrep.py | 392dcb817a30cb43f9137d7cd36b41e15c2def98 | 7d9eecf3f5a40bd1e8c2bea8d576f12fc9c5e6e8 | refs/heads/master | 2021-06-24T22:28:06.875285 | 2020-12-03T21:11:25 | 2020-12-03T21:11:25 | 151,134,453 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | #!/usr/bin/env python
import pgrep
pid = pgrep.pgrep("bash")
print(pid)
| [
"russianidiot.github@gmail.com"
] | russianidiot.github@gmail.com |
ed268c63045a09c40075d568cba27181e86c99ee | 57d0c4c5805b306c3d434705371196b772bb0fc8 | /hello.py | 2dd077c2b2a91bbf43750c8250d3748899772c6a | [] | no_license | BushLands/Stepik_web_project | c14e0dfc028bcfe736818b6dcc01447818d3d551 | 53dfe17c78bdae5f42bc5e4f023ecc69e56fc61e | refs/heads/master | 2020-11-27T11:00:29.888739 | 2020-02-28T11:50:41 | 2020-02-28T11:50:41 | 229,413,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | def wsgi_app(environ, start_responce):
headers = [('content-type', 'text/plain')]
query = environ['QUERY_STRING']
body = '\n'.join(query[query.find('?')+1:].split('&').encode('utf-8'))
status = '200 OK'
start_responce(status, headers)
yield body | [
"havron7@gmail.com"
] | havron7@gmail.com |
27a952463ceaa02cb6db6f5f80cf0c74e6e3d1c2 | f23572d0c916ed3325480de2daca15d9d16f9186 | /string/dict_trie.py | 3875653da5a32507cd7962d9b5e7c1d365e6894f | [] | no_license | iCodeIN/data_structures | 08067aa661ea1dac01c70ac5a3e53f5e146fc82c | bbd01fb1785827c64ea28636352c6e0d7c8d62f4 | refs/heads/master | 2023-02-21T06:40:05.336522 | 2021-01-22T05:41:27 | 2021-01-22T05:41:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | class WordDictionary:
def __init__(self):
"""
Initialize your data structure here.
"""
self.trie = {}
def addWord(self, word: str) -> None:
"""
Adds a word into the data structure.
"""
node = self.trie
for ch in word:
if not... | [
"chosun41"
] | chosun41 |
dfe29c1001676b28347bcd5be4f668ff6c7b712f | e2081f2f873825a3cc8b529614eb784f5cf5e8c5 | /graphvalidtree1.py | bdec503e26bfa97e97d8670789315e093cece028 | [] | no_license | yilinanyu/Leetcode-with-Python | 17b454058c673381dbafa5a2a154c4e84b449399 | a55d2a3e383f858477170effbf8f6454e5dfd218 | refs/heads/master | 2021-01-21T04:55:31.025194 | 2016-07-11T20:10:18 | 2016-07-11T20:10:18 | 36,630,923 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | class UnionFind:
def __init__(self, n):
self.count = n
self.father = {}
for i in range(n):
self.father[i] = i
def compressed_find(self, x):
parent = self.father.get(x)
while parent != self.father.get(parent):
parent = self.father.get(parent)
... | [
"ly783@nyu.edu"
] | ly783@nyu.edu |
ee52229a08cf7edc6ccbcdf424f672d78d06cf6b | 0037517766543c75c9f067666b9225afcc482632 | /slack_minimizer.py | f4a5ebea95c57a882524042b08d0fcd084cd1199 | [
"Apache-2.0"
] | permissive | b-akshay/marvin | 9b73917732d88595cc99d03c00dbe6ad76dae5fd | 5d8d49d3973190c84f442816f949be00a6e64802 | refs/heads/master | 2021-06-06T18:51:34.132811 | 2016-10-09T06:22:55 | 2016-10-09T06:22:55 | 59,709,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,202 | py | import numpy as np
import scipy as sp
import sklearn.metrics
import muffled_utils
import time
class SlackMinimizer(object):
"""
A class that aggregates a given ensemble of specialist classifiers, as in the paper::
"Scalable semi-supervised aggregation of classifiers," Balsubramani and Freund, NIPS 2015.
... | [
"abalsubr@ucsd.edu"
] | abalsubr@ucsd.edu |
f33620b55e9f14413adbe93137c9136469b009c9 | a117815a45f6864ef31185551c069211ee63ed95 | /bot/deactivated_plugins_2/TopicQueuePlugin.py | a50e392e65ba5d6832df2648d4e7bc8b8495d774 | [] | no_license | hheimbuerger/rtbot | e6f4e9488febb740725e1d1ec641a3de60264b67 | 5a972b971947ec875e2079696c98802276b943ed | refs/heads/master | 2021-01-16T20:42:24.047256 | 2017-08-24T22:07:43 | 2017-08-24T22:11:23 | 61,387,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,506 | py | import collections
import re
class TopicQueuePlugin:
def __init__(self, pluginInterface):
self.pluginInterfaceReference = pluginInterface
self.topicQueue = collections.deque()
def getVersionInformation(self):
return("$Id: BugReplyPlugin.py 260 2006-05-23 22:37:56Z Ksero $")
def onChannelMessage(s... | [
"henrik@heimbuerger.de"
] | henrik@heimbuerger.de |
40dbf366cf65429d225d5fa2c8b3982d35434bfe | 836d5f7190f6b4503e758c87c71598f18fdfce14 | /6-İleri-Seviye-Veri-Yapıları/Tuple-Demet-Veri-Tipi.py | aff1d7c73e340305fa440ef5d010304b3e2c3e47 | [] | no_license | S-Oktay-Bicici/PYTHON-PROGRAMMING | cf452723fd3e7e8ec2aadc7980208d747c502e9a | 22e864f89544249d6309d6f4570a4104bf47346b | refs/heads/main | 2021-11-30T00:19:21.158084 | 2021-11-16T15:44:29 | 2021-11-16T15:44:29 | 316,716,147 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py |
demet = ("ocak","şubat",29,"mart")
print(demet)
print(type(demet))
#################################################################
demet = "ocak"
print(type(demet))
demet = "ocak",
print(type(demet))
####################################################################
demet = ("ocak","şubat","mart","nisan","may... | [
"noreply@github.com"
] | S-Oktay-Bicici.noreply@github.com |
34a7c58dcf01f9d6380dcda2b8d82b5ea9641155 | 236816235f96479c230bc88de6d9c46357deadcb | /13/advent13.py | 4122d64a02f431b9111e743511464007ab40b9dc | [] | no_license | seeming-amusing/advent | f59f3f774f19bbcf2fc383da7a1ffbf87cc7a4da | 6d6ae056d9739729820f4666e6015e877835ba6c | refs/heads/master | 2021-09-01T02:05:47.906949 | 2017-12-24T09:57:05 | 2017-12-24T09:57:05 | 112,764,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,209 | py | import sys
import time as t
class Sensor:
def __init__(self, range):
self.range = range
self.position = 1 if range > 0 else 0
self.direction = 1
def __repr__(self):
return "S (pos: " + str(self.position) + ")"
def is_caught(self, time):
if self.range == 0:
return False
return time... | [
"eric.m.lee@deliveryhero.com"
] | eric.m.lee@deliveryhero.com |
6ffb883c786a0debe0f2803afb428def4891485b | e821cf76df0d3abf618739a81ac9882173df663d | /xx.py | 2be9a43563ca4b8982f1d45aa671d318d4351127 | [] | no_license | chscls/tenserTest | 24b0f26428b7d16e4d1b2c60441839f6cf3a558e | 1e6846c499e0873b30c3c307414b3a50d6bdc302 | refs/heads/master | 2020-03-23T19:22:36.969806 | 2018-07-24T00:36:48 | 2018-07-24T00:36:48 | 141,973,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19 | py | 1313113131313313131 | [
"chscls@163.com"
] | chscls@163.com |
0baa3ddc9c3e6359d85ca9fc5ec64c54526cffbc | 0621313c69e79115d39314fcf3c89a62f144c0df | /hackathon2017/api/proyectandoapi/api/data_providers/settings.py | 3ad873c1924dbc5b64ee3aadbff314a7fe1ddd3d | [] | no_license | tamaraOrtiz/hackathon2017 | 965aea539403318c4952b4b672d72d785aafe922 | cd1294b95337852550dbe8b654c26770f2749617 | refs/heads/master | 2020-12-02T10:08:16.406986 | 2017-10-17T15:51:06 | 2017-10-17T15:51:24 | 96,693,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,457 | py | from os import path
from proyectandoapi.settings import *
URL_BASE = "http://geo.stp.gov.py/user/stp/api/v2/sql"
PND_FILE = path.join(BASE_DIR,'api','data_providers','json','pnd.json')
# Estas Unidades de medidas fueron filtradas manualmente, los Ignorados no son mostradas en el cliente
UNIDADES = {'ACTIVIDAD': 'ACTIV... | [
"tamara.tfs@gmail.com"
] | tamara.tfs@gmail.com |
d893f81447cffccd57f611c33ea3bf1abef138f4 | 092730e0ab9ca11ea7c729d442eb1864ffef46da | /config.py | 1c2d5cfcce31084d3ea93e07b1fc8120e3f0c5cc | [] | no_license | pkulics/clssification4all | bde34b286c09829ffa63efd07f334ea4995d2986 | 5dcf1150465db54a22fb0eebfb452648cfcd4b8b | refs/heads/master | 2020-10-02T09:48:12.205019 | 2019-12-13T03:58:30 | 2019-12-13T03:58:30 | 227,750,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py |
# 句子长度
SEQ_LENGTH = 20
# 分类类别
NUM_CLASS = 2
# 学习率
LEARNING_RATE = 0.01
# 隐层单元数
HIDDEN_DIM = 300
# 训练轮数
EPOCHS = 100
# 训练batch大小
BATCH_SIZE = 64
# dropout比率
KEEP_PROB = 0.5
# 保存模型路径
SAVE_PATH = "saved_model/"
# 词表路径
WORD_PATH = "data/chars.txt"
# 词向量路径
VEC_PATH = "data/selected_vec.txt"
# 训练集路径
TRAIN_DIR = "data/pingj... | [
"lics999@126.com"
] | lics999@126.com |
784e56a9dbaee37073f8fdb145715f994d3dd23b | 6c8f3ab5f952d986a17edda582c5a039bf65c632 | /django/current_time/manage.py | d3c6bb5d885435d67ba8dae50bc7e405130103bf | [] | no_license | phillipn/coding_bootcamp_projects | 3d3bd697728dd4502267e0cd2be7a090952029a8 | 278f96df9d256364583654a00fe585d474ea86a1 | refs/heads/master | 2021-01-17T17:30:14.607944 | 2017-03-19T18:12:32 | 2017-03-19T18:12:32 | 82,971,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "current_time.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that... | [
"phillipn101@gmail.com"
] | phillipn101@gmail.com |
e2c690c3b7c514541608366bd2c05a1d0074bd84 | 5027dac6f1d8caef4efb343532dcc9fd3eaf5684 | /wemake_python_styleguide/violations/refactoring.py | b2b5f2148489073d379b4a052fbc19800c77265d | [
"MIT"
] | permissive | miranda-lin/wemake-python-styleguide | a31f81d08aa487fda432f39338f8b1c0ce0e779c | 673a06431f244291f7a0e57998d86f3d1b3a887c | refs/heads/master | 2020-09-28T08:02:12.409502 | 2019-12-05T08:51:52 | 2019-12-05T08:51:52 | 226,729,049 | 0 | 0 | MIT | 2019-12-08T20:45:03 | 2019-12-08T20:45:02 | null | UTF-8 | Python | false | false | 27,485 | py | # -*- coding: utf-8 -*-
"""
These checks ensure that you don't have patterns that can be refactored.
There are so many ways of doing the same thing in Python.
Here we collect know patterns that can be rewritten into
much easier or just more pythonic version.
.. currentmodule:: wemake_python_styleguide.violations.ref... | [
"mail@sobolevn.me"
] | mail@sobolevn.me |
8434ac74cf6437d09b1477f834bb50b69fa990ee | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/mesh3d/colorbar/_xpad.py | 7820a1942bfa9356738ddc1559e8591237ceef1b | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 438 | py | import _plotly_utils.basevalidators
class XpadValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="xpad", parent_name="mesh3d.colorbar", **kwargs):
super(XpadValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
c0c36952762518441402ac4632f851c9af287a86 | 0d8b1d5bd8988da99dfb3a20feb0a96367f26f3e | /scraper.py | 942e833f7bd296d085cb70837d37948e08c82993 | [] | no_license | Arrakark/craigslist_housing | 2c6add47782258065e1118fcd64d0a0970b31cc3 | 7bbacac7ad70b9636be7571b0f223ab77407fbe0 | refs/heads/main | 2023-06-26T11:15:29.308450 | 2021-07-28T08:31:15 | 2021-07-28T08:31:15 | 355,320,181 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,122 | py | from time import sleep
import re
# avoid throttling by not sending too many requests one after the other
from random import randint
from warnings import warn
from time import time
from IPython.core.display import clear_output
import numpy as np
from bs4 import BeautifulSoup
from requests import get
import pandas as pd
... | [
"vlad.pomogaev@gmail.com"
] | vlad.pomogaev@gmail.com |
edd08bcc3761d0c614fafb03a5626a68d542cc7b | 345e2473ba375b2b0150f95dce7317bd11eda7cd | /app.py | abdc2843e2c84b611177028bf6f0aebc221415cb | [] | no_license | Ross-Cockburn96/TestFlaskAPI | 934911d1f2c557652ec9f9885b0ddf419e15745d | 496c8fb59ca3392de194f12dbac0088a254bbf50 | refs/heads/master | 2021-10-14T08:56:05.820002 | 2019-02-03T15:45:09 | 2019-02-03T15:45:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py |
import os
from flask import Flask, request
from flask_restful import Resource, Api, reqparse
from flask_jwt import JWT, jwt_required, current_identity
from resources.user import UserRegister
from security import authenticate, identity
from resources.item import Item, ItemList
from resources.store import Store, StoreL... | [
"s1424268@ed.ac.uk"
] | s1424268@ed.ac.uk |
bc9ab03b12766748c663d9baccc5623ae76a946d | 8b8639aa8b6bb24bae697640aaee580fe1367bae | /tonis_piip_org/settings/base.py | ea7d79588d85f12e8d7c8406555c1c471ac40a5e | [] | no_license | TonisPiip/tonis_piip_org | 11155b08701c84a7d3df7f6082930bb797467e70 | 9e569888dfa79b81498cb9496894974ab592ad43 | refs/heads/master | 2022-11-11T05:30:24.810591 | 2020-06-28T13:23:04 | 2020-06-28T13:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,373 | py | """
Django settings for tonis.piip.org project.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
import os
from urllib.parse import quote
import environ
# Quick-... | [
"tonis.piip@gmail.com"
] | tonis.piip@gmail.com |
d1f8baf07db8beeae1926ac79ecc73574cef958b | d748d2b46d5f043bcf8539c5d809972fc8c1f128 | /dogehouse/entities.py | fde1162b98278bc67acabc0dddf9af4610d8cdee | [
"MIT"
] | permissive | absucc/dogehouse.py | 7ae71c69ecad5782fa9b27266ab7ec5ad5a2c02e | 9fd9feb7459ad3c47754bfc83f21a97accb94cc0 | refs/heads/main | 2023-03-21T21:46:59.631039 | 2021-03-21T20:48:19 | 2021-03-21T20:48:19 | 350,133,089 | 0 | 0 | MIT | 2021-03-21T22:13:59 | 2021-03-21T22:13:58 | null | UTF-8 | Python | false | false | 5,542 | py | # -*- coding: utf-8 -*-
# MIT License
# Copyright (c) 2021 Arthur
# 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... | [
"mail@arthurdw.com"
] | mail@arthurdw.com |
16c25deb559d7a5ab960d483c8b7b5eb8b8ef69c | 3ea2f346f2e38bc0e742b5994e2757bfde9bf7f2 | /qlearningAgents.py | 2b1f67e6cffa0c68851a41accb51c48e131d8a0a | [] | no_license | Ubastic/PacMan | 2377a3fca3e8986ab56d06d52f448183c424c047 | 1df7b0576e740e8b288845e819b0c8542bbf396c | refs/heads/main | 2022-12-27T05:03:43.254876 | 2020-10-12T04:07:13 | 2020-10-12T04:07:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,254 | py | # qlearningAgents.py
# ------------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.be... | [
"noreply@github.com"
] | Ubastic.noreply@github.com |
5b1416ac26ffdf9b7c0cc467a06057c5a90b5fad | cd4af3cd0d7dc87410085de736ddc8260689da75 | /gif_gen.py | 97adb87406c4ab981361203a04f3c63c3550f414 | [] | no_license | ttruty/AmongUsDiscordBot | fb8f125610100909fb6d177678e5f4a5a35a9307 | 4d8e21ad323195261d1870af20df69223c454884 | refs/heads/master | 2022-12-26T04:37:29.256649 | 2020-10-11T23:28:25 | 2020-10-11T23:28:25 | 303,231,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | import os
import random
import giphy_client
from giphy_client.rest import ApiException
from pprint import pprint
GIPHY_KEY = os.environ['GIPHY_KEY']
# Create an instance of the API class
api_instance = giphy_client.DefaultApi()
config = {
'api_key': GIPHY_KEY, # Giphy API Key,
'limit': 20,
'rating': 'r'... | [
"ttruty@gmail.com"
] | ttruty@gmail.com |
433ebb1663057ded240e28cf383e3dff334b1db9 | 0d894d8b48c7169684f8accd25180211a0ecabdf | /heruko.py | 4d5d79eb08d764ea0e3be9b0803c0b554caae73d | [] | no_license | itsdanny58/dojrrp | 248e8512fbac66507da2e71cf624da002d1289ec | f4ac204b69806e2c510e7c692f08d99cb6e84f78 | refs/heads/master | 2021-10-10T01:55:10.529330 | 2019-01-06T05:42:30 | 2019-01-06T05:42:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | import discord
from discord.ext.commands import bot
from discord.ext import commands
import asyncio
import time
import os
Client = discord.Client()
Client = commands.Bot(command_prefix = ".")
@Client.event
async def on_ready():
print("Thanks")
await client.change_presence(game=discord.Game(name="vi... | [
"noreply@github.com"
] | itsdanny58.noreply@github.com |
fa070402dffb6777ac4fda53703d2d5d0bb524cf | 689c695db0ec37d2420fbe24684a1ca0d2d8f297 | /day_20_1.py | d9bf3dc61f3fc56064c8473fc2878fddab878226 | [] | no_license | moxon6/advent-of-code-2020 | d2008d5ebe9078d9fd04acffb366859a04ffccb8 | c17b00c5561ff7089ec0a4c93822c0044a749fdd | refs/heads/master | 2023-02-06T08:45:38.650424 | 2020-12-27T13:54:05 | 2020-12-27T13:54:05 | 320,891,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | import numpy as np
from collections import namedtuple
Tile = namedtuple('Tile', ['id', 'data'])
def parse_tile_section(tile_sections):
title, *data = tile_sections.splitlines()
tile_id = int(title.strip("Tile :"))
return Tile(
id=tile_id,
data=np.array([list(line) for line in data])
)... | [
"moxon6@googlemail.com"
] | moxon6@googlemail.com |
8364fbea315acbc88ab8990b88a742bcde2932e4 | 5c55f5753d679deb742406112d8fa1ac0f4a3a45 | /mysite/polls/tests.py | 608e5ff35eafe04d082edfe3859d430333d10b59 | [] | no_license | avoevodin/django_tutorial | 4fcd4d1c683146c80809ed8f890e621b939553a9 | cafcae75cac2a5b1d09d0c5c68e687ed6615a7f3 | refs/heads/master | 2023-04-07T01:45:19.279078 | 2021-03-22T15:44:04 | 2021-03-22T15:44:04 | 347,059,877 | 1 | 0 | null | 2021-03-22T15:44:05 | 2021-03-12T12:32:57 | Python | UTF-8 | Python | false | false | 11,682 | py | import datetime
from django.test import TestCase
from django.utils import timezone
from django.urls import reverse
from django.utils.html import escape
from .models import Question, Choice
def create_question(question_text, days):
"""
Create a question with the given 'question_text' and published the
gi... | [
"avoevodin8888@gmail.com"
] | avoevodin8888@gmail.com |
4c73f861c6104b1d38e421440185919342e74b95 | 49e0f4c64b17e456165a98cb52107991bf0d7a48 | /Material/Day-4/python-cgi/newcgi/checkpost.py | 56a856c6b21cba3cd9f570fb94085237000b58ed | [] | no_license | vzkrish/Python | 3ab315f5f611d9921d99be3f846d159720853f47 | 192d7d17b99612d213c47c48ee10a6250e38d871 | refs/heads/master | 2020-04-07T05:34:29.137697 | 2018-03-07T05:49:33 | 2018-03-07T05:49:33 | 124,172,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | #! c:\python27\python.exe
print "Content-type:text/html\r\n\r\n"
print '<html>'
print '<form action="/cgi-bin/checkbox.py" method="POST" target="_blank">'
print '<input type="checkbox" name="maths" value="on" /> Maths'
print '<input type="checkbox" name="physics" value="on" /> Physics'
print '<input type="submit" value... | [
"krajubh@gmail.com"
] | krajubh@gmail.com |
53e1a51c0286c6ef1201b948532fc3d6c385454f | 8f15a0736dddc22944c0c8914521d9840514abd8 | /main.py | 6387aefe0ccb921cdce21378d90e768a1dfb276c | [] | no_license | basic-maths-exercises/numbers-4 | 4ea70c51144d6aadca828792fe0150ddfd9bad44 | a5be8a5589d42287f20d67e890176c353596723a | refs/heads/main | 2023-03-02T08:03:11.777605 | 2021-02-02T16:22:13 | 2021-02-02T16:22:13 | 316,498,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 156 | py | import numpy as np
def getBinary( N ) :
# Your code goes here
for i in range(16) :
print("The binary representation of", i, "is", getBinary(i) )
| [
"noreply@github.com"
] | basic-maths-exercises.noreply@github.com |
7b8bcecabf1e53d27ba468254db1d733c75364cc | ad45b7fc2b42b72ad9bd70f27f90577048aadd40 | /move zeroes.py | 0d03d661268b43776a6425f38e065c57f6f0db8e | [] | no_license | 5h4rp/leetcode-practice | e333d6496eef365ec3874e47c27b51cc4bc37a54 | ea8fb61de2c2215ec58e4b95c404c17a2314d880 | refs/heads/master | 2023-06-28T18:39:39.888399 | 2021-07-19T21:27:07 | 2021-07-19T21:27:07 | 387,598,309 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | # Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.
# Example:
# Input: [0,1,0,3,12]
# Output: [1,3,12,0,0]
# Note:
# You must do this in-place without making a copy of the array.
# Minimize the total number of operations.
l = list(... | [
"ajayender@live.in"
] | ajayender@live.in |
5d4caef210e62617cabc1e940448a65e230b8c8c | a3d956e71c3186688c1eb895157810bd821829cd | /catkin_ws/src/Onboard-SDK-ROS-3.2/dji_sdk_demo/script/Atmotube/main.py | 78f421e07d12aeaa4a04c679f5714bea68b98ffb | [] | no_license | lipor/MatricePyROS | 885e09b46637703c031746dd39bdc628c2899669 | b76b2eab4db49243f892671614512924c9bd74f6 | refs/heads/master | 2021-08-28T00:21:15.524791 | 2021-08-10T21:07:25 | 2021-08-10T21:07:25 | 196,454,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,135 | py | #!/usr/bin/env python
import rospy
from dji_sdk.dji_drone import DJIDrone
from std_msgs.msg import String
import dji_sdk.msg
import time
import sys
import math
import numpy as np
import datetime
import threading
import atmotube_scanner
import gaussiantest
# A program for retrieving data from an Atmotube air quality s... | [
"justinetulip@gmail.com"
] | justinetulip@gmail.com |
0b78dcdac58833412c54cbda8d3ec6c9254bdc4e | 6ebf0d93c77966ecdc0e0db594be614a4ceb3519 | /bin/deos | 2ab3571297ca9acf169888b773e6a44bc5ad1e73 | [
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | kvnn/DeOS | 53a7bb595c26246c1daf00663091749d4e5c7d37 | d865a3d202e4ae8328ecd1cf4e8b159eda6ed262 | refs/heads/master | 2021-01-13T13:41:30.652110 | 2016-12-13T09:24:12 | 2016-12-13T09:24:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function
from subprocess import call, check_output
EXEC=lambda x:print('\n%s'%check_output(x.split(' ')))
PRINT=lambda x:print('\n%s\n'%x)
SHELL=lambda x:call(x.split(' '))
CMD={'Δ':'\x1b[32;01mΔ \x1b[0m'}
CMD['down']=lambda:SHELL('make dow... | [
"noreply@github.com"
] | kvnn.noreply@github.com | |
ef9486bd52fe3268b1678689c22fb5f8354604da | aac56d890e5c450b6a6ab15f0427a63cd1637810 | /wolframalpha.py | d45d7a11c3a5f328b019d55e1144b734fc0bb9f8 | [] | no_license | RitwikGupta/MHacksV | d468895c84be5b86896cd39e879c62e99c24a9e5 | 65a2863eba638e1ab40172c110acb6a48d392b88 | refs/heads/master | 2021-05-16T02:52:56.390268 | 2017-10-04T21:46:58 | 2017-10-04T21:46:58 | 29,382,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | import urllib2
import xmltodict
from string import split
statesGlobalVar = ['China']
def query(q, key="PA5U8P-6XX65RA456"):
return urllib2.urlopen('http://api.wolframalpha.com/v2/query?appid=%s&input=%s&format=plaintext' % (key,urllib2.quote(q))).read()
def state_query(group_name, states=statesGlobalVar):
res... | [
"rmo24@pitt.edu"
] | rmo24@pitt.edu |
295cc1d3cf3461a85435bbe482968d67fa518f0e | d7331f18dd58c1ee9af63a79ce53fcd6de87d006 | /Beginner Level/sorted list.py | 04abbf060ffeb6050a16bfc41bb5583b6454a765 | [] | no_license | JeevaHariharan/Python-Programming | cdef90c31c10d0a670c26f8eb9bf2b5a217f0ece | e71c5eee0548430548d4f037aa1b3816fcdc2e30 | refs/heads/master | 2021-09-13T10:35:23.876421 | 2018-04-28T10:26:28 | 2018-04-28T10:26:28 | 125,207,625 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | n=int(input())
b=[]
for i in range (0,n):
a=int(input())
b.append(a)
b.sort()
print(b)
| [
"noreply@github.com"
] | JeevaHariharan.noreply@github.com |
8e298e3ce6c52bda11234f4b510b5b5dbc48c668 | c3b69ed405d910eb4783107f65dfe5af509e4f9f | /src/simplify_docx/iterators/run.py | 83d42ae4ed24ceefeed39e81c24678297c7d9a2e | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/Simplify-Docx | 32e992a8313ca20ffe69dd0d32371436ecc4bed1 | 7f41e9195f5eb9e40558d57dc41f325f92a1b3a7 | refs/heads/master | 2023-09-01T08:59:34.971626 | 2022-06-13T17:59:06 | 2022-06-13T17:59:06 | 178,740,813 | 160 | 37 | MIT | 2022-06-13T17:59:07 | 2019-03-31T20:50:48 | Python | UTF-8 | Python | false | false | 1,439 | py | """
Build the iterator for the run elements
"""
from docx.oxml.ns import qn
from .generic import register_iterator
from ..elements import text, simpleTextElement, SymbolChar, empty, contentPart, fldChar
register_iterator(
"CT_R",
TAGS_TO_YIELD={
qn("w:t"): text,
qn("w:sym"): SymbolChar,
... | [
"jathorpe@microsoft.com"
] | jathorpe@microsoft.com |
23ed161811c076fabbb5ff1db48a45d115ca4d30 | f9a72c43e0ea5fe08687d0608fcd113e63de2964 | /368. Largest Divisible Subset.py | be5e44d33faac3818b5d64c2cde9fe2e8636e04d | [] | no_license | Jingwei4CMU/Leetcode | 1b82939583e4133442c3f4ae815630fd5999dc5c | baa6927a137765e4d7fe2d020863bca6988a1cf7 | refs/heads/master | 2020-04-07T22:14:49.266726 | 2019-04-16T23:54:41 | 2019-04-16T23:54:41 | 158,761,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | class Solution:
def largestDivisibleSubset(self, nums):
"""
:type nums: List[int]
:rtype: List[int]
"""
if len(nums) <= 1:
return nums
nums = sorted(nums)
# print(nums)
maxlen = [1 for i in range(len(nums))]
for i in range(1,len(nu... | [
"jingwei4@andrew.cmu.edu"
] | jingwei4@andrew.cmu.edu |
ebf006c01946c981bfa6f5883f19c3571f088d2d | e3e1890b32cacb7e150e21671616257c3ef42e9a | /TelemetryGenerator/main.py | 6cb87a9b2b58c9b2dfd8c9a8aed07acdcc304323 | [] | no_license | itaynahum/proj | 10df64b0ebb63f05d255ab98b983fc91aacaf528 | 64487a6056c6eaedee818df4d6a5ab4fe1afcd93 | refs/heads/main | 2023-05-04T20:33:03.487708 | 2021-05-28T13:08:42 | 2021-05-28T13:08:42 | 367,837,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py |
from TelemetryGenerator.Utils.Logger import InitLogger
from TelemetryGenerator.Utils.Config import Config
from TelemetryGenerator.Utils.Validator import directory_validator
from TelemetryGenerator.Utils.Runner import Runner
if __name__ == "__main__":
logger = InitLogger()
basic_logger = logger.basic_logger()... | [
"itaynah123@gmail.com"
] | itaynah123@gmail.com |
ff38a8f010da123b175d523d3d84c210dda97d3d | 86f62258c6a98cbd307c8ce705c3d4abc6a4ef11 | /BigData_BI/BD8/bixi_linear_regressionV2.py | e7dd26a1bffe3df0f0d30939f434f487c63971f3 | [] | no_license | AndresUrregoAngel/CBB | 59efa3084905bd146c4106d803c2b23194fd5826 | 6a214efd18d9b968d4cab65d0a93c77ed0c7614b | refs/heads/master | 2021-01-01T19:22:12.669772 | 2020-09-25T14:44:06 | 2020-09-25T14:44:06 | 98,571,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,225 | py | # _*_ coding: UTF-8 _*_
import pandas as pd
from sklearn import preprocessing
from sklearn.model_selection import train_test_split
from sklearn.preprocessing import StandardScaler
from sklearn import linear_model
from sklearn.utils import column_or_1d
from sklearn import metrics
import numpy as np
df = pd.read_csv('... | [
"ingenieroandresangel@gmail.com"
] | ingenieroandresangel@gmail.com |
38b0bea0b146ee37a3abdbfd3dc6049cfa25c0a6 | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-servicestage/huaweicloudsdkservicestage/v2/model/instance_status_view.py | f98d61c91c370d3f5da081ed433804c56425b07e | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 6,719 | py | # coding: utf-8
import pprint
import re
import six
class InstanceStatusView:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
6bc6edcfb3dcb1ab8eed0ae598148c109e6505c7 | c76e614c813172115c17a5ecf6828ba3ffb2e40c | /core1/migrations/0001_initial.py | 9c74a35231f3ed42867fc50ca4bee3405d00b121 | [] | no_license | namanmj/restapi | f5ed850cc167ad5157b86ea276d617068da04ce6 | 4863c726a7775d2a885cb951b53dcd8824790956 | refs/heads/main | 2023-05-03T05:46:27.401864 | 2021-05-15T18:03:18 | 2021-05-15T18:03:18 | 367,336,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,522 | py | # Generated by Django 3.2 on 2021-05-07 17:15
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Building',
fields=[
... | [
"naman.18bcs1103@abes.ac.in"
] | naman.18bcs1103@abes.ac.in |
89ddca4933ee0b6bb195fc066824a9b56a447dc3 | 7654f7f7134fb4542a41d4b6766990aa0f4f607f | /tutorials/datesntimes/dt_3.py | 8f08ae066caf5c4836d846fec4888ecc656dd4c0 | [] | no_license | spelee/python_edu | 9d76af74ac0c616f84d8d83bb8ea68412629cbc0 | daaad68f46815b4cfe4beb171db0cc0dd6625040 | refs/heads/master | 2020-03-30T15:09:57.532906 | 2020-02-27T00:09:28 | 2020-02-27T00:09:28 | 151,349,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,700 | py | import datetime
import pytz # recommended module for timezones
# alternative constructors
# none of the ways below give tz 'aware' datetimes
dt_today = datetime.datetime.today() # current local datetime, tz is None
# gives option to pass a timezone, so not passing a tz makes it equivalent to today()
dt_now ... | [
"spelee@gmail.com"
] | spelee@gmail.com |
93e8d37ef1da5969876cb667a9ae9f8c823d21b9 | 180f8dd79821f7bc3b374c6fd3841e898a07e7da | /Easy/generate_document.py | 6df48c047cf77f613dd5f39f6066536d5d9a7cb1 | [] | no_license | dalalsunil1986/Interview-Prep | be1382155677bead9667c88ecefaddc43e2d9469 | 595e86f0ff008b8fe534ff1ab4234bb11a3bdf03 | refs/heads/master | 2023-03-30T09:39:09.118839 | 2021-03-30T02:09:07 | 2021-03-30T02:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,261 | py | from collections import Counter
"""
Very simple solution using built in libraries to just count up
occurrences and ensure that we have at least the needed number of chars
in our string to generate the document, based on chars and counts in
the document.
"""
def generateDocument(characters, document):
avail_char... | [
"jchopra@seas.upenn.edu"
] | jchopra@seas.upenn.edu |
b3b1a60da3c05f3fbbc992bc947f2c48788e42fc | 9248a1700cf0fad6d7b3e5750acb034e78a37286 | /fb/audit.py | 13ad5d11d80a32200cef0fbd5e7806ab2eb05d3f | [
"Apache-2.0"
] | permissive | indigos33k3r/Fritbot_Python | 992314260255294180acc0217968d3cc13a730ad | 40c26e801952dfe54fad2799949ee684f29d6799 | refs/heads/master | 2020-04-13T16:34:03.112310 | 2014-04-16T22:55:26 | 2014-04-16T22:55:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | import logging, sys
from twisted.python.logfile import DailyLogFile
from twisted.python import log as twistedlogger
from fb.config import cfg
class Auditor(object):
CRITICAL = logging.CRITICAL
ERROR = logging.ERROR
WARNING = logging.WARNING
INFO = logging.INFO
DEBUG = logging.DEBUG
def __init__(self):
try:... | [
"urthen@gmail.com"
] | urthen@gmail.com |
a69b21b4193ae3c1cde954be6583597e7d495bd9 | 2f2cc5bc44f0ff08c1f9888c3dd97ea2d3f3fe0a | /EXAMPLES/regex_sub.py | db2424c422fd1fef58a058f8075ac90f716c432c | [] | no_license | solracq/Python-Training | ba33583292863393fab8156d18d48bc511c9f331 | 4c8a29da23b9e483f8e5c30f7ef4a7311a427381 | refs/heads/master | 2021-01-21T00:45:04.954824 | 2020-05-04T00:21:35 | 2020-05-04T00:21:35 | 14,281,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #!/usr/bin/env python3
import re
fs = "apple banana artichoke cherry date enchilada appetizer"
r = re.compile(r"\b(a[a-z]+)(\s*)") # match words that start with 'a'
print(r.sub('',fs)) # delete matched text
print(r.subn('XXX',fs)) # replace matched text with 'XXX'
| [
"Solrac@192.168.0.18"
] | Solrac@192.168.0.18 |
a39a1e6cea4dd37aaaea9a0c0ef62681a2a2aa71 | fddc60af2bab8c440c91f7096a1d5bee9420d672 | /venv/Scripts/easy_install-3.8-script.py | 9e01afb6caf63425cbdf9105a9787dace54fd3c7 | [] | no_license | lamnhuthoa/Turtle-Race | 55b9aa98c97ed60372961648efd6507a73c106f9 | c5b9ecce0c6c4fb807dee9190b03dfb729c4248b | refs/heads/master | 2023-07-25T10:59:20.222685 | 2021-09-03T18:22:39 | 2021-09-03T18:22:39 | 402,862,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | #!"C:\Users\SONY\Desktop\Python Course\Etch A Sketch\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'... | [
"hoalamnhut@gmail.com"
] | hoalamnhut@gmail.com |
63090d581802e03b77e9c36bac9c1cfea61ff789 | 1c01810b23d8e959605cde200cc82cb3d62899d9 | /unsam/Clase 4/arboles.py | 75c3ed101dbcbba79fd467adc4bf7c613dacf3e0 | [] | no_license | benitez96/unsam | a914721a7649092ac8f875866e44af2eb455919e | 592f98e97672b44b9088938725bdd58a59ea6412 | refs/heads/main | 2023-01-13T08:07:17.746091 | 2020-11-05T22:11:43 | 2020-11-05T22:11:43 | 303,542,199 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,712 | py | import csv
from collections import Counter
#%%
def leer_parque(nombre_archivo, parque):
'devuelve una lista de arboles en un parque'
arboles = list()
with open(nombre_archivo, encoding='utf8') as f:
rows = csv.reader(f)
headers = next(rows)
for row in rows:
lote = dict(zi... | [
"danii-benitez@hotmail.com"
] | danii-benitez@hotmail.com |
38339d8f1003dc5740ff2f33c21d904957615df0 | 12355b1f9505281cd22723631a9155312566083d | /Automation/Automation_Debpack/improvedir.py | 82d05b2b4941d0e56a81418a6ec3aac64d399d73 | [] | no_license | jayanthsagar/portable-vlabs-project | ee747ab4f3c52566ad8b9c594416f29f0057ca1e | 3652f163bd6efe61b587bff2475109764288d530 | refs/heads/master | 2020-04-09T09:15:32.351212 | 2015-02-25T05:06:15 | 2015-02-25T05:06:15 | 31,298,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | import sys
import os
v=sys.argv[1]
for root, dirs, filenames in os.walk(v):
for filename in filenames:
fullpath = os.path.join(root, filename)
filename_split = os.path.splitext(fullpath)
s, fileext = filename_split
i,l=0,len(s)
while i<l:
if s[i]==' ': s=s[0:i]+'_'+s[i+1:]
i+=1
os.rename(fullpath, s... | [
"jayanthsagar.t@gmail.com"
] | jayanthsagar.t@gmail.com |
23919b09c33cb9140c8d0a2981d16875d4b98e7e | 2d395a09a0927c82dc67edc5e924884bc982e4dd | /resource/migrations/0002_auto_20211022_1332.py | a15ffa8cc834d0654de249a106446a90e9948ee3 | [] | no_license | Johguxo/hackaton-bbva-2021 | b87b274e6515a4ba19181ed2efca67b63079078c | de515fc60089f0da0ef37d2c248404639f746437 | refs/heads/master | 2023-08-19T05:38:56.500277 | 2021-10-24T15:28:19 | 2021-10-24T15:28:19 | 414,044,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | # Generated by Django 3.2.7 on 2021-10-22 18:32
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('resource', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='file',
na... | [
"jgonzalesi@uni.pe"
] | jgonzalesi@uni.pe |
8af5fce5f8b121061c77f2907d2f7442751ab6d2 | 98b4c86d12903ba7863878ed79523cfeb465a3db | /bi_invoice_layout_customization/models/__init__.py | 829783c8e2492b8291f6900f5e8dcb8109afa689 | [] | no_license | odoo-modules/dareed | 4168dc301eeafe8c6ed034a89e49af19e641ac8e | 2588deb0c0a364bf799846f6c46e38cb1a83d529 | refs/heads/master | 2020-07-18T14:58:47.912413 | 2019-09-02T12:58:23 | 2019-09-02T12:58:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | # -*- coding: utf-8 -*-
from . import account_invoice_inherit
from . import res_partner_inherit
from . import res_company
from . import account_invoice | [
"ibrahimqabeell@gmail.com"
] | ibrahimqabeell@gmail.com |
4bc88052af9531b9fc985bb173fa8a369612e51f | 6cf550446a92cc2b77f51632180877a8a6c7fda3 | /_build/jupyter_execute/lab_notebooks/B04.py | 6231bd33a1a64ae4211b74788dc2781ad9781a89 | [] | no_license | zelenkastiot/bio_lab | 8e6413b2fbf8f573bbfe4ef1e6b8c3d4590fd176 | a4e8cef347f74f6451274b2867900e65fa309d37 | refs/heads/main | 2023-05-10T17:51:49.592662 | 2021-04-20T23:12:12 | 2021-04-20T23:12:12 | 359,972,162 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,710 | py | # 💻 Б4: Yersinia pestis ДНА секвенца
```{admonition} Опис на барање
:class: tip
Да се преземе комплетната ДНА секвенција на Yersinia pestis
(бактерија која ги инфектира белите дробови и предизвикува
пневмонија). До неа се пристапува со употреба на
идентификациониот број **NC_005816** во GeneBank базата
(работете со *... | [
"zelenkastiot@gmail.com"
] | zelenkastiot@gmail.com |
1e54fa03058fb4fa591d0696e2c0b5f8badf564e | 8310397dafc1c7b8209821725606cb70ebd15366 | /dbtest/emp/migrations/0002_auto_20180919_0405.py | aa9823a70a863a8d2460100d635c8570a9bcc234 | [] | no_license | Pkaran26/Download-different-type-of-file-attachments-in-django | 0233fa4b53a3616cfe15fd43627efdf4ace9f7a4 | b95c8dabcb78c707a5de56533828740e548c9b21 | refs/heads/master | 2020-03-29T00:58:04.063864 | 2018-09-19T00:24:45 | 2018-09-19T00:24:45 | 149,364,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # Generated by Django 2.1.1 on 2018-09-18 22:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('emp', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='employee',
name='dob',
... | [
"noreply@github.com"
] | Pkaran26.noreply@github.com |
378a3a23ba9b25d34904f847f59c0c6527556a71 | dd67c85179812aea6fff4fe693f56cb94c58b0f5 | /polls/migrations/0001_initial.py | ca4df1752779d152f03261f48662cd96ebd5694d | [] | no_license | amsterdam32/firs_app_votes | ad013e98492dc63394b361b9eec9d71a5fd58017 | 89786d4373b3b6a51a3490473cb25abd9913a800 | refs/heads/master | 2016-08-12T05:36:19.094347 | 2016-01-15T12:18:31 | 2016-01-15T12:18:31 | 49,647,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.1 on 2016-01-14 16:39
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Creat... | [
"v.postman2014@yandex.com"
] | v.postman2014@yandex.com |
b9e98494dc978048f1898ab2c037aa45350f64ce | 22c060f4be02fbacfa7503f8d2433be9f0454114 | /venv/bin/wheel | 973a1d986bf1548c02472c4557724852c8cec08f | [] | no_license | doorknob88/cmpe273assignment1 | 3ba2c72614723a69abb8ab3a9cdb62a5fb2456d0 | 600879aaccabcd2153d17c754b0097d4eac93c1f | refs/heads/master | 2021-08-31T04:03:55.841038 | 2017-12-20T09:15:28 | 2017-12-20T09:15:28 | 107,230,741 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | #!/Users/Dipro/Desktop/SJSU/Fall-17/273-01/Assignment-1/assignment-1/venv/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"doorknob88@gmail.com"
] | doorknob88@gmail.com | |
80b9876a49985800a8bd866d146704fac405e374 | 25e8f335313a9d8bfae37ef6d931716c6d9b91b2 | /AirFleet/AirFleet/asgi.py | 660b0b4b8e639591c68b7094a69e700ca6354ad1 | [
"MIT"
] | permissive | fossabot/AirFleet | 4f854f82465a972483e59f570b56efbb1d3eb8bd | f1933bb27129266dcfb7b393622afcb61b4900f8 | refs/heads/main | 2023-07-09T18:44:10.312710 | 2021-08-16T18:59:22 | 2021-08-16T18:59:22 | 396,931,977 | 0 | 0 | MIT | 2021-08-16T18:59:21 | 2021-08-16T18:59:21 | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for AirFleet project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"pshukla911@gmail.com"
] | pshukla911@gmail.com |
c064aa982d26f36d362a8853f239fdc454059b8f | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /gaussiana/ch3_2019_03_15_10_58_42_117187.py | d99487bdb36aca329b09cc5c7f5aefc5cc7edc44 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | import math
def calcula_gaussiana(x,μ,σ):
f = ( 1.0 / (σ * math.sqrt(2.0*math.pi)) ) * math.exp(-0.5 * ((x - μ)/ σ)**2)
return f | [
"you@example.com"
] | you@example.com |
bc884dd6ff26f86795874355e8cece32d64a4167 | 1775dcc68f2c0c196b9fb16abae31149b47d5df3 | /designs/migrations/0002_initial.py | bd7b658729d70f11bd713484a65d93023df9f111 | [] | no_license | jessicastrawford/project-four-backend | a5427284f4f2e67e0cd62ed79c8041505d377373 | da1c26e5aa360b04eae09ea8f641fb579144b76e | refs/heads/main | 2023-08-24T22:29:03.918449 | 2021-10-14T14:45:29 | 2021-10-14T14:45:29 | 404,301,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | # Generated by Django 3.2.7 on 2021-09-09 18:42
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('desi... | [
"jessicastrawford@gmail.com"
] | jessicastrawford@gmail.com |
36b4bde74ee055b1e8c0737ab35aac2ac08635e3 | a30c19795ad4f8ee5d10d1776d63d0eca5497d48 | /ml_model.py | 6f8c2ebade828618dca22ee71b4ebf2a7a4eceee | [] | no_license | arun1011/ML-Classifiers-Comparison | cd78cfd1c4b4eb5eb4959e82b8e5398c99f5e564 | 7d9320f3712911c382c42539b79a6106489c32dc | refs/heads/master | 2021-07-11T20:40:35.109445 | 2021-05-09T06:10:51 | 2021-05-09T06:10:51 | 245,651,072 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,512 | py | import pandas
from sklearn.externals import joblib
import operator
import numpy as np
from pandas.tools.plotting import scatter_matrix
import matplotlib.pyplot as plt
from sklearn import model_selection
from sklearn.metrics import classification_report
from sklearn.metrics import confusion_matrix
from sklearn.... | [
"noreply@github.com"
] | arun1011.noreply@github.com |
316765311ed947f8126d3fd66366e60e5aabd5f0 | 2d9782e06391d5ff98e4d80812580afa4e38e841 | /app/main/views.py | c8e0aab9c6f8f92f6166a6bef793e6931dc7fc83 | [
"MIT"
] | permissive | JamesMusyoka/PITCH-IP | 25e4c8aa71a77584190054a53e6a37825c01e032 | 56d9a9e1e30cd702511909d3df9e0ba7f388ef3c | refs/heads/master | 2020-04-21T17:41:35.025345 | 2019-02-14T13:02:23 | 2019-02-14T13:02:23 | 169,744,643 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,440 | py | from flask_login import login_required, current_user
from .forms import PostForm
from .. import db
from flask import Flask,render_template,request,redirect,url_for,abort
from . import main
from ..models import User,Role
# from flask_wtf import FlaskForm
# from wtforms import StringField,PasswordField,BooleanField
# fro... | [
"jamesmu475@gmail.com"
] | jamesmu475@gmail.com |
545b33429f708c172ec7d0784df38f46b5ffb385 | 2fd817893ed972665f0917b7ff8d1427cb59407d | /sorting algorithms/Dynamic_KnapsackBlockchain.py | 9ae024792f694f90631fc53d578d65e746d6e56e | [] | no_license | ChuksXD/SDT-Blockchain | ce598de666fce422c6317b0f192d0bd00c79b0d0 | 9665ef272dbf51e631306b1cb573e1167c8a8875 | refs/heads/master | 2022-12-04T18:02:33.206330 | 2020-09-04T01:05:47 | 2020-09-04T01:05:47 | 161,278,173 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,495 | py | # A Dynamic Programming based Python Program for the Knapsack Blockchain problem
# Returns the maximum value that can be put in a Block of capacity 1mb
import time
#dynamic programming function obtained from geeksforgeeks
def knapSack(W, wt, val, n):
K = [[0 for x in range(W+1)] for x in range(n+1)]
... | [
"noreply@github.com"
] | ChuksXD.noreply@github.com |
aa26dec430edca3bd0a142efad6222448eebef37 | 85c231cde886155a72b2bcef10d974e0507005f6 | /scrapytutorial/venv/Scripts/pyhtmlizer-script.py | de7157cc45c278107e49fc0305e6dbd158b74223 | [] | no_license | liuyu82910/python_project | ab720912099160ce0c089ab30ec02453678374ec | d97be5e7b81acef68af5836a54ec6b41cd9b1882 | refs/heads/master | 2022-12-25T04:05:30.834678 | 2020-08-15T07:11:48 | 2020-08-15T07:11:48 | 278,800,357 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | #!D:\pythonprojects\scrapytutorial\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'Twisted==19.2.1','console_scripts','pyhtmlizer'
__requires__ = 'Twisted==19.2.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', s... | [
"liuyu910@gmail.com"
] | liuyu910@gmail.com |
557c51c02717022fc462a767fb4ccd5e908355a6 | 8d110f3bfcb1330aee56dc1323c8f4616ad9a45c | /code/serverless_deployment/user_management.py | 37527826929c2418862fb3bc9bafdd82e55dbfc0 | [] | no_license | clwatkins/blink | 6e38c93924165f1a1940cac12006e8540a9c6f8a | cf749ba4fd976b141b7b1c267951939809967fed | refs/heads/master | 2020-03-23T03:20:32.994153 | 2018-07-15T12:56:17 | 2018-07-15T12:56:17 | 141,025,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,329 | py | from api_management import validate_params, generate_user_key, auth_session, session_authoriser, \
APIResponse, APIResponseError, APIResponseUnauthorized, APIResponseSuccess
from config import *
import json
import datetime as dt
import psycopg2
from psycopg2.extras import RealDictCursor
import boto3
DYNAMO_DB = ... | [
"chris.watkins93@gmail.com"
] | chris.watkins93@gmail.com |
ef4bb7f66cc3f8d6cd20dec99e4b679be3a428d6 | bc76c5a016dd1517dabb2b0fbe1a6e0902ec7c0c | /synoapi/syno_authenticated_api.py | cf21a8167250df7d140dbacecfc0b8d3c43662b2 | [] | no_license | nkuznetsov44/MovieDownloaderBot | dd511d33d95757818f7cfe8cba2b55b0cf10cb36 | 23de470bcf8585483553288a7c87081e753e170b | refs/heads/master | 2023-02-20T22:52:36.644217 | 2022-04-26T07:37:55 | 2022-04-26T07:37:55 | 215,633,867 | 1 | 0 | null | 2023-02-16T04:18:53 | 2019-10-16T20:01:47 | Python | UTF-8 | Python | false | false | 1,684 | py | from synoapi.syno_api_base import SynoApiBase, SynoApiException
from synoapi.syno_auth_api import SynoApiAuth
SESSION_TIMED_OUT_ERROR_CODE = 106
class SynoAuthenticatedApi(SynoApiBase):
def __init__(self, **kwargs):
base_url = kwargs.pop('base_url')
cgi_path = kwargs.pop('cgi_path')
... | [
"nkuznetsov44@gmail.com"
] | nkuznetsov44@gmail.com |
6d20fc36d3770dc7a999b9578ddef08a1768cf77 | 69a7b07f865b2026aaba6432ed459bc296f607cb | /24- 两两交换链表中的节点/__init__.py | 77d9cd7631b7fb9dc8cda1f40fd518ee4cc6bf3e | [] | no_license | BillyChao/leetcode | ac94fe2c969475b4e752fcb5a4a9d6e66720370d | 5f67368e72c376c1299b849e7a92e6d0cbd9ae55 | refs/heads/master | 2023-02-21T01:07:29.839823 | 2023-02-16T16:03:35 | 2023-02-16T16:03:35 | 244,396,454 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | # -*- coding: utf-8 -*-
"""
@Time : 2021/2/2 4:21 下午
@Author : mc
@File : __init__.py.py
@Software: PyCharm
""" | [
"mengchao@julive.com"
] | mengchao@julive.com |
c84d9f3f8c7f29317b3e1753bb23d86a4e1686ff | 007f0ceed02dff38ef57a1d05c29150984dc4194 | /test_auto/pages/home.py | 9a0cf2b0275ba9d944fdde865af1e78214b5ec65 | [] | no_license | jparedeslopez/rwconnect | 620c13e8496eecaaa7c4a835edb550d435f037ea | 9f4acba8247996427d28dbb513f8b12dac368e0e | refs/heads/master | 2022-02-21T15:47:46.615031 | 2019-08-14T08:44:10 | 2019-08-14T08:44:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,064 | py | from .base import BasePage
from appium.webdriver.common.mobileby import MobileBy
class HomePage(BasePage):
# ===================
# Inherited Constants
# ===================
driver = None
logger = None
# =========
# Test Data
# =========
MIC_TEXT = "Mic Pringle"
KATE_TEXT = "... | [
"paredeslopezjavier@hotmail.com"
] | paredeslopezjavier@hotmail.com |
e8477548907efa2599f5e177c2bb7420b6860a34 | 082fc9b4b3136278ea1e41da935f649a0520d191 | /game/control/models.py | e0574832f29f4cea45d5f7f859d0e02e1ce311ab | [
"MIT"
] | permissive | dcalacci/Interactive_estimation | 3c4522504bde69b7d92bee8508e68aec246dfca9 | 4b23adc8d06683ade999a9b2f2150dc0592b2cfc | refs/heads/master | 2021-01-12T12:38:14.894641 | 2016-10-12T03:18:17 | 2016-10-12T03:18:17 | 72,585,751 | 0 | 0 | null | 2016-11-01T23:31:03 | 2016-11-01T23:31:02 | null | UTF-8 | Python | false | false | 1,248 | py | from django.db import models
from django.conf import settings
# from game.round.models import Round
# Create your models here.
class Control(models.Model):
user = models.OneToOneField(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, unique=True)
start_time = models.DateTimeField(auto_now_add=True, null=Tr... | [
"adminq80@gmail.com"
] | adminq80@gmail.com |
45bacc15b467e45b46fbb4506ce6511ac9254032 | 87e26c2cc73fe500818d4dc5e4bae16c8401237f | /config.py | 9b75936c32b0ce50a279911b441d4a69af3c77d3 | [] | no_license | wtichentw/xiao-chi-backend | ed8ec0d27dc093664ede642ba1829d2412f520d8 | bd16ed5296f7fc827090135bdad809195fefe8cc | refs/heads/master | 2021-03-30T16:52:43.107147 | 2018-02-12T18:51:50 | 2018-02-12T18:51:50 | 64,310,660 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,471 | py | """ Dir to te images """
image_dir = '/Users/wtichen/Workspace/xiao-chi'
""" Dir to download original Inception v3 model """
raw_model_dir = '/tmp/imagenet'
""" Dir to put cached bottleneck value """
bottleneck_dir = '/tmp/bottleneck'
""" Dir to put training log for tensorboard """
summaries_dir = '/tmp/retrain_logs... | [
"wtichen.tw@gmail.com"
] | wtichen.tw@gmail.com |
c366673f883aedbb4ec1531f61f37c45851a0ed3 | fc51a42121d41f5db1bb92e5017133e3f981dd3f | /CE889ASSIGNMENT_GENTP53602/MCTS.py | 6302bba4e19caaf441960cf9d88913a607dab2e5 | [] | no_license | peterlloydgent/ce888labs | 3c1d097b3cd077cc7bad95928757cbc78566d7c6 | 44ab16ab8c704f4a8eee29e8213636aae0901962 | refs/heads/master | 2020-04-16T14:08:03.072165 | 2019-04-25T09:03:16 | 2019-04-25T09:03:16 | 165,655,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,160 | py | from math import *
import pandas as pd
from sklearn import tree
import numpy as np
import graphviz
import random
class GameState:
""" A state of the game, i.e. the game board. These are the only functions which are
absolutely necessary to implement UCT in any 2-player complete information deterministic
... | [
"pvtpetey@corneredrats.com"
] | pvtpetey@corneredrats.com |
cfa8a4de78572aeeaeaa5e0383e5379a83763ceb | 3e150786f79b31fe3e8d7f071e9f3c0fca2cba01 | /users/migrations/0004_auto_20210911_2048.py | 42340bf2dd4dd973b9783fd6534663d6280442f1 | [] | no_license | peyzor/ecommerce | 6f652a0deee17e06abc65b305abfd8b50e5171fd | 6304bc05d8ec7e502f700416746844d785b72f97 | refs/heads/main | 2023-08-01T07:37:38.832974 | 2021-09-16T10:37:09 | 2021-09-16T10:37:09 | 400,048,620 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,766 | py | # Generated by Django 3.2.6 on 2021-09-11 16:18
from django.db import migrations, models
import phonenumber_field.modelfields
class Migration(migrations.Migration):
dependencies = [
('users', '0003_alter_user_phone'),
]
operations = [
migrations.CreateModel(
name='PhoneToken... | [
"hassani.peyman627@gmail.com"
] | hassani.peyman627@gmail.com |
d27922c492196bf5d7b77ed969e497a8e0ed8be7 | 4fdc3d76d594d437b7ac73e22c7c003713500284 | /simple_execise/1_two_sum.py | 2c34325fa2824ea3d0376c9b9b5dfb2b60894083 | [] | no_license | grb2015/leetcode | 7b48758e4f0e8c7675520fe1eff64f27f1f3aced | 847564dd0958768bf10ba91a99aa5363e7b6b15b | refs/heads/master | 2021-06-04T09:13:37.038274 | 2021-01-28T06:13:50 | 2021-01-28T06:13:50 | 144,024,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,653 | py | '''
# breif : https://leetcode-cn.com/problems/two-sum/
# history : guo created 20210125
# detail :
给定一个整数数组 nums 和一个整数目标值 target,请你在该数组中找出 和为目标值 的那 两个 整数,并返回它们的数组下标。
你可以假设每种输入只会对应一个答案。但是,数组中同一个元素不能使用两遍。
你可以按任意顺序返回答案。
示例 1:
输入:nums = [2,7,11,15... | [
"949409706@qq.com"
] | 949409706@qq.com |
e6894af4b61b2ad80571c1c70ecb7f9674a55e2f | aeb3181db976cc8b091b19a478b10d0682e7ef9c | /layer/gatlayer.py | c0529961a078397ab38ee66562c6ff57b71e8799 | [] | no_license | sidney1994/Graph4CNER | a677ec14504d991698a2416bb73f2b3ebf44615e | 9c365e3f6de2fbc01c1d8a4d738f889a5af18740 | refs/heads/master | 2020-08-09T10:12:10.995536 | 2019-09-19T08:30:44 | 2019-09-19T08:30:44 | 214,066,049 | 0 | 0 | null | 2019-10-10T02:14:52 | 2019-10-10T02:14:52 | null | UTF-8 | Python | false | false | 3,075 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
class GraphAttentionLayer(nn.Module):
def __init__(self, in_features, out_features, dropout, alpha, concat=True):
super(GraphAttentionLayer, self).__init__()
self.dropout = dropout
self.in_features = in_features
... | [
"noreply@github.com"
] | sidney1994.noreply@github.com |
c109be8d1bcd425c996f70e61a42f5f07308ac4f | 7b794521083696aa756f543a7e03183813d90fd1 | /main.py | d45b812dded2b74b5227d484fec1acc84f880881 | [] | no_license | alexanderfournier/PythonJobScraper | 47481ad6394ca4712ad90ac92a034b51426dbe12 | 54b20affc55eaaf86a7009a363a503fed56f6d9b | refs/heads/master | 2020-03-11T11:31:13.278480 | 2018-04-17T22:23:50 | 2018-04-17T22:23:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,618 | py | from selenium import webdriver
from client import LIClient
from settings import search_keys
import argparse
import time
def parse_command_line_args():
parser = argparse.ArgumentParser(description="""
parse LinkedIn search parameters
""")
parser.add_argument('--username', type=str, required=Tru... | [
"alexander.fournier@nasm.org"
] | alexander.fournier@nasm.org |
59da85c28fc543beaacca4c18d28fb374f7968f4 | 1fa25f2749dcb37aab0141a8b039883bcfeb38ff | /python/4-16_字符串正则表达式4/A.py | b5553530857e04926cda0df7ed76c39e54727204 | [] | no_license | fangxi1998/UniversityCode | 4931d6cccd359b75f32b72b05b99f151407c38fc | c2a2f018517c4bceb7b93b3e030e722e8bc0848a | refs/heads/master | 2020-04-15T16:26:19.176553 | 2020-01-31T10:45:47 | 2020-01-31T10:45:47 | 164,836,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | i = input()
a =i.split(' ')
print(len(a))
| [
"fangxi1998@126.com"
] | fangxi1998@126.com |
3a36dce289adfb9878271e60ea05284808f970de | 6c395464e855b58f153f57720a9029ebf28016ec | /scraping/restAPIs/weatherAPI/hw3-pt2-weather.py | bcd75ce312d3fa45e77eb177419e0204952868d0 | [] | no_license | belisards/lede2021 | c7ed3204f1929db0e174752eb336098dccbf3da5 | 7d2b1948bc937657db63eb0c2f1bcfa767ef47c8 | refs/heads/main | 2023-07-26T01:07:31.639372 | 2021-09-08T21:37:07 | 2021-09-08T21:37:07 | 378,686,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,573 | py | # -*- coding: utf-8 -*-
import requests
docs = 'https://www.weatherapi.com/docs/'
print(f'The documentations URL is: {docs}')
weathernow = f'http://api.weatherapi.com/v1/current.json?key={my_key}&q={query}'
rio = requests.get(weathernow.replace('{query}','Rio+de+Janeiro')).json()
temp_c = rio['current']['tem... | [
"adrianobf@gmail.com"
] | adrianobf@gmail.com |
39133129449d28658c12ecd172107daad41d29c1 | 1bed10351039b1c53508a8d1822f0df22e210695 | /imperative/python/megengine/serialization.py | 217c34aebf630cd41952e6242ce7965ced34df87 | [
"LicenseRef-scancode-generic-cla",
"Apache-2.0"
] | permissive | chyelang/MegEngine | 2a39857c5e0db4845b27d3c9e49f2de97f1d38d7 | 4cb7fa8e28cbe7fd23c000e4657300f1db0726ae | refs/heads/master | 2023-08-19T12:08:27.596823 | 2021-10-13T02:51:04 | 2021-10-13T03:19:30 | 250,149,702 | 0 | 0 | NOASSERTION | 2020-03-26T03:14:37 | 2020-03-26T03:14:36 | null | UTF-8 | Python | false | false | 3,871 | py | # -*- coding: utf-8 -*-
# MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
#
# Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT ARRANTI... | [
"megengine@megvii.com"
] | megengine@megvii.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.