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
220 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
257 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
cfd9fe7c1d360679dde3f2d9087ae5b08aa89dea
ccf95d8916dfb1773898a96b3b35e10f276181cc
/Chapter4/try10541.py
97a6c0bd5d06c4096956b33371ad801c848a0fc6
[]
no_license
Janet-ctrl/python
ad5761875b4eaa2cb1d4194cb9f41a787a1ac5ce
666cfe9e82aaae245d6648e2fc97e60184a99704
refs/heads/master
2022-11-06T17:08:01.151639
2020-06-11T20:28:43
2020-06-11T20:28:43
270,942,344
0
0
null
null
null
null
UTF-8
Python
false
false
228
py
pizzas =['pikkant', 'meaty treat','three cheese'] for pizza in pizzas: print(pizza.title()) for pizza in pizzas: print(f'I enjoy the {pizza.title()} on the pizza menu.') print(f'\nI really really really like pizza!')
[ "janet.eras@outlook.com" ]
janet.eras@outlook.com
0116aadc905532d21ffd01fd445c5a00907e42da
d692e868819b7eaf2f69017056b8d3f46b8f265b
/python/stopwatch.py
65b41a1794b69d46f6b1ba767e47f0a46cfb3bd3
[]
no_license
ksen0/submission
bee665b68aa6d6930224578aa2de5a428da866dc
ffef4e3fd3ec75eebed98dc661ef865e26398b6e
refs/heads/master
2021-06-16T22:04:20.954064
2017-04-24T13:56:20
2017-04-24T14:20:02
null
0
0
null
null
null
null
UTF-8
Python
false
false
870
py
import time class Stopwatch: def __init__(self): self.counts = {} self.times = {} self.reset() def reset(self): self.clock = time.time() def lap(self, task, verbose = 0): elapsed = time.time() - self.clock self.reset() self.counts[task] = s...
[ "cscw1306@users.noreply.github.com" ]
cscw1306@users.noreply.github.com
0998d7b83e0b0f823115e7d2c6b0d79aadab41fd
191863e86029b0e5866bf810ec7bf209fce88b6f
/frameworks/mxnet/code/test_train.py
bba2094bb5d9a7e52f1fc55b1c7a9e19bf647552
[ "Apache-2.0" ]
permissive
EmilyWebber/amazon-sagemaker-examples
237efa2211a5d26854ece7da2356d627d4f5f225
fb5a8ba5298bb7879ee9b8c10cb0842ac078b84b
refs/heads/main
2022-04-06T10:29:56.728806
2022-04-05T14:54:25
2022-04-05T14:54:25
331,713,808
3
3
Apache-2.0
2021-01-21T18:13:20
2021-01-21T18:13:19
null
UTF-8
Python
false
false
2,221
py
# coding=utf-8 # Copyright 2020 Amazon.com, Inc. or its affiliates. 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 # # ...
[ "noreply@github.com" ]
EmilyWebber.noreply@github.com
3ac7c0c35f95782cfbb951672eedb64836413325
1de5f94c0296bfd38a8524647b8bd6522a2b3c3a
/oac_web_service/views/sparql.py
51f7b85a802340ad88c3e6867c2bdce613764eeb
[]
no_license
Brown-University-Library/oac_web_service
dc36711318ce4eaf038d4608adb305a99a8bba6a
165d7bb773f5a2b53fd6b0196107ccd001f312bb
refs/heads/main
2021-07-14T08:30:07.809468
2021-07-06T14:34:31
2021-07-06T14:34:31
4,136,850
1
0
null
2021-07-06T14:34:32
2012-04-25T13:35:43
Python
UTF-8
Python
false
false
1,937
py
import traceback from flask import request, jsonify, make_response from oac_web_service import app from oac_web_service.models.annotation import Annotation, AnnotationError from java.lang import String, NullPointerException from com.hp.hpl.jena.tdb import TDBFactory from com.hp.hpl.jena.query import QueryParseException...
[ "wilcox.kyle@gmail.com" ]
wilcox.kyle@gmail.com
78d31fe9f28ab2f74a52fd05337904956f1874d5
cff557ebdc39d7f71228bdb3f52c86888b4bf64f
/app7 - Data from web/realEstate.py
2468c011970a3d8ff8534ba58e868dc9f22dd1ed
[]
no_license
masih68kh/Python-Projects
e2a388678db1d4d4b8e88b93f1d565b8fb7d8c00
7ab4fa504202f15706225fa4ce9970fffdbb51e4
refs/heads/master
2020-07-18T00:04:35.514791
2019-09-19T21:32:38
2019-09-19T21:32:38
206,130,304
0
1
null
2019-11-25T06:26:03
2019-09-03T17:08:29
HTML
UTF-8
Python
false
false
1,925
py
import requests from bs4 import BeautifulSoup import pandas as pd def number_extractor_from_string(strg): ''' accepts <strg> : string, that has \n and space char in it return the int value of the price that comes after $ ''' number = '' for char in strg: if char != '\n' and...
[ "masihkhodabandeh@Masihs-MacBook-Pro.local" ]
masihkhodabandeh@Masihs-MacBook-Pro.local
70237c341ae1c9585377c6c6ec289173ce92bdae
148044ba8412cfe9227201e82360770d6a7e9780
/check_screen.py
095f92651215f811b52a37d88fe1c3fbc9022209
[]
no_license
mwaskom/sticks_experiment
9e0b2af851e20f82cd8a3011b08ac061b0061191
fcfd98cb4528e9011168be27b2121a96514b3fa3
refs/heads/master
2023-08-24T06:22:27.939464
2015-08-28T23:53:16
2015-08-31T04:38:24
38,704,521
0
0
null
null
null
null
UTF-8
Python
false
false
424
py
import sys from psychopy import visual, event import cregg def main(arglist): p = cregg.Params("scan") p.set_by_cmdline(arglist) win = cregg.launch_window(p) visual.Circle(win, p.array_radius, edges=128, lineColor="white", lineWidth=2).draw() ...
[ "mwaskom@stanford.edu" ]
mwaskom@stanford.edu
34f4aaaee0d22405b25fc632c1962fb509840b62
8fe200d255cae8bb17caa0f6827bb3d5b034f9e3
/TEST/test2.py
509f4f9ba2fd4fd4ca8cd5a6e2ce8859d8f80510
[]
no_license
WoojungChoi/Python_Algorithm
3a3358cfe4108faf8936746966d0b5695be7b11d
9766c1900daf0bdd0df32bb253067ccc3cbe98a3
refs/heads/master
2020-06-11T17:43:25.088592
2020-05-25T13:55:38
2020-05-25T13:55:38
194,038,787
1
0
null
null
null
null
UTF-8
Python
false
false
1,812
py
class node: def __init__(self, key=None, left=None, right=None): self.key = key self.left = left self.right = right class Dict: x = p = node z = node(key=0, left=0, right=0) z.left = z z.right = z head = node(key=0, left=0, right=z) def search(self, search_key): ...
[ "44879897+WoojungChoi@users.noreply.github.com" ]
44879897+WoojungChoi@users.noreply.github.com
77ffe1bf4264412518a3abe490c66cde3c819ab3
2f2079f23ce7373fe96d08cfd24577fac6f40962
/accounts/views.py
a1e39e376209acaeb346a33be8cd3bb29bbcbf4f
[]
no_license
shinhaan/greatkart
f1195eb81276be3541df22c1830e89cc77a8dff1
bd0215de9ec98f17de7084cc94f48647a4401151
refs/heads/main
2023-06-14T10:26:20.195947
2021-07-11T11:09:55
2021-07-11T11:09:55
384,908,455
0
0
null
null
null
null
UTF-8
Python
false
false
11,895
py
from django.shortcuts import render, redirect, get_object_or_404 from .forms import RegistrationForm, UserForm, UserProfileForm from .models import Account, UserProfile from orders.models import Order, OrderProduct from django.contrib import messages, auth from django.contrib.auth.decorators import login_required ...
[ "noreply@github.com" ]
shinhaan.noreply@github.com
61a7de6458a93abbd4bcecb609a66744676cb232
dc9791ba93f46274c859823ec4c94cfd5e7b314f
/mne/lib/python2.7/site-packages/mne/realtime/mock_lsl_stream.py
d30654dd044407b4ad234122d037895f4a440744
[]
no_license
GanshengT/INSERM_EEG_Enrico_Proc
84f8225920227dee89b98d9065fa6036b54a66d7
343edc32e5c9705213189a088855c635b31ca22b
refs/heads/master
2020-06-11T08:31:08.689920
2020-04-23T07:29:44
2020-04-23T07:29:44
193,898,744
2
0
null
null
null
null
UTF-8
Python
false
false
3,355
py
# Authors: Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import time from ..utils import _check_pylsl_installed, deprecated from ..io import constants RT_MSG = ('The realtime module is being deprecated from `mne-python` ' 'and moved to its own package, `mne-realtime`. ' 'To insta...
[ "aegean0045@outlook.com" ]
aegean0045@outlook.com
4a010a42bfbd615afad1fd018c160396fa4dbd69
40f4626ec26f23923c2b19d7ed24f3c512495182
/src/kangqi/task/compQA/model/module/cross_attention_indirect.py
3606a67410715c49755b69f8e4e28061ab9a5fcc
[]
no_license
Zjhao666/CompQA
c937c382a2f0a0fce4fdda8efda7c916b3e4c978
4bb2abc40428373481909e02543062a7388615bd
refs/heads/master
2023-02-09T02:28:09.966576
2020-12-31T21:18:32
2020-12-31T21:18:32
null
0
0
null
null
null
null
UTF-8
Python
false
false
5,278
py
""" Author: Kangqi Luo Goal: Combine the structure of ABCNN-1 and AF-attention (A Decomposable Attention Model for Natural Language Inference) We are using the module in compQA scenario, where the rhs (path) is represented by both pwords and preds. Therefore, we send'em together into the module, making it a little bit ...
[ "luo.kangqi@qq.com" ]
luo.kangqi@qq.com
30bb87520457b778c50a45b260ec8d4f109784c7
2f0d81065ccfe27a73b66d82e1d938ec565cbe13
/111.py
e70c4ae2eb15d74893927282fec361268441bea0
[]
no_license
likaon100/bootcamp_alx
bbdc82ac3d6f254326051e9360e89aeac33b5b02
5f0d1c99261ee1ef6241a506bec82ff5c1413eed
refs/heads/master
2020-03-31T10:09:44.717419
2018-12-17T22:55:02
2018-12-17T22:55:02
152,124,563
0
0
null
null
null
null
UTF-8
Python
false
false
827
py
produkty = { "ziemniaki": 3, "cebula": 2, "woda": 1.5, "piwo": 2.5, "zimioki": 3.5, "browarek": 4.0, } koszyk = {} while True: print("W naszym sklepie oferujemy: ") for produkt in produkty: print(f" - {produkt} - w cenie: {produkty[produkt]} PLN") print() wybor_produkt...
[ "luk.podlewski@gmail.com" ]
luk.podlewski@gmail.com
0c6ec38b710115292a757031f6f00f64e4877fb2
44924df18da6a8400ad97014d486d176d3098753
/test/geometry/test_homography.py
5edb347580663a84ef0f62743efd9e5094f9cd9b
[ "Apache-2.0" ]
permissive
ducha-aiki/kornia
d41cd60fdcb3f03c9bcb8f304efa70db8a6436ce
0aa7a7110872f610f3947eccc4a35f0f0c7d79bd
refs/heads/master
2023-01-30T12:37:45.760726
2021-10-13T13:09:30
2021-10-13T13:09:30
192,566,129
3
0
Apache-2.0
2023-01-15T21:02:45
2019-06-18T15:21:56
Python
UTF-8
Python
false
false
12,160
py
import random import pytest import torch from torch.autograd import gradcheck import kornia import kornia.testing as utils from kornia.geometry.homography import ( find_homography_dlt, find_homography_dlt_iterated, oneway_transfer_error, symmetric_transfer_error, ) from kornia.testing import assert_cl...
[ "noreply@github.com" ]
ducha-aiki.noreply@github.com
b06eb50e6c329475c873b1a0734e44d1e58e64c5
38576a9ac324d6b8d870f812ea6e6589c45c0386
/maps/oldstuff/ai/fleet.py
e1fe28199c46bacc460a521bcf6a8189b644f939
[]
no_license
arsatiki/star-admiral
8aa19210d6763230ce8e81a73130b9395e53041a
8d5d66dcf79484528ff3b6c2472f357044424722
refs/heads/master
2021-01-01T15:30:27.066128
2009-03-02T20:01:35
2009-03-02T20:01:35
96,899
4
0
null
null
null
null
UTF-8
Python
false
false
1,216
py
from future import division from math import radians import cmath class Ship(object): """Ship(mass=100, speed=5, attack=20, hitpoint_mul = 2, pos = 0)""" def __init__(self, mass=100, speed=5, attack=20, hitpoint_mul = 2, pos = 0j): super(Ship, self).__init__() self.mass = mass self.ine...
[ "ars@iki.fi" ]
ars@iki.fi
dc34c1f11f334a3d915def0a7e3345ee0781e7e9
38ea041a35d6e1bbdcb875cfff1a313b02476e81
/appModules/AddContact.py
515d8116725ef529922d9747efd7df54bad352c6
[]
no_license
saraliuhou/DataDriverTestFrameWork
1824d0b771c20a87ce3d0b5cebf5cf1e70b4226b
5f243026e9f03e96fa010f945fb31b7545759798
refs/heads/master
2020-06-01T00:19:32.435417
2019-06-12T09:10:09
2019-06-12T09:10:09
190,554,542
0
0
null
2019-06-06T09:29:50
2019-06-06T09:29:50
null
UTF-8
Python
false
false
2,262
py
from pageObjects.HomePage import HomePage from pageObjects.NewContact import AddContactPage from selenium.webdriver.support.wait import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from util.ParseConfigurationFile import ParseConfigFile class NewContactPersonAction(object): def __...
[ "281754043@qq.com" ]
281754043@qq.com
b13fd0bd13938b71d53b4ba7187e81aa986fa5b7
379f65890dbdcc773f98ecba5f77a9f5ac7b3cde
/temp/SVM_Classifier.py
ead9e90c12749e9814ac4cd4d2bd264b18c15973
[]
no_license
SiriusExplorer/LiuZhen_Project
9ed3983f652bb002e3b9dc7aa4ae578920d3fde4
4f8d8e1a2e99cbdba74fdf41417a7a6fe3619cd6
refs/heads/master
2021-09-03T18:05:37.377363
2018-01-10T23:56:25
2018-01-10T23:56:25
108,834,956
1
0
null
null
null
null
UTF-8
Python
false
false
578
py
import numpy as np from sklearn.svm import SVC vector = np.load('./sieved_dataset_acc_pssm/trainset/right_pssm/n1/vector_np_lam39.npy') label = np.load('./sieved_dataset_acc_pssm/trainset/label_digit_nucleus01_np.npy') clf = SVC() clf.fit(vector, label) test_vector = np.load('./sieved_dataset_acc_pssm/testset/right_ps...
[ "noreply@github.com" ]
SiriusExplorer.noreply@github.com
d1b636ed6f52579d24b77748566ee0b2b1321c0c
2fae7d7ba6b2a4590fd4d90b1a491e919ec744de
/myPy/day04/day04-exam03-최소값찾기.py
3c02cc8ee23cca83d662d69c45d87e0a1108605f
[]
no_license
sw-Jack/Python
0952ded606f79c07c77a021b075e09b1e95caca4
c139301bf3a98f9b5289807ca8141febb947603b
refs/heads/master
2023-02-02T11:06:18.264799
2020-12-21T13:11:32
2020-12-21T13:11:32
290,997,124
1
0
null
null
null
null
UTF-8
Python
false
false
254
py
# 최소값 구하는 프로그램 def min(lst) : a = len(lst) minVal = lst[a-1] for i in range(1,a) : if lst[i] < minVal : minVal = lst[i] return minVal exlst = [10,43,46,2,100,12,9,78] print(min(exlst))
[ "jacksuwon@gmail.com" ]
jacksuwon@gmail.com
6872ae8eb5ec75cbb2419ad2d62cff26fed5eae2
1a31dfb66512aa66c407484f2ea8b0fb370669a4
/dstt/urls.py
ea10b8d0b93dbfa3fb49d2bb5b02982685ef0ae0
[]
no_license
nisha-eng/dstt
790129f2918e0210421039baba0a4e8c877a7627
bab89000242aec3a1a6fb05447ec52b14722809f
refs/heads/main
2023-03-01T02:50:20.767421
2021-02-05T05:23:08
2021-02-05T05:23:08
336,171,818
0
0
null
null
null
null
UTF-8
Python
false
false
1,056
py
"""dstt URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-based vi...
[ "mdipakpatidar@gmail.com" ]
mdipakpatidar@gmail.com
c7b2d0f1eb9fca968cf444a988542cce3378ac43
128ca08737d72d78d33530e4150fb406bbca78e2
/upwork/utils.py
588a218c0f4fe983cf21887c9a9acbb9e8ae05b5
[ "Apache-2.0", "BSD-3-Clause" ]
permissive
frolenkov-nikita/python-upwork
ef25828285caff8f310ac86cf9d6de414cb67937
d052f5caedc632c73ad770b1f822a8a494f6b34b
refs/heads/master
2023-06-01T09:28:48.092216
2021-07-01T16:07:10
2021-07-01T16:07:10
208,970,493
1
0
NOASSERTION
2019-09-17T05:57:01
2019-09-17T05:57:00
null
UTF-8
Python
false
false
4,989
py
# Python bindings to Upwork API # python-upwork version 0.5 # (C) 2010-2015 Upwork from datetime import date from upwork.exceptions import ApiValueError def assert_parameter(parameter_name, value, options_list): """Raise an exception if parameter's value not in options list.""" if value not in options_list: ...
[ "mnovozhilov@upwork.com" ]
mnovozhilov@upwork.com
c0b4fa2db3f14cfcc949209826036005ad046e4e
8ff3a04cebb9f6b99d113fc3d19382396c77a0c7
/cs211/FiveTwelve-Notes.py
ad3dddb07b47c2e17788edd5437cf850d90366c8
[]
no_license
lmjim/year1
20d533a5e8e7a1474d0477614096e172fd9bf976
c31701c819a003066b48fc0d8d98e64cff2defe1
refs/heads/master
2021-05-18T23:27:42.168825
2020-03-31T02:23:10
2020-03-31T02:23:10
251,476,503
0
0
null
null
null
null
UTF-8
Python
false
false
1,156
py
>>> tiles = [] >>> for row in range(4): columns = [] for col in range(4): columns.append(None) tiles.append(columns) >>> print(tiles) [[None, None, None, None], [None, None, None, None], [None, None, None, None], [None, None, None, None]] >>> rep = [] >>> for row in tiles: value_list = [] for ti...
[ "ljim@uoregon.edu" ]
ljim@uoregon.edu
c09e78fbea37df5389c7c187b4ba191210940cd3
9569555f262c6cb8701a8e4c56b2c0d3499b068a
/main/views.py
96058f887f8e186f7e7c9146a3eaaaae3fb50ea6
[]
no_license
hanelso/mysitepy
6af327d92bbe103794712a20d4a3ffc65e0d5022
8e6facdc6baa79b66452b03d6c251d9d5f95e5fd
refs/heads/master
2020-04-01T13:20:42.330778
2018-10-26T07:08:32
2018-10-26T07:08:32
153,248,563
0
0
null
null
null
null
UTF-8
Python
false
false
307
py
from django.db.models import Max from django.shortcuts import render # Create your views here. from user.models import User def index(request): print(User.objects.aggregate(id=Max('id'))['id']) print(type(User.objects.aggregate(id=Max('id'))['id'])) return render(request, 'main/index.html')
[ "gjsxj1992@gmail.com" ]
gjsxj1992@gmail.com
6ca39e346afe1a24d2e9392a806a89b65aac8f46
5e04722e7b1e259065af53db329ef49517f78212
/blog/migrations/0008_auto_20180427_1739.py
f38793c3e22f7cf5a01ca59476ef2db1bca1b4b5
[]
no_license
luckyqiang123/gitmyblog
d4c52dadec2fb542e7b4eaafb424034004d06a9e
b51b5bbfbd7013169e22ff1d25908fcf845b90b1
refs/heads/master
2020-03-12T05:32:11.667077
2018-06-19T11:07:17
2018-06-19T11:07:17
130,465,467
0
0
null
null
null
null
UTF-8
Python
false
false
710
py
# Generated by Django 2.0 on 2018-04-27 09:39 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('blog', '0007_auto_20180306_2107'), ] operations = [ migrations.AlterField( ...
[ "zhangzhiqiang@zhangzhiqiang-X450VB.lan" ]
zhangzhiqiang@zhangzhiqiang-X450VB.lan
d8f3167c34525042bfc9833d02d8d53673ff7978
79aa4b99a48bb16a907916ad63c902443420541a
/0019.py
e1253c96f9a4ecabdca22315f7ecd7d39377a98c
[]
no_license
mach8686devops/leetcode-100
62dec66c719d7cfa120ca9505701df49d8d5b982
f90526c9b073165b86b933cdf7d1dc496e68f2c6
refs/heads/main
2023-04-11T06:28:15.059587
2021-04-13T12:11:54
2021-04-13T12:11:54
329,346,572
0
0
null
null
null
null
UTF-8
Python
false
false
375
py
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode: l = [] while head: l, head = l + [head], head.next if n != len(l): l[-n - 1].next = ...
[ "zhangjohn202@gmail.com" ]
zhangjohn202@gmail.com
5e634d96c95aaf800062ab559c679f183064a4e5
8356b36e54b04c469104660f7e3a116e3147dc34
/top_headlines.py
c9b15180bd08ce35beabbf803ba366f97e08c90c
[]
no_license
skyyi1126/SI507_HW11
d0066cb443d4636d93f599c9b260898b8e40d7b3
2e13ea4cb01d9eec55c1d8dee2c87696da01ea14
refs/heads/master
2022-12-10T00:06:15.882770
2018-12-03T03:02:02
2018-12-03T03:02:02
160,121,919
0
0
null
2022-12-08T01:27:33
2018-12-03T02:36:51
Python
UTF-8
Python
false
false
1,608
py
from flask import Flask, render_template import requests from secrets import api_key import json import datetime app = Flask(__name__) def get_articles(section): url = "https://api.nytimes.com/svc/topstories/v2/" + section + ".json" params = { "api_key": api_key } results = requests.get(url, p...
[ "sky971126@163.com" ]
sky971126@163.com
924fb21f59270b7ce97c1bb05d536a81999db58b
b0f287876ac885504c8d52b343edd56e58ee147d
/reference.py
197777c73e663bc6d72e60c5fe2234c9964337f6
[]
no_license
Swoorup/idapylibs
a751b622748a58a056a0ea2b36f451d5abb3c68c
0f10241c99ec326a45b9d35a411f66da4a1f2521
refs/heads/master
2016-09-05T18:06:57.068118
2015-09-14T04:12:56
2015-09-14T04:12:56
10,644,433
3
0
null
null
null
null
UTF-8
Python
false
false
121
py
import find class Filter(object); def __init__(self): def debugprint(self, str): print("FILTER: " + str) def
[ "satanic_dementia143@yahoo.com" ]
satanic_dementia143@yahoo.com
abee20e74748f84b81263b5a7dca482647bdac3d
acb8e84e3b9c987fcab341f799f41d5a5ec4d587
/langs/9/v4g.py
947f100ab07df7782ca283e84a091c434fd16de6
[]
no_license
G4te-Keep3r/HowdyHackers
46bfad63eafe5ac515da363e1c75fa6f4b9bca32
fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2
refs/heads/master
2020-08-01T12:08:10.782018
2016-11-13T20:45:50
2016-11-13T20:45:50
73,624,224
0
1
null
null
null
null
UTF-8
Python
false
false
486
py
import sys def printFunction(lineRemaining): if lineRemaining[0] == '"' and lineRemaining[-1] == '"': if len(lineRemaining) > 2: #data to print lineRemaining = lineRemaining[1:-1] print ' '.join(lineRemaining) else: print def main(fileName): with open(fileName) as f: for line in f: ...
[ "juliettaylorswift@gmail.com" ]
juliettaylorswift@gmail.com
2132ca489839efb59eecac3da30efd56457831e6
18eac94ff076c1eecd72870ef93ae656906e8673
/supervised_learning/0x06-keras/13-predict.py
e2426676d174b5ff52b5fd6940693d363bda35a2
[]
no_license
dgquintero/holbertonschool-machine_learning
c1331ff87e053f9c143a0e503e8db177dfc7aafe
c80073d0ef68deeedbe2d991e296ef75f58a220f
refs/heads/master
2022-12-19T21:49:10.581793
2020-10-15T14:56:22
2020-10-15T14:56:22
279,329,167
0
1
null
2020-09-25T19:11:52
2020-07-13T14:42:03
Python
UTF-8
Python
false
false
574
py
#!/usr/bin/env python3 """function predict""" import tensorflow.keras as K def predict(network, data, verbose=False): """ function that tests a neural network Arguments: network: the network model to test data: the input data to test the model with labels: are the correct one-hot l...
[ "dgquintero02@hotmail.com" ]
dgquintero02@hotmail.com
38330c2113ca389eab763c88370aae6d7a5fbc3e
26a36f20246724bf9be0f2050e1185e1e647014a
/python/mirror.py
b155d5db5db0d83f065936ca4be55bc129b31f2c
[]
no_license
lddsjy/leetcode
b80b108637ea65220516b4ffb565bdd6fee7b008
5fee1609d3610fdc1ddfdaf998cd1eade6ddc14e
refs/heads/master
2021-07-05T01:33:02.762558
2021-01-24T08:05:45
2021-01-24T08:05:45
218,760,249
0
0
null
null
null
null
UTF-8
Python
false
false
387
py
# -*- coding:utf-8 -*- # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: # 返回镜像树的根节点 def Mirror(self, root): if not root: return None root.left, root.right = root.right, root.left self....
[ "710910630@qq.com" ]
710910630@qq.com
c4a498197bd65892c63d8b651006a2e100b27e0c
48e124e97cc776feb0ad6d17b9ef1dfa24e2e474
/sdk/python/pulumi_azure_native/media/v20210601/get_transform.py
2d5107073354128ca98d5c3db8d4db0c9a68f79d
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
bpkgoud/pulumi-azure-native
0817502630062efbc35134410c4a784b61a4736d
a3215fe1b87fba69294f248017b1591767c2b96c
refs/heads/master
2023-08-29T22:39:49.984212
2021-11-15T12:43:41
2021-11-15T12:43:41
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,036
py
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
[ "noreply@github.com" ]
bpkgoud.noreply@github.com
69aed622e4876c23b75c4b21c7f103a89fbf8bc9
2f081a778580db03fec64e17f7633ce4acfa0cee
/model.py
fc181f1e919f594d818ebd3d588d303f48397f2b
[]
no_license
karaiyaashu/chat-bot
23554258f2d36b2478054b4bab490e776c93509d
b373b23f99f0cf1c816eb572c2d99de7ec9a4145
refs/heads/master
2023-03-01T11:36:16.515911
2021-01-31T10:55:53
2021-01-31T10:55:53
334,605,618
0
0
null
null
null
null
UTF-8
Python
false
false
584
py
import torch import torch.nn as nn class NeuralNet(nn.Module): def __init__(self, input_size, hidden_size, num_classes): super(NeuralNet, self).__init__() self.l1 = nn.Linear(input_size, hidden_size) self.l2 = nn.Linear(hidden_size, hidden_size) self.l3 = nn.Linear(hidden_size, num...
[ "karaiyaashutosh@gmail.com" ]
karaiyaashutosh@gmail.com
e849c39bca34e650268bdd2541dc18a59e06f6a8
739d713d21528853c879ed404787272d8a7eca12
/launch/Loggings.py
f8b47faefd0c33cb3709aeeb2b2af2a1547afd4b
[]
no_license
primus2019/Ressistant
1dc0e4a7981d3bf9b36561f7be82d8cd9e0d7177
cca4fe6b688caf82ec94a9c806d95c00553a79a5
refs/heads/master
2020-06-16T11:49:46.684401
2019-07-29T07:53:28
2019-07-29T07:53:28
195,562,134
0
0
null
null
null
null
UTF-8
Python
false
false
919
py
import sys sys.path.append('.') import os def ReadLog(listNo, ENList): fileName = 'log/List_' + (str)(listNo) + '.log' if not os.path.isdir('log'): os.mkdir('log') if not os.path.isfile(fileName): with open(fileName, 'a+') as log: log.write((str(0) + ' ') * len(ENList) + ...
[ "linchengji@Sha-51433-Mba.local" ]
linchengji@Sha-51433-Mba.local
1b51d266eac14d71dc95534f42206ded8f0809a1
59d03a204de30d6d2160ae8b3346f852b7bd5fce
/meiduo_mall/meiduo_mall/utils/exceptions.py
be9036e00b9ce684272ae64bdf3e1ed2e29ed1d4
[]
no_license
eninem123/meiduo_mall
40d8b67f95ef98d6b3e9810a9fdbd7ef87dd323e
4d6d0b526e026bf31515abb546c72d7ed48495c6
refs/heads/master
2020-04-06T10:40:19.614955
2018-11-13T14:46:19
2018-11-13T14:46:19
157,387,690
0
0
null
null
null
null
UTF-8
Python
false
false
1,337
py
""" 由于一些数据库的异常django不能捕获,要自己捕获 做个异常处理的方法 """ from rest_framework.views import exception_handler as drf_exception_handler import logging from django.db import DatabaseError from redis.exceptions import RedisError from rest_framework.response import Response from rest_framework import status # 获取在配置文件中定义的logger,用来记录日志 ...
[ "2442972114@qq.com" ]
2442972114@qq.com
48193ed877c9dc01d8759a30ba0ef88a6bbd6f53
daaefa367aad90d6977bb94d9208d7a35606cf26
/rent_crawl.py
c3989dc0a25688e5a8a4e43e3472b972286d6443
[ "MIT" ]
permissive
montypaws/crawl_smth
27d93bcdbb8266616f4e35be44251a8cda172158
1848dba19417c206a229fa8f53a909f940ad6359
refs/heads/master
2020-04-05T03:02:54.516377
2017-04-06T02:41:25
2017-04-06T02:41:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,770
py
#!/usr/bin/python # coding:utf-8 from bs4 import BeautifulSoup import re import os import sys import urllib import time import random import time #################### 配置开始################# # 版面配置 # 支持爬多个版面,取消下面的注释即可 # 二手房 # board = 'OurHouse' # 二手市场主版 # board = 'SecondMarket' # 租房 boards = ['OurEstate', 'PolicyEst...
[ "hustos@qq.com" ]
hustos@qq.com
7cd68e68d92dd9238eb4990c45759f3df352627e
960c564f5084643786dfcf85e5f1004677c080e1
/models/__init__.py
cda91e5d3e129e4bac32881fd524e29eb78a7365
[]
no_license
1204136013/web
cdc8fbe0039aff049213a379d0ca2bdd9166d662
570d242e8649dfbdca91995c8af9db99e77b1686
refs/heads/master
2020-08-22T21:10:54.929257
2019-10-21T05:40:05
2019-10-21T05:40:05
216,478,048
3
0
null
null
null
null
UTF-8
Python
false
false
5,521
py
import json import time from utils import log def save(data, path): """ data 是 dict 或者 list path 是保存文件的路径 """ s = json.dumps(data, indent=2, ensure_ascii=False) with open(path, 'w+', encoding='utf-8') as f: # log('save', path, s, data) f.write(s) def load(path): with open...
[ "1204136013@qq.com" ]
1204136013@qq.com
4aeb5076c559a2d62968ac097e20666249770856
03f9b8bdea312636afb4df3737b55cb0cc4b21ff
/CanIWin.py
3d81f1f782f454808169ef87a967ad9bee42ec2d
[]
no_license
ellinx/LC-python
f29dd17bbe15407ba0d06ad68386efdc9a343b56
9190d3d178f1733aa226973757ee7e045b7bab00
refs/heads/master
2021-06-01T15:21:24.379811
2020-10-29T04:37:07
2020-10-29T04:37:07
132,704,788
1
1
null
2019-05-15T03:26:11
2018-05-09T05:13:26
Python
UTF-8
Python
false
false
2,052
py
""" In the "100 game," two players take turns adding, to a running total, any integer from 1..10. The player who first causes the running total to reach or exceed 100 wins. What if we change the game so that players cannot re-use integers? For example, two players might take turns drawing from a common pool of number...
[ "ellin.xll@gmail.com" ]
ellin.xll@gmail.com
6276ed8fbaf501f6fe6c7314d1eee780a50c0c89
270d7f88e47683abd55c0191466c80513b2aa9f9
/tests/test_tta.py
9d0ba17296509b58febeed4a4f4c0b193716299d
[ "MIT" ]
permissive
williamberrios/pytorch-toolbelt
abdf8e455a4ffc79d2afbc92e80005a821fb97a9
4a24e6324b8270d31c08b8b2f667d740b9823377
refs/heads/master
2023-07-06T06:35:24.197821
2021-08-12T07:47:20
2021-08-12T07:47:20
400,866,088
1
0
MIT
2021-08-28T18:43:12
2021-08-28T18:43:12
null
UTF-8
Python
false
false
4,994
py
from collections import defaultdict import cv2 import torch import numpy as np import pytest from torch import nn from pytorch_toolbelt.inference import tta from pytorch_toolbelt.modules import GlobalAvgPool2d from pytorch_toolbelt.utils.torch_utils import to_numpy from pytorch_toolbelt.zoo import resnet34_unet64_s4...
[ "ekhvedchenya@gmail.com" ]
ekhvedchenya@gmail.com
54ab201680f25d7abaa8c55274625c3ed557baa0
417bb035cb6cc60aa085c6ebbd62c37be75834cd
/backend/image/migrations/0001_initial.py
522ec51d3c1631d358e8b9954c36930633b00b0d
[]
no_license
linkedweb/image_upload
c62caf6d1afb2a89cc18bc9b6bb14afb43191f06
08176c31b95b1e46cf84cc3feafa76fc8319b044
refs/heads/main
2023-06-08T13:58:45.420061
2021-06-25T19:08:46
2021-06-25T19:08:46
379,767,837
0
4
null
null
null
null
UTF-8
Python
false
false
554
py
# Generated by Django 3.2.4 on 2021-06-24 00:10 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Image', fields=[ ('id', models.BigAutoField...
[ "brkicb1@gmail.com" ]
brkicb1@gmail.com
2f876f6a85661251f0ba85f749269bb1b2e63c24
e2efa339cf6fb017e1d1898325b363a69c227409
/app.py
6367bcdbeda570b322259488161e00e0d12605db
[]
no_license
lm10pulkit/update_delete
201b22b3816606640ab22a0f63c7bf2d58ed6295
c9c935e070f555c006dca00fd0940863fcc0790d
refs/heads/master
2020-04-15T18:32:53.239716
2019-01-09T19:07:40
2019-01-09T19:07:40
164,915,990
0
0
null
null
null
null
UTF-8
Python
false
false
3,733
py
from flask import Flask ,session, render_template, request, redirect,url_for,g from flask_mysqldb import MySQL from flask_bcrypt import Bcrypt import os # intializing the app app = Flask(__name__) #secret key app.secret_key= os.urandom(24) # setting up database app.config['MYSQL_HOST']='localhost' app.config['MYS...
[ "root@localhost.localdomain" ]
root@localhost.localdomain
0e8bd19dbae95853ce77bbf96277626db3436873
199ad938261bb0549e43ec43c92ebdf0c915071f
/variation6/tests/test_distance.py
6af7cc6d0d63458100e9eed882e24f1b805b5b0a
[]
no_license
pziarsolo/variation6
71492eb8f9a7e4335d0fb170064e131a40c9b6fe
f07b23743beea3349fd5b7d4b9f4f26da8a17713
refs/heads/master
2020-08-29T15:44:03.909890
2020-06-12T09:35:21
2020-06-12T09:35:21
218,078,637
1
0
null
null
null
null
UTF-8
Python
false
false
19,357
py
import unittest import math import numpy as np import dask.array as da import variation6.array as va from variation6.stats.distance import (calc_kosman_dist, _kosman, calc_pop_pairwise_unbiased_nei_dists, calc_dset_pop_distance) from variati...
[ "pziarsolo@upv.es" ]
pziarsolo@upv.es
d2fc626eaf7afbb9d52a38a71bba35eb3a73bd85
9b5e8478e627dc0b71948ed1f78efa5854b60f27
/comment_service/comments/migrations/0001_initial.py
07a823a6a302cdb690925b7fe2b6c934142ba5e5
[]
no_license
Nurinuri2020/Comment-Service
b1dfdccb0cc5474c3ce8ce606e3d2215aa541298
b22eea2e7d836496318a4e18d0bdf51e836f2955
refs/heads/master
2023-01-10T19:20:02.070985
2020-11-09T07:03:26
2020-11-09T07:03:26
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,106
py
# Generated by Django 3.1.1 on 2020-10-08 07:41 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('contenttypes', '0002_remove_content_type_name'), ('posts', '000...
[ "nuraimaratova50@gmail.com" ]
nuraimaratova50@gmail.com
34da5761c6f73408870ae13fc19165a6137f3d16
310763ba0b9d4803fa727555913e0e4751177557
/gr-MyRadio/python/qa_time_calc.py
0b9fd0b33427b06e56c0bc149b0fded90dc40f19
[]
no_license
cbodes/radio
b10fbbdef26fd32beb246fc6cada36f78824585f
92d9f11552d316ca8f04a3759705883121f0b87c
refs/heads/master
2020-04-08T15:32:21.632324
2018-12-06T23:49:55
2018-12-06T23:49:55
159,482,917
0
0
null
null
null
null
UTF-8
Python
false
false
1,218
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2018 <+YOU OR YOUR COMPANY+>. # # This is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. #...
[ "bode4444@yahoo.com" ]
bode4444@yahoo.com
42b3478a1ae10ed36c842324a2e9135bffe1ac66
12fcd999322c946b160bb43fc3b8b255a60cc48e
/demo.py
b878babe9f39eb2f85c697cac1a5a9efbea51a41
[]
no_license
hongduhong/HTMLTestRunner-BSTestRunner
5c8cadfb7b906ff44dd4042558fe5e1cfc94a20a
ec61265a5a7182b182f1af3b1fe5743641d65dfd
refs/heads/master
2020-07-26T18:56:52.828744
2019-09-16T07:32:28
2019-09-16T07:32:28
208,738,697
4
0
null
null
null
null
UTF-8
Python
false
false
237
py
import unittest import BSTestRunner class DemoTest(unittest.TestCase): def test_pass(self): self.assertTrue(True) def test_fail(self): self.assertTrue(False) if __name__ == '__main__': BSTestRunner.main()
[ "1918991791@qq.com" ]
1918991791@qq.com
32508c5eceee6c55b16c8bf3f92d09b0b222487b
4c9d97989a2b716e4b3e942c0453ea2b0473c61a
/tests/test_utils.py
bdd51d4d3df44c91f96fff3a2875dc65909c509d
[ "BSD-2-Clause" ]
permissive
andvikt/mqtt_decorator
23418a8dae2844bed840f8f5fe26e4b3222d37e5
36bf76d3d6fa548172db32cdf002d68c96c7a535
refs/heads/master
2020-05-24T16:18:28.481000
2019-06-24T20:56:18
2019-06-24T20:56:18
187,354,204
0
0
null
null
null
null
UTF-8
Python
false
false
4,696
py
from logging import basicConfig, DEBUG basicConfig(level=DEBUG) import smarthome.rules from smarthome import utils, const import pytest import asyncio import typing from dataclasses import dataclass, field def test_proxy(): from smarthome.utils.proxy import LambdaProxy, proxy @dataclass() class TestObj: ...
[ "andvikt@gmail.com" ]
andvikt@gmail.com
1fbf4a18a1e4ea48b4004288139d3c955df1f4aa
503545b5e39fe8cc88b73618de270fffb23b0ecd
/valid_tlds.py
34913b7fe391c9ddacef5e1f855fd5b36ed07487
[]
no_license
areusecure/python
ae3c6589fe20e2d7d4b8550a72a2186feb078f6d
a4f5482b16b9d5a6d844ccdc65af3f351998f425
refs/heads/master
2020-12-25T10:49:19.395240
2016-07-09T20:02:24
2016-07-09T20:02:24
62,964,556
1
0
null
null
null
null
UTF-8
Python
false
false
364
py
import requests # Retrieved the list from http://data.iana.org/TLD/tlds-alpha-by-domain.txt tlds = "" tlds += "tlds = [" #with open('/Users/jj/Desktop/tlds.txt','r') as f: f = requests.get("http://data.iana.org/TLD/tlds-alpha-by-domain.txt") for line in f.iter_lines(): if "#" not in line: tlds += ("," + "'" + line.s...
[ "jj@areusecure.se" ]
jj@areusecure.se
8691eddb8151192864bb39bc919ebce0fa029a30
4abce61314c64510ccd337b2fc144e2edbe38a5d
/api/my_env/bin/easy_install
743c85b1b9218ab0eadef8d7d245c793db1df23b
[ "MIT" ]
permissive
mogmog/tracker
ed442c36fb2130ba479da9b7b70355fde99a0f10
d2cff0a93330104b2138e384de301ee55c16c0ef
refs/heads/master
2020-03-21T08:12:20.854243
2018-07-05T11:40:48
2018-07-05T11:40:48
138,328,153
0
0
null
null
null
null
UTF-8
Python
false
false
280
#!/c/Users/graha/OneDrive/Documents/Dev/HD/api/my_env/bin/python # -*- coding: utf-8 -*- import re import sys from setuptools.command.easy_install import main if __name__ == '__main__': sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) sys.exit(main())
[ "mogmog@gmail.com" ]
mogmog@gmail.com
ca972e2602a74cbbbc8bb86ccc454360091054c8
51eeec4731f99b2d9a990d9f22a00d95e5165eb9
/temperature_celsius_or_farenheit.py
53689b2615cc1d1e700c18185ce1ae7248c53b98
[]
no_license
LRG84/python_assignments
d54c7cac5313d5d8f60a2669c1ba5a251b70306d
64eb9e0faaef72a1b56fc141a4e546dea7866d1b
refs/heads/master
2020-02-26T13:56:23.822193
2016-07-18T15:10:48
2016-07-18T15:10:48
62,674,163
0
0
null
null
null
null
UTF-8
Python
false
false
1,219
py
#psuedo code #enter temperature #if temp >60 and <90 print "warm" #if temp >90 print "hot" #if temp <60 print chilly #give celsius or farenheit option #convert celsius to farenheit #convert farenheit to celsius (F° - 32) × 5/9 temp = input("Are you entering data in Celsius or Farenheit? Type C or F: ") if temp == "C" ...
[ "lisa.renee.goldberg@gmail.com" ]
lisa.renee.goldberg@gmail.com
7bff68f50a734ac45c488785772ff0fd493eb306
ef46d01cb207aaea773e95e32e871000be3a1dc1
/stack_implementation.py
8c573cbfbf952cf19e3567adc5e591e0b17bc86e
[]
no_license
karthiknandiraju/Datastructures_Algorithms.py
d81c989c3cabdbc4e83d1337c65c540c151af3c3
3efb546bc29f22c83b031c1bda429fe0c50a4e5b
refs/heads/master
2020-03-24T04:33:17.491280
2018-07-31T15:46:38
2018-07-31T15:46:38
142,456,998
0
0
null
null
null
null
UTF-8
Python
false
false
614
py
class Stack : #Initialize the stack def __init__ (self) : self.stack = [] #Check if the stack is empty o(1) def isEmpty(self) : return self.stack == []; #Push data into the stack o(1) def push(self, data) : self.stack.append(data); #Pop data from the stack o(1) ...
[ "karthiknandiraju@Karthiks-MacBook-Pro.local" ]
karthiknandiraju@Karthiks-MacBook-Pro.local
bfb74d3585be70cdde795e3d0cd1c184f9d9ae8b
fa1dea1fe0fdefb7dee1f475b5aced0798b15b80
/matmult-pure.py
53854ae4b8d4d28c526cb24efe5468381a956cd8
[]
no_license
JeremyBYU/ROB550-WK1
319dcf5c31097632625574593324283ad2a81359
d0fd3cf72367821f5f4d84134f45217d76a087e5
refs/heads/master
2020-09-19T09:22:54.147750
2016-09-12T14:23:01
2016-09-12T14:23:01
67,654,854
0
0
null
null
null
null
UTF-8
Python
false
false
2,072
py
#!/usr/bin/python # Author: Jeremy Castagno # Date: Sept 7 2016 # Summary: # This program will multpy two matrices (A, B) together using pure Python # The user will prompted for the sizes of A and B # The matrices are defined in two files (A.csv, B.csv). import sys import common # Common functions module # Rea...
[ "jeremybyu@gmail.com" ]
jeremybyu@gmail.com
0c0753a19e552559e99c3692b53e252d6e7c2f17
a394b1053f018ff8be63221c61682df03af4937b
/website/files/models/swift.py
d2f2d3e7d18987a01adea9d6d4c897ddbf6b2d2c
[ "Apache-2.0", "LGPL-2.0-or-later", "BSD-3-Clause", "LicenseRef-scancode-free-unknown", "MIT", "AGPL-3.0-only", "LicenseRef-scancode-unknown-license-reference", "MPL-1.1", "CPAL-1.0", "LicenseRef-scancode-proprietary-license", "LicenseRef-scancode-warranty-disclaimer", "BSD-2-Clause" ]
permissive
RCOSDP/RDM-osf.io
81b11d9511f6248ec9bccb6c586b54a58429e1e7
5d632eb6d4566d7d31cd8d6b40d1bc93c60ddf5e
refs/heads/develop
2023-09-01T09:10:17.297444
2023-08-28T04:59:04
2023-08-28T04:59:04
123,298,542
12
24
Apache-2.0
2023-09-12T08:58:28
2018-02-28T14:46:05
Python
UTF-8
Python
false
false
302
py
from website.files.models.base import File, Folder, FileNode __all__ = ('SwiftFile', 'SwiftFolder', 'SwiftFileNode') class SwiftFileNode(FileNode): provider = 'swift' class SwiftFolder(SwiftFileNode, Folder): pass class SwiftFile(SwiftFileNode, File): version_identifier = 'version'
[ "fujimoto@dhcp-200-009.soum.co.jp" ]
fujimoto@dhcp-200-009.soum.co.jp
8e2f6c94432692471d2dfc15299ebd9960577801
5f5ee86190e4f666f7fc58494c09caee013c1e6c
/main.py
13bfeaeddc63e52bd454afa431ea7124984c8edd
[]
no_license
menghsin-2021/air
e3c98ed78f79e1af4f99b58468a8dffa40f33831
ffdd4f318edd745383ffe55b3d1542243331dfc6
refs/heads/main
2023-04-27T07:52:38.463727
2021-05-02T13:21:04
2021-05-02T13:21:04
363,655,842
0
0
null
null
null
null
UTF-8
Python
false
false
1,865
py
from typing import List # TGS2600 import serial import time # SDS011 import struct from datetime import datetime # db from dbwrapper import DBWrapper db = DBWrapper() # TGS2600 COM_PORT = 'COM4' # 指定通訊埠名稱 BAUD_RATES = 9600 # 設定傳輸速率 # SDS011 PORT = 'COM3' UNPACK_PAT = '<ccHHHcc' ser_tgs = serial.Serial(COM_...
[ "lloivne4119@gmail.com" ]
lloivne4119@gmail.com
18941734a91d4caff0a60bd79814784876847b1e
d9a8d175c149e7c148bf9d2e8dc39427e1726f0a
/hurl/rl_utils.py
08a72eac9a43862bc474a4a0b98a67a865534786
[ "LicenseRef-scancode-generic-cla", "MIT" ]
permissive
parkerhzb/HuRL
de9e1bd5700975926015ac63206373de36b82dc2
c9d0710ff6fd67b3cdbd46fc031cdbc3b3738cd2
refs/heads/main
2023-08-28T04:49:13.586899
2021-11-02T23:59:42
2021-11-02T23:59:42
424,127,074
1
0
MIT
2021-11-03T07:20:49
2021-11-03T07:20:48
null
UTF-8
Python
false
false
5,979
py
# Some helper functions for using garage import numpy as np import torch from garage.torch.policies import GaussianMLPPolicy, TanhGaussianMLPPolicy, DeterministicMLPPolicy from garage.torch.q_functions import ContinuousMLPQFunction from garage.torch.value_functions import GaussianMLPValueFunction from garage.sampler...
[ "chinganc0@gmail.com" ]
chinganc0@gmail.com
11d3b382c3b1106935701e438e3452320d470392
8c41e9196b891920f3045498a4f0c9815a95e312
/api/src/base.py
962ee2f506e8a5390f524065ba62e3c14ce886b6
[]
no_license
JustChasti/markets_selenium_parser
f271389ba7f1c1df70dcc5dada6a6a439bee18e0
3a1434be792013008e7d329bdd37302d04fbbd83
refs/heads/master
2023-07-05T06:14:39.378279
2021-08-20T16:46:20
2021-08-20T16:46:20
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,475
py
from time import sleep from sqlalchemy import Column, ForeignKey, Integer, String from sqlalchemy.ext.declarative import declarative_base from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from sqlalchemy.engine.url import URL import psycopg2 from psycopg2.extensions import ISOLATION_LEVEL_AU...
[ "chastytim@mail.ru" ]
chastytim@mail.ru
d5e1939f099cf3e03251eb29a08dac4f28524a6f
7eedbe5c7d0a0d602d03bfe7d73878adca4c61e4
/src_old/calculus.py
20c434bac11cde88912e6138766eb575a8dce5ea
[ "MIT" ]
permissive
johndpope/GeLaTo
da413da5e718ed67b620af313ba99abb87b49c4e
e00577924b7d13f3d5d387583f457caf8065b004
refs/heads/master
2020-03-29T23:05:27.981692
2018-07-30T15:16:54
2018-07-30T15:16:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
17,757
py
# coding: utf-8 # TODO add action of diff operators on sympy known functions import numpy as np from itertools import groupby from collections import OrderedDict #from sympy.core.sympify import sympify from sympy.simplify.simplify import simplify from sympy import Symbol from sympy import Lambda from sympy import Fu...
[ "ratnaniahmed@gmail.com" ]
ratnaniahmed@gmail.com
c8dea1507ff8ae3d457df3085dc71c9c9935b51c
02faf850cb4282f419a75f27f1e32f7dbbc6abd2
/boards/tests/test_view_edit_post.py
8fce9709d2a08804dc0dc45d9dcd6b1d5e4b20a4
[ "MIT" ]
permissive
Berreyol/SpiralMediaTest
c7036a9726ff17d82a96ad4a3da0cf17c2d11a99
55d3b4900586ce9cf01b7f943a401358e50ab670
refs/heads/master
2020-12-21T01:12:40.069049
2020-01-27T08:20:03
2020-01-27T08:20:03
236,258,762
0
0
null
null
null
null
UTF-8
Python
false
false
4,293
py
from django.contrib.auth.models import User from django.test import TestCase from django.urls import resolve, reverse from django.forms import ModelForm from ..models import Board, Post, Topic from ..views import PostUpdateView class PostUpdateViewTestCase(TestCase): ''' Base test case to be used in all `PostU...
[ "alexberre97@gmail.com" ]
alexberre97@gmail.com
6f1348161cd3335d346bf92ea041c7be63205db0
bf1c7016681b5b7c6569a5f20d037e9c5db37854
/IV_semester/os/kernel/resources/task_at_hd.py
456ee60b8beec3db0c6ce99d2e9b41a2bd3194e1
[ "Beerware" ]
permissive
dainiusjocas/labs
ae62d4672f4c43d27b4e9d23e126fa9fb9cf58a9
25aa0ae2032681dbaf0afd83f3d80bedddea6407
refs/heads/master
2021-01-23T23:03:10.271749
2011-12-13T15:38:48
2011-12-13T15:38:48
6,511,648
1
0
null
null
null
null
UTF-8
Python
false
false
481
py
#!/usr/bin/env python import sys sys.path.append('.') from kernel.resource import Resource from kernel import kernel_data from kernel.helpers.bin_sm import BinarySemaphore class TaskAtHD(Resource): ''' ''' def __init__(self, opts = {}): opts['name'] = 'task_at_hd_' + str(kernel_data.RID) Res...
[ "hanniph@gmail.com" ]
hanniph@gmail.com
3ad6b6e4e9387b3b9cc5855347a729c5a5d8be58
49caef1f93bd4673530e0a4c54c59028fb7b54e6
/npg7/web_printscreen_zb/controllers.py
f5da2a2deb809c478d12f54592606a9e2f4de36e
[]
no_license
slevenhagen/addons-extra7.0
7622024198c0cf637f3f4767eb2b955532af3710
85611a86a0e1522fd88b5e6fbb217f425c4ae12d
refs/heads/master
2020-03-17T14:12:42.082766
2018-05-16T13:02:05
2018-05-16T13:02:05
133,663,372
0
0
null
null
null
null
UTF-8
Python
false
false
7,142
py
# -*- encoding: utf-8 -*- ############################################################################## # # Copyright (c) 2013 ZestyBeanz Technologies Pvt. Ltd. # (http://wwww.zbeanztech.com) # contact@zbeanztech.com # # This program is free software: you can redistribute it and/or modify # it under the...
[ "slevenhagen@novapointgroup.com" ]
slevenhagen@novapointgroup.com
b7e5c8ca9b89d3f15ba5ce45bd9f238361b9aea3
05eb7c2795da0059819ae4f964d0c71764010cf1
/utils.py
dcd9f40c7a7a25a24070e45ff1edf5b3fd9af0f9
[]
no_license
galyaminavas/FormalLangMatrixMult
095a7fc96cc760f01b5778100641a66550d331b3
a3ab5f1ab554105bad9168975d09b9b13442b3d8
refs/heads/master
2020-04-17T05:40:28.274817
2019-03-03T21:32:55
2019-03-03T21:32:55
166,291,447
0
0
null
null
null
null
UTF-8
Python
false
false
2,465
py
import sys class Grammar: def __init__(self): self.terms = [] self.nonterms = [] self.rules = [] def add_terms(self, terms): for t in terms: self.terms.append(t) def add_nonterms(self, nonterms): for n in nonterms: self.nonterms.append(n) ...
[ "galyaminavas@gmail.com" ]
galyaminavas@gmail.com
ed1eca89d11a78b66ce87c266840ae4b34b7ed9b
d32a9eeff0ec270002f27e8c7b15b4ab8f2b5911
/backend/backend/api/logger.py
79c5abd955ac17a0d7550e0140b46b33a555ec11
[ "MIT" ]
permissive
DOUGLASMENDES/alpharithmic-trading
538a8568432ea16a4b2d6e0b722c80f14712a6c7
41f3da302b97f0d67bb5e1af41800d92d3319e72
refs/heads/master
2023-07-07T07:50:47.729258
2019-10-21T02:54:48
2019-10-21T02:54:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
399
py
from websocket import create_connection class Logger: msg_placeholder = "{\"message\": \"%s\"}" def __init__(self, channel): self.ws = create_connection("ws://alpharithmic.herokuapp.com/ws/logs/%s/" % channel) def __del__(self): self.ws.close() def log(self, msg): self.ws.se...
[ "zhangjack27@gmail.com" ]
zhangjack27@gmail.com
19edfb5d48f61044424ab6c2a3dd832edbd0612a
daae0cf103b6c9f26065f7546a7dc79281fc0bde
/16/3.py
297df94c2bd4b2df86a41fbc8e26d6952e1e12d4
[]
no_license
oc0de/pyEPI
97a5d4db91d5459f407c9d414fc999de56885124
2b7cedecdd5b8665ab4f1ca4762a3fd5adcc9864
refs/heads/master
2021-09-05T09:32:53.646441
2018-01-26T03:58:10
2018-01-26T03:58:10
119,003,665
0
0
null
null
null
null
UTF-8
Python
false
false
371
py
def number_of_ways(n, m): cache = {} def helper(x,y): if x == y == 0: return 1 if (x,y) not in cache: ways_top = 0 if x == 0 else helper(x-1, y) ways_left = 0 if y == 0 else helper(x, y-1) cache[(x,y)] = ways_top + ways_left return cache[(x,y)] re...
[ "valizade@mail.gvsu.edu" ]
valizade@mail.gvsu.edu
e23b5f2e5fa60aa2d69a5bf41e58564aecd13058
683bd37c4f728a1c2330f7dcd2f2c7dfb01e29a6
/sudoku/ac3_basic.py
ed0ec57bf589d7e9ea1c5f0893e83756d5f3fde9
[]
no_license
NunotabaS/assignments
10da1d9e2db897a7f79049436a45288bcbf09570
6a0d586f53b2a400bee9cc252598dafd1db2fd23
refs/heads/master
2021-01-01T15:41:07.441899
2013-10-27T05:06:49
2013-10-27T05:06:49
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,026
py
import collections def generate_domain(puzzle): """Generate the domain maintaining binary constraints""" domain = dict() for x in xrange(0,9): for y in xrange(0,9): if puzzle[x][y] != 0: domain[(x,y)] = [puzzle[x][y]] else: domain[(x,y)] = [1,...
[ "knh_ch_mainland@126.com" ]
knh_ch_mainland@126.com
43bdd8748422792459050ea42d50e3bfced01a2b
6a220b93215b1ddde7e04622da9a7ae20cccd1c3
/libs/csv_reader.py
046884685b64fb8257fbeacf82a1acee326ee328
[]
no_license
open-sourcepad/python-testing-framework
527e36efba25c43eed8fe6d65774b686ead9b009
6043d95a85c93201eff46cccdbc8cd1a4cb36079
refs/heads/master
2022-07-10T13:29:31.673528
2020-05-26T10:13:28
2020-05-26T10:13:28
250,014,497
0
0
null
2022-06-27T16:11:17
2020-03-25T15:20:25
Python
UTF-8
Python
false
false
588
py
import csv from pathlib import Path from config import Config from .logger import Logger class CsvReader: def __init__(self, **kwargs): self.config = Config() pwd = self.config.get('root_url') file = f"{ pwd }" self.file = f"{ pwd }/assets/{kwargs.get('file')}.csv" def read(sel...
[ "djy@sourcepad.com" ]
djy@sourcepad.com
70429f73bbca6c8c28bbffeb622ee490018c69d8
95f21bdadb48a25321f76980ba72887255033343
/torch/fx/graph.py
0975962ff45a803dd2244f6ce861e2ca16d18f36
[ "BSD-3-Clause", "LicenseRef-scancode-generic-cla", "BSL-1.0", "Apache-2.0", "BSD-2-Clause" ]
permissive
chen-chentao/pytorch
e4f5215270aeb25c61ec700c4e142962ac1e56de
caa377f546306f8885fba1df230ae4db91dea2a4
refs/heads/master
2023-03-08T06:26:15.628237
2021-02-24T00:29:34
2021-02-24T00:32:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
39,433
py
from .node import Node, Argument, Target, map_arg, _type_repr, _get_qualified_name from typing import Callable, Any, List, Dict, NamedTuple, Optional, Tuple, Set, FrozenSet from dataclasses import dataclass from contextlib import contextmanager import torch import keyword import re import builtins import math # Mappi...
[ "facebook-github-bot@users.noreply.github.com" ]
facebook-github-bot@users.noreply.github.com
7299e4632f35352b74252a94b66eb182b8449e29
1fd6bffd21d94b488aa57e1b30a89ce2da24a434
/classifier/linear_classifier.py
db2769c4e43521b61f75b2c92a5d2520ef12528e
[]
no_license
caozhang1996/CS231N_svm_and_softmax
69afd5b0fe0cff1dbd3af0c0b9f6a2ae5efd184e
b5351b136a3a57f47e0e7a5f9f52ad1421dcadfb
refs/heads/master
2020-05-24T20:54:41.916910
2019-05-19T10:55:34
2019-05-19T10:55:34
187,464,816
0
0
null
null
null
null
UTF-8
Python
false
false
4,209
py
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Wed Dec 26 21:39:11 2018 @author: caozhang """ from __future__ import absolute_import from __future__ import print_function from __future__ import division import numpy as np from classifier.linear_svm import * from classifier.softmax import * class Lin...
[ "caozhang1996@gmail.com" ]
caozhang1996@gmail.com
2b15a8c4ea4e67a5056db053d6d3882075fb2628
9caaacb9ff660cf24619ed65e6f18daaa51c5b51
/praticeProg/hashtable.py
da6690e2577c7e218c23e5b6231d73b1fce4008c
[]
no_license
pavan097/Data-Structures
5bd1d9f04aa2cb782f80af55de9772e731a8bfa3
b4ba7d7f4e0e8bedc1fe45e3bb291d0368115b9e
refs/heads/master
2020-04-01T07:32:56.235685
2020-01-02T16:12:01
2020-01-02T16:12:01
152,993,741
0
0
null
2019-06-01T18:28:32
2018-10-14T16:18:36
Python
UTF-8
Python
false
false
470
py
# lst=[1,2,3] class Hash(): def insert(self,lst) size_of_table=10 hash_table = [list() for _ in range(size_of_table)] for i in range(len(lst)): index=int(i%size_of_table) ht[index]=a[i] print(hash_table) def search(self,value): ...
[ "noreply@github.com" ]
pavan097.noreply@github.com
130ef8765129f5bc1fdc767ebd8d062140d8c3b7
26f0b99b71d736962dfc371989429402c4a73ab6
/migrations/versions/45d712a6312a_user_table_created.py
fd1d2e0aceeecd391a284e5b3ba86b69cfe0ca4f
[]
no_license
Bowrna/microblog
d7a6e45a42a4e6cd016d2ef18abfbac1e35742ff
14f6eac549d180d798f1d516039122b08e222f2b
refs/heads/main
2023-08-02T23:57:40.781357
2021-10-03T12:45:45
2021-10-03T12:45:45
404,637,516
0
0
null
null
null
null
UTF-8
Python
false
false
1,138
py
"""user table created Revision ID: 45d712a6312a Revises: Create Date: 2021-09-09 14:51:31.641960 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '45d712a6312a' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto...
[ "mailbowrna@gmail.com" ]
mailbowrna@gmail.com
860b005825acb032d0f94414142accddd28459a9
e98becd113452518f46252f0afe0df4724cd2120
/products/models.py
49eeb5d67b48c9072127b56543be72a71ecbad40
[]
no_license
Just-Drue/producthunt-django
fb1105a28ca4361c886740b54fd9d9d20a0af5f7
42dd5481e67d713a9a32735bfdf24aba4d6427ce
refs/heads/master
2020-06-22T14:42:34.687593
2019-07-23T13:25:54
2019-07-23T13:25:54
197,731,485
0
0
null
null
null
null
UTF-8
Python
false
false
639
py
from django.db import models from django.contrib.auth.models import User class Product(models.Model): title = models.CharField(max_length=255) url = models.CharField(max_length=255) pub_date = models.DateTimeField(auto_now=True) votes_total = models.IntegerField(default=0) image = models.ImageFiel...
[ "Justinas.DRUSKIS@akka.eu" ]
Justinas.DRUSKIS@akka.eu
71bf5967f752f1802458b6fe7e2ea379a85e712a
4c2924bce6058ecbddc3781c9b946da8e3f90f0f
/omegawatt.py
f72d48c93841d30a36b4c4139412ce000021dcb0
[]
no_license
Kayoku/G5K-energy
f7887ec2d90b98acdb5d85f86447d15e88bd2c1c
5df70a73c8b7dd27e1e555aa217d0c3600b39463
refs/heads/master
2020-05-02T12:44:20.691774
2019-04-16T11:10:20
2019-04-16T11:10:20
177,965,990
0
0
null
null
null
null
UTF-8
Python
false
false
1,699
py
""" Specific module for Lyon/Grenoble G5K wattmetter (OmegaWatt) Source from: https://gitlab.inria.fr/delamare/wattmetre-read/raw/master/tools/getwatt.py """ def getwatt(node, from_ts, to_ts): """ Get power values from Grid'5000 Lyon Wattmetre (requires Execo) :param node: Node name :param from_ts: T...
[ "jordan.bouchoucha@protonmail.com" ]
jordan.bouchoucha@protonmail.com
f33932b9a9946978806f121ae5d679489ba405d3
5f2d9ca4c7fa970ca5e51c223baa1379dbc295e6
/kalmanFilter1D.py
93ef701d8ac9149e1e339c992ca6594aaa117325
[]
no_license
davincy33/Kalman-Filter-Python
039d8e30f9368d058c9a56f4873fc7f4fc72ec70
8bc21cadbc6fe9d010e8ddc334c6554f421b23ed
refs/heads/master
2022-08-24T22:54:24.902733
2020-05-20T17:32:57
2020-05-20T17:32:57
265,639,466
0
0
null
null
null
null
UTF-8
Python
false
false
10,618
py
#!/usr/bin/python import numpy as np import matplotlib.pyplot as plt import math # State Matrix stateX = []; class KalmanFilter: def __init__(self, initStateX, delT): # Initial Conditions self.deltaT = delT; # Delta T; Unit: Seconds self.x_2dot = 0; # Acceleration in X directi...
[ "vincent.tracsens@gmail.com" ]
vincent.tracsens@gmail.com
7cc04ea24305a25eb8010faa7a224d022844a5ca
ce71d887986a3c7a90ab9dfadf70c9e2d64147f2
/day07/07_qiushibaike.py
1602bc6a2aeea0664174f460fe83e86fe9bcb943
[]
no_license
Chenqianwu/AID1904
361b9d3640ad63519d8cea64e9241f15f8543161
5e5a0908ba24b3708d9ae832194d08b93cb89318
refs/heads/master
2020-06-05T18:34:14.752026
2019-08-13T03:37:53
2019-08-13T03:37:53
192,512,781
1
0
null
null
null
null
UTF-8
Python
false
false
410
py
from selenium import webdriver browser = webdriver.PhantomJS() browser.get('https://www.qiushibaike.com/text/') # 单元素查找 xpath = '//div[@class="content"]' div = browser.find_element_by_xpath(xpath) # print(div.text) # 多元素查找 xpath = '//div[@class="content"]/span' span_list = browser.find_elements_by_xpath(xpath) for s...
[ "noreply@github.com" ]
Chenqianwu.noreply@github.com
b166238bfdde8ebbd7f891ca2753c9ec07746959
85ea5a6adb2806ce556105916339bad6ae94a1ed
/musicRooms/wsgi.py
a4555e2c9d5c406e02964e77e41c36d26ec28091
[]
no_license
MrDahaniel/musicRooms
34fa864495dd5c63218d59c3a9a4f38981402267
2970099fe63f00a8afa9d9e67fdfbc4dfa063a2f
refs/heads/master
2023-06-06T08:43:19.261925
2021-06-30T01:53:42
2021-06-30T01:53:42
381,430,130
0
0
null
null
null
null
UTF-8
Python
false
false
397
py
""" WSGI config for musicRooms project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SE...
[ "danieldavid2001@gmail.com" ]
danieldavid2001@gmail.com
3c53acc7a394cdd39b839e2d9ea9db430e1ffd07
a1ef11a1861bc94495f5cc1bc0de2355080f5c3f
/17/17_1.py
d5454f4a85de93caebdb95c901f5867ce50ed9fc
[]
no_license
womogenes/AoC-2020-solutions
85208d1a2b24daf299150a40056fe9cb3c52355d
72c4673a24c1d06d8f385536f1881c9202991d10
refs/heads/main
2023-02-08T01:03:30.384345
2020-12-25T19:20:10
2020-12-25T19:20:10
318,245,689
3
4
null
null
null
null
UTF-8
Python
false
false
2,473
py
with open("17_input.txt") as fin: data = fin.read() def next_state(state): # Return the next state given the current state # State is represented by a big enough 3-dimensional matrix minz = 0 maxz = len(state) - 1 miny = 0 maxy = len(state[0]) - 1 minx = 0 maxx = len(state[0]...
[ "williamfeng1729@gmail.com" ]
williamfeng1729@gmail.com
d5d776f59da1238f1032e6305e2eeb6e866c8e96
e0d5423de509451c56a4ac18549142c70842445f
/DailyPractice/Linkedlist/148_Sort_List.py
7b2a4f8895f37f81a8222e54d48bc47d5b9b8be1
[]
no_license
xyliu09/DailyPractice
82e39259972260c62289483f5227265715ea08f8
aa925ef83624261fd5b4b8ba140de26ba8cd0074
refs/heads/master
2021-06-15T22:21:36.505334
2021-05-14T01:59:47
2021-05-14T01:59:47
196,878,921
0
0
null
null
null
null
UTF-8
Python
false
false
1,513
py
# Definition for singly-linked list. # class ListNode(object): # def __init__(self, x): # self.val = x # self.next = None class Solution(object): def sortList(self, head): """ :type head: ListNode :rtype: ListNode """ if not head: return None def...
[ "38929468+xyliu09@users.noreply.github.com" ]
38929468+xyliu09@users.noreply.github.com
17209eaf388e9000e886e9e48250dc9fc3dd072b
ca65e958071df2775b2ee6ab380d315f9e3a252b
/expensiveoptimbenchmark/solvers/IDONE/test.py
0409d48cffde3a20b2531667874d3ee359e0d1a2
[ "MIT" ]
permissive
ZhihaoLiu-git/ExpensiveOptimBenchmark
56bf814a8033fc84ced257dbde08bfee9914eded
642056f8d94c7f953e50c3cd05bbbf9f39ad5c3d
refs/heads/master
2023-07-13T11:54:19.491931
2021-08-24T08:08:47
2021-08-24T08:08:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,713
py
import numpy as np d = 3 # Define basis functions Z=ReLU(W*x+B) W = [] # Basis function weights B = [] # Basis function bias lb = [-5] * d ub = [15] * d # Add a constant basis function independent on the variable x, giving the model an offset W.append([0]*d) B.append([1]) # Add basis functions dependent on one varia...
[ "arthur.guijt12@gmail.com" ]
arthur.guijt12@gmail.com
eb4cc5b31c4a9629a928412b4df80c8ee843fe8e
9e35d755536790a8dd28c1ee7473d1e70deec8b9
/Testy/Dictionaries.py
d3db2897e6aa727a4eaac3a3731dc74cf63c8f8d
[]
no_license
cichali/praktykiGIT
805210b047b01fc9ee814d0a8a222992af763e44
8b36ba6e3bbfc72b9b1ebf110b4477ad668cceef
refs/heads/master
2020-06-30T02:55:28.630883
2019-09-20T10:25:37
2019-09-20T10:25:37
200,699,753
0
0
null
null
null
null
UTF-8
Python
false
false
322
py
monthConversions = { "Jan": "January", "Fab": "February", "Mar": "March", "Apr": "April", "May": "May", "Jun": "June", "Jul": "July", "Aug": "August", "Sep": "September", "Oct": "October", "Nov": "November", "Dec": "December", } print(monthConversions.get("Deg", "Error"...
[ "cichyakms@gmail.com" ]
cichyakms@gmail.com
e11630ca7d98b098071e4dbe2e4d7ccbd0e87332
525dc175d55c2f5f33f87df6915f3633537da17c
/oas_dev/notebooks/eusaari/02-02-Sizedistrib/02-02-sizedistribution_allstations-sec_and_mod_separately.py
d470894aa30e6884b01c96e3bce822ef6d69d6b6
[ "CC0-1.0" ]
permissive
sarambl/OAS-DEV
1b4c020ff862075034536ea38f30a131968791fb
8dec6d29ef23dee8135bc937cd6ee1ef5b64d304
refs/heads/master
2023-04-09T07:59:31.051158
2021-10-26T12:20:04
2021-10-26T12:20:04
310,578,324
0
0
null
null
null
null
UTF-8
Python
false
false
16,442
py
# --- # jupyter: # jupytext: # text_representation: # extension: .py # format_name: percent # format_version: '1.3' # jupytext_version: 1.3.2 # kernelspec: # display_name: Python 3 # language: python # name: python3 # --- # %% import xarray as xr from oas_dev.util.Nd.sizedi...
[ "samebr@gmail.com" ]
samebr@gmail.com
ff1f313894df0d8ce05f9613010ff31d92abca19
a21982c4c56944c2c852efa947f0f2ee4afb374a
/setup.py
941b183739c4ecef99377b723bdbd0da1aedea33
[]
no_license
mephicide/semantic-version-updater
0920586528218d0aef7db98f8ec21625a21ae5e3
2d2947259ad5f520653bb44457ddbb49716968b3
refs/heads/master
2023-02-05T18:11:46.731500
2020-12-21T13:17:58
2020-12-21T13:17:58
322,597,760
0
0
null
null
null
null
UTF-8
Python
false
false
801
py
from setuptools import setup, find_packages entrypoints = {} console_scripts = entrypoints['console_scripts'] = [ 'update-version = version_updater.main:main', ] try: long_description = open('README.md').read() except IOError: long_description = '' setup( name='version_updater', version='0.0.2',...
[ "jeremyvickery@gmail.com" ]
jeremyvickery@gmail.com
dad4360db0dbf7aab1cdcc42647bc8853831028d
83b938483ed42ede91d46392599161a2f0a01cb0
/apps/users/migrations/0001_initial.py
8d4ad134e2a9c814f4a31aef6225ce41f8e9ce8d
[]
no_license
fshFSH1387/mxshop
65fa0eb41f6ac673bbdd4fadc986c5668b040f96
e04b8bc0cff6422d7e8e2b39c2a2436c69b51bfe
refs/heads/master
2020-03-25T19:35:05.981787
2018-08-09T02:53:43
2018-08-09T02:53:43
144,090,040
2
1
null
2018-08-09T02:53:44
2018-08-09T02:14:46
null
UTF-8
Python
false
false
4,037
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.7 on 2018-07-24 02:48 from __future__ import unicode_literals import datetime import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): in...
[ "1907144407@qq.com" ]
1907144407@qq.com
716aca32e454d7b820d8e09254aa93a48ca27a20
21be53b22a5ecc8a6c3f49e7378a78904b5c9c85
/main.py
286729c95c730e334a1825639ed56e367c0f5656
[]
no_license
S-Hani/pythonProject
983e56e0116782c78a3ed33b8c932ae0834e5579
6bb4c8f139e35d33b08d3c7f200b8473eafeba42
refs/heads/master
2023-08-12T22:31:54.983548
2021-09-30T12:23:52
2021-09-30T12:23:52
412,055,034
0
0
null
null
null
null
UTF-8
Python
false
false
1,170
py
import requests import json import csv prtcl = "http" url = "www.omdbapi.com" params = { "apikey": "926c06e4", "s": "Avengers" } payload = {} headers = {} def dict_to_query(parameters, domain, protocol): query = '' for key in parameters.keys(): query += str(key) + '=' + str(parameters[key]) +...
[ "shettyhanish@gmail.com" ]
shettyhanish@gmail.com
9d7cbfab03ab9199772ad7b3dddca430afc55551
94226c24eb31fff29af3403b7b0672b032277b23
/settings/development.py
42f1ee7423e8eb8d862817056fa638d530c98be8
[]
no_license
vaibhavmathur91/zsavs
deba23511023b0efe3c1c2d8a9b2faef93c3625f
a7040d218bc4cce06657cefa6d57137ec38f502e
refs/heads/master
2020-03-16T11:53:09.865619
2018-05-08T19:28:28
2018-05-08T19:28:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
612
py
# Import base settings from .base import * BASE_URL = 'http://127.0.0.1:8000' DEBUG = True # Secret key (default value is set in development # settings so that the .env file is not necessary) SECRET_KEY = os.getenv('SECRET_KEY', 'fruh-%ut#q*2av0@d+vf!*gkc=vbnxwox^h6-a-$9avh32z+ya') # Database DATABASES = { 'defa...
[ "robin@bisping.ch" ]
robin@bisping.ch
9030713c7c930ffabe85beaff385f9f272140ffe
2e6105480d6e99ca6c290e3ed64cb64d36de6491
/Database_Server/Views.py
491bf883dcc3074eea921035e39fe9281fe2ea96
[]
no_license
avpatel26/CityAnalyticsOnCloud
fb65f01e647b5835b1f12bc4f562ae3ede1a2683
1c06569ed13e8c48bc89a85da0777be721a940a7
refs/heads/main
2023-07-11T21:19:24.834187
2021-08-13T03:08:21
2021-08-13T03:08:21
395,503,582
0
0
null
null
null
null
UTF-8
Python
false
false
3,382
py
#-------------------------------- #Group No. 31 #Team Members #Akshay Agarwal, 1141290,Melbourne #Avi Patel,1143213,Melbourne #Monit Patel,1135025,Melbourne #Prabha Choudhary,1098776,Melbourne #Shubham Parakh,1098807,Melbourne #-------------------------------- import couchdb import couchdb.design import os ...
[ "avipatel2610@gmail.com" ]
avipatel2610@gmail.com
883d265d36da118961861848f49fe6ec28c13473
5b52313c813c3b0e2cce6bc1096ee292fccdbada
/djcrm/settings.py
167aeee1b63834b21bb9b3f17bc9e7bf15886e53
[ "MIT" ]
permissive
frenchdubliner/djangoTest
4240568e8c7159981a2f1c945c1c84d1534e64c6
8cb279964f902af3f524844782ca4b977f7c6ee7
refs/heads/main
2023-09-05T11:59:48.617318
2021-11-06T01:24:06
2021-11-06T01:24:06
421,076,547
0
0
null
null
null
null
UTF-8
Python
false
false
3,470
py
""" Django settings for djcrm project. Generated by 'django-admin startproject' using Django 3.2.8. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib i...
[ "olivier.chambon@gmail.com" ]
olivier.chambon@gmail.com
e0b7367a019a91e2fa1bcd3bff959a74b8b7323a
e8cc4cd00990a4f8a75e538ca68fa77456f37e3c
/telebot/apps.py
f6201278a2003ae19e1031d371370381cf66d2e3
[]
no_license
devRayanwv/djangoTest
950b5d54a3a53f52f615e2ed0a99bac975fb0db9
71bb9377f70fde5b28c5685e8800c4209f265a9f
refs/heads/master
2020-04-06T04:28:08.942379
2017-02-24T22:20:08
2017-02-24T22:20:08
82,883,125
0
0
null
null
null
null
UTF-8
Python
false
false
130
py
from __future__ import unicode_literals from django.apps import AppConfig class TelebotConfig(AppConfig): name = 'telebot'
[ "you@example.com" ]
you@example.com
93926aae0bfed5953da6df5e99392bf9ce52c8ca
c06f40b11119c9005df5ab9e1353897604a7ca23
/chartsdb/students/views.py
0bf6c23b04d150a11d2dc637b7cc0c047c701321
[]
no_license
Drew81/Abc-Data
d98320299a5d127ce139732278a45fe771ed1124
b13db677439f446461a32550ec5296d1e1030188
refs/heads/master
2021-05-15T21:45:53.685029
2019-07-12T15:48:00
2019-07-12T15:48:00
106,577,370
0
0
null
null
null
null
UTF-8
Python
false
false
4,620
py
from django.views import generic from .models import Student, Detail, Score from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.core.urlresolvers import reverse_lazy from django.views.generic import TemplateView #Restframworks from rest_framework.response import Response from rest_fram...
[ "winterz@Drews-iMac.home" ]
winterz@Drews-iMac.home
24d2af17dd3749befa8832fee7ee08d62a1a9063
6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4
/JgYPQrYdivmqN4KKX_18.py
51bf0ca4c9e57c6e4d4df644268825f4357b96e2
[]
no_license
daniel-reich/ubiquitous-fiesta
26e80f0082f8589e51d359ce7953117a3da7d38c
9af2700dbe59284f5697e612491499841a6c126f
refs/heads/master
2023-04-05T06:40:37.328213
2021-04-06T20:17:44
2021-04-06T20:17:44
355,318,759
0
0
null
null
null
null
UTF-8
Python
false
false
530
py
def BMI(weight, height): if "kilos" in weight: fBmi = round(float(weight.split()[0]) / float(height.split()[0])**2,1) else : a = (float(weight.split()[0])) * 0.453592 b = (float(height.split()[0])) * 0.0254 fBmi = round(a/b**2,1) if fBmi < 18.5: return "{0} Underweight".format(fBmi) eli...
[ "daniel.reich@danielreichs-MacBook-Pro.local" ]
daniel.reich@danielreichs-MacBook-Pro.local
b95fd459a30460bf9d8bc15c82f847b32064b38c
0523da031e1478eabb453afb08c89d8789f78007
/bazy/baza.py
be6359a0eeb81591c1edc204f5b93d500bbdc7fb
[]
no_license
miiszka/kody
980501925bcfa32b0a08f59df6213f8e39b74c3a
309d8adf6cf1e8dc534fdbe82ceb8eab041111f8
refs/heads/master
2021-01-25T17:05:23.986413
2019-02-11T12:01:45
2019-02-11T12:01:45
102,843,645
0
0
null
null
null
null
UTF-8
Python
false
false
1,038
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # # baza.py import csv import sqlite3 def czytaj_dane(plik, separator=","): dane = [] # pusta lista na rekordy with open(plik, 'r', newline='', encoding='utf-8') as plikcsv: tresc = csv.reader(plikcsv, delimiter=separator) for rekord in tresc: ...
[ "emeryt555@tlen.pl" ]
emeryt555@tlen.pl
02791ea231590cbd94794e774adb135d03ae64fb
97ad16e12ff2425a0d78b68a254eb93438b07688
/countBST using arr elements as head.py
b779ff7a5b78a8ddb84013abb7a19e0291d685e1
[]
no_license
poojithayadavalli/Trees
54a3878646c255793c28ec4de0632ef03bbf5982
c3fd45860b85a57ffac2c5d903ba3d2aadde3630
refs/heads/master
2022-11-27T20:51:54.934823
2020-08-09T11:51:54
2020-08-09T11:51:54
282,373,911
0
0
null
null
null
null
UTF-8
Python
false
false
1,337
py
""" Rohan is learning about Binary search Trees.He went through a task as follows: Given an array arr[] of N integers. The task is to count the number of Binary Search Tree can be made using each node of element in arr[] as a root node. Input: Firstline contains size of array N Next line contains elements of array ...
[ "noreply@github.com" ]
poojithayadavalli.noreply@github.com
a5cabc5a80802e5542d44f22fc4f861683ba8459
beb32d495a68bb4ba47ef8aeea2f5afd6acdc244
/infosec-lab1/lab1-2/ClientA.py
e45c0a5317aed31ecac298c7f3628a8a910786b6
[]
no_license
Hatuw/infosec2018
b0378cd5460371add65a25195d244a8afbcf8908
a48cc2b2fe6958d4f3a064c41ca1a487d62ab798
refs/heads/master
2020-04-11T01:12:39.126216
2018-04-27T08:31:50
2018-04-27T08:31:50
124,316,665
0
2
null
2018-04-15T14:30:50
2018-03-08T01:10:51
Python
UTF-8
Python
false
false
1,605
py
# -*- coding: utf-8 -*- import re import rsa import socket from ServerC import * class ClientA: def __init__(self, name='client_a', ip='127.0.0.1', port=6666, **kwargs): assert re.match(r"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$" ,...
[ "jiaxi_wu@ieee.org" ]
jiaxi_wu@ieee.org
44c462d9e7b54f0d65128ccbeaeac6d1bea09293
738d53191472e3322d332c22b9a39bf8e243a549
/flaskr/auth.py
b546bee70b8485634407588e4db48e939fdf0b6d
[]
no_license
bahatiphill/flaskr
bfa75bd0326db406094aecdfff4cf8b902d1c035
7df397cd3491a37955f7a2e2abc48d58d0d676cf
refs/heads/master
2020-08-16T23:30:09.516042
2019-10-17T13:58:43
2019-10-17T13:58:43
215,570,800
0
0
null
null
null
null
UTF-8
Python
false
false
2,532
py
import functools from flask import ( Blueprint, flash, g, redirect, render_template, request, session, url_for ) from werkzeug.security import check_password_hash, generate_password_hash from flaskr.db import get_db bp = Blueprint('auth', __name__, url_prefix='/auth') @bp.route('/register', methods=('GET', 'POST...
[ "phill@localhost.localdomain" ]
phill@localhost.localdomain
6cb49efe8e184a53097740ca49c6d05bb5dc2a54
87165e7526a5466a91f779dbf7e4b8d008ca73df
/api_serve/app/celery/tasks.py
6ca9ef29c81a18f9105fd63bec217f7fd658adb6
[]
no_license
gocode2016/wx_web_api
d2f5ca3970c165c168d187df03680412f8a388b6
bf039fbe3b29e47e9aa2db47c57cc043eb0c2f47
refs/heads/master
2020-05-03T05:18:55.276899
2019-01-12T03:13:53
2019-01-12T03:13:53
null
0
0
null
null
null
null
UTF-8
Python
false
false
332
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Author : classmate Lin. # @Email : 406728295@qq.com # @File : tasks.py # @Time : 18-10-8 下午2:42 ''' 异步任务 ''' from __future__ import absolute_import, unicode_literals from app.celery.celery import cel_app @cel_app.task def say_hi(): print('hello world')
[ "ly@lydeMacBook-Air.local" ]
ly@lydeMacBook-Air.local
9ed3302317bb7901f6b3244ef26fc1ecb990a599
5b9f9b4ea1494943e6f7f842df55909599ed1304
/python/onshape_client/oas/models/bt_shaded_render_document_response.py
7f8e89af07f0ac165d25afbbf29e6536706ff134
[]
no_license
jenniferyoung02/onshape-clients
f50534f033428027515b7fc0b801b1caab4d0aec
8ee31a17d7af32f105b851e45f69fd4a3006e1ba
refs/heads/master
2020-09-07T06:44:37.682545
2019-10-08T18:52:06
2019-10-08T18:52:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,884
py
# coding: utf-8 """ Onshape REST API The Onshape REST API consumed by all clients. # noqa: E501 The version of the OpenAPI document: 1.104 Contact: api-support@onshape.zendesk.com Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class BTShade...
[ "ekeller@onshape.com" ]
ekeller@onshape.com
fccaa06125ae9df91685965edf6b3ae0f129d512
b06f4dc6b1703f7e05026f2f3ff87ab776105b18
/google/cloud/logging_v2/services/config_service_v2/transports/base.py
d52c97635c4cf13e0b3e6f98c0890c5f01146f10
[ "Apache-2.0" ]
permissive
anilit99/python-logging
040eeb4eed7abe92757b285a1047db09242e89c9
9307ad72cb5a6d524ed79613a05858dbf88cc156
refs/heads/master
2023-06-01T04:49:38.975408
2021-06-17T10:52:15
2021-06-17T10:52:15
null
0
0
null
null
null
null
UTF-8
Python
false
false
19,708
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 or...
[ "noreply@github.com" ]
anilit99.noreply@github.com
3e976a9ea0c5437ca957b93d5cff70c8791ca51c
8bff5bbfa082602a05d96fc53ea52c3b77a0e89c
/store/views/checkout.py
aa4394cecda9cfdda4436c4abff7e1edfcd495b2
[]
no_license
Patelrahul4884/Eshop
98d3956c6213dbb621e08a6e5aef2c593a4abda4
29ced3870ab4279986c13787013335b0eca8fb33
refs/heads/master
2022-12-25T05:49:07.115490
2020-10-02T12:34:46
2020-10-02T12:34:46
288,974,716
0
0
null
null
null
null
UTF-8
Python
false
false
823
py
from django.shortcuts import render, redirect from django.contrib.auth.hashers import check_password from django.views import View from store.models.customer import Customer from store.models.product import Product from store.models.order import Order class Checkout(View): def post(self,request): address=r...
[ "patelr4142@gmail.com" ]
patelr4142@gmail.com
223c76129aa724394fe8bc8c04f4979601d194fe
e8d589e95dc16c386f6af2ab09da2742123a5e0e
/selenium_test/cahealth_parameterized.py
a13277d8033063e59f434aa1f1dea9e498ab9f9f
[]
no_license
moyosoreS/selenium_crossbrowsertests
ccab8664489d34e76a6d79950969f00d0a36523a
11a1c9f25e0eb6c6c4770985cdad6a6cf10f5527
refs/heads/master
2020-09-27T00:09:14.949495
2016-08-24T12:48:00
2016-08-24T12:48:00
66,463,236
0
0
null
null
null
null
UTF-8
Python
false
false
2,923
py
import sys __author__ = 'Desmond' # Please visit http://selenium-python.readthedocs.org/en/latest/index.html for detailed installation and instructions import unittest import csv from selenium import webdriver class SeleniumCBT(unittest.TestCase): def setUp(self): caps = {} caps['name'] = 'Sel...
[ "sogaolumoyo@gmail.com" ]
sogaolumoyo@gmail.com
de377639fae6e41409818847cd35e0f14be66353
8de519715db979f128ff44464a84b6d75cba48d8
/login_samply.py
9aa374892819506e4d89d9e023a792d25298949c
[]
no_license
Yukig-github/resarch
af146eed7a70b19b507e61ae075833caf9d486bf
88f031a8a45eb20bf3d30eba37f4adf9eb219d2e
refs/heads/main
2023-06-13T08:30:42.886220
2021-07-12T14:57:54
2021-07-12T14:57:54
376,378,887
0
0
null
null
null
null
UTF-8
Python
false
false
909
py
import requests from bs4 import BeautifulSoup from urllib.parse import urljoin # Setting the user name and password USER = "1095287" PASS = "h110622" # Start a settion session = requests.session() # Loggin login_info = { "uid":USER, "pw":PASS, "_csrf":"f28e34c1-6ad6-462c-b518-86cf4c23d298", "password...
[ "noreply@github.com" ]
Yukig-github.noreply@github.com
60610a10abba973f1b0d8914810087bda779787e
c5585b95f42757064b64a535e45983b88e7cc7cb
/hw1/es1-2.py
44d52b5f6d2c6debc3b83a159c5cce37c875c218
[]
no_license
giuliom95/ScientificViz_SS2018
e94dd19b58ffb9a2f94f8bf369a74aaac91f1031
0e3545363d51ce31cf760a25f9f3d1118783a63c
refs/heads/master
2020-03-11T14:06:54.445542
2018-04-26T11:01:31
2018-04-26T11:01:31
130,044,394
0
0
null
null
null
null
UTF-8
Python
false
false
1,157
py
import numpy as np from mpl_toolkits.mplot3d import axes3d import matplotlib as mpl import matplotlib.pyplot as plt DATA_RES = 200 VIZ_RES = 400 BASE_PLANE = -5 COLOR_MAP = mpl.cm.coolwarm if __name__=='__main__': domain = np.linspace(-1,1,DATA_RES)**3 domain_size = len(domain) #colormap = mpl.colors...
[ "giuliomartella1995@gmail.com" ]
giuliomartella1995@gmail.com
bec1f0dc5f69ea8d65450c0d1ff74d595382e6b6
0986dc02b1c288bfad0ec0e69c1e4e44bf3bb5cd
/contas/urls.py
f5e07715e32c5d206b4894c78ade120de43fc2b7
[]
no_license
hugodias360/projeto_TecWeb
97a6f1f9071931e3e409f23fbcbf2bd125e45cde
5dd3b0e9ee7a8e6d374e4955278625ab1d031fdf
refs/heads/master
2022-11-04T14:04:22.539497
2018-05-17T23:31:59
2018-05-17T23:31:59
125,785,931
0
1
null
2022-10-19T04:41:43
2018-03-19T01:36:44
Python
UTF-8
Python
false
false
1,111
py
from django.conf.urls import url from . import views urlpatterns= [ #URLS PROFESSOR url(r'^professor/$', views.indexProfessor , name='index'), # url(r'^professor/create/$', views.createProfessor, name='create'), url(r'^professor/edit/(?P<id>\d+)$', views.editProfessor, name='edit'), url(r'^professo...
[ "hugodias360@gmail.com" ]
hugodias360@gmail.com
c4a1000943aabf39b68ff2e45e00ea41562ca42f
626fdb9df49fc36fff5018a489e6089b0986ebd8
/05/amusement_park.py
2871dca198081b63ada57329b96ab2e876707d60
[]
no_license
ypan1988/python_work
7bbf9ee2badb981bd2b309f39e07d49d761002c0
464f86f8e9348f4c604928d7db63c75e83aefd10
refs/heads/main
2023-03-27T11:12:28.934378
2021-03-28T22:00:28
2021-03-28T22:00:28
352,447,281
0
0
null
null
null
null
UTF-8
Python
false
false
631
py
age = 12 if age < 4: print("Your admission cost is $0.") elif age < 18: print("Your admission cost is $25.") else: print("Your admission cost is $40.") age = 12 if age < 4: price = 0 elif age < 18: price = 25 else: price = 40 print(f"Your admission cost is ${price}.") age = 12 if age < 4: ...
[ "ypan1988@gmail.com" ]
ypan1988@gmail.com
262e1d9f54429dd7118716daf6cfbc910a323686
4fb9150b08a128571ed4a84897c8c95afb76ccb6
/healthy/migrations/0002_labdetail.py
e6624ae565d211b7af58232ca3a06dfcfe941dd7
[]
no_license
eduarde/ChunkyMonkeys
815feb7f3e6e2085babb61d12f2255ea2cb46ada
34f30e6aaeef6af15aa12e6d599f55d67c6fb7d7
refs/heads/master
2021-07-09T21:30:49.084584
2016-12-05T10:42:04
2016-12-05T10:42:04
58,738,867
1
1
null
null
null
null
UTF-8
Python
false
false
1,175
py
# -*- coding: utf-8 -*- # Generated by Django 1.9.11 on 2016-11-14 11:38 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_depende...
[ "eduard.erja@gmail.com" ]
eduard.erja@gmail.com
c00202055a9f383b7755f979c3d1ba3c997f004e
0e9bb8a5f0be4be19ee3c00af6f5532218bc288e
/maching_learning/task3/alexandra_vesloguzova.py
e6ca6dbdcb1c03c3d7cfe7a16c9f8f78cc892ba8
[]
no_license
avesloguzova/spbau_homework
82abbb02735af68a5ae5e8580746beacb3d13592
6e143c3da0cb1f8a8f6915db1f9135143f9cf5a8
refs/heads/master
2021-01-23T06:40:16.648288
2015-08-11T19:51:31
2015-08-11T19:51:31
27,387,685
0
0
null
null
null
null
UTF-8
Python
false
false
3,973
py
__author__ = 'av' import numpy def read_fasta(path): records = list() labels = list() current_long_string = "" current_id = "" with open(path, 'r') as f: for line in f: if is_id(line): if current_long_string != "": records.append(current_long...
[ "sashickk@gmail.com" ]
sashickk@gmail.com
937ad49bfc2d7aa2201b9927a626479eaea90261
8f352a174c6a2ef7787668bf0b9f0a2c5b5668d4
/app.py
2fc6a1f7635f2efb7e2ff47aed0351b8cd884649
[]
no_license
DavidLGoldberg/github-user-stats
be82e75528ca15be484db6775aaae25276d4c3cf
ceed274504f65b2842eabb021ddd58fd4049e9f5
refs/heads/master
2020-05-30T23:54:54.623558
2012-12-21T12:47:21
2012-12-21T12:47:21
null
0
0
null
null
null
null
UTF-8
Python
false
false
328
py
from hero_tmpl import create_app if __name__ == "__main__": #TODO: make configurable string print "Starting Server." app = create_app() import os # Bind to PORT if defined, otherwise default to 5000. port = int(os.environ.get('PORT', 5000)) app.run(host='0.0.0.0', port=port) print "App Im...
[ "davidlgoldberg@gmail.com" ]
davidlgoldberg@gmail.com
a2bf0550e08af94a953a64917f25bba007a88e24
ffc5ba59967913b6210c50319cd8fa7a1dc5772c
/genkeras_stack.py
71c3f27c83017a8df62b6461822f715097be73f1
[]
no_license
hoihui/allstate
62c8f39ae3326cea0a7efbda37ce5b960de7bf5a
add457a1b4d6e734653f39810acfe886bc5afe83
refs/heads/master
2021-05-11T19:40:31.319064
2018-01-17T20:15:23
2018-01-17T20:15:23
117,885,769
0
0
null
null
null
null
UTF-8
Python
false
false
6,742
py
from data import * thislevel=load_save_4 base= 'nn4' import os,time,argparse,random,sys parser = argparse.ArgumentParser() parser.add_argument('-gpu', type=int, default=0) parser.add_argument('-acq', type=str, default=random.choice(['poi'])) parser.add_argument("--verbose", action="store_true") parser.add_a...
[ "hyhui@sun.phys.vt.edu" ]
hyhui@sun.phys.vt.edu