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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f145efce77ef6f63b0b4957d6870284349103a47 | d406cddee2d69dbb6961cfb60a96729c752ca997 | /Classes pt 3/app.py | 12d3e4fb2982ded46510fb43035ac622b942c790 | [] | no_license | MasterCoookie/python_basics | 6f34173501f2d516a81942968d5f80be5d1f0d5c | 1d8f2eea66a4e8bfd12f714adca021af7120ef9b | refs/heads/master | 2020-08-10T20:51:31.136121 | 2019-10-11T11:27:54 | 2019-10-11T11:27:54 | 214,418,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | class Employee:
def __init__(self, first, last, pay):
self.first = first
self.last = last
self.pay = pay
@property
def fullname(self):
return f'{self.first} {self.last}'
@property
def email(self):
return f'{self.first}.{self.last}@gmail.com'
#setter - a... | [
"jas.kocurek@wp.pl"
] | jas.kocurek@wp.pl |
027b999a01bbcd37423c696d75684e32e04760d0 | d37138da36ef75a8998c27a0cc0b989284f8616d | /search_CR.py | 22fc3cbdfdfddb2cd2e81ff8a6c1db121506b667 | [] | no_license | thomasyp/project | d5e52bb75a6e7cc35bbfa0069fa97e290d9c98ec | 754a9c74a84176be3ab31c06bf5261c87a6b4c38 | refs/heads/master | 2021-12-26T04:12:44.793079 | 2021-09-09T02:36:43 | 2021-09-09T02:36:43 | 135,041,022 | 2 | 1 | null | 2021-09-09T02:36:44 | 2018-05-27T11:42:01 | Python | UTF-8 | Python | false | false | 20,858 | py | #!/home/yangpu/bin/anaconda3/bin/python
# -*- coding: utf-8 -*-
from compoundcalculator.compound_density import Nuclide, Element, Compound, Material
from tool.handle_mcnpinp import McnpinpHandler
from tool.mcnp_reader import McnpTallyReader
import argparse
import os
import re
import numpy as np
from pathlib import Path... | [
"yangpu@sinap.ac.cn"
] | yangpu@sinap.ac.cn |
9d20c5e89f09c22618f69cb4e853bf6709cde740 | f14fa682ba80297bbc37f58a388311826b4ac787 | /.history/tracce/12_gen_2016_20181227102247.py | 2549e43d1c94671a4eefb01bc8b26b06e9dc8df0 | [] | no_license | Arkango/calcolo_numerico | 1b28a311a830f14128a71731717602fe26c839ff | c36e030a0edbcf1df926d558c46131980cd8b705 | refs/heads/master | 2020-03-31T18:13:09.183066 | 2019-01-22T17:55:50 | 2019-01-22T17:55:50 | 152,449,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 495 | py | """
input
tol tolleranza
maxIter numero massimo iterate
output
approssimazione di s^1/3
numIter numero di iterate effetuate
"""
def radCubic(s,tol,maxIter):
if s < 1:
print('value inserted not correct')
return False
x0 = s
niter = 0
valoreFisso = 1/3
while x0 > s and niter < maxIt... | [
"asaracino@aryma.it"
] | asaracino@aryma.it |
f62e734dc2e57e7a0d33cd5e18fad3c83b0280dc | d7adceef44d575e4ae9042e161b2e5cb672586ba | /rename_PATRIC.py | 77231c7c759f394dfe778493e23cf6c7e4b8561b | [] | no_license | jwestrob/Script_Toybox | 91a726fe7b5572b6d411ea445f0e93fa9b88d76a | e8ed4058925cf9b4504e2284c6814c4e3f49f287 | refs/heads/master | 2023-06-22T10:21:23.307704 | 2023-06-11T13:11:27 | 2023-06-11T13:11:27 | 130,753,727 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | import os, sys
from Bio import SeqIO
file_to_rename = sys.argv[1]
extension = file_to_rename.split('.')[-1]
for rec in SeqIO.parse(file_to_rename, 'fasta'):
new_id = '_'.join(rec.description.split('[')[1].split(' |')[0].split()).replace("/", '' ).replace( "(", '').replace(')', '')
break
new_filename = new_id + '.... | [
"jwestrob@biotite.berkeley.edu"
] | jwestrob@biotite.berkeley.edu |
41eaf7e6aec7c41d1fd7d58171b45b152b251f0c | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nncunningli.py | c8167f667286f6af6e6235660cde84e24409626d | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 159 | py | ii = [('BailJD2.py', 1), ('CarlTFR.py', 12), ('LyttELD.py', 1), ('WadeJEB.py', 1), ('GodwWLN.py', 1), ('SoutRD.py', 1), ('FitzRNS2.py', 1), ('BowrJMM3.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
6003e09f33ea5a2093645f640b28a8485047d075 | 09687167864ad825595875f367b192c6ece25122 | /20210714 Datastructure & Algorithm/트리/Code08-01.py | 0cc727c6f19e948ad73c68ad8988d676fddff2b6 | [] | no_license | DaeGyeongYi/00.Basic_step | 75bc0462333a35bb714dfb00e270c3fc582f907c | babebb92df42453283a5edf0f9792cd79f57e65e | refs/heads/master | 2023-06-19T15:46:13.142725 | 2021-07-16T19:31:28 | 2021-07-16T19:31:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | class TreeNode():
def __init__(self):
self.left = None
self.data = None
self.right = None
node1 = TreeNode()
node1.data = '화사'
node2 = TreeNode()
node2.data = '솔라'
node1.left = node2
node3 = TreeNode()
node3.data = '문별'
node1.right = node3
node4 = TreeNode()
node4.data = '휘인'
node2.left... | [
"woo_kyo@naver.com"
] | woo_kyo@naver.com |
f5b7ecf5498c79c23d17b6a98ceb9627c189511f | 2612f336d667a087823234daf946f09b40d8ca3d | /python/lib/Lib/site-packages/django/core/management/commands/diffsettings.py | 98b53b405d24da9b10a77e7b0bbc578bc9603626 | [
"Apache-2.0"
] | permissive | tnorbye/intellij-community | df7f181861fc5c551c02c73df3b00b70ab2dd589 | f01cf262fc196bf4dbb99e20cd937dee3705a7b6 | refs/heads/master | 2021-04-06T06:57:57.974599 | 2018-03-13T17:37:00 | 2018-03-13T17:37:00 | 125,079,130 | 2 | 0 | Apache-2.0 | 2018-03-13T16:09:41 | 2018-03-13T16:09:41 | null | UTF-8 | Python | false | false | 1,296 | py | from django.core.management.base import NoArgsCommand
def module_to_dict(module, omittable=lambda k: k.startswith('_')):
"Converts a module namespace to a Python dictionary. Used by get_settings_diff."
return dict([(k, repr(v)) for k, v in module.__dict__.items() if not omittable(k)])
class Command(NoArgsComm... | [
"dmitry.trofimov@jetbrains.com"
] | dmitry.trofimov@jetbrains.com |
36e13726a5a0ff5d94d8b169c6571a4fc5a99360 | 958bdbddef402203fd8e24e35292b4319c28a581 | /src/base.py | 35fb3507203b15d436472db22bfb025657252f1b | [] | no_license | embatbr/seminario-teoria | 54bced421cd16d04f929a1155f0648aa6c25cf50 | 4bfe4cb9ac012b93ed0bdde78f2eb90dc4141bc6 | refs/heads/master | 2021-01-13T02:14:25.437718 | 2014-12-21T03:28:01 | 2014-12-21T03:28:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | """Puts the content of file "shakespeare.txt" in a better format. Creates a base
of relative frequencies of letters (with space) and words.
"""
import re
import string
DATA_DIR = '../data/'
def prebase(filein, fileout):
"""Reads from filein and writes in fileout words composed of letters only.
"""
lin... | [
"embatbr@gmail.com"
] | embatbr@gmail.com |
a20aca59b371f14e741d53f983bccee156955747 | 0acb619c27c2ff763f4640b04abd9291b571920e | /second_project/second_project/settings.py | 9aa638a14fcc4de27c749b452c245d307e9165f6 | [] | no_license | munish2301/Learning_Django | 98d9955753758cfec21781a965b63cc0754ca244 | 2991ac3e5daf0c8793159349a024ac611920221b | refs/heads/master | 2021-04-03T22:04:22.331928 | 2020-03-19T03:25:42 | 2020-03-19T03:25:42 | 248,400,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,715 | py | """
Django settings for second_project project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
impor... | [
"munishkumar22595@gmail.com"
] | munishkumar22595@gmail.com |
2e2f462c213bf71dcaa5ad4aea836a76b57d648f | d446642c55b19d7e927703002d0d6ed6dccfc45c | /tets1.py | 93ca1cfb9534c0e787953e721bd38f608401ce93 | [] | no_license | vnduc/FB_reg | 7c1dd4bc0cb3b48d970a73a64bb6131bc0354197 | 1321c99d80058c01fe243a1345becfc38927c26d | refs/heads/master | 2022-12-08T10:42:34.153601 | 2020-08-17T13:08:22 | 2020-08-17T13:08:22 | 288,182,569 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from random import sample
list1 = ["1", "2", "3", "4", "5", "6" , "7" , "8" , "9" , "0" ]
tele = []
list_int = sample(list1,8)
list_int_new = "".join(list_int)
print(list_int_new)
| [
"noreply@github.com"
] | vnduc.noreply@github.com |
1c9687591a895a84bf4597f263816a8942879e51 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /feel_first_hand/work_different_thing_of_next_company.py | 1f68da0b0954abd51549c98382a5e50aac67ba34 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py |
#! /usr/bin/env python
def place_or_life(str_arg):
right_point_or_important_work(str_arg)
print('case')
def right_point_or_important_work(str_arg):
print(str_arg)
if __name__ == '__main__':
place_or_life('large_government_and_different_man')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
93029a256b3dcbea4ca295735dd63fa4aee17f03 | 3e3e47701ed1b5906fbd1c9e46d8d48793584a68 | /Interfaz-DB/Flask/DEMOPROJECT/DEMOAPP/migrations/0003_auto_20210823_2109.py | 2a101f4b1f92344c56adc24602dc1a8a50df651b | [] | no_license | lfruizr/CAP | 75d9198e6bf1b6cc3ee53c1cce6470c3b21f50f0 | e47036cfe5b5a813ab16ea472337f138cc7c42ff | refs/heads/main | 2023-07-17T11:05:43.937972 | 2021-09-04T03:28:53 | 2021-09-04T03:28:53 | 402,948,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | # Generated by Django 3.2 on 2021-08-24 02:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('DEMOAPP', '0002_auto_20210424_0152'),
]
operations = [
migrations.CreateModel(
name='PlacaIngresando',
fields=[
... | [
"71187345+lfruizr@users.noreply.github.com"
] | 71187345+lfruizr@users.noreply.github.com |
f9c851f4e6d1354c8ce6b7dcfb1258a810ae2662 | 20e055f337ca4c3f588388fcd8c1d413c222fc46 | /[OLD] disentanglement/reads_data_simulation.py | 1fc92303f5d64ff35f747cd762d4f01c85e99aee | [] | no_license | giuliospinozzi/reads_data_simulation | 12c3cd52b661cafa13a927f36aea48d41bc8f54e | 5be6244d981fc58a1005ce9ba734f115477eb2a4 | refs/heads/master | 2022-08-25T11:48:12.263664 | 2014-04-04T08:47:44 | 2014-04-04T08:47:44 | 264,126,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,079 | py | ###Requested Package(s) Import###
from time import gmtime, strftime
import os #
#################################
###Import Module(s)#####
import dataset_module
########################
### Set-up Paremaeters ###########################################################################################
### Distribut... | [
"brasca.stefano@hsr.it"
] | brasca.stefano@hsr.it |
7217073a863a5529a749f5fad3a9653d1e1a3984 | bb0e8697713865749363dbcb7f41c9ac7a1d4a51 | /combine/pipelines/pipeline.py | d830d1259b8aa4d1457d98254e29def9b91cd3b3 | [] | no_license | garawalid/Combine | 675232d089c47e743ffdb6a4ba4e8b492a2ebcb7 | 38d758edd7284f9d7eb0e98f57605ac102910024 | refs/heads/master | 2020-06-17T02:25:43.764125 | 2019-07-10T12:00:03 | 2019-07-10T12:00:03 | 195,767,587 | 0 | 0 | null | 2019-07-10T12:00:04 | 2019-07-08T08:18:56 | Python | UTF-8 | Python | false | false | 1,017 | py | class Pipeline:
def __init__(self, id, name, data_source, data_destination, responsible, table_name=None):
# Abstract class of Pipeline
self.id = id
self.name = name
self.data_source = data_source
self.data_destination = data_destination
self.responsible = responsibl... | [
"gwalid94@gmail.com"
] | gwalid94@gmail.com |
f6eb6eb4052624b2fdedf4152463ad46c120afc0 | 8043b3e1f1f890bd8e0d735a21b0a9a9d2550f03 | /Python/Day6/listLab7.py | cfbbb256f2bd242a9991bec91810f57f47b39815 | [] | no_license | so02e/TIL | 5ff904d1833761084e2f1d31b1b4db5e7c5c9322 | 7ad896c849549cb13bd1f7aa154ae8e4bc1d34c8 | refs/heads/master | 2023-04-21T11:40:18.142005 | 2021-05-19T12:04:33 | 2021-05-19T12:04:33 | 325,268,425 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 411 | py | # 이차원 리스트
# 행 단위의 합을 구하여 다음과 같이 출력 : 1행의 합은 X입니다.
a = [
[10,20,30,40,50],
[5,10,15],
[11,22,33,44],
[9,8,7,6,5,4,3,2,13]
]
print("1행의 합은 ", sum(a[0]), "입니다.")
print("2행의 합은 ", sum(a[1]), "입니다.")
print("3행의 합은 ", sum(a[2]), "입니다.")
print("4행의 합은 ", sum(a[3]), "입니다.") | [
"noreply@github.com"
] | so02e.noreply@github.com |
d1d491f8f79855abed8c338119a1e9b7dc8348b6 | cc1b9cb964683f97705421f2c91f530d7fc8de22 | /blog/admin.py | b3c6b8c5cc709a5b4f9ced4a68f6d4318b0cb4ad | [] | no_license | maddarauci/mysite | 9499f59ae2e8ce2e1822c6f17036c1d18dae64a0 | bd5878a5decca1fe8d05a4d626bb377bd7e11834 | refs/heads/master | 2023-03-05T14:56:21.962300 | 2021-02-09T08:57:08 | 2021-02-09T08:57:08 | 337,303,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | #blog/admin.py
import django.contrib.admin
from .models import Post
#from django.contrib.auth import admin
from django_summernote.admin import SummernoteModelAdmin
from .models import Post
class PostAdmin(SummernoteModelAdmin):
summernote_fields = ('content',)
'''
class DisplayAdmin(admin.ModelAdmin):
list_di... | [
"maddarauci@users.noreply.github.com"
] | maddarauci@users.noreply.github.com |
4e3212529919c336eaa65fb17c0588a940065f09 | 8e1d25698853dd5bd1fe89327810afaf22aa7306 | /companies/api/urls.py | d073232701aab54911a84cdb672e6d455d5c9203 | [] | no_license | briancaffey/demo | 3351157c7628b58347dd5d3f749429c5159c8616 | 118b022f9a5558c9dacc0681e8c9593c462d36a4 | refs/heads/master | 2020-06-26T23:14:59.745396 | 2017-07-16T20:23:04 | 2017-07-16T20:23:04 | 97,034,442 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | from django.conf.urls import url
from .views import (
CompanyListAPIView,
)
urlpatterns = [
url(r'^api/$', CompanyListAPIView.as_view(), name='company_list'),
]
| [
"briancaffey2010@gmail.com"
] | briancaffey2010@gmail.com |
fa810c53f901adee5892cdef3330f1fb4281b7f5 | 5181236d06e04ed8269a4b149714ac382fddf41f | /38.AI Application/Anime-API/app/main/animegan/test.py | 8b297b725d56bbe98a686233fc6c07c0b42a023f | [] | no_license | manhntm3/mle_qa | 9cc6bbd968604315e82c2c9eae2b5f6d82c94ac9 | d473eb31753baaafbcffd2980874d96cb2b5c8ca | refs/heads/master | 2023-08-24T06:16:39.596208 | 2021-10-17T12:18:33 | 2021-10-17T12:18:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | import argparse
import torch
import cv2
import numpy as np
import os
from .model import Generator
torch.backends.cudnn.enabled = False
torch.backends.cudnn.benchmark = False
torch.backends.cudnn.deterministic = True
def load_image(image_path, x32=False):
img = cv2.imread(image_path).astype(np.float32)
i... | [
"manhntm3@gmail.com"
] | manhntm3@gmail.com |
5a193de57c62b6a86051cf57edaa3abbbcd154e7 | 8f28f1535250121e353360e0305bab09434d54cf | /printalllinks.py | 7bb78985c2fafc23727f61bd5ec7e93a0332fbf9 | [] | no_license | hdsheena/udacitywork | 9da9d00e089dde3c5e8353f2fea553ce11bcaca2 | 3b910dc518ce00ec8e36a0bbc9fb1a1debf69413 | refs/heads/master | 2021-01-01T16:20:49.738441 | 2015-07-04T19:53:24 | 2015-07-04T19:53:24 | 10,007,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py |
def print_all_links(page):
while True:
url, endpos = get_next_target(page)
if url:
print url
page = page[endpos:] # advance page to next position
else:
break
print print_all_links('this is a <a href="http://udacity.com">link!</a> sdfsafd this is a <a href="http:/... | [
"hdsheena@gmail.com"
] | hdsheena@gmail.com |
f5d6dce4c097a2eff49e3a25f83fc8c13ef299ab | c6087972059ce3a4a811f5e2cb3417e06dd0c8d7 | /Chapter 2 - variables and simple data types/Do it yourself/ulubiona_liczba.py | 431d4b72445c3293de489860c392273b9f73bb93 | [] | no_license | sbrylka/learning-python | 6c91ebb2ad8cc06e374296c1220f30dfb5578ad1 | 042cd82b7516be07a52526d8b3aacec09f3418d1 | refs/heads/master | 2021-04-11T06:27:16.332876 | 2020-11-06T17:48:20 | 2020-11-06T17:48:20 | 248,999,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | #Program opowiadający o mojej ulubionej liczbie
ulubiona_liczba = 4 #oto ona
Komunikat = "Moja ulubiona liczba to"
print(Komunikat + " " + str(ulubiona_liczba))
| [
"sbrylka96@gmail.com"
] | sbrylka96@gmail.com |
2714bb62292bff5293f353b4b1affaa9982d21a1 | 9756a40b783cde0e4892d214e83ca13ad5c9355a | /src/core/views.py | 2e6b432f298d8468f6866a5f7278c021f76740e6 | [] | no_license | omisoul/fst_backend | 81fa4462b99a411f31ff9aa655dc398524c3fdff | 922837e4f8e9fdc54fc11f8931732a3f261807a3 | refs/heads/master | 2022-11-17T17:00:11.069062 | 2020-07-14T22:49:56 | 2020-07-14T22:49:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | from django.shortcuts import render
from django.http import JsonResponse
from rest_framework.views import APIView
from rest_framework.response import Response
from core.models import TestModel
from core.serializers import TestModelSerializer
# Create your views here.
# def test_view(request):
# data = {'first_na... | [
"generalms16@gmail.com"
] | generalms16@gmail.com |
917995ac73a5bf09f647a885d5c631b5e4545361 | 5f92dd1e312a22c84eb826035b859b5fbffb7f4d | /FoTStreamServer/conceptdriftOld/algorithms/cusum.py | 05f8ff161141730c3fdcd0d7a37383d8942f8561 | [] | no_license | BrennoMello/FoT-Simulation-SDN-ML | a5a967d31c8df99d2f77978efa36eb8ed8d09928 | bfaa7439db3d3b4b2470e342c5fdbe41106ed700 | refs/heads/master | 2023-05-08T10:01:01.099838 | 2021-06-03T02:33:52 | 2021-06-03T02:33:52 | 351,583,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,947 | py | """
The Tornado Framework
By Ali Pesaranghader
University of Ottawa, Ontario, Canada
E-mail: apesaran -at- uottawa -dot- ca / alipsgh -at- gmail -dot- com
---
*** The Cumulative Sum (CUSUM) Method Implementation ***
Paper: Page, Ewan S. "Continuous inspection schemes."
Published in: Biometrika 41.1/2 (1954): 10... | [
"None"
] | None |
a0bd51b2deecbd209d6a935c40b68585a3907dc3 | 78d1aaab865c9fa48220a41153e189ff723b6c54 | /myspider/items.py | 1eeafde40fee05c608b50e78991f561e76036404 | [] | no_license | ChrisLee0211/jobbole_spider | 2c71d7a85948476344ca608757f53c5750c071de | caa3060ad7b2e53e1315ce0ee5f2b1e4efadd4e9 | refs/heads/master | 2020-04-06T16:54:57.736012 | 2018-11-15T02:26:21 | 2018-11-15T02:26:21 | 157,639,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
import scrapy
import re
from scrapy.loader import ItemLoader
from scrapy.loader.processors import MapCompose, Join, TakeFirst
import datetime
class MyspiderItem(scra... | [
"1018596741@qq.com"
] | 1018596741@qq.com |
74639eabdeca23b37b96f8b661648333360382d0 | a99a5ffdf60d8b423c38ddcadb4da2598ca7b5ed | /剑指offer/斐波那契数列.py | c78683001db49cea60156b57ed7bb149548317fd | [] | no_license | seekun/offer-algorithm | e11403062aacd99aae287111f0006122a8eefd41 | 158034ed4e4a878ea90e731e76dede1aa8041a22 | refs/heads/master | 2020-04-25T03:35:51.655914 | 2019-03-06T12:32:07 | 2019-03-06T12:32:07 | 172,482,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | # -*- coding:utf-8 -*-
# 斐波那契数列
# 从0开始, f(0) = 0 , f(1)= 1, f(n)= f(n-1) + f(n-2)
# 如果利用递归求解, 会重复计算一些子问题。递归是将一个问题划分为多个子问题求解, 动态规划也是如此, 但是动态规划会把子问题的解缓存起来, 从而避免重复求解子问题
# 考虑到第 i 项只与第 i-1和第i-2项有关, 因此只需要存储前两项的值就能求解第 i 项。
# 由于待求解的 n 小于40, 因此可以将钱40项的结果先计算
class Solution:
def Fibonacci(self, n):
tempArray = [0, 1]... | [
"tmsshikun@gmail.com"
] | tmsshikun@gmail.com |
a67ef990e808a61cbd88a96d5fd1e42d2ab3f62f | d7be4faa85dfa54686f29cfbde9a69c7d60021ea | /esrally/cluster.py | 78983f03c33bb25ea6a2930f6498f7b24c043c28 | [
"Apache-2.0"
] | permissive | jasontedor/rally | 4135e80923ac7a3dbc5a15d6dbb11a94bffd5460 | 02c47a2654a3bef1695b8de8aaba476e23848b09 | refs/heads/master | 2021-01-19T06:56:20.733774 | 2016-04-19T16:00:20 | 2016-04-19T16:00:20 | 56,621,348 | 0 | 0 | null | 2016-04-19T18:27:12 | 2016-04-19T18:27:11 | null | UTF-8 | Python | false | false | 4,846 | py | import socket
import elasticsearch
import logging
from esrally import exceptions, time
logger = logging.getLogger("rally.cluster")
class Node:
"""
Represents an Elasticsearch cluster node.
"""
def __init__(self, process, host_name, node_name, telemetry):
"""
Creates a new node.
... | [
"daniel.mitterdorfer@elastic.co"
] | daniel.mitterdorfer@elastic.co |
8ed210de7b773b2d858db28b0e98b28b8888fd8a | b2d3bd39b2de8bcc3b0f05f4800c2fabf83d3c6a | /examples/pwr_run/checkpointing/final/predict_error/job66.py | 764442a07ebe3d86ebd0814af1b025e37c398848 | [
"MIT"
] | permissive | boringlee24/keras_old | 3bf7e3ef455dd4262e41248f13c04c071039270e | 1e1176c45c4952ba1b9b9e58e9cc4df027ab111d | refs/heads/master | 2021-11-21T03:03:13.656700 | 2021-11-11T21:57:54 | 2021-11-11T21:57:54 | 198,494,579 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,630 | py | """
#Trains a ResNet on the CIFAR10 dataset.
"""
from __future__ import print_function
import keras
from keras.layers import Dense, Conv2D, BatchNormalization, Activation
from keras.layers import AveragePooling2D, Input, Flatten
from keras.optimizers import Adam
from keras.callbacks import ModelCheckpoint, LearningRa... | [
"baolin.li1994@gmail.com"
] | baolin.li1994@gmail.com |
d21b4c860e1218b31a532415e92120f84ca61277 | 490fec3ee09b4699ba05ea8d152cb4089f0a1760 | /old_versions/mkcov_ASD.py | 422a8b31ad6a3f2734e0865e6c14b69476f46e71 | [] | no_license | fdamani/GP_fourier | 54971b90ed4a8bde654c68ae201b88fc5b2f9141 | c717c05a872837077a9403a275b6afbd7fcc99fe | refs/heads/master | 2021-08-30T07:17:14.335185 | 2017-12-16T17:04:56 | 2017-12-16T17:04:56 | 114,474,827 | 0 | 0 | null | 2017-12-16T16:30:42 | 2017-12-16T16:30:41 | null | UTF-8 | Python | false | false | 716 | py | def RadialBF(len,rho,nx)
# % Generate ASD covariance matrix, also known as RBF or squared-exponential kernel
# %
# % C = mkCov_ASD(len,rho,nx)
# %
# % Covariance matrix parametrized as:
# % C_ij = rho*exp(((i-j)^2/(2*len^2))
# %
# % INPUTS:
# % len - length scale of ASD kernel (determines smoothness)
# % rho -... | [
"stephenlkeeley@gmail.com"
] | stephenlkeeley@gmail.com |
a06633e06927cb52c9f5e436e32aa8d187f9f385 | 1e7a40f7a40384680f6a2f30e24274743dbb872c | /PenBlog/wsgi.py | 72e9bda83aff84c9fc40b335bb5ed216e92050aa | [
"Apache-2.0"
] | permissive | quanix/PenBlog | 3a48dcfece7b8a9fa1bcb33109204d870372ca64 | 6d017b847115bba595215d6cfc9a1ca9f84807bb | refs/heads/master | 2021-01-10T19:05:17.815773 | 2015-08-28T09:21:53 | 2015-08-28T09:21:53 | 27,486,776 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
WSGI config for djj 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/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "PenBlog.settings")
from django.core.wsgi ... | [
"quanix@163.com"
] | quanix@163.com |
74049eafb1a70e3e93a8436117e0d7acd79dc95c | bfe96cf3185f59169a6a15d121094ee7f8eb707d | /deep_learning_with_tensorFlow/Chapter05/p12401.py | 5af66fad2c0e1ccd89fc611c070f902a09a4dc9b | [
"Apache-2.0"
] | permissive | pearpai/TensorFlow-action | ca45c22064fbad5f47957f179940b837de712efc | 264099d933988532ed59eaf0f2ad495d40ede4d2 | refs/heads/master | 2021-01-19T10:35:03.211566 | 2017-04-24T09:59:05 | 2017-04-24T09:59:05 | 87,879,220 | 3 | 4 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | import tensorflow as tf
# 可以读取checkpoint文件中保存的所有变量
reader = tf.train.NewCheckpointReader("Saved_model/model.ckpt")
# 获取所有变量列表。 这个是一个冲变量名到变量维度的字典
all_variables = reader.get_variable_to_shape_map()
for variable_name in all_variables:
# variable_name为变量名称,all_variables[variable_name]为变量维度
print(variable_name, a... | [
"469901870@qq.com"
] | 469901870@qq.com |
037b4a377cefa4f9c913c9b919835caeb0f89ad1 | 65f378ce824afb65ff44a9e7634eb5e403a15250 | /discussions/01-python_basics/tests/q32.py | 758113e39d3b23c219799996407eb3ed034b979d | [] | no_license | ucsd-ets/dsc10-2021-sp-public | c067f00a853f12510ac3a897a40296e00b8db247 | d4af09fedd51f988de8136173ba40dc0d0e19c2d | refs/heads/master | 2023-05-25T04:54:36.076251 | 2021-06-06T23:25:31 | 2021-06-06T23:25:31 | 351,519,451 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | test = { 'name': 'q32',
'points': 1,
'suites': [{'cases': [{'code': '>>> county_most_fires == "Los Angeles County"\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
| [
"nixrunner@localhost"
] | nixrunner@localhost |
2f69d581fa5de77c869fffa4cfadbf409f18cf7e | 31704f8810cf13e78863d65337dc7bd57c0d2a2b | /FinalCode.py | 4be4ea20e3eee7ab952fa94f2413ed5f02352495 | [] | no_license | enyeartc/Capstone1-1 | b01d51c3b63e7be724a14443e854ab3580f8cff0 | 58ec99e87f029b6eb1a9b91bca9112a11d434cc3 | refs/heads/master | 2020-04-01T02:53:11.797216 | 2018-10-12T14:22:52 | 2018-10-12T14:22:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,998 | py | import matplotlib.pyplot as plt
import plotly.plotly as py
import plotly.graph_objs as go
import numpy as np
import pandas as pd
import geopandas as gpd
def prev_over_time(save_bool, plot_bool):
'''
Plot prevalence of groups over time
save_bool: 1 == save the plot, 0 == don't save it
plot_bool: 1 == di... | [
"janestout@Janes-MacBook-Air.local"
] | janestout@Janes-MacBook-Air.local |
f082c269790521be387563f31f0067dedbab377d | 1041f604a62a021b19ca703e64c6fd05a8d2207e | /task2.py | bfc026fa8fc6e6b1fcb6b6c4b3e719241f5f91a6 | [] | no_license | Ridwan-AI/Cambridge-Pre-Release-Material-2021 | ec7e74557f6f0ad9fc87214cc72624bc0730ec75 | df777506c9e09fb6a8f4ed798f1493d5345566fd | refs/heads/master | 2023-03-30T23:09:08.441199 | 2021-04-12T14:32:52 | 2021-04-12T14:32:52 | 352,997,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,751 | py | # Task 2
print ("\nGood morning\n")
#Initialise structure data
passenger_left_departure = (480, 480, 480, 480)
passenger_left_return = (480, 480, 480, 480)
totalmoney_departure = (0, 0, 0, 0)
totalmoney_return = (0, 0, 0, 0)
#Screen display code
print ("Train times and remaining tickets along with price are shown b... | [
"ridwan@rnetworks.cf"
] | ridwan@rnetworks.cf |
e4d3058c5df4339858f132c3c4b40205b9024103 | 0967654b942c4a0d8f33fb8a1c5753de7da53166 | /rcnn.py | c50abe1912b726d7fd032676d5f217dea75d087e | [
"MIT"
] | permissive | nithinrajendran/text_classification_models_tf_master | a255857d6dcb683d19874471e5f2546fb30d4881 | 64bfa21c0f034f4187ff89eeed5e72a1b1ddbf23 | refs/heads/master | 2022-11-11T19:00:17.404961 | 2018-10-03T17:02:18 | 2018-10-03T17:02:18 | 151,448,195 | 0 | 1 | MIT | 2022-11-04T03:21:17 | 2018-10-03T16:55:56 | Python | UTF-8 | Python | false | false | 2,559 | py | import tensorflow as tf
from tensorflow.contrib import rnn
class RCNN(object):
def __init__(self, vocabulary_size, document_max_len, num_class):
self.embedding_size = 256
self.rnn_num_hidden = 256
self.fc_num_hidden = 256
self.learning_rate = 1e-3
self.x = tf.placeholder(t... | [
"noreply@github.com"
] | nithinrajendran.noreply@github.com |
cc7b73d9f854a55e82733530243f061b1a953b83 | 4bd555bc662b8182a2e7644976bfdb00ed5e1ebe | /PythonistaAppTemplate/PythonistaKit.framework/pylib/wave.py | 28156a0cddf1d07e96068e0ef3c724e3e4e903a9 | [] | no_license | fhelmli/homeNOWG2 | a103df1ef97194dec9501dbda87ec1f7c111fb4a | e794fd87b296544542fd9dc7ac94c981c6312419 | refs/heads/master | 2020-04-04T13:40:20.417769 | 2019-01-30T21:41:04 | 2019-01-30T21:41:04 | 155,970,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,852 | py | #\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
#\input texinfo
... | [
"tberk@gmx.at"
] | tberk@gmx.at |
d1efe9d67f223730bef933381d68ee21792604ce | 52e64b9bd500a594be966c77017e3bbeea13eaea | /run_classification_items_baseline.py | 665c2fd7c6d1e9b672ce79f63fdf2c9e29957249 | [] | no_license | ShabdizGUni/MasterThesis | 722715f603bd3bf0b1d145d8e64fa6ee1ba93267 | a809828f6df84bcf4d66c408bef725716190aed9 | refs/heads/master | 2021-09-15T08:05:03.135373 | 2018-05-28T22:34:16 | 2018-05-28T22:34:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,798 | py | from data.constants import PATCHES
import Lib.Classification.DataHandling as dh
import Lib.Classification.Classifiers_items as cl
import Lib.Classification.common as common
import sys
print("Items Base started!")
limit = int(sys.argv[1])
# Ashe, Ezreal, Caitlyn, Varus, Jhin
champions = [22, 51, 81, 110, 202]
tiers =... | [
"s_ghas02@uni-muenster.de"
] | s_ghas02@uni-muenster.de |
4e39c4d74b0c6d03aff4d8ece1697f67389a6d68 | c07eac033b881cd6bddff5449abfe6b14ff4dcf9 | /pymc/examples/lda/DistributedLDA.py | 708a322b353aee8277db11d1aec7875c2cca83df | [
"AFL-3.0",
"LicenseRef-scancode-public-domain",
"BSD-3-Clause"
] | permissive | mertterzihan/pymc | 3ea1c49361da2bd9d201da4d6288d9fc072329bc | 9f45837120b610c470d2500562dda069fe59ac08 | refs/heads/pyspark | 2020-04-08T13:51:06.007822 | 2014-08-22T10:26:41 | 2014-08-22T10:26:41 | 20,168,682 | 23 | 5 | null | 2014-09-16T19:21:02 | 2014-05-25T23:20:01 | FORTRAN | UTF-8 | Python | false | false | 7,124 | py | from numpy.random import randint
total_topics = 10
phi_seeds = randint(1000000, size=total_topics)
def model_function(data, global_param):
'''
This is the function which generates the PyMC model for LDA (naively distributed)
Parameters
----------
data : list of strings
list of lines where each line represents ... | [
"mertterzihan@gmail.com"
] | mertterzihan@gmail.com |
c54d7cda8a3aed953a639a4c8a739c6ecaa5a602 | 9ddb3f463f1efcc4b6b25beee2dfcf1804b379cf | /accounts/migrations/0001_initial.py | b3c17d1a76035ffcbad397ac8a929b2ea305ba24 | [
"BSD-3-Clause"
] | permissive | risha700/django-accounts | 798173d3bc1b574bee06ba0dbe0f4aa8304a7d05 | 161fe35fe55c94c33812bbf3c1da7beb59a96524 | refs/heads/master | 2023-08-04T08:01:03.471029 | 2021-09-21T09:36:10 | 2021-09-21T09:36:10 | 317,861,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,619 | py | # Generated by Django 3.1.4 on 2020-12-01 19:17
import accounts.utils
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
import phonenumber_field.modelfields
cl... | [
"ahbox@outlook.com"
] | ahbox@outlook.com |
5124b6b8ae0f31df7809797678631fdaaf6b2c24 | fd326562890d4f1987c384fc7c60374938231222 | /PythonAdvanced/PongGame/game.py | 3e9796356f4d3b20fa9b545010373e402f2496ff | [] | no_license | miro-lp/SoftUni | cc3b0ff742218c9ceaf93f05c319ccfeed5bc8a4 | 283d9328537919de49f7f6a301e58593bae9ca2a | refs/heads/main | 2023-08-23T21:22:07.856226 | 2021-08-25T15:10:18 | 2021-08-25T15:10:18 | 318,134,101 | 2 | 1 | null | 2021-08-10T12:51:54 | 2020-12-03T09:03:08 | Python | UTF-8 | Python | false | false | 2,113 | py | class Game:
def __init__(self):
self.width = 800
self.high = 400
self.__ball_pos = (0, 0)
self.__ball_delta_x = 1
self.__ball_delta_y = 1
self.paddle_a_pos = (-self.width / 2 + 50, 0)
self.paddle_b_pos = (self.width / 2 - 50, 0)
self.paddle_height = s... | [
"miro_lp@abv.bg"
] | miro_lp@abv.bg |
28d69c649d104842a33a3b0faa6f551bdb3b6b1f | 64c90b077af7feed265041c0e94cbeee4be92f01 | /tools~/gen_docs.py | 96f62efb1a882dda15b4f1aafa1de18cfee027cc | [
"Zlib"
] | permissive | Fopoon/Fopoon.ScenesKit | 5713dd7f420a22079fd9ba57b5984836ec7ca35d | acb45bc02ea6f091f7ec36e232a3bc232f528992 | refs/heads/master | 2022-11-26T19:24:40.789089 | 2020-08-10T04:20:51 | 2020-08-10T04:20:51 | 286,259,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | from json import loads
from pathlib import Path
from typing import Dict
from scriptgen import \
StringBuilder, \
diff_text, \
interpolate_text, \
write_text_file
def get_text(
template: str,
expressions: Dict[str, str],
template_name: str = None
) -> str:
sb = StringBuilder()
# A... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
1d63518936cb6c7dd07da624adee9a388b513d68 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_086/ch2_2019_08_12_14_38_49_563421.py | b972fa739df8d6f21034c9041e0194bba7ac4e1c | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 84 | py |
def calcula_velocidade_media = (d,t)
return (d/t)
print(calcula_velocidade_media) | [
"you@example.com"
] | you@example.com |
c6661a7e9616eed67978d13d3c3dd95ef4e35baf | 7b1cb400a7c7231500e61abdf19ec3174d03fa3b | /week2/toposort/toposort.py | c3f6803611c009bceeb32c2c22a96dd48b275942 | [] | no_license | limberc/Algo_Graphs | f5cd9611fee891fd3d5e67d154e608a0d9bde11a | 3419752091a406ca3e81015453b6699d07b41b2d | refs/heads/master | 2021-09-06T17:48:02.193657 | 2018-02-09T08:45:38 | 2018-02-09T08:45:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
# Copyright (c) 2017 - Limber Cheng <cheng@limberence.com>
# @Author : Limber Cheng
# @File : toposort.py
# @Software: PyCharm
import sys
postorder=[]
visited = []
def explore(v):
visited.append(v)
for w in adj[v]:
if not w in visited:
explore(w... | [
"chengzehua@outlook.com"
] | chengzehua@outlook.com |
123139ec57df29955a3b09425f13ccfa128f0ad3 | 01c8cec807463271af03c527eb5869eec3b5cbc8 | /0x0A-python-inheritance/4-inherits_from.py | 0dc2d56b5e59e818704855712f550cb26ff6882c | [] | no_license | Deinstein37/holbertonschool-higher_level_programming | 2b2b26f419eb1a010294b71b41d73d64b67e6f05 | 665e6c546cec3081730417feba5a263b3f68d01b | refs/heads/master | 2023-03-17T09:14:31.438191 | 2018-01-14T23:03:37 | 2018-01-14T23:03:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | #!/usr/bin/python3
''' module: 4-inherits_from
'''
def inherits_from(obj, a_class):
'''function inherits_from
obj: an object
a_class: a class
returns True if type of obj inherits from a_class, but is not class
'''
return type(obj) != a_class and isinstance(obj, a_class)
| [
"lmadeo76@gmail.com"
] | lmadeo76@gmail.com |
730b0a1040f8e4f50725192f208820e686e100fc | 8af0ba5202aa891a2c325158c4c6d44a7a538ec5 | /migrations/versions/a66cf42e2dfa_initial_migration.py | 77992b0486e740fc8e74d2671c4ef08b25a55370 | [
"MIT"
] | permissive | Queen-Uwitonze/Pitch-web-app | 50695a39a84875239849c1dc172bd7e65f2bdca6 | 5a76fa271019ce8a0a718d372fb61c192befc406 | refs/heads/master | 2020-04-25T15:03:52.797482 | 2019-03-07T13:59:37 | 2019-03-07T13:59:37 | 172,865,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | """Initial Migration
Revision ID: a66cf42e2dfa
Revises: 4848c5a32802
Create Date: 2019-02-27 13:33:22.130949
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'a66cf42e2dfa'
down_revision = '4848c5a32802'
branch_labels = None
depends_on = None
def upgrade():
... | [
"uwitonzeq@gmail.com"
] | uwitonzeq@gmail.com |
e190f872d162e5db26094b8a89a2d964a28c88ac | 05ee54ae8fe5f12e5af1e297331d5e15aa7c789d | /Utils/FilesUtils.py | 4593fcef1ddcc74d84d3b0f8f645a90cccb817ca | [
"MIT"
] | permissive | spanoselias/RealTimeReplicationTool | 1b205fb53211596f58362da7e301ddde28861f44 | 8fdc968e4fdf82992b704e1c7422f3a5591798eb | refs/heads/master | 2020-04-07T05:50:29.036666 | 2019-02-11T21:10:13 | 2019-02-11T21:10:13 | 158,112,615 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import shutil
import json
def zipFiles(sourcePath, destPath, currentTimestap):
finalSourcePath = str(sourcePath) + '_' + str(currentTimestap).replace(':', '_')
shutil.make_archive(finalSourcePath, 'zip', str(destPath))
return
def unzipFiles(sourcePath, destPath):
shutil.unpack_archive(str(sourcePat... | [
"spanoselias@outlook.com"
] | spanoselias@outlook.com |
7c57d6860abff8a5484f84fb659be9b27b7e8034 | adf3ca8f0ce8b3333d70c83118932d0e46d90182 | /examples/query_condition_sparse.py | bfcfbf6fad2eda34dca7cf95093452e45ca1d9e9 | [
"MIT"
] | permissive | TileDB-Inc/TileDB-Py | 77ccce93e1607ce4280d57d2f715cf490aa9f0d3 | 223ee9939e23ecb618bd98d89dc9e874ebd47a2d | refs/heads/dev | 2023-08-28T14:13:52.112262 | 2023-08-25T20:03:54 | 2023-08-26T01:19:46 | 91,851,641 | 167 | 35 | MIT | 2023-09-14T19:07:10 | 2017-05-19T23:06:53 | Python | UTF-8 | Python | false | false | 3,311 | py | # query_condition_sparse.py
#
# LICENSE
#
# The MIT License
#
# Copyright (c) 2021 TileDB, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limita... | [
"noreply@github.com"
] | TileDB-Inc.noreply@github.com |
93a81014fd2d0ff040a7d8cfc18746e5819cf227 | f2bc287bdb21e80c16f7cd477c5068808b0e8a6e | /howdy/views.py | 994fcc86eb065db2546901158621d2b282869a64 | [] | no_license | michaelwoon/blog-post-site | c2f82233679f72859be9756c7da723c86a44d5c4 | 5e7538fc2b7a431f07c52bc3677d6a9100b1b7c8 | refs/heads/master | 2020-03-30T08:44:47.499904 | 2018-10-05T01:06:22 | 2018-10-05T01:06:22 | 151,036,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | from django.shortcuts import render
# Create your views here.
from django.views.generic import TemplateView
from .models import Post
from django.http import HttpResponse
from django.views.generic import DetailView
from django.views.generic import ListView
# Create your views here.
class HomePageView(Templat... | [
"michael_woon17@yahoo.com"
] | michael_woon17@yahoo.com |
d717179f481b649b48ed81755b643fe987d9aa26 | 68b32fde030b026e42be4a8ff8c9ea015f76d3a7 | /sitepr/worldcup/migrations/0001_initial.py | 3f2b0a90568eaee06559e8be121c5b4358860f16 | [] | no_license | ndarriulat/worldcupapp | 3b934492f0d68b1631eacb289cd750fbe35fabc0 | 2735d818e20c031c959c190b227529e3b1487b19 | refs/heads/master | 2020-03-15T04:40:22.527315 | 2018-05-14T00:21:23 | 2018-05-14T00:21:23 | 131,971,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,367 | py | # Generated by Django 2.0.4 on 2018-05-03 13:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Player',
fields=[
... | [
"nicolasd92@gmail.com"
] | nicolasd92@gmail.com |
3ebabab1cc0ec29075386911102d4c4d892eed04 | 16ba38ef11b82e93d3b581bbff2c21e099e014c4 | /haohaninfo/即時範例/61.py | 6e90415a943dd91a9a3bc4319e97582c7b9dabb8 | [] | no_license | penguinwang96825/Auto-Trading | cb7a5addfec71f611bdd82534b90e5219d0602dd | a031a921dbc036681c5054f2c035f94499b95d2e | refs/heads/master | 2022-12-24T21:25:34.835436 | 2020-09-22T09:59:56 | 2020-09-22T09:59:56 | 292,052,986 | 2 | 5 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | # -*- coding: UTF-8 -*-
#取得報價資訊,詳情請查看技巧51
execfile('function.py')
#取得上下五檔價量資訊
for i in getUpDn5():
UpDn5Info=i.split(',')
UpDn5Time=UpDn5Info[0]
totalUpPrice=0
totalUpQty=0
totalDnPrice=0
totalDnQty=0
#開始進行上下五檔加權平均值
for j in range(0,5):
totalDnPrice+=int(UpDn5Info[1+2*j])*int(UpDn5Info[2... | [
"penguinwang@smail.nchu.edu.tw"
] | penguinwang@smail.nchu.edu.tw |
11376c3f2d1070a380a3e5c5e2283cb1ab913e7e | a08f09d944759dde90582edcdc2be123a99147e7 | /factory/request_builder.py | 46f0fe096affdfa11640d73d0a0980c61a34127e | [] | no_license | potbunker/functional | fbbf812b0581c6535145b970f936ac160237ae3e | 5677e04c519281a0f6e5d552abe79a315acaf6d4 | refs/heads/master | 2021-01-10T21:49:32.138823 | 2016-09-27T10:37:21 | 2016-09-27T10:37:21 | 35,383,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,012 | py | import json
from collections import OrderedDict
def merge(first, second):
(section, subsection) = parse_markup(second)
def merge_subsection(first, second):
value = first.get(subsection)
if value:
value.append(second)
else:
first[subsection] = [second]
re... | [
"potbunker@gmail.com"
] | potbunker@gmail.com |
1aebfecfb7c535dfb772e03f670341e3dd8d9f6f | d9af6a6cba2fb35083f8144af047b0851b1ccab3 | /scripts/combine_sets.py | a5cb44c50a055204aaaef50fcc17aa5da26226a1 | [] | no_license | sunnyxxchen/tuhh-gate-resnet | ebc7c4009fc0fe3ffde14515adf15c5f5799f182 | d1bddeda865e7ff81260a6037b3ead1c42e83b25 | refs/heads/master | 2020-06-29T23:31:27.339348 | 2019-08-05T14:31:42 | 2019-08-05T14:31:42 | 200,654,668 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | from shutil import copyfile
import numpy as np
#paths = ['orig/', 'far/', 'farther/', 'nearest/']
paths = ['combined/', 'combined/noised/']
save_path = '/home/hippoc/bin/beauvoir/data/thin_distract_plus/dataset/'
#nums = [48000, 6400, 8000, 8000]
nums = [70400, 70400]
comb_labels = open(save_path+"labels.txt", "w")
... | [
"nils.timmermann@tuhh.de"
] | nils.timmermann@tuhh.de |
bf1e6db74be38f15e260dcd5cfb4d344f0b6f004 | e1e405ff19a4a88457564ec67018a944e1968e8a | /SF-Net/stage1.py | c3b5760c56647bc904fe33d379c13636d0910719 | [] | no_license | LingJun123/single-frame-TAL | 7eb3e3ffe53716c6e09e54043287f3fb764710d8 | eeae39da1e61cd349006ee61b6dbd86c0c7e07e5 | refs/heads/master | 2023-03-29T07:34:20.167212 | 2021-03-28T08:38:18 | 2021-03-28T08:38:18 | 341,221,154 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,459 | py | import torch
import torch.nn.functional as F
import torch.optim as optim
from model import Model
from video_dataset import Dataset
from tensorboard_logger import log_value
import utils
import numpy as np
from torch.autograd import Variable
import time
import random
torch.set_default_tensor_type('torch.cuda.FloatTensor... | [
"393914387@qq.com"
] | 393914387@qq.com |
85cee0f893635d531b95b5d312f8e209a6f535dc | fefb1e9b0b736da4e49d7754f8d1dbaf37f2fa6a | /.history/7_3_2_20210208211227.py | 2021ca036ff147a699a385552cc614517dc2ef19 | [] | no_license | wh-debug/python | 5a78a2227874ebc400d075197de0adab9f55d187 | 1467eeda670f170e6e2d7c0a0550f713f1ee9d75 | refs/heads/master | 2023-03-12T22:08:12.608882 | 2021-02-17T09:49:52 | 2021-02-17T09:49:52 | 334,032,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,191 | py | '''
Author: your name
Date: 2021-02-08 21:11:05
LastEditTime: 2021-02-08 21:12:27
LastEditors: Please set LastEditors
Description: In User Settings Edit
FilePath: \python\7_3_2.py
'''
'''
_oo0oo_
o8888888o
88" . "88
(| -_- |)
... | [
"1813763848@qq.com"
] | 1813763848@qq.com |
76583011a04470b4007449f2c51fbef24a96c354 | 3636c0aacdb00d61c88fda35c8c5df4bb9ad2b61 | /Server/server.py | 4238456366c08a1276f25a55225123f040587fec | [] | no_license | Arunkumar1999/Web_tech_project | 1c6a376f0bbee672b36e696f47354418f52c56de | a44dcd1fd2769cafbb57db2d388fb869f6058b0e | refs/heads/master | 2021-05-23T18:41:46.060799 | 2020-06-15T17:13:56 | 2020-06-15T17:13:56 | 253,420,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,897 | py | # import sqlite3
from flask import Flask, render_template,jsonify,request,abort,Response
import requests
import json
from flask_cors import CORS
import draw_graph
import base64
import mysql.connector
from mysql.connector import Error
import change
connection = mysql.connector.connect(host='localhost',
... | [
"48383390+Arunkumar1999@users.noreply.github.com"
] | 48383390+Arunkumar1999@users.noreply.github.com |
8222ad5dbb1fe9a2d9066677863f31844b5d765d | ef78bd58d61002f45778a40da7759ed0b1998cd3 | /code/transforms/subspacegaussianization.py | 121e6249045137472b93b36408bb02b129606325 | [
"MIT"
] | permissive | afcarl/isa | 61e85c0c790c7cc357e0c29fc5bda948e9c77ce4 | f0497c0cc7bd72e0de7f4f9a8da40e214c22abe9 | refs/heads/master | 2020-03-19T21:36:06.716167 | 2013-01-28T18:32:30 | 2013-01-28T18:32:30 | 136,944,562 | 1 | 0 | null | 2018-06-11T15:20:45 | 2018-06-11T15:20:44 | null | UTF-8 | Python | false | false | 3,769 | py | __license__ = 'MIT License <http://www.opensource.org/licenses/mit-license.php>'
__author__ = 'Lucas Theis <lucas@theis.io>'
__docformat__ = 'epytext'
from transform import Transform
from radialgaussianization import RadialGaussianization
from numpy.linalg import inv, slogdet
from numpy import vstack, dot, zeros
from ... | [
"lucas@theis.io"
] | lucas@theis.io |
018a14af583218b976db55e4105c31c2faf4651b | 6f488a444da8181886497c3cede7eff1fc4454f4 | /evaluate/utils/results.py | 52f8c4f9a169cbf369fa209c2d19fae7e4f74d67 | [
"MIT"
] | permissive | kartikshah1/Test | 6ea6778c08302f24dc45c47721ed3f90b0009606 | 4ed9c338bf777bf01796b2cff28000c033a4a98a | refs/heads/master | 2016-08-04T12:29:41.073891 | 2014-07-01T09:20:19 | 2014-07-01T09:23:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,074 | py | '''
This file is not being used in any module
'''
from django.core.files.storage import default_storage
from django.core.files import File
from assignments.models import Program
from assignments.models import Testcase
from grader.settings import MEDIA_ROOT
import tarfile, os
class TestResults(object):
def __init_... | [
"user@user-virtual-machine.(none)"
] | user@user-virtual-machine.(none) |
ed71e3e54a38c07112a8aa9d5fdf13bdf984da44 | 85f251ca11be73d9107a19a85481e33173771977 | /custom/intrahealth/reports/tableu_de_board_report_v2.py | 015e7f77d17bb125c73f256d7761310b4385954a | [] | no_license | esmaeilinia/commcare-hq | 7dae43c3aef8cbd79df1ecb5b4a4127107458fc4 | 86447bcb6086b4f64f0a252b9b920e3c15a7d98e | refs/heads/master | 2020-03-20T07:46:45.435747 | 2018-06-13T22:08:21 | 2018-06-13T22:08:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,545 | py | from __future__ import absolute_import
from __future__ import unicode_literals
from corehq.apps.reports.filters.dates import DatespanFilter
from corehq.apps.reports.standard import CustomProjectReport, ProjectReportParametersMixin, DatespanMixin
from custom.intrahealth.filters import LocationFilter
from custom.intrahea... | [
"dmydlo@soldevelo.com"
] | dmydlo@soldevelo.com |
db80797eea94b37f6dba50423e613d0f6ab53cbb | 58a6838b1e3feee394cc34a3711e9c438e028501 | /audioguide/routebuilder/admin.py | 2f59337f307abc44be7a03823c8e6e7987b812f8 | [
"MIT"
] | permissive | daveclifton/audioguide | 40c606c5fd662b97643155568453b30c34d70d66 | cb23e5f5f022d8bc86bd23e0361a07accf727341 | refs/heads/master | 2021-03-12T23:06:33.537140 | 2015-09-15T19:49:52 | 2015-09-15T19:49:52 | 42,356,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | from django.contrib import admin
from .models import Route, Waypoint
class WaypointInlines(admin.TabularInline):
model = Waypoint
extra = 1
class RouteAdmin(admin.ModelAdmin):
field = ['description','title']
search_fields = ['title','description']
inlines = [WaypointInlines]
class WaypointAdm... | [
"dave@clifton.org.uk"
] | dave@clifton.org.uk |
5af6449a0fe0e4c9f5b630c080bba66822d27e3a | 203f8465075e098f69912a6bbfa3498c36ce2a60 | /mapping/annotated_planar_patch_map/test/test_projection.py | a7e0505b10bdb8b257c44630058b35bc7add9f2b | [] | no_license | robcn/personalrobots-pkg | a4899ff2db9aef00a99274d70cb60644124713c9 | 4dcf3ca1142d3c3cb85f6d42f7afa33c59e2240a | refs/heads/master | 2021-06-20T16:28:29.549716 | 2009-09-04T23:56:10 | 2009-09-04T23:56:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,798 | py | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2009, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributions of source code... | [
"syrnick@f5854215-dd47-0410-b2c4-cdd35faa7885"
] | syrnick@f5854215-dd47-0410-b2c4-cdd35faa7885 |
7297a1c764fe304c3780a7b0b97c712f3dea2106 | 699c482e57f78a8fc3dd1fe7de3484644049eedc | /djangonautic/settings.py | 2207a1616e6553da2a7661a3497314bc1692eaa4 | [] | no_license | MuhammadAhmedHassan/learn-django-basics | d5c58a848b33b4035e2075390d32ebec54476f3e | a0a453f3b3d3ddcec1911af9fd703550196811fa | refs/heads/master | 2022-12-26T17:27:34.860032 | 2020-10-10T05:35:21 | 2020-10-10T05:35:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,311 | py | """
Django settings for djangonautic project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pa... | [
""
] | |
9961f02f3cc87bd6bb0fd66daadb71f7fbd6f526 | 3a642fa1fc158d3289358b53770cdb39e5893711 | /src/xlsxwriter/test/worksheet/test_write_sheet_views2.py | 1ac53cd2d1fb5d98adfaf23b01058d89c365b7e0 | [] | no_license | andbar-ru/traceyourself.appspot.com | d461277a3e6f8c27a651a1435f3206d7b9307d9f | 5f0af16ba2727faceb6b7e1b98073cd7d3c60d4c | refs/heads/master | 2020-07-23T14:58:21.511328 | 2016-12-26T22:03:01 | 2016-12-26T22:03:01 | 73,806,841 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,464 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...worksheet import Worksheet
class TestWriteSheetViews(unittest.TestCase):
"""
Tes... | [
"andrey@voktd-andbar.int.kronshtadt.ru"
] | andrey@voktd-andbar.int.kronshtadt.ru |
05445b0767ee608afe1f57d808036229fdad4950 | 4bcf8c813129ecf71e0c9b7589a861268ad73361 | /helperFunctionsRepo.py | 0e103f243f50911346cd6754f49a910fd139aea5 | [] | no_license | ShreyaR/LoopyBPCTMP | fd406ac23cbd0ccaae6c93e6c7be725626a485d5 | 29cab0137037a61dcef755680980131efdf6bee1 | refs/heads/master | 2021-01-10T15:43:04.883322 | 2015-12-08T04:09:53 | 2015-12-08T04:09:53 | 47,594,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,378 | py | __author__ = 'shreyarajpal'
from math import log, exp
from collections import deque
#global ocrDat, transDat
characterArray = ['e','t','a','o','i','n','s','h','r','d']
ocrDat = []
transDat = {}
def readOCRPotentials():
global ocrDat
ocrDat = [{} for _ in xrange(1000)]#*numOfImages
ocrInfo = open('data/ocr... | [
"shreya.rajpal@gmail.com"
] | shreya.rajpal@gmail.com |
1b82fd76728b2136d28cf08aa972f3b23952159b | 8f97bb7ac5affe163082c177934fa5dedad07eb9 | /counter/counter.py | c3f0567a90250f4ee7f65648fe93592442a4989b | [] | no_license | nirhersh/GUIApps | 1dbf98330b6d0c65652a9ba76cf76f45a7369d6c | c6fbd0f5b1d97b1849f4993ba8039beffe899f95 | refs/heads/main | 2023-03-19T11:44:45.871914 | 2021-03-09T22:28:44 | 2021-03-09T22:28:44 | 346,159,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,148 | py | from tkinter import *
from tkinter import ttk
import winsound
counter = Tk()
counter.title("Counter")
counter.geometry('500x205')
background_image = PhotoImage(file="source.gif")
background_label = Label(counter, image=background_image)
background_label.place(x=0, y=0, relwidth=1, relheight=1)
choose_frame... | [
"noreply@github.com"
] | nirhersh.noreply@github.com |
3611bd94f2a5270fae583b1921ddeba388724f54 | 38d0d2bce869ae74be3fab0054e654819197f50e | /annot_gnomad/parser.py | 8a4e35c66f2073d8010083750b8690746661f01b | [
"MIT"
] | permissive | ken0-1n/annot_gnomad | 3791b708c2edd433af7bf6bb0374388f2da2eda8 | 32c9284398ea85b8b18a0b8115a2393cae54cd7c | refs/heads/master | 2020-07-31T19:18:05.905629 | 2019-09-26T04:43:48 | 2019-09-26T04:43:48 | 210,724,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,336 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
@author: ken0-1n
"""
import sys
import argparse
from .version import __version__
from .compare import comp_main
def create_parser():
prog = "annot_gnomad"
parser = argparse.ArgumentParser(prog = prog)
parser.add_argument("--version", action = "version", ... | [
"ec2-user@ip-172-31-39-78.us-west-2.compute.internal"
] | ec2-user@ip-172-31-39-78.us-west-2.compute.internal |
413fae5d3fbae535a19798130e74abb371a25cb9 | 020da726bb378ea9fe58af19caadad8e02bd4e27 | /CODES_RCM/Calcul_Heat_Wave_RCM.py | 31eb9bfd038cd5ce54ea25386c8f2ed2b0b10913 | [] | no_license | guimeto/Heat_Wave_Codes | 06dc19f9547b2cc083db9fd7bd44d22fad072a37 | 85a1c6ae582818a5694aef9b17fc7f3578b3af16 | refs/heads/master | 2020-06-22T05:44:11.064070 | 2020-04-10T18:11:19 | 2020-04-10T18:11:19 | 197,648,190 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,289 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jul 15 10:31:05 2019
@author: guillaume
"""
import xarray as xr
import numpy as np
import pandas as pd
from netCDF4 import Dataset
model='CANRCM4_NAM-44_ll_CanESM2_historical'
yi = 2000
yf = 2000
tot=(yf-yi)+1
#########################################################
rep_... | [
"guillaume.dueymes@gmail.com"
] | guillaume.dueymes@gmail.com |
09602990e72457570a017402cb49b565dd310734 | b9efab6b369cd8e9fec0cbd1e73c45fe1be354c7 | /backend/api/migrations/0181_auto_20190829_2036.py | cdcdfdccabb7670698c0f3e115763664d63e9bc5 | [
"Apache-2.0"
] | permissive | WadeBarnes/tfrs | 646e0aed2bf48d5100f331edbb2d80418adee4b6 | d62f58019dfa0164ce788912099862e35098fbb1 | refs/heads/master | 2021-02-10T21:37:20.021758 | 2020-02-25T17:01:56 | 2020-02-25T17:01:55 | 244,421,600 | 0 | 0 | Apache-2.0 | 2020-03-02T16:40:09 | 2020-03-02T16:40:08 | null | UTF-8 | Python | false | false | 901 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.22 on 2019-08-29 20:36
from __future__ import unicode_literals
import api.models.SigningAuthorityAssertion
from django.db import migrations, models
from api.models.SigningAuthorityAssertion import SigningAuthorityAssertion
class Migration(migrations.Migration):
... | [
"richard.tan@gov.bc.ca"
] | richard.tan@gov.bc.ca |
4d1edaeffac4009ede65c480a2166a0a62b91e9e | c5af212255b9d10220e14f7afda710692de05e10 | /MelomaniaAPI/melomania/melomaniapp/migrations/0005_auto_20200911_1509.py | 4920dcdb5b47effbfe5b849fb2577683f9c4221f | [] | no_license | nakeisha0601/melomania | e7dd88ccf833cc3f2818e18de98aa449e5b51fb0 | 04a0bfe02c443ccce7cefb72ee7f1afa76d9ec8f | refs/heads/master | 2022-12-15T15:51:59.642354 | 2020-09-20T05:37:26 | 2020-09-20T05:37:26 | 259,446,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,219 | py | # Generated by Django 3.1.1 on 2020-09-11 20:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('melomaniapp', '0004_auto_20200910_1345'),
]
operations = [
migrations.CreateModel(
name='Analisis_Cancion',
fields=[... | [
"62564842+nakeisha0601@users.noreply.github.com"
] | 62564842+nakeisha0601@users.noreply.github.com |
e11e0ab9c99e23ba3c8ca537713bccaaf4f7f663 | 0dcab74606e5d4a23d37137dadf9d0348aa7bad9 | /CyPerAna/reader/__init__.py | 8205ce62f59b7c4dc21ac2c818f1b161cdbcf446 | [] | no_license | stefano-v37/cyperana | 9c9dff10883a37e9920bfe124e56e2af2e1d24df | 1bc086862cb9bf9c0e2b75c164b4f7a6ce40296c | refs/heads/main | 2023-02-12T08:00:43.113557 | 2020-12-31T20:39:57 | 2020-12-31T20:39:57 | 324,461,013 | 1 | 0 | null | 2020-12-31T20:39:58 | 2020-12-26T01:29:49 | Python | UTF-8 | Python | false | false | 55 | py | from .read import Reader
from .readFit import FitReader | [
"s.vanin@outlook.it"
] | s.vanin@outlook.it |
24f5e2086845530ffadd3fae2f1037f846e85504 | af4a10e899c64ac252aef1d837e41489d8eccc58 | /hw_4/ml2019fall_hw4/pca/pca.py | a134b1b5372212cccfe110b1e999e1aaa2e6446c | [] | no_license | zhaone/ML_ZJU | 86022064b3b3a37b6db1b0e37b53bc1aad15fda9 | e5150d55702e73467ef54f6664797f39cce617d7 | refs/heads/main | 2023-06-24T10:39:20.642959 | 2021-07-24T09:53:29 | 2021-07-24T09:53:29 | 387,376,253 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 704 | py | import numpy as np
def PCA(data):
'''
PCA Principal Component Analysis
Input:
data - Data numpy array. Each row vector of fea is a data point.
Output:
eigvector - Each column is an embedding function, for a new
data point (row vector) x, y = x*eigvector
... | [
"yizhaome@gmail.com"
] | yizhaome@gmail.com |
6c21d227ad53ebf78f43f01ad9109641d3150a75 | aadf448a46aa111dbf6e90ea7256168fc688880e | /AutomateBoringStuffwithPython/13-soup.py | 9532473aa7b70e99ff29b93cb3b3b709ec2785dd | [] | no_license | Matthew1906/Automate-The-Boring-Stuff-With-Python | 0bc8edd7b65d43690f274bfd5c974aa952e01760 | 8dc0ae32a77f182d72a9232618c60b4335e19cb0 | refs/heads/main | 2023-04-22T05:07:40.592033 | 2021-05-11T08:23:12 | 2021-05-11T08:23:12 | 363,805,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | # WEB SCRAPING = programs that pull information out of webpages
# locate text , we can parse using beautiful soup
import bs4
import requests
# retrieve price from website
res = requests.get("https://www.ebay.com/itm/123662580942")
res.raise_for_status()
# second parameter = avoid warnings
soup = bs4.Bea... | [
"noreply@github.com"
] | Matthew1906.noreply@github.com |
5dcb6c44624c035c9c62088552324bbe251ba059 | f10f2f62cee9f15c18ebe69d890cbec36c62a65e | /reading-and-writing-binary-files-code/file2.py | 229f6793d2618f4c38b24ad892697ebf48bf94e0 | [] | no_license | hackerbot/python-for-beginners-instructor | 1991c1d00a776e49df40794e5c9366fbd1fd232c | 0a15b5f107be1e40fa0237687cebc08580a8db62 | refs/heads/master | 2021-01-25T08:54:44.963574 | 2015-08-21T18:58:48 | 2015-08-21T18:58:48 | 41,172,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | file = open('keyboard_bokeh.jpg', 'rb')
for line in file:
print(line, end='') | [
"ninh@ninh-macbookpro2.roam.corp.google.com"
] | ninh@ninh-macbookpro2.roam.corp.google.com |
b2fdefe7181305ca916463ddeb239e959d65aa0c | b80ae07a86546c2aeda56f03ea74dc38869852cb | /gensbo/core/variable.py | d9199122e01e9bac5fcea5c87979a99bc5ccdd70 | [
"MIT"
] | permissive | ai4energy/gensbo | c307ada773872b2f0c40637102ce128496d75fbc | b8f5cf50b9465777f855d0e3054df02fe73e7d90 | refs/heads/main | 2023-02-13T18:39:05.868263 | 2021-01-12T09:34:01 | 2021-01-12T09:34:01 | 328,614,659 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,963 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ======================================================================
#
# gensbo - a GENeral Simulation Based Optimizer
#
# 一个基于仿真的优化器
#
# ======================================================================
#
# author : Mingtao Li
# date ... | [
"18702978557@163.com"
] | 18702978557@163.com |
25318e469a5640b9624e44d66269790726f45c48 | a87913dabc348552a7c606e11fb0ea9ed0c73d63 | /dog/migrations/0003_alter_dog_id.py | 58a3b4eb99ceb5cd2ef6196775e9840cf86e7e09 | [] | no_license | Python-Guruz/Python-Django-basic | 213b822370aa917b115a05ec8c25b9cdab6d290d | 92dcfc4dc41ab3f5707a3366458a6ca6b7cff14f | refs/heads/main | 2023-07-15T02:17:20.680345 | 2021-08-31T10:11:56 | 2021-08-31T10:11:56 | 401,623,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | # Generated by Django 3.2.5 on 2021-08-31 09:11
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('dog', '0002_auto_20210831_0103'),
]
operations = [
migrations.AlterField(
model_name='dog',
name='id',
... | [
"onjombafelix1@gmail.com"
] | onjombafelix1@gmail.com |
79412abdea0e6372f74ea7c14965c8ab42d09fb6 | 091a6200be74bf6577c86f623665bcc24e16b02b | /MIDI_Foot_Pedal/code.py | de131e0012635abaf06cf4df0ad0a12a3c0f68d0 | [
"MIT"
] | permissive | adafruit/Adafruit_Learning_System_Guides | b5f7bce40a16da64e7a79d4b39de032f2cca41d4 | 5eaa7a15a437c533b89f359a25983e24bb6b5438 | refs/heads/main | 2023-09-05T18:31:41.621956 | 2023-09-05T15:36:09 | 2023-09-05T15:36:09 | 105,065,494 | 937 | 937 | MIT | 2023-09-12T18:48:53 | 2017-09-27T20:22:44 | C | UTF-8 | Python | false | false | 1,219 | py | # SPDX-FileCopyrightText: 2022 Liz Clark for Adafruit Industries
# SPDX-License-Identifier: MIT
import time
import board
import usb_midi
import adafruit_midi
import simpleio
from analogio import AnalogIn
from adafruit_midi.control_change import ControlChange
# midi setup
midi = adafruit_midi.MIDI(
midi_in=usb_mi... | [
"noe@adafruit.com"
] | noe@adafruit.com |
2fff49f69313fbe9165d2135132e97efb34e076b | 35b9c8bfe1247f1775fe42b6b6a5bae1f88a254e | /Tools/my.py | 35819a4c2ead1921e274708ee2338bfb10b96cf3 | [] | no_license | chucongqing/PythonToy | 9bfe24edba10d8f801c2741a8c63350c8d5197fa | e4c761b834804aaa1731857540a8a2aba312aa7a | refs/heads/master | 2020-12-24T05:21:58.721966 | 2018-05-09T08:41:19 | 2018-05-09T08:41:19 | 41,523,360 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,814 | py | # -*- coding: utf-8 -*-
import os
import sys
import os.path
import json
import plistlib
print ("script name = ", sys.argv[0])
for i in range(1, len(sys.argv)):
print ("parameter = " ,i, sys.argv[i])
origin_type = ".png"
if len(sys.argv) < 2 :
rootdir = ".\\"
else:
rootdir = sys.argv[1]
def updateJsonFil... | [
"chucongqing@gmail.com"
] | chucongqing@gmail.com |
31f267126e8d1ba7d2e8a597ffd4c6862dcb7921 | 6eca61a10316c9dfd8cb3481c02d8f1685a4f6fc | /ex/ex068.py | 4d844dbb883c3c8b602354391538073c7223fcaa | [
"MIT"
] | permissive | Ozcry/PythonCEV | ec46afa6aedb2f60ae69fa655477962aa5ffabf3 | b4d4a4fbd6467d1ced0815677ecbd78c2613c4c9 | refs/heads/master | 2023-07-16T12:12:50.627431 | 2021-08-18T17:22:10 | 2021-08-18T17:22:10 | 348,510,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,786 | py | '''Faça um programa que jogue par ou ímpar com o computador. O jogo só será interrompido quando o jogador PERDER,
mostrando o total de vitórias consecutivas que ele conquistou no final do jogo.'''
from random import randint
contv = 0
maq = randint(0, 10)
print('\033[1;33m-=\033[m' * 20)
print('\033[1;37m------- Vamos j... | [
"jean.lucasferreira1998@gmail.com"
] | jean.lucasferreira1998@gmail.com |
6e1cffc537c875ac775caa6fe87c8b21a3b2b0a9 | 59be5a2e12ec7b9371e215dfb8a8f930e94be6db | /lgtv/lgtv/database.py | d2de029a27f24fe783a693269937540598c84519 | [] | no_license | Sduniii/alexa-broadlink | 2ae5b5c7b1e4520f996666f5d5d66787df3baabf | 3166a1170a3f7d8a04c87137f056d504217f787e | refs/heads/master | 2021-01-22T09:41:46.919560 | 2017-12-08T16:53:18 | 2017-12-08T16:53:18 | 81,967,691 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,462 | py | import simplejson as json
import os
import traceback
APP_ROOT = os.path.dirname(os.path.abspath(__file__))
APP_STATIC = os.path.join(APP_ROOT, 'static')
def load_database_by_mac(mac):
try:
f = open(os.path.join(APP_STATIC,mac + '.json'), 'r')
d = json.loads(f.read())
f.close()
retu... | [
"tobias.sdun@campus.tu-berlin.de"
] | tobias.sdun@campus.tu-berlin.de |
380862f363778871dcc1dd87f156313ed31820f4 | 4157108fe186b22b8ef1a7bf543b7ac5df61c838 | /tests/test_kubernetes.py | 63c0422f4ff70ef681dd78acb20c99b7ed516494 | [
"Apache-2.0"
] | permissive | CVirus/zmon-worker | 0861656fd1c02996eea17febdc7f805ff448cd50 | 8ef9326945dccb0a8fde84be0eeb0bd8a05ae1f3 | refs/heads/master | 2021-01-15T10:57:38.934269 | 2017-08-07T17:04:53 | 2017-08-07T17:04:53 | 99,600,326 | 0 | 0 | null | 2017-08-07T16:58:16 | 2017-08-07T16:58:16 | null | UTF-8 | Python | false | false | 20,747 | py | import pytest
from mock import MagicMock, call
from zmon_worker_monitor.builtins.plugins.kubernetes import KubernetesWrapper, CheckError
CLUSTER_URL = 'https://kube-cluster.example.org'
def resource_mock(obj, **kwargs):
resource = MagicMock()
resource.obj = obj
resource.ready = True
for k, v in kwa... | [
"noreply@github.com"
] | CVirus.noreply@github.com |
f4eeaa6892ba9773596d48872d8e1deb7cfe36ce | 12f8d670d62f03fcba6441f0f396f3d0a62fd876 | /pizza_api/pizza_api/urls.py | 7f9445077baf4e311e2023a18304f1c328c92618 | [] | no_license | TravisBaumann/pizza_api | 7107ba103e63eb95b098fed6afa375085d782a26 | 46744c73e392187da34a735d3a46fb7aa2c88cf7 | refs/heads/master | 2021-01-10T23:15:05.800228 | 2016-10-11T19:51:31 | 2016-10-11T19:51:31 | 70,627,014 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | """pizza_api URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-... | [
"thba223@uky.edu"
] | thba223@uky.edu |
fd4a9ce4b664f08aa0697bfefe7e1704b3945917 | 4e091e3ac68893aa6ed327d956ecc524ab4118c9 | /COVIDscraper.py | 2778e33fc8528cedc17a51ac581fbf59499cc7e9 | [] | no_license | anInsignificantHuman/COVIDTracker | 4e3ec0072a52f0ac5277dd0473aacf492b03a2b6 | 8255107e873f9d29a602fb33e3b79c655991e073 | refs/heads/master | 2022-12-23T10:38:36.507847 | 2020-09-23T01:44:43 | 2020-09-23T01:44:43 | 297,820,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | # This is the file for scraping the web and finding the data behind-the-scenes
# Imports And Setup
import requests
from bs4 import BeautifulSoup, SoupStrainer
website = requests.get("https://www.worldometers.info/coronavirus/")
parse_ref = SoupStrainer(id="nav-tabContent")
parse_ref2 = SoupStrainer("title")
so... | [
"noreply@github.com"
] | anInsignificantHuman.noreply@github.com |
d3bb2016d415c47c7039c7cc1a1f2fadb8094a6d | 3d4a3bebf614086cce8a22510d8c27c0bea52f92 | /CDS_pro.py | 6963688c12963d1e348fb2a00680deef640be7ea | [] | no_license | caelus95/MantaOcean | dc031518051daac9b718b4c7664a057a956475f8 | dbc5774f6ecd949a8d8f58c66d0101f816b90dc9 | refs/heads/master | 2023-06-18T22:00:26.353952 | 2021-06-29T13:25:48 | 2021-06-29T13:25:48 | 365,965,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,252 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Jun 29 18:03:50 2021
@author: caelus
"""
PKG_path = '/home/caelus/dock_1/Working_hub/LGnDC_dep/python_cent/MantaPKG/'
import sys
sys.path.append(PKG_path)
from Manta_Signals.procc_index import sig_pro, linearRegress4Cube
from Manta_Signals.utility im... | [
"caelus9536@gmail.com"
] | caelus9536@gmail.com |
8533ca767d64e12d8bcb5381a612b810abd7061e | 461309262bc065fdd3206375607d85d1df912382 | /train.py | 4a56292cc71f521c7e806234565aa74181155b28 | [
"MIT"
] | permissive | tsarjak/lstm-text-generation | 54c8e2a51b7a47da7693c825db1ab519a386cef8 | 487b758ef39f4f1b41f443211f7f7d0040828f89 | refs/heads/master | 2020-03-30T05:47:28.099437 | 2018-09-29T03:27:13 | 2018-09-29T03:27:13 | 150,819,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,981 | py | import numpy as np
from keras.models import Sequential
from keras.layers import Dense
from keras.layers import Dropout
from keras.layers import LSTM
from keras.callbacks import ModelCheckpoint
from keras.utils import np_utils
from keras.optimizers import RMSprop
def loadText(filename):
completeText = open(filename).r... | [
"noreply@github.com"
] | tsarjak.noreply@github.com |
38f6677b625f331d35df70b4d6bbe3ef286f8a02 | 8aa877184fa0a661c4121bb2195fcbf3017942fa | /first.py | 7ac2783c72cc5d44d6c68df4b7593b88be7238bf | [] | no_license | 0xHertz/Face | c2c0074d8f9e8d12ad469d1a6c465b05f4d7265d | 7a3200128727766f914dc8594688314844296b15 | refs/heads/main | 2023-04-04T19:52:02.898730 | 2021-04-04T08:58:46 | 2021-04-04T08:58:46 | 354,187,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | # coding=utf-8
# 2021.4.2
# import cv2 as cv
from cv2 import cv2
def main():
# load a pic
# colored img
img = cv2.imread("2.png",1)
# Black&white img
img1 = cv2.imread("2.png",0)
# check img shape
print(type(img))
print(img.shape)
print(img1.shape)
# show pic
cv2.ims... | [
"55642724+Liubing-Zhen@users.noreply.github.com"
] | 55642724+Liubing-Zhen@users.noreply.github.com |
808cf3c32ee1793a9b9e851d99062f6245f9dc9e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02879/s604770795.py | 8a8a1f8c96a9e183e5e3de56c8219f8a884b4acc | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | import math
import collections
import fractions
import itertools
import functools
import operator
def solve():
a, b = map(int, input().split())
if a < 10 and b < 10:
print(a*b)
else:
print(-1)
return 0
if __name__ == "__main__":
solve() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
b9b8a13b267ef5edda9509e7fff2263fa13dbe73 | de58cf83e62c6a94482ef62128c268ce69e125fe | /DR_DR_Server/AccessControlDR_DRServer.py | 61b6fbedb798fe47f4c5baeb901cf04f3cfc9735 | [] | no_license | 2019202009ankush/DroneSecurity | 5b805c563fa9bbfe070e3e6e57b6471304c88494 | aeb6fde94756a8053030ec205b258bed1672a8f9 | refs/heads/master | 2023-01-15T12:48:55.624592 | 2020-11-25T08:45:26 | 2020-11-25T08:45:26 | 310,006,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,039 | py | import ECC
import hashlib
import time
from random import SystemRandom
rand=SystemRandom()
curve=ECC.secp256k1
delta = 100
import multi
def ACDG1():
fp=open("DR.txt","r")
l=fp.readlines()
ID_DRj= int(l[0])
Cert_DRj= int(l[2])
# print('Cert_DRj=',Cert_DRj)
TCDRj = int(l[1])
fp.close()
fp... | [
"54775848+2019202009ankush@users.noreply.github.com"
] | 54775848+2019202009ankush@users.noreply.github.com |
a05976b64fdb4ac59d22e58b70ac1713e27bb580 | 97ca9495f7d014a35e56cb7ca46ab1f44f33e01f | /mgd/WF_SupplementalData.py | 4b65cb25f489a6817cdd0b093a6128ca4c083447 | [] | no_license | mgijax/qcreports_db | 8717f4e34a4187fb67efffadce6a5348fb1ad9be | 565a9354b73b7fba2d5cd1df81d1a61b836f17d8 | refs/heads/master | 2023-07-19T20:06:49.884253 | 2023-07-11T17:20:21 | 2023-07-11T17:20:21 | 58,069,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,555 | py |
'''
#
# TR12777/Lit Triage Supplemental Data Needed
#
# Report:
#
# References where:
# - has J#
# - is keep
# - is-reviewe-article = No
# - supplemental in:
# 'Db found supplement'
# 'Curator found supplement'
# - Status in ('Chosen', 'Indexed')
# - Journal not in 'Elife'
# - SOrted by Curator, Status, J#
#
... | [
"lori.corbani@jax.org"
] | lori.corbani@jax.org |
a8869c4e190e0b10da067ce0d488d8aac471d785 | 23d0a335cebe9ffc5bc5d833de6e4f2f36d9330c | /main.py | 5978ae9aaa02b2551db41ee11711a3f2170ea94e | [] | no_license | Divyalochana/chutes-ladders-game | d9f190e1219c23f78ea12be6dc2cbac943484d4b | f0fcf50341ba1b706f4297a1b259a6fa756f63e1 | refs/heads/main | 2023-06-13T01:38:46.721441 | 2021-07-02T14:12:55 | 2021-07-02T14:12:55 | 382,365,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | import random
print("***** WELCOME TO SNAKE & LADDERS GAME *****")
print("-------------------------------------------")
snakes = {94: 24, 60: 42, 21: 4, 85: 16}
ladders = {5: 25, 44: 70, 80: 95, 12: 56}
pos = [0, 0]
i = 0
c = 0
while pos[0] < 100 and pos[1] < 100:
input("Player " + str(i) + " turn")
dice_num =... | [
"divyayoseph419@gmail.com"
] | divyayoseph419@gmail.com |
da9a522765d60f9e9e57ebdebec0a3d42577c315 | fd966a3e29723c6ad85ff9023e5d875d6e8a05ee | /api/src/launcher.py | 97d7f0d3e701592ac24c76ead6436afe7cc1174d | [] | no_license | Franck-Crtx/StatFive | 576ca0ab794f2f4029c24e897518f9f94fea833f | 7b2a3e946ac9e42260852f3803ec45a00cb7d7d3 | refs/heads/master | 2022-11-03T08:32:51.164828 | 2022-10-25T11:23:38 | 2022-10-25T11:23:38 | 557,223,241 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | import mimetypes
import os
from flask import Flask, jsonify, redirect, url_for, Response, send_file
from flasgger import Swagger, swag_from
from flask_cors import CORS
from flask_mail import Mail
from pathlib import Path
from .models import db, mail
from . import config
def create_app(config_key='development'):
... | [
"fcourtaux@fcourtaux.vm.vdi.s1.p.fti.net"
] | fcourtaux@fcourtaux.vm.vdi.s1.p.fti.net |
b419e7b4c4e52f9ce5e7b3aebea94dd8c0d8fbd3 | a41483192147c552d6cbdf7b656621cc1337af5f | /Chap14/modules.py | 0a7d0a092deda12f7ad45ee1e98c4864363f746d | [] | no_license | venkatesulu-byni/python-programms | 4f4b3161b4a189ee2a3809a7c6e09dcf978f954b | c4213ce5737bc622ba64f5fdd04e0ee46333eeae | refs/heads/master | 2020-04-17T10:45:33.879385 | 2019-01-20T07:36:27 | 2019-01-20T07:36:27 | 166,513,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!/usr/bin/env python3
import sys
def main():
v = sys.version_info
print('Python version {}.{}.{}'.format(*v))
if __name__ == '__main__': main()
| [
"venkatesulubyni@gmail.com"
] | venkatesulubyni@gmail.com |
44f34465f88d2c8498d8b02d029cd8d70bba3f12 | 7b82258f8ed0df2bbf1826b53e28a3c8398570f1 | /web/questup.py | 44428dc9099d0fb2fc00e0947034764baea85f25 | [] | no_license | CainanW/WatAreMyClasses | 783df1eb1a514e685ea0242b931cbc21284b78f0 | 2a4f4d86cad0899f68c1fa1dab4f878b4c75be42 | refs/heads/master | 2021-01-18T07:48:03.710660 | 2015-08-24T22:59:04 | 2015-08-24T22:59:04 | 41,369,074 | 0 | 0 | null | 2015-08-25T14:46:49 | 2015-08-25T14:46:49 | null | UTF-8 | Python | false | false | 890 | py | import web
from jinja2 import Environment, PackageLoader
from parsers import Quest
from db import Database
from services import Auth
"""
Deals with quest/onboarding. Walks user through adding new schedule.
When completed correctly, redirects to /map.
Note the POST/GET syntax examples.
Source: quest.html
Current Mapp... | [
"me@magmastone.net"
] | me@magmastone.net |
181554a3189b38654b3ad1a23b82d77b14e45fe3 | 707cb6b0ffc789aabab2b416af9b39819d94e5ab | /problem004.py | cc5cf92236e89d8c9e3d9dff96d676f0acb5774e | [] | no_license | tomasbmp/projectEuler100 | ee6dbbdf4138474fdd761dfab6da347add988d88 | c8c59086d0bd51a7bedad97d7b6e61125c3bb522 | refs/heads/master | 2020-12-04T16:56:20.133111 | 2020-01-17T10:35:22 | 2020-01-17T10:35:22 | 231,844,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | '''
Project Euler: Problem 4: Largest palindrome product
A palindromic number reads the same both ways.
The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.
Find the largest palindrome made from the product of two n-digit numbers.
'''
def isPalindrome(n):
# returns True if numbe... | [
"noreply@github.com"
] | tomasbmp.noreply@github.com |
cb6e5c94de5555c1009d71b263176ac427baae1c | 6e027ba1582ea04411484597928073aff51fcb2c | /serve.py | be43e7cdd169d6cef823c07325eafa7238b83d68 | [
"MIT"
] | permissive | toanluongnhu1709/drift3 | 024b6f660822c4bfb1be2d956e1e1834f55aea7b | 82208cccaf0ca309c7883bcc91e042963348f968 | refs/heads/master | 2023-03-16T02:14:36.897473 | 2020-04-19T22:16:04 | 2020-04-19T22:16:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,265 | py | #!/usr/bin/env python3
import guts
from twisted.web.static import File
import os
import csv
import tempfile
import requests
import subprocess
import json
import nmt
import numpy as np
import scipy.io as sio
import sys
import time
from drift import measure
BUNDLE = True
def get_ffmpeg():
if BUNDLE:
retu... | [
"mail@RMOZONE.COM"
] | mail@RMOZONE.COM |
58718c5071d69d53194ec35c9fdf987843ad8f99 | d566cea0b4357a33735d7ba4cdaed8204c6aef91 | /excercises/47.py | 319a710544f3b79b5356abf13428005ecc20b190 | [] | no_license | GentelmanBastard/PythonCourse | c0fc4fe8cf491b4344e811113762f933df8e7eb7 | 4e5e7d999b5b0fe91784e8b93e8dd1bfc00b8386 | refs/heads/master | 2021-01-25T09:53:01.113469 | 2020-02-11T15:09:05 | 2020-02-11T15:09:05 | 123,327,526 | 0 | 1 | null | 2018-08-08T09:04:28 | 2018-02-28T18:49:17 | Python | UTF-8 | Python | false | false | 228 | py | import string
letters = string.ascii_lowercase
l = []
for i in letters:
with open("letters/" + i + ".txt") as file:
file_read = file.read()
if file_read in 'python':
l.append(file_read)
print(l) | [
"mateusz.kucman@igt.com"
] | mateusz.kucman@igt.com |
4e5104bc1e855aa605ac261ef07cd2f1d367e188 | 17087efa5b0b6042bb77916bf60fabca393b268a | /core_packages/Windows_package/source_codes/app.py | 18c35ee60094c8951d77f43922be5afbd44b11f4 | [] | no_license | sprtkd/re2dfa | 4f40b3a461e4c8c138ca5e41703e10e35928fb68 | 4a40ef8984b1f33388273bd9d1a6cca869d39dee | refs/heads/master | 2020-03-18T22:07:05.045819 | 2018-05-19T10:00:03 | 2018-05-19T10:00:03 | 135,325,854 | 0 | 0 | null | 2018-05-29T16:45:01 | 2018-05-29T16:45:01 | null | UTF-8 | Python | false | false | 6,558 | py | import tkinter as Tkinter
import tkinter.font as tkFont
from PIL import ImageTk,Image
from sys import exit
import subprocess
import pydot
import graphviz
import os
curr_dir = os.getcwd()
graphvizdir = curr_dir+'\\graphviz-2.38\\release\\bin'
os.environ["PATH"] += os.pathsep + graphvizdir
def my_output():
f = open("... | [
"finimatatools@gmail.com"
] | finimatatools@gmail.com |
f8f69581d435fa7562790d09afb49cc08bc26d6c | 199eac0e8251f44b7a50fd94e1f832f6b48978ca | /.c9/metadata/environment/checkout/models.py | ca359efe261b9a7992046733f6691267c08972d2 | [] | no_license | aokealy/ecommerce-5 | 0c7623f9beccbd5223135ae184540676e1f3adc8 | 8a7daccc485f33288ced998fad3f05cd8d0ee22f | refs/heads/master | 2023-04-06T23:57:38.427624 | 2019-12-18T21:00:04 | 2019-12-18T21:00:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,984 | py | {"filter":false,"title":"models.py","tooltip":"/checkout/models.py","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":37,"column":15},"end":{"row":37,"column":16},"action":"insert","lines":["m"],"id":189},{"start":{"row":37,"column":16},"end":{"row":37,"column":17},"action":"insert","lines":["o"]},{"st... | [
"ubuntu@ip-172-31-42-70.ec2.internal"
] | ubuntu@ip-172-31-42-70.ec2.internal |
b371fb38087b5344e67a3a24fa3d980891521c9c | 3c74ce9fe212fd13bbadf769ea287e275eebb445 | /wsgi/cnto/cnto_api/urls.py | df387a21f97d36f32e9c2391ec2ccad38121db20 | [] | no_license | CntoDev/django-roster | f631c2006d231bad63754c19743625ef8ace9e5b | a67ffbc290822122e7605a63bf82ef85760f8aba | refs/heads/master | 2022-07-21T09:06:45.265077 | 2019-12-05T08:27:19 | 2019-12-05T08:27:19 | 44,257,209 | 3 | 4 | null | 2022-07-06T19:40:28 | 2015-10-14T15:28:58 | Python | UTF-8 | Python | false | false | 797 | py | """cnto URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"riaan@stonethree.com"
] | riaan@stonethree.com |
028769a696e47d276c85168289624c29b80f227f | 08cc66a03cbda7f08f1dc36c612302fae065742a | /moduleConfig/stiModule.py | 1650efcd4c9f840347afbd98c2ddc2e97d9976a1 | [] | no_license | RohanBali/EGUANA_Python | cc6fd71de9c7bc6dac67fea217124d39390da5d8 | b87344eb9b96adc63bc67593b2a3176d9fd9683b | refs/heads/master | 2020-05-22T04:18:01.797297 | 2019-07-12T00:49:05 | 2019-07-12T00:49:05 | 63,805,617 | 0 | 1 | null | 2019-07-12T00:51:34 | 2016-07-20T18:42:10 | Python | UTF-8 | Python | false | false | 187 | py | from moduleConfig.eguanaModuleConfig import EguanaModuleConfig
class StiModule(EguanaModuleConfig):
name = "STI"
def __init__(self):
EguanaModuleConfig.__init__(self)
| [
"roh10roh@gmail.com"
] | roh10roh@gmail.com |
5b84a703ec75e8757b276d78be3ebc336ecd8d4f | 388938ff64adb54f5fcac724b1fbe97947bf6879 | /table_maker.py | 893f67e1277e359ae4eb79d3ef8b87af803eb899 | [] | no_license | shadypollen/Table-maker | 3939d8acb1d3edce3fc94e561f2648e01115e529 | 1fada0019275ecb6d50fa34a4ab1c8e05272a6c3 | refs/heads/master | 2021-05-07T02:03:51.091432 | 2017-11-27T11:02:53 | 2017-11-27T11:02:53 | 110,397,326 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,322 | py | masterList = []
miniList = []
def findLongestWord(inputList):
maxLength = 0
for row in inputList:
for word in row:
if len(word) > maxLength:
maxLength = len(word)
if maxLength % 2 == 0:
return maxLength
else:
return (maxLength+1)
def findLongestRow(inputList):
maxLength = 0
for row in inputList:
... | [
"coplayr@hotmail.com"
] | coplayr@hotmail.com |
31fb114ed920fcfae01485c2a6e8fb4bcf9ab0ff | bbfa3b7ee2008617d33a7c5c7770d22e1aa8836b | /Optimization/dynamic_programming.py | 45645d59bdddc6e1e046f26ab79ad1f62240638a | [
"MIT"
] | permissive | luoshao23/ML_algorithm | 1a0046ce9c3abed029cceffa35defe57fffa82b2 | 6e94fdd0718cd892118fd036c7c5851cf3e6d796 | refs/heads/master | 2021-08-07T08:38:16.102455 | 2020-03-18T06:49:43 | 2020-03-18T06:49:43 | 92,467,636 | 4 | 1 | MIT | 2018-01-16T05:01:29 | 2017-05-26T03:20:08 | Jupyter Notebook | UTF-8 | Python | false | false | 7,776 | py | from random import random, randint, choice
from copy import deepcopy
from math import log
class fwrapper(object):
"""docstring for fwrapper"""
def __init__(self, function, childcount, name):
self.function = function
self.childcount = childcount
self.name = name
class node(object):
... | [
"luoshao23@gmail.com"
] | luoshao23@gmail.com |
aefd0392756721d0d9d80c26226154f258f9cf53 | 24d9d942d2c4abe2424c14bde38f58d9cd49cfc3 | /app/forms.py | 7e3ee3959e1cccbd719d9cde18e106bef73ab9fd | [] | no_license | MichaelDeutschCoding/baseball-cards | f6e037c5fb6b3fe82aebd0824e124efe51ca1092 | 642018c2cc90a61dfafc711ad3b6a56b4914e54d | refs/heads/master | 2020-12-01T21:00:40.010117 | 2020-01-06T10:36:57 | 2020-01-06T10:36:57 | 230,768,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | from app.models import Comment, Offer, Card
from django.forms import ModelForm, Select, NumberInput
from django.forms.widgets import Textarea
class CreateOfferForm(ModelForm):
class Meta:
model = Offer
fields = ['card', 'price']
widgets = {
'card': Select(attrs={'class': "form-c... | [
"michaeldeutsch1@gmail.com"
] | michaeldeutsch1@gmail.com |
a6e0a4db84676dc4a1d53ff97516530d1b4aabbb | 3fcdeb9d0f447b6f8af0f98c712345f768535fca | /image_classifier/models.py | b1fbe9d53962971a5904daf46b940751cf1d8871 | [] | no_license | jl-massey/DSND_Term1 | 983b219ecad4de5092ed1690615dd46add9cfa51 | 994aac5af878e0d28c82621e15bf4be090e4780c | refs/heads/master | 2020-03-22T17:50:01.396571 | 2018-09-25T15:28:25 | 2018-09-25T15:28:25 | 140,419,124 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,023 | py | import re
from collections import OrderedDict
from torch import nn, optim
from torch.optim import lr_scheduler
from torchvision import models
def get_clf(in_features, hidden_units, num_classes):
"""
Create new classifier to replace the one from pre-trained models.
"""
layers = OrderedDict([
(... | [
"jim.massey@team.telstra.com"
] | jim.massey@team.telstra.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.