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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c4315cc3d79adaa753717029196b2f1e64a56817 | 6bad224bb4c81facc0ed44d2330922d1826e23fb | /spamfilter.py | 97357ab1a60999ea37c2aaa6a1babdd0a9a6e511 | [] | no_license | zaid98/nlp | af7c83a692ec6e8cba1936a0288efa38d3a5ce26 | 4fbbcf9e35c9b882685abc1557a5e1c8cf78d565 | refs/heads/master | 2020-06-15T03:25:38.232934 | 2019-07-04T07:36:25 | 2019-07-04T07:36:25 | 195,192,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import nltk
from nltk.corpus import stopwords
import string
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.pipeline import Pipeline
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.naive_bayes im... | [
"noreply@github.com"
] | zaid98.noreply@github.com |
7ea07cb2116811e27e177f7323f15767d451495b | 0045204c130599381ee69c771478ac1609dfe67e | /HW_1/problem_3.py | f841cdde32c6b0fa7f53ae9d6f96339525b533b4 | [] | no_license | muzhts-anton/Differential-geometry | 1dea9003a3450cbe89e5beb220804cff67a5a230 | 56da14cf1b71cd4fca2a9fa46de2ef2dedd39ac1 | refs/heads/main | 2023-06-05T21:53:58.032013 | 2021-06-25T08:34:02 | 2021-06-25T08:34:02 | 360,800,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,826 | py | # problem 3 diffGem HW1
from sympy import symbols, diff, sin, cos, sqrt, simplify, Matrix
X_1, X_2, X_3 = symbols('X_1 X_2 X_3', positive=True)
A = Matrix([[1, 0, 0],
[0, sqrt(3)/2, -1/2],
[0, 1/2, sqrt(3)/2]])
X = [X_1,
X_2,
X_3]
x_sphere = [X_1 * sin(X_2) * cos(X_3... | [
"muzhts.anton@gmail.com"
] | muzhts.anton@gmail.com |
327203d439300f410de4e56199b07bcb7a5b1cb1 | 3ca67d69abd4e74b7145b340cdda65532f90053b | /programmers/난이도별/level01.제일_작은_수_제거하기/Jaewon0702.py | 9574b875696e370e939054a0279eb98293b8defd | [] | no_license | DKU-STUDY/Algorithm | 19549516984b52a1c5cd73e1ed1e58f774d6d30e | 6f78efdbefd8eedab24e43d74c7dae7f95c2893b | refs/heads/master | 2023-02-18T06:48:39.309641 | 2023-02-09T07:16:14 | 2023-02-09T07:16:14 | 258,455,710 | 175 | 49 | null | 2023-02-09T07:16:16 | 2020-04-24T08:42:27 | Python | UTF-8 | Python | false | false | 156 | py | def solution(arr):
arr.remove(min(arr))
return arr if len(arr) else [-1]
print(solution([4, 3, 2, 1]) == [4, 3, 2])
print(solution([10]) == [-1])
| [
"45033215+sangmandu@users.noreply.github.com"
] | 45033215+sangmandu@users.noreply.github.com |
b7c734fbbfa3614e2f49ef72774e5dfc16bc2550 | 6c12904dde5ee546cb965c6c0af6901c7f89bea7 | /volume.py | 97951333780cd6388510ea93a05350fd9178a8f1 | [] | no_license | ad52825196/simple-file-system | 59eff6e1e628a5b49460b18bc339625b776bb89d | 58256b29ef6ebef6a154c831c619a340644d6b57 | refs/heads/master | 2020-04-06T03:35:16.877249 | 2017-04-25T00:11:05 | 2017-04-25T00:11:05 | 68,357,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,261 | py | import drive
import directoryentry
class Volume:
BITMAP_FREE_BLOCK = '-'
BITMAP_USED_BLOCK = '+'
def __init__(self, name):
self.name = name
self.drive = drive.Drive(name)
def format(self):
self.drive.format()
block = drive.Drive.EMPTY_BLK
block = Volume.modify_... | [
"me@zhen-chen.com"
] | me@zhen-chen.com |
86595f3567adfa865a0e8806fba2bb2cd8d64109 | ade758c24cd547689012a61b55ccf77e33a2bbf2 | /93/93.py | 0ab93003b896e27ece999a42c10a5d8a9c0eaef6 | [] | no_license | danmedani/euler | 7f7dda0ee295a77eb6faca0a4aa15015850aed72 | eeef3a4d9c188f954842f7c3adc37d58588c4781 | refs/heads/master | 2023-08-17T03:26:36.864451 | 2023-08-08T02:35:46 | 2023-08-08T02:35:46 | 14,157,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,362 | py | import math
import copy
SENT = -999999
def doOp(num1, num2, op):
if op == '*':
return num1 * num2
elif op == '+':
return num1 + num2
elif op == '-':
return num1 - num2
elif op == '/':
if num2 == 0:
return 1.9874352345
else:
return 1.0 * num1 / num2
else:
print 'oh crap!'
... | [
"danmedani@gmail.com"
] | danmedani@gmail.com |
323e6dbcabc39627ea900df0e1e0063631c79908 | 9222f00f40ae22ec71a61cd6627b11ec89958c5b | /v0_2017/lib/common.py | 386dee3834e99a3849fe778b1623f1ff1c74da46 | [] | no_license | ebensh/pinball_cv | 635d051b296dcdfb6c7c001709ef30a710f96549 | e2e67fd3f7e33f9583a46f2a63130c1cec791315 | refs/heads/master | 2021-07-15T16:35:07.878569 | 2018-12-27T05:03:57 | 2018-12-27T05:03:57 | 106,141,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,640 | py | from collections import namedtuple
import cv2
import inspect
import json
import matplotlib.pyplot as plt
import numpy as np
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)
def numpy_print_cols(cols=160):
np.core.arrayprint._line_width = cols
# http://ipython-books.github.io/featured-01/
def g... | [
"ebensh@gmail.com"
] | ebensh@gmail.com |
58015f5e17eecc12024afa29b2a1038ae3cc9c8a | 843c06cb6838d3c79efc91003b633866b2b9d839 | /Kaggle_SVHN_Final/codes/test_CNN.py | ff27214f48a0be1ada24748d7583c240a5aeb9bf | [] | no_license | semper21/StatisticalML | 901fd36b5497ca73e145a67807b0b4bc694bc9ff | e8d1e80430babf924f75397a2986f0487a207c9d | refs/heads/master | 2020-06-01T13:44:12.965501 | 2019-06-07T20:27:26 | 2019-06-07T20:27:26 | 190,798,666 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,279 | py | #! /home/vision/anaconda2/bin/python
'''
Created on Apr 12, 2017
@author: ywkim
- ReLU neurons
- stride = 1
- zero padded
- max pooling over 2x2 blocks
- conv1: 32 filters (5x5)
- conv2: 64 filters (5x5)
'''
import csv
from csv import reader
from sys import argv
import numpy as np
import tensorflow as tf
import c... | [
"ywkim@bcm.edu"
] | ywkim@bcm.edu |
093c9c5f1b37d499d6bb6486317cbdcbb89a838e | 17b63416cf2f66246e1cf655ccfa2eb9a108da3c | /abupy/AlphaBu/ABuPickStockExecute.py | f344c2ed857ae0f8c94dc194d151f49cddb60f57 | [] | no_license | cmy00cmy/qtLearning | 58aec5cf9fccf9d8f14adf1793306b8b8b5ecb7f | 2b5fee7b9bbd832b20ba4e1b508be16b606249e0 | refs/heads/master | 2020-03-20T01:42:19.882639 | 2018-06-12T14:52:00 | 2018-06-12T14:52:00 | 137,085,926 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,835 | py | # -*- encoding:utf-8 -*-
"""
包装选股worker进行,完善前后工作
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
from .ABuPickStockWorker import AbuPickStockWorker
from ..CoreBu.ABuEnvProcess import add_process_env_sig
from ..MarketBu.ABuMarket import sp... | [
"chenmyuan@163.com"
] | chenmyuan@163.com |
c465145274aa05d388e08fcefbcf65c084507859 | 8b9587f5548733ebf8c51af489abfae815355fd0 | /templateCode/kakao_R/kakao/chatroom_analysis.py | 032302f2db92fdc28d57fd2e172e486c310b3189 | [] | no_license | jyp0802/Butherfly | d81b525a01781dc7633eca68d577b0dd9cb1f57d | d80a1eea4103e0f2e4f1aaf91f7f425936003081 | refs/heads/master | 2021-08-20T07:50:55.580648 | 2017-11-28T15:44:49 | 2017-11-28T15:44:49 | 112,354,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,109 | py | #-*- coding: utf-8 -*-
# Revision: 6 (June 3th, 2017 3:10)
# Author: Claude Jin, Sanggyu Nam, Seunghyun Han (DiscoveryChannel)
# Logs
# Revision 1: user anonymization, dateline, firstline, message types(emoticon, photo, video, link)
# Revision 2: chatroomname, # of current participants, invitationline, multiple lines... | [
"jyp0802@hotmail.com"
] | jyp0802@hotmail.com |
b4ebea591ef98eba50becc2628f71215e816a37f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_84/306.py | 0561a547b612e83a36f4cf677430a4ecdf3d37f6 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | import sys, math
from multiprocessing import Pool
def main(data):
R,C,s = data
for i in range(R):
for j in range(C):
try:
if s[i][j] == "#":
if s[i][j+1] == "#" and s[i+1][j] == "#" and s[i+1][j+1] == "#":
s[i][j] = "/... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
42e64f9eabca1da6ef4c05025e9e1c63b6a4cea6 | 1b037639fad280142ee84d10412c4bc1d729148c | /act_complementaryMedicine/db_method/insert.py | fb71ce5dc7599f5a985194c1f37fbb51b23a7644 | [] | no_license | Tohsaka-Rin/act-cm | fb36f5a16638f52646c2834a0d73c1fb1fab1f1d | c99dae527510fc0352fac29df36bd3090d361b89 | refs/heads/master | 2021-01-23T01:55:42.703190 | 2017-03-22T04:27:28 | 2017-03-22T04:27:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,500 | py | # -*- coding:UTF-8 -*-
from act_db.models import DoctorInfo,GroupInfo,PatientGroup,PatientInfo,RelationInfo,OutPatientServiceInfo,EmergCallInfo,InHospitalInfo,Clinic,ESS,MBQ,SGRO,AttachInfo,AccessoryExamination
import time
import datetime
# 添加新用户
# 参数是一个字典,包含医生的所有信息
# 成功返回True,失败返回False
def addDoctorInfo(data):
#T... | [
"1021369745@qq.com"
] | 1021369745@qq.com |
d61b6b6aa07912fb0f5b6d10f2b0e4d67c896405 | d79f3e7df0fb9dcf23a9ae1adf3c285dd08a360f | /list.py | c25a37e7d50ab435e4c4d9ee894dae68382d6c4a | [] | no_license | ramkodgreat/python1 | 4930afb1bb7f63798bd4237e753aecf5b2ba072b | 64ee9f210aab3b177fc41d351499106876a1d3fc | refs/heads/master | 2020-11-25T18:15:04.315157 | 2019-12-18T07:51:42 | 2019-12-18T07:51:42 | 228,789,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 789 | py | # List can contain strings integer or float points
# Python index begins from zero
a =["string","int",1,2]
#indexing a list
a[2]
print(a[2])
# Returns all the values of a
b = a[:]
print(b)
#Overwriting values in a string
a[1] = "glo"
print(a)
print(b)
# Skipping one item from a list
a =[1,2,3,4,5,6,7,8,9,10]
# S... | [
"ramkodgreat@gmail.com"
] | ramkodgreat@gmail.com |
d9504d622907d7e7e0e6a6772e0fc6a072b448be | 276e6b57d182875c3c9276360dcfbd26ba542492 | /main.py | 6cb0596d6d39368e67e622a9d677e1de169562b2 | [
"MIT"
] | permissive | Charlie-kun/Loan | c9bf7ebff209dca6059bfe6141ad67420678b5be | 930835221d9eb28ba7f6a3d6e1b1b72ab280683c | refs/heads/master | 2022-12-09T07:24:40.351771 | 2020-09-21T21:55:06 | 2020-09-21T21:55:06 | 285,209,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,155 | py | import os
import sys
import logging
import argparse
import json
import settings
import utils
import data_manager
if __name__ == '__main__': # add parameters
parser = argparse.ArgumentParser()
parser.add_argument('--stock_code', nargs='+') # add stock_code
parser.add_argument('--ver', choices=['v1', ... | [
"chlh@daum.net"
] | chlh@daum.net |
e3082e2c45c280050b7ffcd31885765d334863b4 | 9424df118a26170f023a665bdf8b0dc462f91721 | /project_utils.py | a22dd72aa5ba5acfa30a6a98965efbe8875a6bfb | [] | no_license | marcelthebridge/602_ml_Project1 | 65729b4faf8746554815f8e63089a1db33fec603 | 8f4afa9a6b36920e6869673df96d9c219014c2d0 | refs/heads/main | 2022-12-28T15:50:38.187531 | 2020-10-13T20:37:25 | 2020-10-13T20:37:25 | 302,507,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | # Functions for use with Project_1 notebooks
# Imports:
from matplotlib.colors import ListedColormap
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
def data_plot(hue, data):
for i, col in enumerate(data.columns):
plt.figure(i)
sns.set(rc={'figure.figsize':(20, 5)})
... | [
"noreply@github.com"
] | marcelthebridge.noreply@github.com |
1577628297a846c2742329c8bab3cffaef031e77 | b298e8a971bf51036c61d1a2c4d5d61421fc47c5 | /projects/migrations/0003_project_image.py | 050ce465f6f7210e6eaed3e7571b1d25dc47b5ea | [] | no_license | jrusso0818/my-personal-site | 5fe6dc1111669d5c8429703a304f7c08f6358327 | dc2a179e6affb38303445d7a0c72e48c32ba6a8a | refs/heads/master | 2023-03-07T22:03:58.395368 | 2021-02-06T06:53:32 | 2021-02-06T06:53:32 | 322,690,526 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | # Generated by Django 2.2.17 on 2020-12-18 21:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('projects', '0002_remove_project_image'),
]
operations = [
migrations.AddField(
model_name='project',
name='image',
... | [
"jrusso0818@gmail.com"
] | jrusso0818@gmail.com |
c08a05fcca3a38d83fa5e5c0f599e925d0a2c97b | 56a4d0d73c349aeaca7580ca248caf0cf893a8c5 | /w2/using_find.py | af6a320679d645b836416da8a37d141b0a0c269d | [] | no_license | alejo8591/m101 | 79e62e0110bcc3e6ca82ac02ae3cdcbe13d51c67 | d93d34a161ecede77defb9a6a3db389d4a9b0de8 | refs/heads/master | 2020-05-18T21:42:46.651036 | 2012-12-17T23:36:49 | 2012-12-17T23:36:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | #!/usr/bin/env python
import pymongo
import sys
connect = pymongo.Connection("mongodb://127.0.0.1", safe=True)
db = connect.school
scores = db.scores
def find():
print "Find, reporting for duty"
query = {'type':'exam'}
try:
iter = scores.find(query)
except:
print "Unexpected error:",s... | [
"alejo8591@gmail.com"
] | alejo8591@gmail.com |
cbf9caf78e847840f44e9cd9c6f7768baa91eee8 | de6f8466270d80d72fd696ebb8894d8ef02bca1e | /planner/search.py | ba2538bf9c59f687281c18739fd136a78549eba5 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | cocoflan/roundtrip | eac96231d1cc484e07317ef3068a661ee4dd474a | f2a740f7e6bb13acab979c6a7c09244c76466197 | refs/heads/master | 2022-04-30T13:59:21.736591 | 2021-07-01T21:13:26 | 2021-07-01T21:13:26 | 147,789,413 | 0 | 0 | null | 2022-04-22T20:57:11 | 2018-09-07T07:45:44 | JavaScript | UTF-8 | Python | false | false | 5,576 | py | import time
import moment
from splinter import Browser
from planner.models import Flight, FlightPrice, NoFlights
from planner.models import AirBNB
from urllib.parse import quote_plus
from math import ceil
import json
class Searcher:
_browser = None
def browser(self):
if self._browser is None:
... | [
"nanne@mycel.nl"
] | nanne@mycel.nl |
dad02ea4f0608d5be5fe199a38b3181d93ce7718 | dc91e5c22ed3b9128c649392c3dfb04ec74a3976 | /Meter-Distributed/Meter_cfba.py | 27f4d7a28382ad20b632b72672dbbb06fc4e1af1 | [] | no_license | Agrawalayushi/Closeness-Factor-Based-Algorithm-for-Incremental-Clustering-of-Images- | 5744ac2774f0e0d54ba2ffbf6998bdcc80554f79 | 544bda25d861a8ee656afd60e26bfbbde07016fd | refs/heads/main | 2023-04-13T12:38:53.455953 | 2021-04-27T17:04:03 | 2021-04-27T17:04:03 | 361,854,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,509 | py | import pandas as pd
import math as mp
import time
from sklearn.preprocessing import MinMaxScaler
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
def visualize(df_basic,df_incremental,df_merge):
ax = df_basic.groupby(['CNumber'])['CNumber'].count().plot.bar(title = "Basic...")
... | [
"noreply@github.com"
] | Agrawalayushi.noreply@github.com |
bd9a420a7684d527bcd274c32086f85330ec970b | 2704ad14c83050ac28f403371daa8e3148440e00 | /chiadoge/wallet/did_wallet/did_info.py | 2294be358c05f883b729c58c3c37a27b0b590ce5 | [
"Apache-2.0"
] | permissive | Bgihe/chiadoge-blockchain | d5e01a53c8e15fa17c47b44d9c95e6511aa98b7f | befb179c65ffe42aebbc47c211f78e193a095d2b | refs/heads/main | 2023-06-01T05:31:51.503755 | 2021-07-05T20:47:32 | 2021-07-05T20:47:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | from dataclasses import dataclass
from typing import List, Optional, Tuple
from chiadoge.types.blockchain_format.sized_bytes import bytes32
from chiadoge.util.ints import uint64
from chiadoge.util.streamable import streamable, Streamable
from chiadoge.wallet.cc_wallet.ccparent import CCParent
from chiadoge.types.block... | [
"83430349+lionethan@users.noreply.github.com"
] | 83430349+lionethan@users.noreply.github.com |
baf02d6d1f7af369aaccc549e18727ba85123b46 | 9737aa767b5cb2baa4e1ac6af64e3acb614e9265 | /smyt/smyt/urls.py | c5bff7d884d2a379fd6c17cdb564a90188291241 | [] | no_license | leotrubach/smyt | 1b11072a89067370f69c55465b84c5a7099d576f | 8398a60ebf5d6a2b490301276c7d6866def1d9a5 | refs/heads/master | 2016-09-05T16:45:10.698129 | 2012-06-19T23:13:56 | 2012-06-19T23:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | from django.conf.urls import patterns, include, url
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
from dynmodels.views import HomeView, list_models, model_data
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'smyt.views.home', name='home'),
... | [
"leotrubach@gmail.com"
] | leotrubach@gmail.com |
63c03bea228aaf2bf3633ee0bc769131005dcc58 | 36a1a414847c29f406416db5c3e54916c647c8c1 | /LinkedList/mergeSortedll.py | b91d2e709627080389085640261b76232b8eb207 | [] | no_license | advaitp/Data-Structures-and-Algorithms | 07c2dd18bb9892dfd4e3ea1e6ab60c6a50bebdf5 | 83567a1dbd92677eb60711865ab08a7b996f3128 | refs/heads/main | 2023-05-15T09:42:16.254654 | 2021-05-28T10:47:43 | 2021-05-28T10:47:43 | 371,667,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,300 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
def merge(head1,head2):
fh=None
ft=None
if head1.data<=head2.data :
fh=head1
ft=head1
head1=head1.next
else:
fh=head2
ft=head2
head2=head2.next
while ... | [
"advaitpatole@gmail.com"
] | advaitpatole@gmail.com |
8727efc17619467964719851112b2714b7a40e24 | 3bdad3e626daaf079d316a8ce56b79af095327d4 | /api/migrations/0002_maincycle_user.py | 575c15fda6f25e37b1e083211a8d6d71084f8e60 | [] | no_license | kirussshin/djangoClicker | 3ab2ba798c993d6a42bbb352ca2951b5f094bf82 | 1922abd13289529f0f314cd744d137e84228aaae | refs/heads/master | 2023-06-01T19:34:37.280301 | 2021-06-13T18:54:00 | 2021-06-13T18:54:00 | 376,618,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 577 | py | # Generated by Django 3.2.4 on 2021-06-13 17:02
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('api', '0001_initial'),
... | [
"egorka-knopka@mail.ru"
] | egorka-knopka@mail.ru |
41da3a83b961f3970b11aac3c48a97022b4627c8 | 5f9c05b3bee55b0a311e7b0fba452ac13f60eefd | /py/coordinator.py | ae7cc1a7eebf83d2cbecbc980476ba3ad0f82a11 | [] | no_license | Ard1tti/serialdet | d0fb84704239e207009368b0341b6ab974fa7a29 | bc04065f1607ced571c141d59ff35084d144cb27 | refs/heads/master | 2021-01-10T23:13:02.670703 | 2016-10-12T09:03:45 | 2016-10-12T09:03:45 | 70,608,298 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,370 | py | # Copyright 2015 The TensorFlow Authors. 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 applica... | [
"blueconet@gmail.com"
] | blueconet@gmail.com |
42d1a243ee0f6e26eac7dbafad461f06f46e2a6c | ef51e831de7776d273b5384a5ad5b110782ed6f2 | /python script/Linux/update.py | d0917c560b2e2963023a5eb020b1940fd8ffac25 | [] | no_license | sudkumar/Summer-Project-2014 | c6f08d025a17cdb4ed5a9a383e03590368bcb36a | 27f805c5171afc44d61a6b2f877f4428967b5519 | refs/heads/master | 2021-01-10T20:39:29.224258 | 2014-08-02T08:46:19 | 2014-08-02T08:46:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | import serial
import MySQLdb
conn = MySQLdb.connect(host="localhost", user="root", passwd="name", db="attendance")
myc = conn.cursor()
# for linux
src = serial.Serial('/dev/ttyACM0', 9600)
# we can find the path by
# but remove the arduino first
# ls /dev/tty*
# now plugIn arduino and run the command again
# if th... | [
"luckysud4@gmail.com"
] | luckysud4@gmail.com |
8a58387defcb67cfd652d2f25881520516b9f458 | f741f7f070d150cffbb63f13666fec5dceb4c7c4 | /3.massives/5.py | 2c448a2722cdcbb8ded28131ad1b8cfff5321d19 | [] | no_license | mahhets/algorithms-and-data-structures | 7e2359c15a1cfd46200f9f2008a3a4050e2a5f40 | d1d198020e9d1f7f5085188678828520e4da36c8 | refs/heads/main | 2023-05-29T02:38:05.716730 | 2021-06-10T20:26:34 | 2021-06-10T20:26:34 | 367,147,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | # Ассоциативный массив, словарь (ключ - значение других столбцов, как в SQL)
"""
Пользователь вводит кол-во предприятий, названия, плановую и фактическую прибыль каждого предприятия
Вычислить процент выполнения плана и вывести данные с предварительной фильтрацией
"""
k = int(input('Введите кол-во предприятий: '))
ent... | [
"the_mahh@mail.ru"
] | the_mahh@mail.ru |
49245674d0105a3e9f82730ebdb250b147a85355 | eb685438961de82301a31e0798630ae1844a82f8 | /migrations/versions/4571ea43dd63_.py | 74d7288c4070368728d1028206f97dc6bcdd35f6 | [] | no_license | Peter-White/base_64_test_python | 2fcd28f517f74b7dac6a68622ce1fd8d6d81373e | 302e5aa13260d4fe13b057fec93c3942320fc7ce | refs/heads/master | 2020-07-16T02:43:19.593580 | 2019-09-09T14:36:39 | 2019-09-09T14:36:39 | 205,700,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 744 | py | """empty message
Revision ID: 4571ea43dd63
Revises:
Create Date: 2019-08-26 15:47:45.221174
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '4571ea43dd63'
down_revision = None
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto gene... | [
"pwhitedeveloper@gmail.com"
] | pwhitedeveloper@gmail.com |
f45845f3775295ca40384d997d67d25854ded28e | 72a3977adc460ec70d0ebd8177cea1bb22a06cbf | /src/Classes/TennisSet.py | 5a0109b5e881dab41bb21cd34e6c496b92627d7c | [] | no_license | andreistaicu1/TennisScoreSimulator | 0ff6307ee1f1019a42fa70f5557cacb478c1d59e | 62fc0cc21ade84526190b2c840b4dea79bfb32d6 | refs/heads/master | 2023-07-23T05:37:00.521304 | 2021-09-01T20:09:48 | 2021-09-01T20:09:48 | 349,536,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,374 | py | from src.Classes.TennisGame import *
from src.Classes.TennisTiebreak import *
class TennisSet:
def __init__(self, set_length, player1, player2, ad, serving, will_breaker):
"""
:param set_length: int - When the set stops
:param player1: Players object - player 1
:param player2: Pla... | [
"55329808+andreistaicu1@users.noreply.github.com"
] | 55329808+andreistaicu1@users.noreply.github.com |
db21ad96464e1a48621b1e1b2bac81478f8c4e9c | 34089a1005c9cc36c24a2b385a876b9500b0d2dd | /oscillate.py | 8d1368fb295c2f6253f62b4ad07c4e5a5daf0afc | [] | no_license | ericnegron/pythonScripts | d955802e9dc5aa6124507b95812acfdc433cfc98 | 9d877724f4063f472433456755eecc415101f0ec | refs/heads/master | 2021-01-17T15:03:48.634505 | 2014-03-10T23:22:27 | 2014-03-10T23:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,946 | py | import maya.cmds as mc
import math
# This script allows the user to create a polygon primitive and then specify how the object will oscillate.
# Creates the custom window class called EN_BaseUIWindow.
class EN_BaseUIWindow(object):
@classmethod
def showUI(cls):
win=cls()
win.create()
... | [
"esnegron@icloud.com"
] | esnegron@icloud.com |
e0f48ba17a7c20b092c105fc0d304198b54a984a | 05876e85e73eb1df6c377d37a5c45b78abab5c1e | /batallas_turnos/main.py | 1a6824194a5c44d13d076856e5fcb771230ab04b | [] | no_license | DiegoFHG/batallas_turnos | e50fddf054ed9c0ad7115d9fa8101267a6dc6b51 | 30e2100399c0ac3d4260f629761cb2612c26e73e | refs/heads/master | 2023-03-30T07:02:53.239849 | 2019-10-08T15:41:45 | 2019-10-08T15:41:45 | 213,608,968 | 0 | 0 | null | 2021-03-29T20:38:53 | 2019-10-08T10:04:29 | Python | UTF-8 | Python | false | false | 8,941 | py | import random
from os import system, name
from time import sleep
from PyInquirer import prompt
class Game:
def __init__(self):
self.hero_life = 150
self.vampire_life = 60
self.game_over = False
self.defense = False
self.hero_fainted = False
self.vampire_fainted = F... | [
"diego.hernandez2@alumnos.uneatlantico.es"
] | diego.hernandez2@alumnos.uneatlantico.es |
8a88cfdb5eec2620ade3ee7b5d247e95d23ba520 | 3202f4da43428bbcc4f89341dc93738890632664 | /src/gen_graph.py | 5d91065d6ab171a0381f94672832da9218f22ed7 | [
"GPL-3.0-only"
] | permissive | yjzhang3/ec504_project | 906caf182bbcd8e9db3e581a9b899c20e27aa93f | 2984ea3ff612b96f10edcc7fafd716eded049342 | refs/heads/main | 2023-05-08T11:14:22.062727 | 2021-06-01T20:48:53 | 2021-06-01T20:48:53 | 372,079,539 | 0 | 0 | MIT | 2021-05-29T22:23:42 | 2021-05-29T22:23:41 | null | UTF-8 | Python | false | false | 638 | py | import sys
import networkx as nx
from itertools import combinations
from random import random
def ER(n, p):
V = set([v for v in range(n)])
E = set()
for combination in combinations(V, 2):
a = random()
if a < p:
E.add(combination)
g = nx.Graph()
g.add_nodes_from(V)
... | [
"ronrat@bu.edu"
] | ronrat@bu.edu |
db929563c62dbc7ae58ceeddfa21da2f076be5a0 | 15e0a3148c311ded5bfc24712edbdc2c712fde17 | /DigitsCombination.py | e12e42abde92fd9fb7bfbc5971266ef6af9f19ca | [] | no_license | BrindaSahoo2020/Python-Programs | f70c9887f07c9c32c249d569c5a53c65c8aff03e | 70e0af223f2cf36b7b01c0f2e7c599efb2f6473c | refs/heads/master | 2022-12-30T07:00:44.320035 | 2020-10-18T03:59:18 | 2020-10-18T03:59:18 | 256,928,406 | 0 | 1 | null | 2020-10-11T12:57:50 | 2020-04-19T06:15:07 | Python | UTF-8 | Python | false | false | 540 | py | #Python program to accept three digits and print all possible combinations from the digits
#Sample Input
'''
Enter first number:4
Enter second number:5
Enter third number:6
'''
#Sample Output
'''
4 5 6
4 6 5
5 4 6
5 6 4
6 4 5
6 5 4
'''
a = int(input("Enter first number:"))
b = int(input("Enter second number:"))
c = i... | [
"brindasahoo.it@gmail.com"
] | brindasahoo.it@gmail.com |
6a2ed3c32e208f9299ed262c00312288f929adf8 | 4811d601e11528b1bef7d20429c20447288b608e | /coolscrapy/pipelines.py | 02f9ca965030d086564e399bf5a629b69742d689 | [] | no_license | dover-xu/coolscrapy | 8c97d790e90aceeb47fecaaa15767f5a8b20827a | ace564be07177992629ee58331ea26e079ac4067 | refs/heads/master | 2020-12-30T14:12:40.981166 | 2017-05-21T08:14:19 | 2017-05-21T08:14:19 | 91,288,288 | 0 | 0 | null | 2017-05-21T08:14:20 | 2017-05-15T02:43:36 | null | UTF-8 | Python | false | false | 2,395 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
import datetime
import json
import urllib2
import pymongo
from scrapy.conf import settings
from scrapy import log
from scrapy.ex... | [
"v-doxu1@microsoft.com"
] | v-doxu1@microsoft.com |
85cd55ec06dd7935e25dd335edf8a21bac1969f2 | 4f41a3faa073d0d4f672601add08edbfbb32c762 | /application/sqlalchemy/schema.py | 6a69739d1e34978864d647e50550a4cdc2c5456f | [] | no_license | gterranova/timetracker | 418577fd3fcbc6735b9c5a3a8bda2378064c8a41 | 08fb4adc221555fff2eb6d2ec92878f32f4197bf | refs/heads/master | 2021-01-12T14:40:27.162638 | 2012-04-11T19:33:47 | 2012-04-11T19:33:47 | 72,043,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91,489 | py | # schema.py
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Michael Bayer mike_mp@zzzcomputing.com
#
# This module is part of SQLAlchemy and is released under
# the MIT License: http://www.opensource.org/licenses/mit-license.php
"""The schema module provides the building blocks for database metadata.
Each element ... | [
"gterranova@GTERRANOVA.9ren.org"
] | gterranova@GTERRANOVA.9ren.org |
cb7c42230b22f0923e08c1027984a0c50e947b03 | fb71611fb25fc0aec8d8026a95e4c5c39b4f360e | /hq/my_excepthook/test_excepthool_package/hq_excepthook.py | 4fc03a0617045c66fddab2a291a838946ffa70ad | [] | no_license | jwzhoui/urllib1 | 16aaf7f49dd1d48f0d02fbba0268d56a84dae2d2 | afed096587dedc8da6755a8939ad9ee83d1ee519 | refs/heads/master | 2020-03-25T17:28:26.995286 | 2018-11-08T10:15:23 | 2018-11-08T10:15:23 | 143,979,127 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | # encoding: utf-8
import sys
import time
import traceback
from multiprocessing import Process
sys.path.append('/opt/space/urllib1/')
def quiet_errors(*args,**kwargs):
err = ''.join(traceback.format_exception(*args,**kwargs))
print err
# RedisCache.inset_exc_to_redis(err)
from hq.my_excepthook.test_... | [
"cclina@isoftstone.com"
] | cclina@isoftstone.com |
eba364f9af767f3702b519b7192b96c2b9890d8d | cc08f8eb47ef92839ba1cc0d04a7f6be6c06bd45 | /Personal/Developent/advance-django-blog-master/venv/bin/coverage | 49a1df365828a4beab01a74ad814ac7cc6b66a9d | [
"Apache-2.0"
] | permissive | ProsenjitKumar/PycharmProjects | d90d0e7c2f4adc84e861c12a3fcb9174f15cde17 | 285692394581441ce7b706afa3b7af9e995f1c55 | refs/heads/master | 2022-12-13T01:09:55.408985 | 2019-05-08T02:21:47 | 2019-05-08T02:21:47 | 181,052,978 | 1 | 1 | null | 2022-12-08T02:31:17 | 2019-04-12T17:21:59 | null | UTF-8 | Python | false | false | 281 | #!/root/PycharmProjects/Developent/advance-django-blog-master/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from coverage.cmdline import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"prosenjitearnkuar@gmail.com"
] | prosenjitearnkuar@gmail.com | |
0b32c13516210faf3744f8bf6adf1ffdc47891a2 | 7bed907b24f9a12daab675028c356fffc3bef25b | /setup.py | 9aa0ce1c21b8bd4a588c69f05d7c93673610ff0f | [
"MIT"
] | permissive | bakera81/siuba | 9ff6c5812aabfbb17b38af65a528361777b1c307 | 568729989333193ff38c26ac68604aa8ba9b490b | refs/heads/master | 2020-07-06T07:30:00.049844 | 2019-08-16T20:09:55 | 2019-08-16T20:09:55 | 202,940,072 | 0 | 0 | MIT | 2019-08-17T23:26:46 | 2019-08-17T23:26:46 | null | UTF-8 | Python | false | false | 996 | py | from setuptools import setup, find_packages
# parse version ---------------------------------------------------------------
import re
import ast
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('siuba/__init__.py', 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decod... | [
"machow@princeton.edu"
] | machow@princeton.edu |
e622b509f76fcf2d70ef7558ea382ec013669bdf | e8af6df98cb905e839cc2b8a45befbb56109abf7 | /NetCoding/with_operation.py | 27a10bcdb1b1c0d4a9c0e128d2af613c20d458f9 | [] | no_license | csy1030/pyCourse | d075333c5d89d81eebc1ef72f43f96ea40c171ae | 67c25ea7cee9c0ea4b0583bfb798575bca8488d0 | refs/heads/master | 2021-05-23T11:03:11.360747 | 2020-04-09T21:05:42 | 2020-04-09T21:05:42 | 253,257,917 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | # with open('test') as f:
# data = f.read()
# print(data)
f_name = input("input name:")
with open(f_name) as f:
while True:
data = f.read(1024)
f_new = open('new_file','w')
f_new.write(data)
| [
"shuyangc97@gmail.com"
] | shuyangc97@gmail.com |
444220ef6344dec68b3c69e3cc8015b90ab484c2 | a9e4c2e9b84481761fc7517f79258a3bea327906 | /0x0B-python-input_output/5-save_to_json_file.py | b7a25b7d524e0f31240ab1e706298ad89718a9e4 | [] | no_license | jeanpierreba/holbertonschool-higher_level_programming | 91aa222d04515358c79714e1d08e3d64d26b73a0 | 8ddaa1bb0fc157b1e71816fe801d9ed4ec66aa16 | refs/heads/main | 2023-08-18T05:58:07.494956 | 2021-09-22T19:13:47 | 2021-09-22T19:13:47 | 361,840,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #!/usr/bin/python3
""" Module to save an object into a file """
import json
def save_to_json_file(my_obj, filename):
""" Write an object to a text file, using a JSON representation """
with open(filename, 'w') as my_file:
json.dump(my_obj, my_file)
| [
"2713@holbertonschool.com"
] | 2713@holbertonschool.com |
a7c60b78f32abc44f71b77a5227cb86f6803806d | 659d41f0c737dffc2a6ebd5e773a6513da32e5ba | /scripts/experiments/Experiments729/dephasing_scan_duration.py | adf770c56bb5fd14721f410bb6a9d3b6978b1e37 | [] | no_license | HaeffnerLab/sqip | b3d4d570becb1022083ea01fea9472115a183ace | 5d18f167bd9a5344dcae3c13cc5a84213fb7c199 | refs/heads/master | 2020-05-21T23:11:10.448549 | 2019-11-21T02:00:58 | 2019-11-21T02:00:58 | 19,164,232 | 0 | 0 | null | 2019-11-04T04:39:37 | 2014-04-25T23:54:47 | Python | UTF-8 | Python | false | false | 7,104 | py | from common.abstractdevices.script_scanner.scan_methods import experiment
from excitations import excitation_dephase
from sqip.scripts.scriptLibrary.common_methods_729 import common_methods_729 as cm
from sqip.scripts.scriptLibrary import dvParameters
import time
import labrad
from labrad.units import WithUnit
from num... | [
"haeffnerlab@gmail.com"
] | haeffnerlab@gmail.com |
b6a2760e083ef2662b8cb1a29ee20d3d09c6f19b | e76aa4de68988abcfceb7f90ea680505a9159995 | /outrigger/__init__.py | 358e6751f654522e24e8680c88312573f25843fb | [
"BSD-3-Clause"
] | permissive | ggraham/outrigger | 3ab1798fbeb3c871cae4d2a12bcd721032c3a96c | 135388192bd8b15fc248653ee50943448ff19160 | refs/heads/master | 2021-05-26T09:58:02.547479 | 2020-04-29T19:32:34 | 2020-04-29T19:32:34 | 254,086,816 | 0 | 0 | BSD-3-Clause | 2020-04-29T19:32:35 | 2020-04-08T12:52:08 | null | UTF-8 | Python | false | false | 201 | py | # -*- coding: utf-8 -*-
__author__ = 'Olga Botvinnik'
__email__ = 'olga.botvinnik@gmail.com'
__version__ = '1.1.1'
__all__ = ['psi', 'region', 'util', 'io', 'validate', 'index',
'common']
| [
"olga.botvinnik@gmail.com"
] | olga.botvinnik@gmail.com |
8606cc74a4c66fcb0fdeafb43e19ff547862ccda | 590b366fe2bfa8bd009992a5d3d358af4570367b | /test_api_2gis.py | 73202c4ac40bd471984ce9b901c0cfebd456aba0 | [] | no_license | potemkuh/test_api_2gis | eaece6d5b71a5d9f2599fdb7458f256785cccf4b | 64b8143a81254011444c5b0125910cbcd95f95bb | refs/heads/main | 2023-07-16T22:04:31.575081 | 2021-08-28T08:40:50 | 2021-08-28T08:40:50 | 400,744,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,000 | py | import requests
import pytest
import data_test
def test_total_count():
response = requests.get(data_test.url)
response = response.json()
assert response['total'] == 22
def test_default_page_size():
response = requests.get(data_test.url)
response = response.json()
assert len(res... | [
"noreply@github.com"
] | potemkuh.noreply@github.com |
1c1aa42436ef6a2988456af22d8dd172cb127e53 | b9c579de7fdca8de76e00b4a912450b338e53b41 | /Banner_Connections/Initialize_Oracle_Connection.py | 63f10562b1831380044a3bdd027ce81ccf795501 | [] | no_license | nmbenzo/ISSS_SMS_Prod | 5bd5ede93369bdd158230a5a993a0554fcb2ecaf | dd1797b6614077a716e6df464ba865b400fcca2c | refs/heads/master | 2022-12-22T04:41:27.276600 | 2019-08-21T22:38:46 | 2019-08-21T22:38:46 | 184,464,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | import sys, os
import cx_Oracle
import traceback
import Banner_Connections.ODSP_Creds as creds
import Banner_Connections.queries as query
def banner_odsp_handler():
"""Function to initialize an object from the cx_Oracle Connection class
:returns a cx_Oracle Connection object if valid credentials exist otherwise
... | [
"nmbenzo@gmail.com"
] | nmbenzo@gmail.com |
9d8b9c8ac32531b4807a6098f442b8edb15490aa | 5e9a65db32404fa4c788fd24abee5fa3d12b5b85 | /INV1_148events_TRUE_DH_2km_rm_sources/Kernels/Read_GP_adj_NZ_stations_sorted_Tape_flexwin_corrected_T_end.py | 46570529ccd630c09c4eb13caceec34992364911 | [] | no_license | ucgmsim/FWT_synthetic_test | 5c7b36550ffdba8d128acf8a80485788a0412219 | 94de9d0ff0528cff06ac3dc51ea423117edf14bb | refs/heads/master | 2020-05-02T09:34:05.907551 | 2020-02-25T02:01:09 | 2020-02-25T02:01:09 | 177,875,059 | 0 | 0 | null | 2019-03-26T22:00:09 | 2019-03-26T22:00:08 | null | UTF-8 | Python | false | false | 13,281 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sun Dec 9 14:19:45 2018
@author: user
"""
import numpy as np
#import matplotlib.pyplot as plt
from scipy.signal import butter, lfilter
from scipy import signal
from qcore import timeseries
from scipy import integrate
import os
def readGP_2(loc, fname):
... | [
"andrei.nguyen@canterbury.ac.nz"
] | andrei.nguyen@canterbury.ac.nz |
93210f2559dedc461d06fd3785d80e20905b0916 | 39f4cbaee6d219c715a1919b40d32c39592a7796 | /plot_percentile_elev.py | 713198c8a9f2274bcb6ddfefd5d43c2b209a793f | [] | no_license | XUEYANZHANG9/IS_snowfire | 3e46bfe782e8a591d3992c0671668d9f2a47a1b1 | 257c70ec1238510b1940e5460c6a0655e5f0d624 | refs/heads/master | 2021-12-12T13:57:55.397049 | 2017-01-19T22:38:30 | 2017-01-19T22:38:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | ### plot elevation percentiles
# basins=['cascades','california','southernrockies','northernrockies','whites']
import numpy as np
import sys
from snowpack_functions import unpack_netcdf_swe_ensavg
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import netCDF4
from netCDF4 import num2date
import ... | [
"gergel@hydra.hydro.washington.edu"
] | gergel@hydra.hydro.washington.edu |
f34fe8f4f6f06313a6b776461d3fc8e3572bcfa5 | f45a9dcb4660e2af6239ee599198bcb264f666d0 | /Lab2/Homework/Youtube/ex1.py | af4a8b1745566a21a5849a7a021da78dc37fef16 | [] | no_license | duyvukhanh/vukhanhduy-lab-c4e18 | 89c6ff648f03c928520a8af7a7ac65f98084cda2 | 8047479944efa91f1de90a4012a7ba25fd2592e2 | refs/heads/master | 2020-03-19T16:55:05.303978 | 2018-06-15T09:04:23 | 2018-06-15T09:04:23 | 136,736,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,267 | py | from youtube_dl import YoutubeDL
# Sample 1: Download a single youtube video
dl = YoutubeDL()
dl.download(['https://www.youtube.com/watch?v=WHK5p7JL7g4'])
# Sample 2: Download multiple youtube videos
# Put list of song urls in download function to download them, one by one
dl.download(['https://www.youtube.com/watch... | [
"duy@Duys-MacBook-Air.local"
] | duy@Duys-MacBook-Air.local |
963aa4e4fb0d5b0a6e95edc7422839ca52cfaa72 | 45cc43cacadbcb53af8e41d42b9fe5d170b75f17 | /steps/post_pics_to_pr.py | 8977d51cceca52d316aef544c731510b9f73f4e7 | [
"Apache-2.0"
] | permissive | pollockm/buildsystem | 71e3197044c8f2b9ea0966ededc0bb1e09e0b177 | 94dde7f27bd265d41dd71b14b04363dfacb3d5f7 | refs/heads/master | 2020-03-25T16:15:09.366428 | 2018-08-07T20:44:17 | 2018-08-07T20:44:17 | 143,921,918 | 0 | 0 | Apache-2.0 | 2018-08-07T20:09:59 | 2018-08-07T20:09:59 | null | UTF-8 | Python | false | false | 2,503 | py | #!/usr/bin/env python3
import requests
import json
import base64
import os
import datetime
import logging
_moduleLogger = logging.getLogger(__name__)
def _create_header(token):
return {'Authorization': 'token %s' % token.strip()}
def _read_picture(file_name):
with open(file_name, 'rb') as text:
ret... | [
"john.boyd@ni.com"
] | john.boyd@ni.com |
e4eda3cc0965966f19ca0803a2f11734f439db73 | b9f9b5f0822c3ffd5cdf4767ddec179d8407a749 | /api.py | a0adb35fcbc7c693a693ed59eb1b3152dba76f99 | [] | no_license | hspearman/spotify_library_serializer | d740cd72662ebb1e09f23a0d140d8436bbc596c0 | f1779eb76d274637393253dea15e036be9e4ed10 | refs/heads/master | 2021-01-10T10:11:27.708003 | 2016-03-27T18:41:51 | 2016-03-27T18:41:51 | 52,226,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,307 | py | import json
from flask import render_template, redirect, Response, Blueprint, session, request, logging
from werkzeug.exceptions import abort
from spotify_utility import build_authorization_url, refresh_token, is_token_existent, is_token_expired, get_token, \
get_tracks
api = Blueprint('api', __name__)
#
# Prot... | [
"hspearman92@gmail.com"
] | hspearman92@gmail.com |
1d66fab8a4c8f54ea28c341be52857c2efbfa426 | 10145efafecff56ba3c975598e01353ed3f7bcf3 | /locker/core/validators.py | f99da9ab528d006db64325f33550a75c7b6a1ff5 | [
"MIT"
] | permissive | crowmurk/locker | 31c0c2d838ca6458f6337b9178e7b0eec0981938 | 7246b4f524d138d48aadf4866e0b218bb924f69c | refs/heads/master | 2023-04-26T13:50:23.207329 | 2022-03-01T08:45:50 | 2022-03-01T08:45:50 | 184,296,218 | 0 | 0 | MIT | 2023-04-21T21:58:39 | 2019-04-30T16:29:29 | JavaScript | UTF-8 | Python | false | false | 1,649 | py | import json
from django.core.exceptions import ValidationError
from django.utils.translation import gettext_lazy as _
from django.utils.deconstruct import deconstructible
from django.template.defaultfilters import filesizeformat
def validate_monday(value):
"""Проверяет является ли дата понедельником.
"""
... | [
"crowmurk@gmail.com"
] | crowmurk@gmail.com |
f78b97bc9bb5530abd9d49f9255ef8b5c1d50c60 | 64ecdfd4fdde040b5fc6f576e2409fae25f4d30f | /Tarea/logica_proyecto.py | 1c4b8aa5d63ef965f3372d7920d32b52f319e375 | [] | no_license | AldoAlonsoS/EjerciciosPython3_AldoAlonso | 974ebdeb02e3fc00b25fe95e03e206e5590122d9 | a43d616294a77a40e81b36fcb5c05a0cd99372ae | refs/heads/master | 2022-11-05T12:59:03.690242 | 2020-07-03T16:57:08 | 2020-07-03T16:57:08 | 271,856,769 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,759 | py | from PySide2.QtWidgets import QApplication, QMainWindow, QFileDialog
from PySide2.QtCore import Slot
from ui_proyecto import Ui_MainWindow
from estudiante import Estudiante
import socket as s
import pickle
import sys
class MainWindow(QMainWindow):
def __init__(self):
super(MainWindow, self).__init__()
... | [
"aldoalonsos18@gmail.com"
] | aldoalonsos18@gmail.com |
047d84d7faa0c90cede96c53c0dd72cc4dcd68c7 | 606f2f38c381365f1afd82dc54a558f980db93e1 | /python-tools/tests/test_main.py | fa7abf7130f6b0ca5b1a24acf5bcb37a50e81d60 | [
"MIT"
] | permissive | nymous/actions | a279e54614e8baf3b5d90fa4cecb5ddce469cd37 | 5f178fa8a2b93474f99e80a235c0107e4ca47096 | refs/heads/master | 2023-06-12T09:54:39.910459 | 2019-08-07T09:09:58 | 2019-08-07T09:09:58 | 197,952,701 | 0 | 1 | MIT | 2021-07-05T05:05:44 | 2019-07-20T16:04:32 | Dockerfile | UTF-8 | Python | false | false | 225 | py | import pytest
from .main import multiply
def test_multiply():
assert multiply(2, 3) == 6
assert multiply(-3, 5) == -15
assert multiply(0, 4) == 0
with pytest.raises(TypeError):
multiply("abc", 1.2)
| [
"thomas.gaudin@centraliens-lille.org"
] | thomas.gaudin@centraliens-lille.org |
e32442bb51f8c48f5ac0d4ec09fa256a766c99f4 | 053b48ff879d73e4cd8f507e1cdc2aea6431c8d9 | /pythonYing/week03/exceise线程/p18_ProcessVsThread.py | 12af688f98d553f89f8d16007db73124a4e9a1d2 | [] | no_license | Masonnn/ApiTest | cb37c8741ffa0474d0ce000dad66b02569e10342 | e9f30b9f0e74eb22489c02682e33ee8bf7a87bbf | refs/heads/master | 2022-12-16T17:44:24.219411 | 2020-09-06T16:37:30 | 2020-09-06T16:37:30 | 249,369,612 | 0 | 0 | null | 2022-12-08T11:29:17 | 2020-03-23T08:02:38 | HTML | UTF-8 | Python | false | false | 1,847 | py | # process vs thread
import multiprocessing as mp
def job(q):
res = 0
for i in range(1000000):
res += i + i ** 2 + i ** 3
q.put(res)
# 多核
def multicore():
q = mp.Queue()
p1 = mp.Process(target=job, args=(q,))
p2 = mp.Process(target=job, args=(q,))
p1.start()
p2.start()
p1.... | [
"lixq@weilaicheng.com"
] | lixq@weilaicheng.com |
a881ebb4ce333707ca54b5214f035d67462dcd23 | 6e36e1c2feb568d44ca9063635b5d83c33abd2f5 | /media.py | 02bcd19054cf905d1ab6ef05b610e41a9d385480 | [] | no_license | euanramsay/python_movie_play | 5ca95fc8907d0caa48d33148179d7773e0c476a5 | 720c59c0fe6de16a4d229766a7aeb1c317ce15ce | refs/heads/master | 2021-01-19T10:56:09.743337 | 2017-04-18T10:03:17 | 2017-04-18T10:03:17 | 87,916,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import webbrowser
class Movie():
def __init__(self, movie_title, movie_storyline, poster_image, trailer_youtube):
"""Template of an instance of Movie
Args:
movie_title (str): The title of the movie
movie_storyline(str): A short description of the movies plot
movie_image(str): A URL link to an image of t... | [
"euancramsay@aol.com"
] | euancramsay@aol.com |
684bd46fe2d2944e322c3a422ed060208afcb062 | 96cbdf4762cdee018522b2b1e55e33ca1e4d1fef | /pyimagesearch/transform.py | 3e5f7d79efbdc5bc77f7ecce6e6064640cfe4ac9 | [] | no_license | JoeHowarth/GoScanner | 09ad65c7ba422780d153b7e1ba4292554631f19e | f214819df8f29b73238ea0762c69be8ca01f1c35 | refs/heads/master | 2021-09-14T11:22:17.151850 | 2018-05-12T17:25:14 | 2018-05-12T17:25:14 | 106,126,339 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,435 | py | # import the necessary packages
import numpy as np
import cv2
def order_points(pts):
# initialzie a list of coordinates that will be ordered
# such that the first entry in the list is the top-left,
# the second entry is the top-right, the third is the
# bottom-right, and the fourth is the bottom-left
rect = np.ze... | [
"josephehowarth@gmail.com"
] | josephehowarth@gmail.com |
7d92969bf5b2b8ec520a58f55d136bb8b5bb5568 | 5bfe0ddb8953711886c10ba636d3eeba934f6ae9 | /6 zigzag.py | 3bbc6ee51018e565701f4d5b1171c6bc532d19c6 | [] | no_license | Alexis374/LeetCode | db1fd8348ff012a55582ee6c430a64308b0b9807 | 1b3ed37a87002891e55c627adb66e9a03e903061 | refs/heads/master | 2021-01-22T06:45:07.129877 | 2015-04-26T13:06:33 | 2015-04-26T13:06:33 | 30,817,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,071 | py | '''
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I I G
Y I R
And then read line by line: "PAHNAPLSIIGYIR"
Write the code that will take a string and make this conver... | [
"lijunchengbeyond@gmail.com"
] | lijunchengbeyond@gmail.com |
1e1ab5399a265c7f7c0489fb511803501de552fd | 3f556df088c1f074a8c5d4eaf2b45dcbcd8c91a2 | /thrift/lib/py/server/TServer.py | aca37957e65a349cfce8d045348688d4b8870398 | [
"Apache-2.0"
] | permissive | rezacute/fbthrift | cc622c408dde9cf273cb1cfef4179678d7673ac6 | 7ea5e86a95eea80805bf99eb88371dbcb32f96e1 | refs/heads/master | 2020-04-28T07:54:07.094567 | 2014-11-19T21:18:53 | 2014-11-19T21:18:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,000 | py | #
# 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
# "License"); you may not u... | [
"davejwatson@fb.com"
] | davejwatson@fb.com |
2f74ae3f7caac57b707a98584b6bdd4a40ded6f8 | fd1dba8223ad1938916369b5eb721305ef197b30 | /AtCoder/ABC/abc110/abc110c.py | b19744afbe63b3698d7e3487b7f15813a0167d39 | [] | no_license | genkinanodesu/competitive | a3befd2f4127e2d41736655c8d0acfa9dc99c150 | 47003d545bcea848b409d60443655edb543d6ebb | refs/heads/master | 2020-03-30T07:41:08.803867 | 2019-06-10T05:22:17 | 2019-06-10T05:22:17 | 150,958,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | S = input()
T = input()
n = len(S)
X = [[] for _ in range(26)]
Y = [[] for _ in range(26)]
for i in range(n):
s = ord(S[i]) - 97
t = ord(T[i]) - 97
X[s].append(i)
Y[t].append(i)
P = [tuple(x) for x in X]
Q = [tuple(y) for y in Y]
if set(P) == set(Q):
print('Yes')
else:
print('... | [
"s.genki0605@gmail.com"
] | s.genki0605@gmail.com |
f5fb13e993e1f670fb944b04d958c11f4c9235e0 | 4a63c8e2545c6968547d7aa36c2dca85b9b84301 | /workscheduler/src/backend/utils/datetime.py | 88eb649edb561f5fec06a44475f4020eda3ac2b3 | [] | no_license | epirevolve/workscheduler | 458b8da84da94862c91de6544c5aaaefc1520d47 | 6c89e7264c5b66f4eb91b1989da6324695449703 | refs/heads/develop | 2023-01-23T02:01:29.356940 | 2019-12-30T01:16:32 | 2019-12-30T01:16:32 | 147,050,241 | 5 | 2 | null | 2023-01-04T11:42:19 | 2018-09-02T03:10:19 | JavaScript | UTF-8 | Python | false | false | 207 | py | # -*- coding: utf-8 -*-
from datetime import datetime
def is_overlap(a_from: datetime, a_to: datetime, b_from: datetime, b_to: datetime):
return (b_from <= a_from <= b_to) or (b_from <= a_to <= b_to)
| [
"epirevolve@gmail.com"
] | epirevolve@gmail.com |
d4244dbd81dc12c8d07c205889424d034972f5d1 | eaef5cf5e2b756ac1f67656b739fb0d941ef7995 | /es_complete/server.py | 24f0d1610df7ae928e30f06d1bcb5687e0ce9fa4 | [] | no_license | gatoatigrado/vim-complete-es-server | 965e938712c761b515d4a72d469ecf6f03562e16 | 7899ecf8b5756b8a3e01bb864888df9e1b306238 | refs/heads/master | 2021-01-10T11:12:20.771074 | 2015-12-27T08:32:36 | 2015-12-27T08:32:36 | 48,638,170 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | from __future__ import absolute_import
from __future__ import print_function
# Fix Flask-autoloaded module path
import sys
if "/code" not in sys.path:
sys.path.insert(0, "/code")
import flask
import re
import simplejson
from collections import namedtuple
from es_complete import es_client
from es_complete import ... | [
"gatoatigrado@gmail.com"
] | gatoatigrado@gmail.com |
75db47364399ab750443e3afc703e376ca016a3a | b0984bc483f0e082975abb7610b4b4508764731d | /pythondispatchms/websetup/schema.py | 35f6f96b61a9c4c8179ed07b9172c6753e6dc51e | [] | no_license | jordy33/python.dispatch.ms | 42dd7b0f1d76742881111a71d9f8a897a6932ddc | e576b565e953871d56ee2f29a25a6f88b8ab120c | refs/heads/master | 2020-09-23T06:10:14.817318 | 2019-12-02T16:51:20 | 2019-12-02T16:51:20 | 225,424,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 983 | py | # -*- coding: utf-8 -*-
"""Setup the python.dispatch.ms application"""
from __future__ import print_function
from tg import config
import transaction
def setup_schema(command, conf, vars):
"""Place any commands to setup pythondispatchms here"""
# Load the models
# <websetup.websetup.schema.before.model.... | [
"jorgemacias@Jorges-Mac-mini.local"
] | jorgemacias@Jorges-Mac-mini.local |
edcd8e182d7a8857d017633df27c9b861b594cb8 | 3d7e122dae6ed0e71fec825960f928051e75b68b | /Jakob_CameraCode/Pathfinding/simPathMap.py | fff0ab4d2cffad2d946793e9137ccf391d9c0dd8 | [] | no_license | Hochbotaniker/Fugaintegrum | dd250691b5c6a24ee76d75ac86a31926e0173eda | f0423d51b35881c8ffae36572b2e06b833e07626 | refs/heads/master | 2023-08-23T20:47:30.373464 | 2021-10-06T14:29:22 | 2021-10-06T14:29:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,380 | py | import matplotlib.pyplot as plt
import numpy as np
from math import atan, degrees
def getDist(pos_drone, pos_dest):
return sum((pos_drone - pos_dest) ** 2) ** 0.5 # 6366 -> Earth radius at ~50° lat
class simPathMap:
def __init__(self, pos_drone, pos_dest, radius=5, pixel_size=1.0):
self.root = pos... | [
"MarcLorenz.Doehmer@googlemail.com"
] | MarcLorenz.Doehmer@googlemail.com |
2752abedd7b48de52b2fddab35c8f2b31dad7226 | 3cb4c484912f540632edd5d0446df1867a68ce62 | /src/pytorch_impl/cnn_pdtb_arg_multiclass_jl.py | 6ead21d65aaf3bf957a0adf344db0e9af4c9b6cb | [
"MIT"
] | permissive | siddharthvaria/WordPair-CNN | a91307c35d8d163299b2a09dbe971e69873ef866 | d54cef994e49615e6bf9d911c11cb5992862bcce | refs/heads/master | 2022-03-25T07:51:47.634344 | 2019-08-10T04:10:18 | 2019-08-10T04:10:18 | 197,980,051 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,457 | py | import argparse
import time
import math
import os
import pickle
import numpy as np
np.random.seed(57697)
from sklearn.metrics import classification_report
from sklearn.utils import shuffle
from pytorch_impl.cnn_pdtb_classifier_utils_pytorch import get_W, post_process, print_params, get_time_stamp
from pytorch_impl.cnn... | [
"varia.siddharth@gmail.com"
] | varia.siddharth@gmail.com |
1938abebcd0e1a343f13385337a8f7233e24c2f7 | 359881c00ce4faf756fe2cf3b503452c0bcf313a | /raterprojectapi/serializers/ratings.py | 3614aefc0cc68bf7977060010f57ea5de9d85a9c | [] | no_license | jshearon/rater-project | 1bd8fe2080faa24e2b2dd2217ae1474132aeb61a | a67142018e822c57ad80ba6589e2e054abc42bcf | refs/heads/main | 2023-02-28T04:30:11.916983 | 2021-01-27T00:56:21 | 2021-01-27T00:56:21 | 314,429,265 | 0 | 0 | null | 2021-01-27T00:52:43 | 2020-11-20T02:50:38 | Python | UTF-8 | Python | false | false | 713 | py | from rest_framework import serializers
from raterprojectapi.models import Ratings
from rest_framework.validators import UniqueTogetherValidator
class RatingSerializer(serializers.ModelSerializer):
class Meta:
model = Ratings
validators = [
UniqueTogetherValidator(
querys... | [
"jonathan.shearon@gmail.com"
] | jonathan.shearon@gmail.com |
9b67e572e5da326df863a9d611e338df54b02395 | 8132e93c74cb8c541ee037b5c85deb38af6b653a | /list_1/exercise_5.py | 3c0af37d58907e91f76d1e7dace2cdafa9a190f6 | [] | no_license | piotrkawa/data-mining | 3a6cdacd4c1b059a469a6a3186eed0694d0a3b2c | c788365eeef801450b0f6bc7ea889e1484e9b53c | refs/heads/master | 2022-04-03T11:08:50.896421 | 2020-02-11T16:48:47 | 2020-02-11T16:48:47 | 212,835,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | from wordcloud import WordCloud
import utility
import itertools
import nltk
import pdb
from nltk.corpus import stopwords as nltk_stopwords
import string
from preprocessing import preprocess_text
def create_pairs(words):
return [(word, 1) for word in words]
def group_words(pairs):
word = lambda pair: pair[... | [
"piotr.w.kawa@gmail.com"
] | piotr.w.kawa@gmail.com |
69e386138bf8d9353793e4efad85b5d466050979 | 7ccb0f18fe0d5d31ef3938c46ecaf93e03838525 | /module20_project5.py | 485923b60c06e5e3412977f14c5ad5c4a1e67692 | [
"Apache-2.0"
] | permissive | Abhyudyabajpai/Machine_Learning_Projects | 82a326cc607ffa27ef32a7937d24df85aada8a46 | 1f339584d242121ef1b2fbf8a17c173cecdd87ea | refs/heads/master | 2020-09-22T23:03:38.710258 | 2020-07-25T15:57:32 | 2020-07-25T15:57:32 | 225,339,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 786 | py | import codecademylib3_seaborn
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeClassifier
import matplotlib.pyplot as plt
flags = pd.read_csv('flags.csv',header =0)
print(flags.columns)
print(flags.head())
labels = flags[['Landmass']]
data = flags[["Red", "... | [
"noreply@github.com"
] | Abhyudyabajpai.noreply@github.com |
d9c01472e3a355d2c744a3b72a0896f067997726 | 5fb9f29964268223869944508798d6c21d9e5298 | /sub_test/sub_test.py | ea78eeb031a733544b22f4926dc7ead63ea94ff4 | [] | no_license | CodedQuen/Python-Pocket-Reference- | 56459ce1509f74bc253af027be91935e62922948 | 8f7c69edb8ad4ac3ef7f70bab15ffe24eb162325 | refs/heads/master | 2022-06-14T20:57:13.799676 | 2020-05-05T08:27:17 | 2020-05-05T08:27:17 | 261,398,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from subprocess import call, Popen, PIPE, check_output
print(call("ls -l", shell=True))
print(check_output("ls -l", shell=True).decode())
pipe1 = Popen("ls -l", stdout=PIPE, shell=True)
pipe2 = Popen("wc -l", stdin=pipe1.stdout, stdout=PIPE, shell=True)
print(pipe2.stdout.read().decode())
| [
"noreply@github.com"
] | CodedQuen.noreply@github.com |
3b74887e37753f6834df15e0acf789b4118532ec | 26cf1df102b75b0c068047cc6eca0d50dbc70c5a | /melati/server/address_manager_store.py | b0adc0891bd154e0333b582a3e552035eb13fd9b | [
"Apache-2.0"
] | permissive | a96009467/melati-blockchain | 307f9a92eee25a15aa294ddfed41a595e63acc50 | 28b8cd1590ee8fa860554c66d639a1fefc0d3c41 | refs/heads/main | 2023-06-24T13:53:41.332345 | 2021-07-20T09:37:49 | 2021-07-20T09:37:49 | 387,778,815 | 0 | 0 | Apache-2.0 | 2021-07-20T12:06:20 | 2021-07-20T12:06:20 | null | UTF-8 | Python | false | false | 8,257 | py | import logging
from typing import Dict, List, Tuple
import aiosqlite
from melati.server.address_manager import (
BUCKET_SIZE,
NEW_BUCKET_COUNT,
NEW_BUCKETS_PER_ADDRESS,
AddressManager,
ExtendedPeerInfo,
)
log = logging.getLogger(__name__)
class AddressManagerStore:
"""
Metadata table:
... | [
"cengndupak@gmail.com"
] | cengndupak@gmail.com |
ac2e687c0c4a12c9903eb7d92a3010cc767d746d | 055badce36d00effa7f36c43bf4c3c9fc0cd3642 | /streamFootballNew.py | 504b135de8c66a59718c955e1c0383ee58384417 | [] | no_license | sgtrouge/Adsfluence | f4bbb3b684b8fb08c5ce642ea8535222123bd2c8 | 23843f03aded1915cf3f885c9198129abaf73bbc | refs/heads/master | 2021-01-11T06:16:36.206828 | 2016-12-12T20:50:45 | 2016-12-12T20:50:45 | 72,179,452 | 0 | 0 | null | 2016-11-21T03:55:41 | 2016-10-28T06:19:30 | Python | UTF-8 | Python | false | false | 4,413 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# https://www.dataquest.io/blog/streaming-data-python/
import time
import tweepy
import json
import csv
from getpass import getpass
from textwrap import TextWrapper
# Keywords
track_Michigan = ['GoBlue', 'Ann Arbor', 'UMich', 'Michigan Wolverines', 'BigHouse', 'University ... | [
"nghia.vo.0509@gmail.com"
] | nghia.vo.0509@gmail.com |
be63e415ecf5e1d3a8f53e768d4c23c1d1643511 | cca21b0ddca23665f886632a39a212d6b83b87c1 | /virtual/classroom/views.py | 07712f42f10a68880ba8e8500e4a6784453a72e1 | [] | no_license | siumhossain/classroom | a8926621456d1e7ed77387fb8a5851825771a9d9 | 4afe9cdee2c58b71bd3711b042eae3f86172eaea | refs/heads/master | 2023-02-02T08:28:14.958761 | 2020-12-24T14:58:59 | 2020-12-24T14:58:59 | 323,007,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,300 | py | from django.shortcuts import render
from django.urls import reverse_lazy
from django.views.generic.list import ListView
from django.views.generic.edit import CreateView, UpdateView,DeleteView
from .models import Course
from django.contrib.auth.mixins import LoginRequiredMixin,PermissionRequiredMixin
from django.shortcu... | [
"sium.hossain@yahoo.com"
] | sium.hossain@yahoo.com |
8e0098c5df0f9fff8c4dce4243eb625ea300531f | 38363f668f87c1044e08a40005cf9319fd8ecb5c | /Servicio-Nica-Ventas/Nivel3/nica-ventas/app/app.py | a65febcae2c3c8fb4edcc096029f88a3af243541 | [] | no_license | LISSETTE-QUINTERO/Servicio-Nica-Ventas | 6f8d215514c93abc2cbdcde79d6be1aa9373c06e | 90ac01b6c5c97d6c7af9fda37311a8222ef79d7b | refs/heads/master | 2021-06-22T03:12:05.425429 | 2019-09-11T03:44:03 | 2019-09-11T03:44:03 | 207,189,785 | 0 | 0 | null | 2021-03-20T01:42:35 | 2019-09-09T00:05:11 | Python | UTF-8 | Python | false | false | 3,158 | py | from flask import Flask, jsonify, request, escape
import os
from flask_mysqldb import MySQL
from worklog import Worklog
import redis
app = Flask(__name__)
app.config['MYSQL_HOST'] = os.environ['DATABASE_HOST']
app.config['MYSQL_USER'] = os.environ['DATABASE_USER']
app.config['MYSQL_PASSWORD'] = os.environ['DATABASE_P... | [
"noreply@github.com"
] | LISSETTE-QUINTERO.noreply@github.com |
992cbbcc8751d9aa132eea71a9c34ba42f5b03b4 | 4754226625d4a6b9680a22fd39166f502034aeb5 | /samsung/[cutz]lab1.py | 971e71a34d9cdfed878116d35cf9fd619e85ef26 | [
"MIT"
] | permissive | cutz-j/AlgorithmStudy | 298cc7d6fa92345629623a9bd8d186f0608cdf7c | de0f81220e29bd5e109d174800f507b12a3bee36 | refs/heads/master | 2021-07-01T03:15:51.627208 | 2021-02-24T01:24:44 | 2021-02-24T01:24:44 | 222,935,322 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | import sys
from itertools import combinations
class Queue():
def __init__(self):
self.front = 0
self.rear = 0
self.list = []
self.pop_count = 0
def append(self, x):
self.list.append(x)
self.rear += 1
def pop(self):
res = self.list[self.front]
... | [
"cutz-j@naver.com"
] | cutz-j@naver.com |
b36ecf77fd71c9f220c802648ec0c3fcca41753a | db8b780121211871af4942e4e2439dff1decf2ff | /Exercício 8 - verificação de aprendizagem.py | 77c8cf42452d96fc82199bcddd30777df37b0040 | [] | no_license | eliasssantana/logicaProgramacao | c1d86226318d4c797fa5b97fe471fb1de8b69eea | 353e710ebeae8ef9eb2cfc52baf4effe8dfd6dcf | refs/heads/main | 2023-05-15T08:29:20.543267 | 2021-06-10T02:40:38 | 2021-06-10T02:40:38 | 366,473,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | print("=-" * 30)
e = 'Exercício'
print(e.center(50))
print("=-" * 30)
# 8)
'''
- Crie um programa que leia nome, ano de nascimento e carteira de trabalho e cadastre-os (com idade) em um dicionário. Se por acaso a CTPS for diferente de 0, o dicionário receberá também o ano de contratação e o salário. Calcule e acresce... | [
"eliassilva0045@gmail.com"
] | eliassilva0045@gmail.com |
72237823847f45db31b97d3e26d00c5ab4caf5a6 | 276c7120ce431ed8fae93c70b3ed2dedc9bc9301 | /resources/events.py | b64397111ff50dfb1d43e130675fbcd85b57b071 | [] | no_license | notinuse1234/zoom_zoom_zow | 8f82c6deb1e826bd1b918a5715915457659aedc8 | bc0e94bec6b62dcc0da410e9f25be787b11d5a78 | refs/heads/master | 2022-01-27T05:14:59.446663 | 2019-05-06T18:32:16 | 2019-05-06T18:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | import pygame as pg
class Events():
@staticmethod
@property
def BEGINSWING():
return pg.USEREVENT + 1
@staticmethod
@property
def ENDSWING():
return pg.USEREVENT + 2
| [
"ahester@cisco.com"
] | ahester@cisco.com |
86d1cfe33de049e146c8d0748a19437e0991912e | ac762d856fbad529d146504d828f77cdf7732993 | /bot.py | f8602c45f4ae85bad9349c16566f7e7b7d9faaa5 | [] | no_license | svonton/discord_bot | d2ead7d7f56553ee1eb261ec0774da76709e6394 | 651619b2e63251d2e13a60ac719cf34f25163a68 | refs/heads/master | 2021-05-18T01:37:12.138889 | 2020-03-29T14:19:49 | 2020-03-29T14:19:49 | 251,049,985 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,522 | py | import discord
import datetime
import random
import asyncio
from discord.ext import commands
bot = commands.Bot(command_prefix='$')
def read_token():
with open("token.txt", "r") as f:
lines = f.readlines()
return lines[0].strip()
def dembel():
td = datetime.date.today()
dds = "2020-12-15... | [
"svonton@users.noreply.github.com"
] | svonton@users.noreply.github.com |
83d4ccb19ccbe1b7e8b70303939cb8fe2e8f2632 | 22ad8c48067de977b5256a9f1d566bfa731bad00 | /venv/lib/python3.8/site-packages/pyglet/gl/base.py | a3f35e96ee5bf4e19a5f82a395fd9ded2d5954d9 | [] | no_license | d-halverson/Walgreens-Scraper | dedb2bd1f40bfce359eeb3f93075929c560fd7dc | d53011a8e42c9758569bfe392436ef5b1553ec5e | refs/heads/main | 2023-04-03T12:51:36.033373 | 2021-04-07T02:33:15 | 2021-04-07T02:33:15 | 350,066,341 | 5 | 10 | null | 2021-06-17T15:29:28 | 2021-03-21T17:14:52 | Python | UTF-8 | Python | false | false | 14,908 | py | # ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# Copyright (c) 2008-2020 pyglet contributors
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the follo... | [
"drew.m.halverson@gmail.com"
] | drew.m.halverson@gmail.com |
4a04f161cd2987c6ca772ac5ef11c4953ecbb7ec | cfa35dc2ea93ee0eceb2399a9e6112e987579c09 | /stonesoup/metricgenerator/__init__.py | 580303c8a8d1dce6e8550f6f212b7afe198d89c9 | [
"LicenseRef-scancode-proprietary-license",
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"Python-2.0",
"LicenseRef-scancode-secret-labs-2011"
] | permissive | dstl/Stone-Soup | 227e6a9e6fbdceca14af3f0259f311ec74095597 | f24090cc919b3b590b84f965a3884ed1293d181d | refs/heads/main | 2023-09-01T14:33:14.626428 | 2023-09-01T11:35:46 | 2023-09-01T11:35:46 | 98,420,803 | 315 | 126 | MIT | 2023-09-14T14:55:34 | 2017-07-26T12:34:28 | Python | UTF-8 | Python | false | false | 65 | py | from .base import MetricGenerator
__all__ = ['MetricGenerator']
| [
"sdhiscocks@dstl.gov.uk"
] | sdhiscocks@dstl.gov.uk |
2b63046ccd7b852daa7ce8a78c6345d746f667f9 | 6c137e70bb6b1b618fbbceddaeb74416d387520f | /spyre/testing/cavity.py | 1d95f5fa22fb580cf87be1fa538c49f3fa4ba85b | [
"BSD-2-Clause"
] | permissive | zhong-lab/code | fe497c75662f8c3b7ab3c01e7e351bff6d5e8d15 | b810362e06b44387f0768353c602ec5d29b551a2 | refs/heads/master | 2023-01-28T09:46:01.448833 | 2022-06-12T22:53:47 | 2022-06-12T22:53:47 | 184,670,765 | 2 | 7 | BSD-2-Clause | 2022-12-08T21:46:15 | 2019-05-02T23:37:39 | Python | UTF-8 | Python | false | false | 361 | py | ##Config file for lifetime_spyrelet.py in spyre/spyre/spyrelet/
# Device List
devices = {
'vna':[
'lantz.drivers.VNA.P9371A',
['TCPIP0::DESKTOP-ER250Q8::hislip0,4880::INSTR'],
{}
]
}
# Experiment List
spyrelets = {
'freqSweep':[
'spyre.spyrelets.cavity_spyrelet.Record',
... | [
"none"
] | none |
9eb70544daa471de18bc1c32603379098b98bf4d | 1d6fbc4eecad619a889682ee026082e46e501475 | /Control.py | 9994cc22acad8a03307af8c85b14214a2f01028b | [] | no_license | matheus-osorio/project_opener | 740ddf40f2a9a03b743081d6dc9c083f25bcdb07 | ceb6a97a58c255c4f8e4cc085410510091de94f3 | refs/heads/main | 2023-04-18T00:31:27.435748 | 2021-05-09T19:00:32 | 2021-05-09T19:00:32 | 361,580,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,097 | py | from configs.Organizer import Organizer
class Control:
def run(self,obj,path):
st = obj['starter']
self.Organizer = Organizer(path)
response = self[st](obj)
txt = f'''
RESPONSE TYPE: {response['type']}
--------------
RESPONSE MESSAGE: {response[... | [
"matheuscerqueir@gmail.com"
] | matheuscerqueir@gmail.com |
ef06e79576ab02091941bdb71d690f0d88a6d32d | 9fa4b5f59dd1089e27ff4a4148e59eab76930ce8 | /Lesson2/day2_gaussian.py | 763939d697f7f5b65145aea3f70d3a1bac3a5f46 | [] | no_license | butlerkend/DrexelCodingLessons | 1dc469e14c651a555bd28eb4a7010661b3ec90d9 | c98b04c57ba1216a71d02e1920c5b142a7bcee79 | refs/heads/master | 2022-12-13T09:59:28.963756 | 2020-09-11T14:58:24 | 2020-09-11T14:58:24 | 294,724,529 | 0 | 0 | null | 2020-09-11T14:57:07 | 2020-09-11T14:57:06 | null | UTF-8 | Python | false | false | 356 | py | import math as m
#choose variables
x = float(input("Choose x: "))
m_var = float(input("Choose m: "))
s = float(input("Choose s: "))
print("x is %d" % x)
print("m is %d" % m_var)
print("s is %d" % s)
#calculate
f = (1./m.sqrt(2 * m.pi)) * m.exp(-1*(1./2)*(((x-m_var)/float(s))**2))
#print answer
print("therefore, the ... | [
"scl63@drexel.edu"
] | scl63@drexel.edu |
9556ccc6811855a30848a322a58b84634b209823 | 992f1616004dd54a1dc741db81616e0d83fa7a74 | /python/scannerpy/stdlib/bbox_nms_kernel.py | 05cde4d4727a1a789d3d968f975e6fc07921a946 | [
"Apache-2.0"
] | permissive | mindis/scanner-1 | 503842a4463bf31b38e741d7eb26fac71d5eb847 | b00ba95629b9a775a02b47859c438ed2fd186d2a | refs/heads/master | 2021-08-26T06:41:52.226038 | 2017-11-12T02:16:24 | 2017-11-12T02:16:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | import scannerpy
import scannerpy.stdlib.parsers as parsers
import scannerpy.stdlib.writers as writers
import scannerpy.stdlib.bboxes as bboxes
class BBoxNMSKernel(scannerpy.Kernel):
def __init__(self, config, protobufs):
self.protobufs = protobufs
args = protobufs.BBoxNMSArgs()
args.ParseF... | [
"alexpoms@gmail.com"
] | alexpoms@gmail.com |
a712f370e5bfa4a45f8bfd683db3ef8989ad95c7 | 195425d9c034f501ed8c453910e4286852f40385 | /import-automation/import-progress-dashboard-frontend/server/app/configs.py | c886caa0b203f66c61484a0901e126137b429910 | [
"Apache-2.0"
] | permissive | wh1210/data | f4f378a11adbbf6d0d184cb71ee1e84ec997d2de | 6b32c869f426a8a5ba1b99edd324cc0c77bbd4ad | refs/heads/master | 2022-12-06T22:47:58.148971 | 2020-08-21T18:13:11 | 2020-08-21T18:13:11 | 269,511,511 | 1 | 0 | Apache-2.0 | 2020-06-05T02:23:48 | 2020-06-05T02:23:48 | null | UTF-8 | Python | false | false | 1,207 | py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | wh1210.noreply@github.com |
e6d5eb58168ade63b3dec20ddcaa54dadfbbe80f | 23ac473ba6ca03412e825d939676a08f6a2e6546 | /modules/exploit-0.1/commands.py | 565ba6aee271dad9935cdad2e5aa40dfd7c4ab5d | [] | no_license | bwingu/app01back | 710c77c35bcb9a27e75a27304a26ca46546b260a | b5ef894ecfd43d59e6e8d4b5215a445fd0b19f97 | refs/heads/master | 2021-01-18T10:53:37.988723 | 2012-02-08T21:11:09 | 2012-02-08T21:11:09 | 3,304,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | # Here you can create play commands that are specific to the module, and extend existing commands
MODULE = 'exploit'
# Commands that are specific to your module
COMMANDS = ['exploit:hello']
def execute(**kargs):
command = kargs.get("command")
app = kargs.get("app")
args = kargs.get("args")
env = kar... | [
"louis.sebastien@gmail.com"
] | louis.sebastien@gmail.com |
1fffe8e845e8dadbebbcb8cc480060849bec6a19 | e8815ba621e72a015e3567e736aa7d5c6d05dd71 | /experiment_datasets_creator.py | 1150f93b1d38d2fc3ef76503ef6d083bd3c97b17 | [] | no_license | oserikov/nn_harmony_np | 5f810114481402a56b9349dfff77af47939ee9d8 | b93c19bcd625eea3716dc964bc962af84e21fb4b | refs/heads/master | 2021-07-01T16:40:07.420621 | 2020-10-05T08:01:07 | 2020-10-05T08:01:07 | 179,607,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,566 | py | import numpy as np
from phonology_tool import PhonologyTool
from nn_model import NNModel, ModelStateLogDTO
from typing import List, Callable
import csv
# 1. vow vs cons
# 2. +front vs -front
# 3. voiced stop consonant detection
# 4. start cons cluster
# 5. 2nd in cons cluster
# 6. +front harmony TODO
# 7. -front_harm... | [
"srkvoa@gmail.com"
] | srkvoa@gmail.com |
76846a71c9a5bcac685d5452c7f039c04d5dd554 | 3712a929d1124f514ea7af1ac0d4a1de03bb6773 | /开班笔记/python基础部分/day02/code/test.py | e2a14e0f4bc5a36dc4cbb782ba168443482180ac | [] | no_license | jiyabing/learning | abd82aa3fd37310b4a98b11ea802c5b0e37b7ad9 | 6059006b0f86aee9a74cfc116d2284eb44173f41 | refs/heads/master | 2020-04-02T20:47:33.025331 | 2018-10-26T05:46:10 | 2018-10-26T05:46:10 | 154,779,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | #!/usr/bin/python3
print('这是我的python第一条语句')
print('我现在开始学python')
print('这是最后一条语句') | [
"yabing_ji@163.com"
] | yabing_ji@163.com |
90cfe476dff2e715a46fde91c5b2163d5eb304ca | b7c68fac8bb7b3b372a76988f3efe63c4f2526a5 | /tensorflow-experiments.py | 754f456975768457874ff4d4c0127e1405d60391 | [] | no_license | misrasiddhant/Python | 5b87feaae7e47766621e4453969c39e2030137bf | 6bd4afb6b614613c7462e36a24ffd852c5ec82d1 | refs/heads/master | 2023-04-19T17:59:56.141669 | 2021-05-01T22:50:22 | 2021-05-01T22:50:22 | 163,623,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,208 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 23 17:51:28 2017
@author: Siddhant Misra
"""
import tensorflow as tf
"""
a = tf.constant(3.0)
b= tf.constant(4.0, dtype = tf.float32)
print(a,b)
session = tf.Session()
session.run([a,b])
sum = tf.add(a,b)
print(sum)
session.run(sum)
a = tf.placeholder(dtype = tf.flo... | [
"misrasiddhant@yahoo.co.in"
] | misrasiddhant@yahoo.co.in |
ed2e2a733351c52a13a5f61c050406b5539e000c | 04177ba9d8d91d19dc3689fbb86d65d5954b36f4 | /fullthrottle/testapp/serializers.py | a66273f086b3d4e690a03dc583cd292fa5df901a | [] | no_license | ruhansharief/pythonanywhere2 | 0a7ba7ad6a6730f5bb35be8ae581e0f031e9704b | 3193e380e090f5513a3d93301fa79cb428ed9bdf | refs/heads/master | 2022-10-01T04:30:40.092396 | 2020-06-03T17:23:38 | 2020-06-03T17:23:38 | 269,122,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | from testapp.models import UserModel, ActivityPeroidModel
from rest_framework import serializers
class ActivitySerializer(serializers.ModelSerializer):
class Meta:
model = ActivityPeroidModel
fields = ['start_time', 'end_time']
class UserSerializer(serializers.ModelSerializer):
activity_perio... | [
"ruhansharief22@gmail.com"
] | ruhansharief22@gmail.com |
a5cddf4c63083cdd7f14a8cf94ba290e0b3c20e8 | 5a16118003ed5669670176abc51c66467c6b0712 | /pitest.py | 85e9ee9a86a2dc66a7340226f0fd1c2e71c0d11e | [] | no_license | Messidc/hello-world | f36297d286e638631e32a465df927c4268ceac87 | 853a82e74c5a252e27b1489a8f5bc5717d8432f5 | refs/heads/master | 2021-05-11T04:35:12.226082 | 2020-11-21T08:18:55 | 2020-11-21T08:18:55 | 117,943,412 | 0 | 0 | null | 2018-01-18T07:30:20 | 2018-01-18T06:41:38 | null | UTF-8 | Python | false | false | 634 | py | from functools import reduce
import itertools
import math
def pi(N):
' 计算pi的值 '
# step 1: 创建一个奇数序列: 1, 3, 5, 7, 9, ...
# step 2: 取该序列的前N项: 1, 3, 5, 7, 9, ..., 2*N-1.
# step 3: 添加正负符号并用4除: 4/1, -4/3, 4/5, -4/7, 4/9, ...
# step 4: 求和:
natuals = itertools.count(1,2)
ns = itertools.takewhile(... | [
"dengdanchaoren@gmail.com"
] | dengdanchaoren@gmail.com |
442fbda53e3daca717ec96081a20b07d92193745 | 5effdd4a38f85229ff09622cf46940a0c7986dda | /generator/core.py | 064596355e77748c96c4df93bdd2a47365cfb369 | [
"MIT"
] | permissive | universuen/Cat_WGAN | 598ab8a3f408486d1e18cb66d928287a18210f61 | ac983270820cf55a3eeb74a0d0edd258e715d00b | refs/heads/main | 2023-08-13T02:42:54.275525 | 2021-10-03T16:48:26 | 2021-10-03T16:48:26 | 374,564,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,808 | py | import torch
from torchvision import transforms
from torch.utils.data import DataLoader
from matplotlib import pyplot as plt
import numpy as np
from . import config
from .datasets import RealImageDataset
from . import models
from .logger import Logger
from ._utils import train_d_model, train_g_model, save_samples, sho... | [
"52519513+universuen@users.noreply.github.com"
] | 52519513+universuen@users.noreply.github.com |
b880bb7eec743a97332b62bfdcdd7c86b2dbbd47 | 59842f3191e3f86e0fa95956b9b9d122658e199a | /vps_tools/__init__.py | b1a1a5ca75ad7cdf213f4d50321303910a295141 | [] | no_license | vitaly4uk/vps-tools | d19936abc3b8284f1ccf76ff23c5daa85a292540 | cf4f94d1ce6353464b6b71b4fce37f503dfec7c4 | refs/heads/master | 2020-05-20T19:25:34.399239 | 2018-11-24T18:35:09 | 2018-11-24T18:35:09 | 68,452,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | VERSION="0.2.10" | [
"vitaly.omelchuk@gmail.com"
] | vitaly.omelchuk@gmail.com |
37c5eab2b0dce309f35baf4e54e33fcf65b69a0f | b37c027a3f63305345f266e8f4f944721adbb956 | /BASES/OLD/3_2_CAC_CC_SPLTED_CSDS/tx_no_gui.py | a9468578d04ae10a963ccd3699fadbf0be6ccf6e | [] | no_license | andrehoracio97/investigacao | fdfb663867e6fe9f240bb828b7b96b99323f8be3 | 5dd1fad12f4991bb737ed236426247dfb52333eb | refs/heads/master | 2022-10-11T02:08:30.478893 | 2020-06-16T09:58:13 | 2020-06-16T09:58:13 | 193,519,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,072 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
##################################################
# GNU Radio Python Flow Graph
# Title: Tx No Gui
# Author: andresilva
# GNU Radio version: 3.7.13.5
##################################################
from gnuradio import blocks
from gnuradio import digital
from gnuradio... | [
"andresilvamail@gmail.com"
] | andresilvamail@gmail.com |
1511968638f2441910615d9b97b2c2629ea64078 | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/ads/googleads/v6/googleads-py/google/ads/googleads/v6/resources/types/product_bidding_category_constant.py | 6aacc16b169b40875e5f6b751c1c07d2a833a97f | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,334 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# 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... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
62f564b7edaf6eb32c0ccc8850acdb734cae478b | 487d6bbdd801d37478734ba5a96a670abada4021 | /MyWagtailWebsite/resume/migrations/0001_initial.py | 47d5a3c05ca09cca7ee3ab1e97374da7e3619feb | [] | no_license | Munnu/PersonalWebsite-Wagtail | 5414218f2b24933a462ac95dbc40de9fd449d772 | 950cf8d43e0b68c7f4445100c94ca67f738b477f | refs/heads/master | 2022-12-23T08:05:05.421092 | 2018-09-21T06:43:15 | 2018-09-21T06:43:15 | 84,692,087 | 0 | 0 | null | 2022-12-07T23:48:00 | 2017-03-12T01:41:09 | Python | UTF-8 | Python | false | false | 892 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.1 on 2017-07-20 07:03
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import wagtail.wagtailcore.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
('wagta... | [
"moniqueblake4@gmail.com"
] | moniqueblake4@gmail.com |
a00be5a37d73619acb218a0561d0862883839519 | 75d0009170fe44c315ce72a8c29e712ade3848c3 | /9_Outter_Function/_pickle.py | 6d2c0393b7e4e320f70acd7eeb4785cf3083afaf | [] | no_license | moon4311/sp | d6a65d5b95bc51332b9a80a1410ffb6854a99f61 | 207758d4f4f7c28fa1cd9f277825313257782433 | refs/heads/master | 2021-09-14T07:20:49.257372 | 2018-05-09T13:28:42 | 2018-05-09T13:28:42 | 116,090,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import pickle
######## 바이너리 파일 (파일을 열어도 내용을 알아 볼 수 없다)
f = open("test.txt","wb")
data = {1:'python', 2: 'you need'}
pickle.dump(data, f)
f.close()
f = open("test.txt","rb")
data = pickle.load(f)
print(data)
f.close()
######## 텍스트파일 (아스키코드를 이용한 파일 , 내용을 보고 읽을 수 있다)
f = open("test2.txt","w")
f.write("{1:'python', 2: ... | [
"kjm4311@naver.com"
] | kjm4311@naver.com |
6eeced6d1506a1def659d8582180f495fff68a7f | 50402cc4388dfee3a9dbe9e121ef217759ebdba8 | /etc/MOPSO-ZDT2/ZDT2-1.py | d0f2faf6d992bb8b09ed659299c095a99a98486a | [] | no_license | dqyi11/SVNBackup | bd46a69ec55e3a4f981a9bca4c8340944d8d5886 | 9ad38e38453ef8539011cf4d9a9c0a363e668759 | refs/heads/master | 2020-03-26T12:15:01.155873 | 2015-12-10T01:11:36 | 2015-12-10T01:11:36 | 144,883,382 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,413 | py | '''
Created on Jan 26, 2014
@author: daqing_yi
'''
if __name__ == '__main__':
from PerformanceAnalyzer import *;
import sys;
trial_time = 30;
figFolder = sys.path[0] + "\\zdt2";
caseName = "ZDT2";
fileList1 = [];
fileList2 = [];
fileList3 = [];
... | [
"walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39"
] | walter@e224401c-0ce2-47f2-81f6-2da1fe30fd39 |
fd39ae92816f5fe6a089e0016756b334239d8254 | 8b8945ef99886034fe6bda7fc34a68252ef7997b | /webapp/api/resources/podcast_resources.py | 06741de832c0a9f049ab3bd8a1003e4252a6ac7b | [] | no_license | asm-products/podato-web | 90bc3463ee4581d97a7863522ac9f308dfb82d1d | e4693c232a25fa4003a2cc8de17327b9fca2fd2a | refs/heads/master | 2021-01-20T23:31:53.813211 | 2015-07-13T21:06:36 | 2015-07-13T21:06:36 | 29,367,441 | 0 | 3 | null | 2015-04-08T21:35:52 | 2015-01-16T20:57:44 | CSS | UTF-8 | Python | false | false | 2,350 | py | import urllib
from flask import abort
from flask_restplus import Resource
from flask_restplus import fields
from flask_restplus import abort
from webapp.utils import AttributeHider
from webapp.api.oauth import oauth
from webapp.api.oauth import AuthorizationRequired
from webapp.api.blueprint import api
from webapp.ap... | [
"frederikcreemers@gmail.com"
] | frederikcreemers@gmail.com |
af6d319381a3634ed79b1ce5fbc909e292583f02 | 77ce46ae4198108326e7606f4f4d0bb7d59c6555 | /rpcenable/async.py | 00a6c44db3df31e5888f2a2ab600366c592b5d6e | [] | no_license | mtrdesign/django-rpcenable | 5ca87287ccef99ef7c8f6221a48ab8daf55b9228 | 7e8836699f5cc7c140a154946246f4ab2403ad39 | refs/heads/master | 2020-09-22T02:16:37.600130 | 2013-12-09T18:12:09 | 2013-12-09T18:12:09 | 6,478,013 | 2 | 0 | null | 2013-12-09T13:09:12 | 2012-10-31T17:38:02 | Python | UTF-8 | Python | false | false | 784 | py | import atexit
import Queue
import threading
import functools
from django.core.mail import mail_admins
def _worker():
while True:
func, args, kwargs = _queue.get()
try:
func(*args, **kwargs)
except:
import traceback
details = traceback.format_exc()
... | [
"tie@TTOP.(none)"
] | tie@TTOP.(none) |
fabdb59965535befc9dac9f98e452ca2667188c8 | 3331bef496806453a89f469d0a93b71d42f4d0d9 | /clase9.py | f7d374d056bf1741423d19a3e59ce08bd36d63f2 | [] | no_license | katherinelasluisa/Clase9 | 56ebda90ef2b63cec07f362851c145a91b3328f5 | e353edb3c960b52ffb9ed110a3d3f61363381bb8 | refs/heads/master | 2021-01-09T20:40:06.425243 | 2016-06-16T14:54:28 | 2016-06-16T14:54:28 | 61,290,633 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | #trabajo en clase segundo emi
import time
print (time.localtime())
#time.struct_time(tm_year=2020, tm_mon=2, tm_mday=23, tm_hour=22, tm_min=18, tm_sec=39, tm_wday=0, tm_yday=73, tm_isdst=0)
t=time.localtime()
year=t[1]
month= t[2]
day= t[3]
wday=t[4]
min=t[5]
print (year)
print (month) | [
"katherinelasluisa7@gmail.com"
] | katherinelasluisa7@gmail.com |
7e0523f23ad99067226163240acb0bb0bd3c3b82 | a2c9dec29f36df1ea36121bc36bd43b82b247f1f | /cs231n/rnn_layers.py | aff15b5b7fe6a70f5da094313ae9da5c24367419 | [] | no_license | FengYen-Chang/cs231-assignment-3 | 9476f673ae1ff6ac825bad53d3327d754eac77ac | a45f55a16236618d296c128d62c41ea435537bbb | refs/heads/master | 2020-04-17T08:43:18.241622 | 2019-01-18T15:28:34 | 2019-01-18T15:28:34 | 166,423,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,046 | py | import numpy as np
"""
This file defines layer types that are commonly used for recurrent neural
networks.
"""
def rnn_step_forward(x, prev_h, Wx, Wh, b):
"""
Run the forward pass for a single timestep of a vanilla RNN that uses a tanh
activation function.
The input data has dimension D, the hidden state h... | [
"noreply@github.com"
] | FengYen-Chang.noreply@github.com |
97a31e802cc8fa3647b21b3d296d581a4b955343 | 4d0e38ecdea3f8f7a627f620899ec5b4989fdd1c | /system/draft/TestPropertyBasedSuite.py | 0427213b95c7561cbc5c4d1607baee131e43afcb | [
"Apache-2.0"
] | permissive | VladimirWork/indy-test-automation | d07361e014da053da39c3a0b29b300ee6b4cee40 | 11838b4061f70275058c4642f7eb755c1c98c367 | refs/heads/master | 2023-03-15T21:53:34.850695 | 2019-07-10T14:33:32 | 2019-07-10T14:33:32 | 154,509,204 | 3 | 0 | Apache-2.0 | 2023-03-05T06:40:28 | 2018-10-24T13:48:45 | Python | UTF-8 | Python | false | false | 11,821 | py | import pytest
from system.utils import *
from hypothesis import settings, given, strategies, Phase, Verbosity
from hypothesis.strategies import composite
from string import printable, ascii_letters
import hashlib
import copy
import os
import sys
@composite
def strategy_for_req_data(draw):
reqid = draw(strategies.... | [
"vladimir.shishkin@dsr-corporation.com"
] | vladimir.shishkin@dsr-corporation.com |
66a5c9b0258f2ea3b92f24ed39c3fcd45c84f294 | 335652dd8cf0097f171dc9d349425047c53766ea | /pdestrianTracker.py | 75113a26ca6e169915d4a3c745f76d64da91bf23 | [] | no_license | bytebarian/SocialDistanceDetector | 880e3ff9b2ff1c9dafa05bf88bb9d405fd9ee5a6 | bdd28a52f39ba76ef663c5faf5f83b83331f8288 | refs/heads/master | 2023-02-12T10:42:31.882635 | 2021-01-03T22:49:31 | 2021-01-03T22:49:31 | 286,845,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,242 | py | # USAGE
# python pdestrianTracker.py --input pedestrians.mp4
# python pdestrianTracker.py --input pedestrians.mp4 --output output.avi
import argparse
import cv2
import imutils
import numpy as np
import torch
import time
import pymongo
from deep_sort import DeepSort
# import the necessary packages
from pyimagesearch.... | [
"mariusz.dobrowolski@softwarehut.com"
] | mariusz.dobrowolski@softwarehut.com |
915bb39fd2f17f7a5a22a7b3fbb3525926ae7f63 | e7f8acff7948cf6618043ec7b998867b7c6ad831 | /python/pythonday5/pythonday5_5_文件操作.py | b822ba838138be00185e46990a9ce22e8e4143ea | [] | no_license | z778107203/pengzihao1999.github.io | 9b97ecefba6557f1f815a5f17da33118ddf78b37 | d683ba31772fb3a42085cb44ee0601637bcdd84e | refs/heads/master | 2022-11-13T10:44:00.988950 | 2019-10-08T15:29:04 | 2019-10-08T15:29:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | """
r :以只读方式打开文件,文件的指针将会放在文件的开头,如果文件不存在抛出异常
w :以只写方式打开文件,如果文件存在会被覆盖,如果文件不存在,创建新文件
a :以追加方式打开文件,如果文件存在,文件指针将会放在文件的结尾,如果不存在,创建新文件进行写入
r+:以读写方式打开文件,文件的指针会放在文件的开头,如果文件不存在,抛出异常
w+:以读写方式打开文件,如果文件存在会被覆盖,如果文件不存在,创建新文件
a+:以读写方式打开文件,如果文件已经存在,文件指针将会放在文件的结尾,如果文件不存在,创建新文件进行写入
"""
file = open("wenjian")
text = file.read()
print(t... | [
"916811138@qq.com"
] | 916811138@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.