blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46d8832c988bf4eb6ff75712e08950beea18fb75 | 615bc7e8d365212288732a43a6a937537185954e | /10classes.py | 3461968fdbde85967204f62415625898eaa1d392 | [] | no_license | KnightsTiger/tratsgnittegnohtypetisnilarulp | 2f846c5a740f1f378273f7125a2d41f7d30f95d6 | 21f639efc21d64d145e95262dc70ba067d38aca5 | refs/heads/master | 2021-05-26T01:44:05.210790 | 2020-04-09T15:59:14 | 2020-04-09T15:59:14 | 254,004,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,486 | py | #As a convention a class is starting from a capital letter
class Studnets:
print("done")
##saman = Studnets()
#--------------------------------------------------------------------#
#Adding a method to a class
# calsses = []
# class NewStudents:
# def addClass(self,name,count): #Without self keyword this wil... | [
"tocaldera6734@gmail.com"
] | tocaldera6734@gmail.com |
710bcc0fb5dcc70b3aacdae1595043478681cdb2 | 02560440f9f91e583fe98d80ab11e18aa6c7a525 | /apps/usuarios/migrations/0003_usuario_correo.py | ad084ca9dc73a72604d08e401a8af1a08f618f45 | [] | no_license | eduardogpg/wamadeusV1 | a36c89176543e638486009620c5131f46743edbc | 82d93293dc6afc95a6661f727162f4055ab83a43 | refs/heads/master | 2020-12-28T01:57:47.831689 | 2015-01-08T05:14:25 | 2015-01-08T05:14:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('usuarios', '0002_auto_20141215_1710'),
]
operations = [
migrations.AddField(
model_name='usuario',
n... | [
"eduardo78d@gmail.com"
] | eduardo78d@gmail.com |
004ffb4848cb44c224fac37051f30378f5af9281 | 4bbb118943bbd8a1296ab96ebf092c9d26232c20 | /neuroballad/neuroballad_execute.py | 496f4dd1126161ba9aa38f38c9670f019cda0b25 | [
"BSD-3-Clause"
] | permissive | TK-21st/Neuroballad | 66e0baf07fa9f0bcd3118a24e5b466f8dbbf289f | 6d4800e969c35b0f2d64897db24b734a9daaa160 | refs/heads/master | 2020-09-02T23:08:04.598245 | 2019-05-19T17:27:41 | 2019-05-19T17:27:41 | 219,328,262 | 0 | 0 | BSD-3-Clause | 2019-11-03T16:12:28 | 2019-11-03T16:12:28 | null | UTF-8 | Python | false | false | 2,633 | py | import numpy as np
import h5py
import networkx as nx
import argparse
import itertools
import random
import pickle
from neurokernel.LPU.InputProcessors.StepInputProcessor import StepInputProcessor
from neurokernel.LPU.InputProcessors.FileInputProcessor import FileInputProcessor
from neurokernel.tools.logging import setu... | [
"mkt2126@columbia.edu"
] | mkt2126@columbia.edu |
22af5780ca6318f0076646d9a994de340505c2f5 | 5dbb3c65e945a366b2d5c7a4c44fe21c6dfc7b47 | /matrix_addition.py | 508c26721ec762ba3530edec605629d39dc8ccf9 | [] | no_license | kblasi/portfolio | b1e5eb5ea2ad60d939aeb5d4a64c8674d15b1397 | 7b4b671f45717854ee22db5a2fbe6246df234336 | refs/heads/main | 2023-04-26T11:56:01.111130 | 2021-05-17T03:12:37 | 2021-05-17T03:12:37 | 368,036,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,075 | py | '''
We'll take two matrices with the same dimensions, add them, and return the result
'''
#do it this way or use range function?
def matrix_addition(a, b):
' a and b are two dimensional matrices with the same dimensions '
#initialize the sum of a and b to be a copy of a
sum_of_matrices = a.copy()
... | [
"noreply@github.com"
] | noreply@github.com |
99d1df035fe01289d72bae11c68d2a404070e8f0 | 3e8561909eea121ce68fd824d8000975b6e09cf5 | /orders/migrations/0001_initial.py | f329065de7593cd2310682c78f8fcbb0a642c89b | [] | no_license | SebastianMeler/django-shop | c7d70d4a23c11afec5a0f802e5c94cf8154bc3d1 | 04412cf0a1f783a6951b2d41be63fcc16ca16bf7 | refs/heads/master | 2023-09-01T02:36:27.877618 | 2023-08-22T10:57:17 | 2023-08-22T10:57:17 | 248,446,058 | 0 | 0 | null | 2023-08-22T10:57:19 | 2020-03-19T08:13:11 | Python | UTF-8 | Python | false | false | 1,797 | py | # Generated by Django 3.0.4 on 2020-03-20 08:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Orde... | [
"sebastianissimus@gmail.com"
] | sebastianissimus@gmail.com |
3a59b6324f48032a8c58f34957ffbed79c1fcb08 | 72f2f37c3c33e5bc02ec6c707a7c858d7990db3a | /examples/tour_examples/driverjs_maps_tour.py | 33fb342608c1c2cd08a48da9c5a1aab3f8ac71a0 | [
"MIT"
] | permissive | matthewxuda/SeleniumBase | 190e4917dec8c731f17fd9d6a1247f8c17086d0c | efd282a860206dad81d0d4e61a472138eb04328d | refs/heads/master | 2023-09-01T09:17:57.608760 | 2021-10-21T02:48:32 | 2021-10-21T02:48:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | from seleniumbase import BaseCase
class MyTestClass(BaseCase):
def test_create_tour(self):
self.open("https://www.google.com/maps/@42.3591234,-71.0915634,15z")
self.wait_for_element("#searchboxinput", timeout=20)
self.wait_for_element("#minimap", timeout=20)
self.wait_for_element("... | [
"mdmintz@gmail.com"
] | mdmintz@gmail.com |
4418a4347de2932ba4812bb390ac0ef4e1b3efdb | c2f995670ed2ed2033d255a6ab96093ec7a55a1d | /scheduleweb/authorization/admin.py | b23d5692ef70f0c812ccbe545bb8c90f1bbf4c9c | [] | no_license | edvegas/scheduleapp | 14cd8d2d28c0adb8bab470fb1b730f1f4ea76abd | 7dbc55ba79eb7b26ee795c5aef567d985d12e96d | refs/heads/master | 2020-04-22T15:02:01.580961 | 2019-04-18T12:40:46 | 2019-04-18T12:40:46 | 170,464,380 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | from django.contrib import admin
from .models import Profile
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.contrib.auth.models import User
class ProfileInline(admin.StackedInline):
model = Profile
can_delete = False
verbose_name_plural = 'profile'
class UserAdmin(BaseUserA... | [
"edbulatov@gmail.com"
] | edbulatov@gmail.com |
1102f5d0aa67daf57769bc61b420c4daa5a19e6d | 5ed5f99610de14cab056018cd46f8305a15097da | /part4/while-loop.py | e5f64ebc0ec32a3002c35d79b42f8e11d13d2f6b | [] | no_license | shazam2064/complete-python-developer | 04288f07e8901cb881bb8c58fd1fd690015e5803 | c5746e61307e29c387450b089d8d1156f886ce3e | refs/heads/main | 2023-05-06T07:40:26.752274 | 2021-06-02T16:05:32 | 2021-06-02T16:05:32 | 370,096,960 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | # x = 0
#
# while x < 10000000000000000:
# x += 1
# print(x)
# else:
# print("print x is not less than 10")
# x = 0
#
# while x < 10:
# x += 3
# print(x)
# else:
# print("print x is not less than 10")
x = 0
while x < 10:
if x == 6:
continue
x += 3
print(x)
else:
pri... | [
"gabriel.salomon.2007@gmail.com"
] | gabriel.salomon.2007@gmail.com |
48067e4ceef655c896f3a35b0571079df7c10a52 | 97a4d29863d1ce96f366554fdd985c3ce580bb5d | /061.py | f14890c43a1e22228adf9d4732a5d4ba2c6c44f6 | [] | no_license | Everfighting/Python-Algorithms | 5c3a102fed3a29858f3112d657c69e077efc7e28 | 235e9b4c66602035be39a8d3b3ad9cf016aebbb9 | refs/heads/master | 2021-01-20T22:19:18.902687 | 2018-03-02T05:38:27 | 2018-03-02T05:38:27 | 61,302,323 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | #!/usr/bin/python
# -*- coding: UTF-8 -*-
if __name__ == '__main__':
a = []
for i in range(10):
a.append([]) #创建十行
for j in range(10):
a[i].append(0) #每行创建i列
# 杨辉三角边界都为1
for i in range(10):
a[i][0] = 1
a[i][i] = 1
# 杨辉三角定义,下一行数值为上一行数与上一行前面数之和(除边界)
f... | [
"cbb903601682@163.com"
] | cbb903601682@163.com |
a5c232a38ca2baa4eef74f5b7a3ca714948d7295 | cb33631104dcd88c70f4654d91135ab0768459db | /mooc/apps/schools/adminx.py | 473820e4766180fcd9a38bbdad4f03b7ae2329e7 | [] | no_license | Shirlesha/DjangoMooc | 54956a4580e0f2b5d3ba2796f4794c912dd652f8 | db01795c97db55f18b69f22cd91a72cc03eaa312 | refs/heads/master | 2020-05-21T13:27:15.967861 | 2019-05-14T00:57:12 | 2019-05-14T00:57:12 | 186,072,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | # encoding: utf-8
__author__ = 'Shirlesha'
__date__ = '2019/5/12 0009 08:02'
import xadmin
from .models import CityDict, SchoolName, Lecturer
class CityDictAdmin(object):
"""学校所属城市名后台管理器"""
list_display = ['name', 'desc', 'add_time']
search_fields = ['name', 'desc']
list_filter = ['name', 'desc', 'a... | [
"1251671603@qq.com"
] | 1251671603@qq.com |
6c4181efcbbbf3de4db6c12f8f7c78a49723c80b | 10dc5606b8de20a51e5468d2224805b2b52c5158 | /wei/app7.py | 3a9dd976d41ff013880e1c74b4f5971bea468a8b | [] | no_license | stevecheen/crawler | 22e006d73b9864ad6ab5be2bc527501ccf7d4bab | 567463855771a2933958023f2c984337f78e1a2f | refs/heads/master | 2022-03-26T21:09:00.291721 | 2019-12-12T07:47:50 | 2019-12-12T07:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,484 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
ZetCode PyQt5 tutorial
In this example, we determine the event sender
object.
Author: Jan Bodnar
Website: zetcode.com
Last edited: August 2017
"""
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
... | [
"xumajie88@163.com"
] | xumajie88@163.com |
3edf4d96d625b272d07a4bfa4b82d171d201b46f | b09e596edb48976ceea7e512714a388338e4908f | /DDP_LAB9/main.py | 41c357da9943843aba9c68d8eee4ded4db0bdbf2 | [] | no_license | ztirrataufik/Dasar-Dasar-Pemrograman | 9ee186d8ff6a5ee5bf8b4e3126d2036308a52e2d | f083f2cae4096be3618f449f7b3f1eb06f9242f0 | refs/heads/main | 2023-03-07T03:28:56.057631 | 2021-02-16T05:42:32 | 2021-02-16T05:42:32 | 304,260,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | # Nama:
# NIM:
# Kelas:
def sort_desc(arr):
i = 0 #membuat varianbel/inisialisasi variabel i untuk mengunci dalam iterasi
while i < len(arr)-1:#perulangan i dengan kondisi lebih kecil dari variabel array dikurangi 1
j = 0#membuat variabel/inisialisasi varibel j untuk mengunci dalam iterasi
while j < len... | [
"noreply@github.com"
] | noreply@github.com |
c216efa4d1718ae2ddfb65ef0d24f2825156d9ab | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03455/s808955934.py | 5a703a489b980a233dbc16c583c6ec0ff1dc188d | [] | 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 | 102 | py | # ABC 086
A,B= map(int,input().split())
if (A* B)%2==0:
ans ='Even'
else:
ans='Odd'
print(ans) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e1bf319ac4b1a93b08f0dafc5fd453b9cd95d5b1 | 4e44974b9e59dfd4324d84b12b10f008117814cd | /test_autofit/integration/src/dataset/dataset.py | c3dc9773c00b8b4cc97f43fc249734b1546be650 | [
"MIT"
] | permissive | PriyatamNayak/PyAutoFit | 2cc2608943f8c3bdbda3b268142e7307014ccaf2 | 32c0c30acd219030c86a12db82ae54e406fd7119 | refs/heads/master | 2023-03-04T07:27:41.547966 | 2021-02-11T23:21:00 | 2021-02-11T23:21:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,487 | py | from astropy.io import fits
import numpy as np
# The 'dataset.py' module has been extended to give the dataset a name and metadata.
class Dataset:
def __init__(self, data, noise_map, name=None):
"""A class containing the data and noise-map of a 1D line dataset.
Parameters
----... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
739d5d61bfa888beb429e214efd7a4a9aabeb4e9 | 2a1e18918445041b4c40ccfd33e39b08d5280215 | /Simple-Scrape.py | 68bd4a7ab5f6e554436dca524484fac8b1ecaba9 | [] | no_license | Kristoff-Harris/Code-Templates-For-CTFs | e18ce530715b12b1869fa47e3b7f658f4c24e1e3 | d55e927516607824cba9b5a34138ba8c7fe9b51d | refs/heads/master | 2021-05-23T11:27:07.613202 | 2020-04-11T03:00:41 | 2020-04-11T03:00:41 | 253,265,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | # Some code reused fom freeCodeCamp() https://www.freecodecamp.org/news/how-to-scrape-websites-with-python-and-beautifulsoup-5946935d93fe/
import requests as req
import hashlib
from bs4 import BeautifulSoup
# specify the url
quote_page = req.get('http://docker.hackthebox.eu:32559')
# parse the html using beautiful ... | [
"noreply@github.com"
] | noreply@github.com |
f460837b8756ad3ec60887f952b1d9d59c97f4cf | 19924ac187843f4131281c2a3376bf446c1be510 | /PyCharm/Prob3/venv/bin/python-config | 485ba52de9a39bf54f5d685b34d010c694378504 | [] | no_license | mcfaddja/InfoTheory-MidTerm-py | f3768c9e27c6a734f9d4f850cb9e0553689ad407 | a180abce6039b03d3e750c62371aa9ccc6aa2da2 | refs/heads/master | 2021-03-27T11:46:02.760514 | 2018-05-20T02:38:10 | 2018-05-20T02:38:10 | 120,137,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,390 | #!/Users/jamster/Documents/GitHub/InfoTheory-MidTerm-py/PyCharm/Prob3/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_... | [
"mcfaddja@uw.edu"
] | mcfaddja@uw.edu | |
8381a8a31b17787de19e3c19f0c3f447232dc858 | dd1a27f51d4a4bf9f450617aa8562069758b1d82 | /business/admin.py | 686f5f0887c40c9e40e321d47234f167ebc9f9de | [] | no_license | PC97/creditSol | 7afcffff1c1fbcc0aae789368fbd7b973a076a9d | 6a694b035cf72475a9f0791fd8aafa5484e8fff3 | refs/heads/master | 2020-04-03T12:40:11.338677 | 2018-11-14T17:20:27 | 2018-11-14T17:20:27 | 155,259,133 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | from django.contrib import admin
from .models import BusinessAccount,UploadFile
# Register your models here.
admin.site.register(BusinessAccount)
admin.site.register(UploadFile)
| [
"pranjilc@gmail.com"
] | pranjilc@gmail.com |
73b57c37c9bda1b42aceaaaefec1a06ed28cd9ae | c7d4e46dee70c56dc790408193fd1ddaebc13c2f | /Problem29/Problem29.py | eb387f81b9de9de3f09f8ca1cfe8f97e9f1bb475 | [] | no_license | schnitzlMan/ProjectEuler | c27490b6c87c45f22053409ab71ae6f929fbbf79 | 92e2bd3cfe3bffd44a1da474447959fcc6670a56 | refs/heads/master | 2020-05-24T07:31:45.265350 | 2017-03-13T20:37:05 | 2017-03-13T20:37:05 | 84,832,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 2 14:07:36 2017
@author: Peter
"""
# below is my solution - I saw that 'set' would work out nicely (probably from math)
# then I can always add, but the set only grows if new elements entered.
maxNum = 100
listOfPowers=[]
for i in range(2, maxNum+1):
for j in rang... | [
"thekolbfamily@gmail.com"
] | thekolbfamily@gmail.com |
eede4029fa65ba5d911e0a4bfa27617b556819c1 | 3bb3f9779755cb2c54d7c25730402f3a3e2ad668 | /lib_controller/settings.py | 28fcfb093e8f44402dd8c4b36b79f423a0026a16 | [] | no_license | trunghieule0301/demo-luan-van | d1b86ffbb273f9cc77bef791c372538abd27bc11 | 079df0584f9f416b2fe97cde4f7dc1e960869e48 | refs/heads/main | 2023-07-12T03:07:44.530813 | 2021-08-13T16:18:01 | 2021-08-13T16:18:01 | 395,297,825 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,497 | py | """
Django settings for lib_controller project.
Generated by 'django-admin startproject' using Django 3.2.5.
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/
... | [
"noreply@github.com"
] | noreply@github.com |
f5e3f313c4584c8f5380fa9186122cf9b6227947 | 4cda6686b659c0bf34213a4c5faf050c4c866eea | /ExperimentSpecificCode/_2018_2019_Neuroseeker_Paper/_2019_Neuroseeker_Paper_Expanded/_33p1/NeuropixelSim/Sparce/spikesort_and_timelock_analysis.py | 841c428d900ac79f30a6bfcc8d9155a019730e56 | [] | no_license | georgedimitriadis/themeaningofbrain | da99efcf62af67bc6c2a71e504765026a4491217 | f138cf500a3ca6c8d76613c942787d9f073d67a7 | refs/heads/master | 2023-02-21T10:52:18.771691 | 2023-02-17T08:23:09 | 2023-02-17T08:23:09 | 50,346,965 | 3 | 1 | null | 2017-06-17T16:29:47 | 2016-01-25T11:42:43 | Python | UTF-8 | Python | false | false | 12,478 | py |
"""
The pipeline for spikesorting this dataset
"""
import numpy as np
from os.path import join
import matplotlib.pyplot as plt
import pandas as pd
from sklearn import preprocessing as preproc
from BrainDataAnalysis.Spike_Sorting import positions_on_probe as spp
from spikesorting_tsne_guis import clean_kilosort_templ... | [
"gdimitri@hotmail.com"
] | gdimitri@hotmail.com |
e8b093baa3e7fbf51757ad4f26b06464fa79c48e | 6c545543a21286ebd33ce13053346d1f9349bc40 | /Random/chfnrn.py | 969ad35090dbaa3e883873f0a7b17051bc8cdfe9 | [] | no_license | Sunil02324/Hackathon-Solutions-Collection | c426c186b977e39bc0706c006c6d8f5a0f4dd9e8 | 1fcb1723d572132b08a73db6e26d5e8f4352b2f4 | refs/heads/master | 2021-01-10T15:09:45.766591 | 2017-03-31T06:09:20 | 2017-03-31T06:09:20 | 51,132,623 | 0 | 1 | null | 2016-02-29T20:21:19 | 2016-02-05T07:30:29 | Python | UTF-8 | Python | false | false | 186 | py | t = int(raw_input())
while (t>0):
t = t -1
n,m = map(int, raw_input().split())
a = []
b = []
for i in range(0,m):
x,y = map(int, raw_input().split())
a.append(x)
b.append(y)
| [
"sunil.iitkgp13@gmail.com"
] | sunil.iitkgp13@gmail.com |
56940990f0681c33a9760d965c2758cc0ef87ec9 | f171d4918c7a1fe65c8a02775681e970f8f24bc1 | /Fill Rate by Supplier_WS.py | 8beb3b8114509d04e49c41f45490a4211e3371df | [] | no_license | gamut-code/attribute_mapping | 82ef02d3fdb600b64f00e93c33e7f0efe2c61b90 | 90cb623e39162ba01e5764d874d251503fe77e1d | refs/heads/master | 2021-11-21T10:01:14.902134 | 2021-08-10T15:13:44 | 2021-08-10T15:13:44 | 207,662,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,840 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Nov 10 20:34:02 2020
@author: xcxg109
"""
import pandas as pd
import numpy as np
from GWS_query import GWSQuery
import WS_query_code as q
import WS_file_data as fd
import settings_NUMERIC as settings
import time
ws_basic_query="""
SELECT
tprod."gtPartNumber" a... | [
"colette@thecolettegabriel.com"
] | colette@thecolettegabriel.com |
576d7206a61c14dd506527f40186f72c7372f351 | 95f66ab9a81f29b5a887dd792e39b7cb256a7e57 | /NeuralNet.py | e25ac7db6a772787236524dfc81d9bc6ac192a7d | [] | no_license | Inquient/training | 8e0a828bebcd51fc14d79fc9d1fb503f15f101f6 | 869d6da075c7f615b183f035803d868df463dd6c | refs/heads/master | 2021-04-09T14:20:41.246342 | 2018-04-15T13:18:16 | 2018-04-15T13:18:16 | 125,519,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,331 | py | import numpy
import os
import matplotlib.pyplot
from scipy.special import expit as sigmoid
from scipy.special import logit as logit
class neuralNetwork:
def __init__(self, inputnodes, hiddennodes, outputnodes, learningrate):
self.inodes = inputnodes # количество узлов входного слоя
self.hnodes ... | [
"makoveyfedorich@gmail.com"
] | makoveyfedorich@gmail.com |
1f625674e11cbfc47a5961e607882b7515e6339a | c21cbf8209d317bd5ac898d6ccddb5f67f585da6 | /Ch 9 - Classes/admin.py | b998a1fea6e05dd7b5daa5107dd08e23e59c22e2 | [] | no_license | bwest619/Python-Crash-Course | 53db275879b191b8ed564ced16366e7d6657de98 | 35eb85aad38f69d65c9ffab552625fd213264831 | refs/heads/master | 2020-05-05T01:13:06.424525 | 2019-04-05T00:51:43 | 2019-04-05T00:51:43 | 179,596,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | # Try it yourself, page 178
class Users:
"""Making a class for user profiles."""
def __init__(self, first_name, last_name, username, email, location):
"""Initialize the user."""
self.first_name = first_name.title()
self.last_name = last_name.title()
self.username = username
... | [
"blaineryanwest@gmail.com"
] | blaineryanwest@gmail.com |
becb97ab51bd113a00a2a0c169559e348ee0f82c | a46b14b44c87adb0288224a0e7e31d9bed30223f | /guest_project/apps/guest_app/models.py | f6db55f42203f80a0a458a0b4a83ca4f50478693 | [] | no_license | JeffLawrence1/Python-Django-Intermediate | 0b663e5d706dc6b35ff2785ae38d7bf0f2f3b651 | d1efc3e6385286ab25bae36042987a85ae94e359 | refs/heads/master | 2020-03-09T03:42:47.348420 | 2018-04-07T21:42:04 | 2018-04-07T21:42:04 | 128,570,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
# Create your models here.
class User(models.Model):
name = models.CharField(max_length=255) | [
"jefflaw13@hotmail.com"
] | jefflaw13@hotmail.com |
edc117b558873902ee1d38b226f7af11cebc80c9 | 58df99d96af6a688852993e38da89b75fea1d0dc | /exps/NATS-Bench/draw-correlations.py | 6afac3b804703bc53660e618d2c2a6e820974d3e | [
"MIT"
] | permissive | yuezhixiong/AutoDL-Projects | 0f24ed98389b70f452a79c8ef825d5e563ac5d8c | 0d3c63bdbe2d648c2119ffe8d0491f8a07cf85cb | refs/heads/master | 2023-03-22T17:15:37.013837 | 2021-03-02T05:13:51 | 2021-03-02T05:13:51 | 315,518,182 | 0 | 1 | MIT | 2021-02-26T06:36:34 | 2020-11-24T04:28:29 | Python | UTF-8 | Python | false | false | 3,860 | py | ###############################################################
# NATS-Bench (arxiv.org/pdf/2009.00437.pdf), IEEE TPAMI 2021 #
###############################################################
# Copyright (c) Xuanyi Dong [GitHub D-X-Y], 2020.06 #
###############################################################
... | [
"280835372@qq.com"
] | 280835372@qq.com |
2d02387748595eb5f05de1450d986ab0bbe8728f | fba281163b4761985f66d9cd31463e51bf407211 | /Remove PDF Pages.py | 1b0f8c99ab5951faa4181d218d301000fbd9a04e | [] | no_license | apiarian/pythonista-ios-scripts | 30722e434d1d3b7176f6d4f5f68431ffb5aa357e | bfaddf0c0759a01c4b1f2bd7a324d4620931e1e2 | refs/heads/master | 2020-03-08T22:27:28.986089 | 2018-04-24T14:49:00 | 2018-04-24T14:49:00 | 128,431,278 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 933 | py | # Install as a share sheet extension for Pythonista to remove pages from a PDF. The trimmed PDF is shown in a final quicklook view for sharing or saving.
import appex
import PyPDF2
import tempfile
import console
import os
if appex.is_running_extension():
src_path = appex.get_file_path()
else:
src_path = './testpdf.... | [
"al@megamicron.net"
] | al@megamicron.net |
71c7183af31724bdb98af5d9f036f02e3b81e761 | 3f51b9990728e50f531ab5250383505c18db8fcb | /www/config.py | bcc079bdfd48eca24bc76d6a25e10d5463fe390e | [] | no_license | limin2016/awesome-python3-webapp | d4b88c1358efa4af468204a505a90236b2cecfb7 | 120288573b3d120bc64709c17c11689f3324af39 | refs/heads/master | 2021-01-24T18:37:20.086220 | 2017-03-30T14:45:48 | 2017-03-30T14:45:48 | 84,443,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Configuration
'''
__author__ = 'Michael Liao'
import config_default
class Dict(dict):
'''
Simple dict but support access as x.y style.
'''
def __init__(self, names=(), values=(), **kw):
super().__init__(**kw)
for k, v in zip(names, v... | [
"1466299085@qq.com"
] | 1466299085@qq.com |
e11030a1f2ae991395d0056407fcffab069729d1 | 4500c044ea8287787ad03b6064d7bfac8560e874 | /projects/downstream_classification_race/centering.py | f168c5313fdccdc96d7c103d359ca24e0d57ae68 | [] | no_license | apd10/core | 9343a796f079bf42807338bc44ac14172833d99b | f82f30e4a6738002821cfea83c3b6e080604c5b0 | refs/heads/master | 2022-12-19T21:59:22.424132 | 2020-09-27T23:14:19 | 2020-09-27T23:14:19 | 281,093,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | import pandas as pd
import sys
import numpy as np
if len(sys.argv) < 3:
print("Usage: <script.py> <fname> <sep> <skip_rows>")
exit(0)
f = sys.argv[1]
sep = sys.argv[2]
skip_rows = int(sys.argv[3])
d = pd.read_csv(f, sep = sep, header=None, skiprows=skip_rows)
x = d.values[:,1:]
mu = np.mean(x, axis=0)
std =... | [
"apd10@yogi.cs.rice.edu"
] | apd10@yogi.cs.rice.edu |
fb058eee50ffdb930c9e0b9c23249411cb7f4ed1 | 8f76a9a1b5d8cc2eab1a160584f566dd00c4aeff | /05-opencv/template_matching.py | 636221a46a5b57b1a4832142188f0f21d4495cba | [] | no_license | aciddust/Python-Study-OpenCV | 0c224566df46aef7c14b64ed6663aaae37e4812d | f56438188466dc8881d8bda766ba573b93308f92 | refs/heads/master | 2022-02-13T21:53:32.249363 | 2019-09-08T10:17:09 | 2019-09-08T10:17:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | import cv2
img = cv2.imread('../imgs/lenna.png')
img_temp = cv2.imread('../imgs/lenna_face.png')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
gray_temp = cv2.cvtColor(img_temp, cv2.COLOR_BGR2GRAY)
w, h = gray_temp.shape[::-1]
output = cv2.matchTemplate(gray, gray_temp, cv2.TM_CCOEFF_NORMED)
min_val, max_val, min_loc, ... | [
"aciddust20@gmail.com"
] | aciddust20@gmail.com |
592cca932c6d29898437e2362af88c8d578e9466 | a735cc0b04b3227720bfd97c74ef13bda5bdf571 | /python/documentation/doc/conf.py | 87be3541d59a67e9c9cc135f03e7e0690fa181a4 | [
"MIT"
] | permissive | abstractfactory/labs | beed0aab27cd3028c67ece87ef91d18b55114eb1 | f0791fb92686456d4cef3a11f699590a949fd6a9 | refs/heads/master | 2021-01-23T20:50:07.613682 | 2014-11-18T10:30:29 | 2014-11-18T10:30:29 | 20,175,862 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,179 | py | # -*- coding: utf-8 -*-
#
# Labs documentation build configuration file, created by
# sphinx-quickstart on Tue Jun 24 15:49:19 2014.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All ... | [
"konstruktion@gmail.com"
] | konstruktion@gmail.com |
c2c96efb9d83a79ac8a7d9c9c470b71f3b5b3a20 | 2a736942082b1b59ba1be0f983211ff2a46eed46 | /4.py | 1e8620e014b2fb10767b9c6405fe240200520f70 | [] | no_license | Lola-n28/exam1 | 1e07c030766169725eb0cf5104467a7a50eb631e | 45d41dc9e78af7ad593490dd48ad33dcdf8474f6 | refs/heads/main | 2023-03-09T21:12:05.067851 | 2021-02-28T15:35:38 | 2021-02-28T15:35:38 | 343,133,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | # Дается 2 строки "Aidana" и "Adilet" . Вам нужно в результате получить смешанную строку из двух имен, буква за буквой.
# Output: "AAiddialneat"
str1="Aidana"
str2="Adilet"
str3=str1[0]+str2[0]+str1[1]+str2[1]+str1[2]+str2[2]+str1[3]+str2[3]+str1[4]+str2[4]+str1[5]+str2[5]
print(str3)
| [
"lola-n@mail.ru"
] | lola-n@mail.ru |
4d1a51fd51c3b13e2b368aa1ef3b0e4c5f8fa970 | 971b59efea59d8f4813a6f8990ff76440c61cc3e | /main.py | 105e2366dd0a9a9075085a33efbf8a6d0b43062f | [] | no_license | yossarian27/web-caesar | 4b9d78fbe8ff1641e4a5474efb6b0c348e84bafe | a900c6757fa3923b3f501aa65ea8b23a5fd55514 | refs/heads/master | 2021-01-23T05:00:01.720392 | 2017-03-26T22:39:44 | 2017-03-26T22:39:44 | 86,269,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,708 | py | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | [
"horn.philip@gmail.com"
] | horn.philip@gmail.com |
5c51bfb7f282424132788fd7c4194077772ec60a | b8cf6201e364e71180889218262bcf3833097f30 | /matrixes.py | 38f0228517a27645ea51e08f1044266a2dbb1e85 | [] | no_license | skvimpact/ml | efe3519964ac8b5940ba58763c4911e6731def1c | a0f8e129047263dfbfb701e42871d7c3ab40a71d | refs/heads/master | 2023-07-03T05:49:13.529017 | 2021-08-06T14:10:14 | 2021-08-06T14:10:14 | 393,365,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | import numpy as np
A = np.array([
[1,2,3,4],
[5,6,7,8],
[9,10,11,12],
[13,14,15,16],
[17,18,19,20]
])
# print(A.shape)
# print(A[1:2, 1:2])
# print(A[1:, 1:])
# print(np.zeros((3, 5)))
# print(A - 2)
# M1 = np.ones((3, 6))
# print(M1)
# print(M1.T)
M1 = np.array(
[[1,2],
[3,4],
[5,6]... | [
"skvimpact@yandex.ru"
] | skvimpact@yandex.ru |
cdd94e2790e5892438719e5ec02d940765243b43 | e8cfc888d3756635d49c9cb92fd0af02af58a18d | /customer/migrations/0006_remove_customer_customer_picture.py | 944ea3784ef4c5e218cae4d10b58f8e644b23c59 | [] | no_license | maryvillondo/MHA | 666b7b78c5f5671e4c2ecbbc0fdefd01f8946836 | 271b39c0866d006d3719d4de6ddb5544485d852d | refs/heads/master | 2022-12-27T21:02:44.116961 | 2020-10-16T11:54:02 | 2020-10-16T11:54:02 | 296,863,527 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | # Generated by Django 3.1.1 on 2020-09-19 11:59
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('customer', '0005_auto_20200919_1955'),
]
operations = [
migrations.RemoveField(
model_name='customer',
name='customer_pictur... | [
"maryvillondo@gmail.com"
] | maryvillondo@gmail.com |
5242f6f122ece46875d63baf451df2044a5956d8 | ce083128fa87ca86c65059893aa8882d088461f5 | /python/pytest-labs/.venv/lib/python3.6/site-packages/facebook_business/adobjects/adcampaignfrequencycontrolspecs.py | d0005352b87cf20f8700d3c56dda97efc9a99ee6 | [] | no_license | marcosptf/fedora | 581a446e7f81d8ae9a260eafb92814bc486ee077 | 359db63ff1fa79696b7bc803bcfa0042bff8ab44 | refs/heads/master | 2023-04-06T14:53:40.378260 | 2023-03-26T00:47:52 | 2023-03-26T00:47:52 | 26,059,824 | 6 | 5 | null | 2022-12-08T00:43:21 | 2014-11-01T18:48:56 | null | UTF-8 | Python | false | false | 1,973 | py | # Copyright 2014 Facebook, Inc.
# You are hereby granted a non-exclusive, worldwide, royalty-free license to
# use, copy, modify, and distribute this software in source code or binary
# form for use in connection with the web services and APIs provided by
# Facebook.
# As with any software that integrates with the Fa... | [
"marcosptf@yahoo.com.br"
] | marcosptf@yahoo.com.br |
19a33e678a67169ee30373693e79bdefba41046e | 55e9aa8ca964d82f99b245366dd35e557b526d5d | /leetcode/8. String to Integer (atoi).py | be686e10ed4cf453ce8d75c400e997442b881c7a | [] | no_license | gjwei/algorithms | ee31bd4e70a7974824ca234383eed3341d239830 | 07fa69137877b0a3bc6f0df7d7a190d737bacd6c | refs/heads/master | 2021-01-20T05:09:24.434195 | 2018-09-19T08:40:31 | 2018-09-19T08:40:31 | 141,776,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | # coding: utf-8
# Author: gjwei
class Solution(object):
def myAtoi(self, str):
"""
:type str: str
:rtype: int
"""
sign = 1
index = 0
result = 0
# 去除开始的空格
while index < len(str) and str[index] == ' ':
index += 1
if index == ... | [
"t-jiagao@microsoft.com"
] | t-jiagao@microsoft.com |
33b7d232898bdee041f376c8b75a7cb25a89b260 | 737d7a22a39003308627a2f0cbcec8696b9a492b | /creational/builder.py | 1594f1be49ca67e8c2ae11f88209b2bb567b0ce2 | [] | no_license | vladpython22/pattern | 21b3e3e980f24069114255efc615a64cfe3879c6 | 8ffd2a699261e85355da745ef52025e367013e2c | refs/heads/master | 2023-02-15T14:17:42.642957 | 2020-12-27T12:59:56 | 2020-12-27T12:59:56 | 324,765,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | #Интерфейс для пошагового создания сложных объектов
print('Hello, World')
s = 'adffhhg'
n = 5
print(s[0:5])
| [
"prostranstvovlad@gmail.com"
] | prostranstvovlad@gmail.com |
355c5416ae648b3b060d68d7a090c1c292f89af3 | 0bfbdef12f7801f4f030b4ba5523f95429f4f4c8 | /AutoFramework/testobject/module_report_waterPower_obj.py | aeecd2a1c9710dc2ceb96f75e940787a798e4650 | [] | no_license | pylk/autoWeb | 77ef1aaceeda9d1207539f4776ac0bd88901ca41 | 59b3b65fe9fdf5a745b0bc8d493486ca79db16c8 | refs/heads/master | 2022-02-24T10:41:22.111991 | 2019-04-26T03:08:07 | 2019-04-26T03:08:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,774 | py | # -*- coding:utf-8 -*-
import os
from datetime import datetime, timedelta
from AutoFramework.core.pom import BasePage
from selenium.webdriver.common.by import By
class Moudle_report_waterPower_Unit(BasePage):
def __init__(self, *args, **kwargs):
super(Moudle_report_waterPower_Unit, self).__init__(*args, ... | [
"isscal@sina.com"
] | isscal@sina.com |
dc676abe2bee2c632ee93b23ce50edf4dd60867f | d451b43ba9744775e34b34bd4bd32328afc55b7c | /commit_download.py | e006e03c4364046ee5605c05e4b503bb3d57cdc8 | [
"MIT"
] | permissive | lyriccoder/temp_python | aaaeec7250f32e31790ca61d22b3d6ed9289a420 | f9c2263dbdc89c10dd9665dd846e7b637d6819cf | refs/heads/master | 2023-05-01T14:00:28.125599 | 2023-04-22T19:15:38 | 2023-04-22T19:15:38 | 297,299,305 | 0 | 2 | MIT | 2021-01-26T12:56:20 | 2020-09-21T10:01:51 | Python | UTF-8 | Python | false | false | 12,180 | py | from pathlib import Path
from typing import Dict, Any, List, Tuple
import os
import pandas as pd
import requests
from random import choice
from tqdm import tqdm
import json
from pathlib import Path
import os
import pandas as pd
import requests
from random import choice
from tqdm import tqdm
import time
import asyncio
i... | [
"noreply@github.com"
] | noreply@github.com |
4418de44f1a68754463c019ddf6e814c07bf403f | d9bb1645feb748ad0b80bf831bb101c40302b44a | /site/popvox/db/mark_reintros.py | fc8c12a01ccc4ae16825ba5cb9b0b04f2b1ca9be | [] | no_license | POPVOX/site | 43fb2db0427857fdc5c0da0930757e8ba2472622 | 3324e6b40f2833e089a4235bb618d878e94cb510 | refs/heads/master | 2021-03-24T09:53:59.936863 | 2015-06-16T14:41:10 | 2015-06-16T14:41:10 | 8,064,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | #!runscript
from popvox.models import Bill
for line in open("/home/annalee/bills_matched.tsv"):
fields = line.strip().split("\t")
a = Bill.objects.get(id=fields[0])
b = Bill.objects.get(id=fields[4])
assert(a.congressnumber == 112)
assert(fields[2] == a.displaynumber())
assert(b.congressnumber == 111)
asse... | [
"josh@popvox.com"
] | josh@popvox.com |
52b87492ba8f90766eeea4b0072e15fbc110602c | c4882f5d6ff1555cde7ed7fd3e173e80040f20ad | /yapo_valdivia.py | c4be28d1b5641a19d86388d5d54e76d8beecb9b0 | [] | no_license | GMA950/CasoDeEstudioYapoBocca | 990080b40a633d3133ba837fc70c35f218d876c9 | a03f7d2a490493a8b22946f1483f735affc7be79 | refs/heads/master | 2022-12-04T06:45:40.287001 | 2020-08-30T05:51:48 | 2020-08-30T05:51:48 | 291,407,949 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,276 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Aug 18 17:00:00 2018
"""
from urllib.request import urlopen as uReq
from bs4 import BeautifulSoup as soup
import pandas as pd
import xlsxwriter
import urllib.request
from selenium import webdriver
import time
profile = pd.DataFrame(columns=['Link', 'Ti... | [
"francobocca.97@gmail.com"
] | francobocca.97@gmail.com |
824fe2517075df54beda8ff30d6a67ef447af8ae | 7a7bbdaab3cedcd9b89d9245d67fe7cc472fc288 | /1_dimention/2577.py | 057b91d168293a509f38fbb985532bb1d9aba21b | [] | no_license | rheehot/baekjun | cd213c6903e69a8e48b4942c950048c1c3e03c34 | 44792c6d125af7d9b0739c571e7918c802f73c01 | refs/heads/master | 2023-02-12T08:42:47.578842 | 2020-12-21T00:40:35 | 2020-12-21T00:40:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | a = int(input())
b = int(input())
c = int(input())
mul = str(a * b * c)
for i in range(10):
print(mul.count(str(i))) | [
"sol35352000@gmail.com"
] | sol35352000@gmail.com |
de152f2617816773ea8a560bd180c0f58a88d540 | 623476abf83be73d64b88f2d6bead649a37c0c51 | /remove-txt.py | bbe9d0c6389c3660ce1897a7bd0f7ede8b69504e | [] | no_license | AquariniqueMu/cat-train-datasets | 9910bd612cc5caa25cfa0e3e175c3555deb0d8e4 | 558979973cfbc0000061d597cf4848dc41a6958f | refs/heads/master | 2022-11-06T10:37:59.242122 | 2020-06-26T16:16:19 | 2020-06-26T16:16:19 | 275,196,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | infile = "./train_list.txt"
outfile = "./list.txt"
delete_list = ["cat_12_train/"]
fin = open(infile)
fout = open(outfile, "w+")
for line in fin:
for word in delete_list:
line = line.replace(word, "")
fout.write(line)
fin.close()
fout.close() | [
"2101848138@qq.com"
] | 2101848138@qq.com |
2ad1d177babfa66832a827145afb904032abe5f8 | 6e18b1f0818740809f8c21c772e5bc7be304a6cc | /ProcessNewsTitles.py | a5d3ad06fd5fa38e287325ab24062b44f2e0f0b5 | [] | no_license | matthewhughes/DissertationProject | a8eb50b2731608ad31b28346ffca54077e21f2ef | 686d11ced526e55d694e731d315fdba61f6ec91a | refs/heads/master | 2020-04-24T17:55:07.139751 | 2015-04-21T11:03:38 | 2015-04-21T11:03:38 | 31,339,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | # -*- coding: utf-8 -*-
import nltk
class ProcessTitles(object):
def __init__(self):
self.title = ''
self.tokenized_text = ''
self.tokens = ''
self.noun = ''
self.verb = ''
def tokenize_title(self):
self.tokenized_text = nltk.word_tokenize(self.title)
de... | [
"me@matthewhughes.co.uk"
] | me@matthewhughes.co.uk |
7edc6fff571a84060e84abd7adc6b4b898962426 | 058656c6fced1d8b616d4abf35970e002ef50fab | /ynab/models/month_summary.py | 633a98f058d4347fcac82d8f5b5e885189d70421 | [] | no_license | MattThommes/ynab-python | e6f8d4da9504acd6e02f1b33e9ead9ba058ede3c | c9c85f449091975219270b838aed825f50e41752 | refs/heads/master | 2022-10-01T06:34:55.010170 | 2022-09-02T23:45:48 | 2022-09-02T23:45:48 | 202,883,813 | 0 | 0 | null | 2019-08-17T13:23:15 | 2019-08-17T13:23:14 | null | UTF-8 | Python | false | false | 5,596 | py | # coding: utf-8
"""
YNAB API Endpoints
Our API uses a REST based design, leverages the JSON data format, and relies upon HTTPS for transport. We respond with meaningful HTTP response codes and if an error occurs, we include error details in the response body. API Documentation is at https://api.youneedabudge... | [
"deanm@synopsys.com"
] | deanm@synopsys.com |
e57aebb6fb7ca69bcb5a28998f4b3016e5559651 | 47366be5cbee9d7e086291c20f97f10ab2bf74fe | /cluster/cluster_create_inequalities_subset_kdd.py | a030a3765bc70ab81a1b6e0dfd314582797a9901 | [] | no_license | nipunbatra/journal | 3d44eed05c95970606649d17402da54fc0a415ff | 94a8b88589e8f60e6f0314f8c5a374f22336b3e9 | refs/heads/master | 2021-01-09T20:40:45.844121 | 2016-07-27T15:16:29 | 2016-07-27T15:16:29 | 62,874,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,042 | py | import time
import pandas as pd
import pickle
import os
import numpy as np
SLURM_OUT = "../slurm_out"
from subprocess import Popen
import time
print "a"
out_overall = pickle.load(open('../data/input/all_regions.pkl','r'))
num_trials=25
print "b"
K = 3
for train_region in ["SanDiego"]:
if train_region=="Austin... | [
"nipunb@iiitd.ac.in"
] | nipunb@iiitd.ac.in |
99d8b6c98f1ff15f6cd292944185330484515f15 | 33136e71ce4b1ffd8398d152916140e82cc4000b | /data_collection/venv/bin/tkconch | 424b13e1b8eb069b825576f82c7989e61360d1fe | [] | no_license | Cameron-Ozaki/cs115_TrafficDump | 01477cc4f997a2397102494d426721c8e8d581e0 | 22e68de6103da8e8da2078f1e3455e6ca261a689 | refs/heads/master | 2020-04-01T11:14:24.155257 | 2019-05-02T23:03:49 | 2019-05-02T23:03:49 | 153,153,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | #!/Users/alexisflores/Desktop/TRAFFIC_DUMP/cs115_TrafficDump/data_collection/venv/bin/python3.7
# -*- coding: utf-8 -*-
import re
import sys
from twisted.conch.scripts.tkconch import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"aflore37@ucsc.edu"
] | aflore37@ucsc.edu | |
bc7a85b8948558404b30538e7fc848941f11834f | 566fdb06a1d95fda106fb9c1eb6989884967e299 | /Lab06/Lab06.py | 1a39b4887298f9e9fe3a3433c86198b92bde7bd9 | [] | no_license | blrajkumar/MCS_173-Python_Programming | e7ec7b91404da59106fba46dee9cbc9351205703 | 1305e9b4423024db218ab49e35b9896abbf56577 | refs/heads/master | 2023-02-05T08:01:30.404361 | 2020-12-21T14:19:07 | 2020-12-21T14:19:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,800 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Dec 7 21:24:34 2020
@author: blraj
Name : Rajkumar B L
Reg.no : 2047120
Course : MCS173 - lAB06
MSC.Cs - 1st Year
"""
import re
class Lab06:
def __init__(self):
pass
def time_tracker(self,curtime):
time_result=""
stopcode = re.compile(r'^... | [
"49354075+rajkumarbl@users.noreply.github.com"
] | 49354075+rajkumarbl@users.noreply.github.com |
d4bf2779cbe8ba8c4b40d92539d2f826f71b6ac1 | 0d0d584429bd44f6675a581ad9b9c4190e6dfd07 | /print_lol2.py | 5772fc788a5939813e55c2df73f3d6110f831de0 | [] | no_license | Rimmii/PythonStudy | 08134f6a01fd9c85881380247578e6da952707d0 | 9f3fff5117358f476310566628e0fa7ba9ef35b2 | refs/heads/master | 2020-11-30T00:29:42.703112 | 2017-07-22T14:34:50 | 2017-07-22T14:34:50 | 95,650,223 | 2 | 1 | null | 2017-07-13T14:12:57 | 2017-06-28T09:03:59 | Python | UTF-8 | Python | false | false | 523 | py | movies = ["The Holy Grail", 1975, "Terry Jones & Terry Gilliam", 91, ["Graham Chapman", ["Michael Palin", "John Cleese", "Terry Gilliam", "Eric Idle",
"Terry Jones"]]]
def print_lol(the_list, indent = False, level = 0):
for each_item in the_list:
if isinstance(each_item, list):
print_lol(each_... | [
"rimi@appleui-MacBook-Air-2.local"
] | rimi@appleui-MacBook-Air-2.local |
254e98217498dea904c67279827063013f34b5fb | e6421de3f06af8be4234e9901d71f86b31c6c3a7 | /pdenv/bin/easy_install-3.5 | 5e6b880f3fb8150f6afd21b014f591583dfa7719 | [
"MIT"
] | permissive | Elmartin913/PanDjango | bdb5446ee18ee297c23199cd3f9dd59cae555135 | 3b1eb52d53c87365f3d2fa5bd7ef72843ed5af32 | refs/heads/master | 2022-12-11T04:44:05.229530 | 2018-05-11T10:16:07 | 2018-05-11T10:16:07 | 128,903,323 | 0 | 0 | MIT | 2022-12-08T00:57:53 | 2018-04-10T08:54:10 | CSS | UTF-8 | Python | false | false | 276 | 5 | #!/home/elmartin913/workspace/app/PanDjango/pdenv/bin/python3
# -*- 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())
| [
"marcin.jab@wp.pl"
] | marcin.jab@wp.pl |
05f02000e82ea0aa84a9665a9401fad1feec02b2 | 03587c34370995706871e45320264c2636d795f0 | /app/views/loja/AvaliacaoView.py | a391584f99994610a29e9c4c605cadf597837918 | [] | no_license | caiomarinhodev/fastdelivery | 29d1f95dc7204369806e6b99298c9aaafab5ea9f | 6ad45aa596e204b793ba47f7a0c1b918a2e0890a | refs/heads/master | 2020-03-12T03:18:04.507010 | 2018-04-20T23:49:13 | 2018-04-20T23:49:13 | 130,421,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,139 | py | from django.contrib import messages
from django.contrib.auth.mixins import LoginRequiredMixin
from django.shortcuts import redirect
from django.views.generic import DetailView
from app.models import Request, Avaliacao
class AvaliacaoView(LoginRequiredMixin, DetailView):
template_name = 'loja/avaliacao_cliente.ht... | [
"caiomarinho8@gmail.com"
] | caiomarinho8@gmail.com |
72a932800f08712333825d0cb293d2481d559bd7 | bfd97c268252b1e28addfb924cbc052e1bafb828 | /ball_detection_video.py | 9956c8e73d8516db996f21c31f3da847cf11ac0b | [] | no_license | yufanana/FanBot | 417938dd2ee8b3ab670703d6fdd50b14b1413a85 | 8cc02212300646e0f9ef349a0cebdc3ce34c937a | refs/heads/main | 2023-06-21T10:23:36.048109 | 2021-08-01T08:39:31 | 2021-08-01T08:39:31 | 391,380,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,329 | py | #!/usr/bin/env python
import numpy as np
import cv2
def filter_color(rgb_image, lower_bound_color, upper_bound_color):
#convert the image into the HSV color space
hsv_image = cv2.cvtColor(rgb_image, cv2.COLOR_BGR2HSV)
#define a mask using the lower and upper bounds of the yellow color
mask = cv2.inR... | [
"yufan.fong@gmail.com"
] | yufan.fong@gmail.com |
14e191ebed6b1010306ffabf744cedd50eaa84c0 | 24272539830eeaa048238c38c02721039cde4578 | /neuron_simulator_service/DSGC_SAC/array_DSGC_SAC.py | 4f17ad2c1090f8e8c113de58efb48cc7203c28c1 | [
"MIT"
] | permissive | jpm343/RetinaX | ac993c61b881e778cb0442490294fbb1ceadcdad | 63f84209b4f8bdcdc88f35c54a03e7b7c56f4ab3 | refs/heads/main | 2023-01-23T21:24:42.717425 | 2020-11-23T15:56:15 | 2020-11-23T15:56:15 | 303,671,438 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,265 | py | """
Created on May 2019
@author: Leo Medina
"""
from __future__ import division
from DSGC_SAC import *
import numpy as np
import time
import datetime
import os
import iodef as io
import sys
# Parameters
###############################################################################
G_MIN_EXP = -6
G_MAX_EXP = -3
G_NUM... | [
"juan.martinez.a@usach.cl"
] | juan.martinez.a@usach.cl |
1814f74e34e2e1cff5affcee75d2aa83ee5444c8 | 7b4705831a6cf12ace488022b1973da29854814f | /multilingual/jsonify.py | 05aa72af25991cf7de15611ab75edf287449361d | [] | no_license | nitaku/WordNet_Atlas_core | c38b556c16dd478c5e1939f198ac4f3b75249458 | 84bdf287933991a00377afb691343139c27bcd61 | refs/heads/master | 2023-08-04T10:47:49.175610 | 2023-07-20T15:10:39 | 2023-07-20T15:10:39 | 16,588,554 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,096 | py | import sys
lang = sys.argv[1]
from graph_tool.all import *
g = load_graph(lang+'/wnen30_core_noun_tree_longest_w_senses_'+lang+'.graphml.xml.gz')
graph = {
'nodes': [],
'links': []
}
is_synset = g.vertex_properties['is_synset']
lemma = g.vertex_properties['lemma']
# sensenum = g.vertex_properties['sensenum... | [
"matteo.abrate@gmail.com"
] | matteo.abrate@gmail.com |
5318d72a8124bd5381730949cdadb96c7de69899 | 4f87d39e58dffa2c7ec83687bdd316052ce6bf3c | /lib/python2.7/linecache.py | 628cc488f2e8762e7386a7f3eb76d63a4430c643 | [] | no_license | MisterRios/Bread_Calculator | aafff9aafad42b4913583f90b99394abf81b3e86 | 4cea008955e288c2752e6f4eb55853755fc85f87 | refs/heads/master | 2021-01-19T10:08:20.034898 | 2014-03-27T08:27:01 | 2014-03-27T08:27:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53 | py | /Users/misterrios/anaconda/lib/python2.7/linecache.py | [
"MisterRios@gmail.com"
] | MisterRios@gmail.com |
6ec673beb0c506a5c90bb8c68908c0c73c13587c | 3a74ac2e7db63069945e5bc620342b4b89b8b201 | /python/dgl/distributed/rpc_server.py | ad47de7104c4d92fc64b87b7cdc82f26fefd6a38 | [
"Apache-2.0"
] | permissive | vishalbelsare/dgl | 5d17ba82f720d742e1274c5d48dac64eca234504 | 512a80b00d2cd35607a542eb5544fa1f1c93a6f6 | refs/heads/master | 2023-08-17T15:09:55.082014 | 2022-01-22T04:25:14 | 2022-01-22T04:25:14 | 167,955,673 | 0 | 0 | Apache-2.0 | 2022-01-23T13:57:57 | 2019-01-28T12:05:37 | Python | UTF-8 | Python | false | false | 4,476 | py | """Functions used by server."""
import time
from . import rpc
from .constants import MAX_QUEUE_SIZE
def start_server(server_id, ip_config, num_servers, num_clients, server_state, \
max_queue_size=MAX_QUEUE_SIZE, net_type='socket'):
"""Start DGL server, which will be shared with all the rpc services.
This... | [
"noreply@github.com"
] | noreply@github.com |
787b8ee86ea8517b3aaf27aba272db0a9e7a2b55 | 37e60c454c1897cc43bbc12717031b5035dbf7d5 | /regression-tests/sparktkregtests/testcases/dicom/dicom_svd_test.py | 9688ceb76b3b3a0e3f824297fa201408e33a83d4 | [
"Apache-2.0"
] | permissive | trustedanalytics/spark-tk | 33f18ff15e2f49d2f9d57c3a4ccdbd352eb2db8c | 5548fc925b5c278263cbdebbd9e8c7593320c2f4 | refs/heads/master | 2021-01-23T22:01:11.183659 | 2017-02-07T01:35:07 | 2017-02-07T01:35:07 | 56,808,917 | 35 | 35 | NOASSERTION | 2020-03-20T00:18:24 | 2016-04-21T22:16:41 | Scala | UTF-8 | Python | false | false | 2,573 | py | # vim: set encoding=utf-8
# Copyright (c) 2016 Intel Corporation
#
# 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 require... | [
"blbarker@users.noreply.github.com"
] | blbarker@users.noreply.github.com |
2765b12ae65d16d75ba1fdd4fd7dd6bf233b767a | de49501d5a8ca02de929038b5e63964d04249c3c | /misc/test.py | ac68a23d9f360ca65e415cd4fa12d8e2108fc8ef | [] | no_license | syslabcom/skimpyGimpy | 4edf38faa82de825c01c48e779e00284c1fb6aa7 | d1534a572b0311431728fb77faf9da9493112357 | refs/heads/master | 2020-06-24T06:50:17.043055 | 2019-07-25T18:52:34 | 2019-07-25T18:52:34 | 198,885,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | py |
import waveTools
inputString = "hello world"
indexfilepath = r"c:\tmp\skimpyGimpy\waveIndex.zip"
audioString = waveTools.WaveAudioSpelling(inputString, indexfilepath)
outputFile = file("waveOutput.wav", "wb")
outputFile.write(audioString) | [
"deroiste@syslab.com"
] | deroiste@syslab.com |
115dd8125ff777bd72beae826cad30679ca99cdb | 5c12834d4b59901a8aaa634a8ecb71bcfab1d4f2 | /mecanica/settings.py | 5c2946448a7a1cbaef7bea0fa495ae9398a52d34 | [] | no_license | Josebonilla16/servicioxela | 9cad6ce8fa60fc62cc5f04f8fbc4bc886fb51602 | 74d72d2016f22e338d73c5db9554e9cb32e444db | refs/heads/master | 2020-04-04T17:49:55.784616 | 2018-11-06T17:00:12 | 2018-11-06T17:00:12 | 156,137,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | """
Django settings for mecanica project.
Generated by 'django-admin startproject' using Django 2.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
... | [
"Josephman1253@hotmail.com"
] | Josephman1253@hotmail.com |
9d6431f510ee39712539aa43d4d446d9be49cd10 | 50f85af9d7cb860b0b7d8cf3dd4fb3df9110b1b0 | /paho_mqtt.py | 52665ad63525f696cd58aab825b34226b18fcb34 | [] | no_license | lijinxianglogo/python_multi | e63c39e3f90e404c2630460208acb4b65d1a428b | 0d888d7cff85ffd3b1c612447a787bd1017a9b35 | refs/heads/master | 2021-06-07T17:48:58.644567 | 2021-06-04T03:28:05 | 2021-06-04T03:28:05 | 175,386,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # -*- coding: utf-8 -*-
import paho.mqtt.client as mqtt
# 定义一个mqtt客户端的类实体
client = mqtt.Client()
# 通行账户和密码
client.username_pw_set('ehigh', 'Abc123')
# 连接回调函数
def connect_callback(client, userdata, flags, rc):
# print client, userdata, flags, rc
client.subscribe('/EH100602/tx/#')
def message_callback(client,... | [
"lijinxiang@everhigh.com.cn"
] | lijinxiang@everhigh.com.cn |
6c544acbaf213fa2a33ad58969026c3779b61074 | f44f397f5ef8ca9428f3b3a2cb6232169de9d118 | /final_spokenwords.py | 6415e01c0443e25ea75156c979b1bbc740e230d4 | [] | no_license | ideepika/dgplug_practice | a712eb4e479020e67a665514a955785203c81ba3 | 16a0416a34a7f72e1cfa65b48a54e5772585d3b9 | refs/heads/master | 2021-10-09T10:28:58.358801 | 2018-12-26T08:53:14 | 2018-12-26T08:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | import urllib.request
import requests
import urllib.parse
from bs4 import BeautifulSoup
import re
global i
i=0
url = "https://dgplug.org/irclogs/2017/"
url_open = urllib.request.urlopen(url)
""" create a file with all the logs aas text input """
def extract_links(url_open):
soup = BeautifulSoup(url_open, 'lxml')... | [
"deepikaupadhyay01@gmail.com"
] | deepikaupadhyay01@gmail.com |
615cd6b556994a362654f132d88440773408a66f | dad00a62315bc1b6434babc594c08092e508c739 | /python/django/django-vuejs/django-vuejs/homepage/migrations/0001_initial.py | 7555b7e1c46cf33260abb8ba7e400e72045eb7bb | [] | no_license | geovanecomp/Studying | 28e48fae82b2e2c3d8ff0bc3e1ad2bb17dc4371d | e422e77f44e36969a87855d30e28a86c74410d90 | refs/heads/master | 2020-04-16T01:44:21.323679 | 2018-05-09T18:20:14 | 2018-05-09T18:20:14 | 83,228,749 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | # Generated by Django 2.0.2 on 2018-02-04 00:02
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Games',
fields=[
('id', models.AutoField(au... | [
"geovane.pacheco99@gmail.com"
] | geovane.pacheco99@gmail.com |
d2811e09b26d29f12842bc4f3cbe3fb130dfc9d8 | 3266ca1e55be0b23d1a29462d017dd4b6a7e031e | /util/instr.py | 8f1ce82af86cda021c94550565b2b64556988fea | [] | no_license | Tim-Nosco/LazyLabel | 471c0ddb17f76d24bdf0415ebbc96ecc46c261ce | c8e3ef0ee912d74aaa96b6c82d51184a03b0da80 | refs/heads/master | 2021-07-17T22:08:36.582581 | 2017-10-26T19:08:37 | 2017-10-26T19:08:37 | 107,707,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | import re,logging
from z3 import *
class Instruction:
valid_names = r"([0-9A-z\%\<\>]+?)"
regx = r"^{0} = {{}} {0} {0}, {0}$".format(valid_names)
type_regx = re.compile(r"^i(\d+)$")
def __init__(self,idx,result,rtype,arg1,arg2):
self.result = result
self.type = rtype
self.arg1 = arg1
self.arg2 = arg2
def ... | [
"tim.nosco@gmail.com"
] | tim.nosco@gmail.com |
e5c8432caea59848fec92f0f2a6de7d1d30703a9 | 11b58115f4ecd8e16e812da2c556ccb47a5cdd0c | /PYTHON/MRAC.py | f452a2c766cdf06fa0083725a6f6fdcdb1e5e802 | [] | no_license | PrestonWang/AA203-Final-Project | 45221c9d0789d1ac86f9ea02a7e08a1a3c19daf6 | dc10740d8fdafe278d7fceb772e0482ddbcb3069 | refs/heads/master | 2022-10-20T10:08:24.577732 | 2020-06-12T06:44:47 | 2020-06-12T06:44:47 | 259,757,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | import boom
import numpy as np
boom = boom.boom(25,0.5, 0.1, .07)
boom.eps = 1e-6
q0 = np.array([5.0, np.pi/2,0.0,0.0])# initial state
params_estimate, P = boom.get_estimate(q0, np.array([10, 1.5/2, 0]))
| [
"prestonwang95@gmail.com"
] | prestonwang95@gmail.com |
528ec917b2ccb9f8c90d803158dacddb1211387a | 8575cabe675076d8ab87d5470901878d5e8b2690 | /app.py | cd3baa9647061914a303fb8246dafda0b100ef13 | [] | no_license | haxmanster/Flask_admin_DevOps | 00a5371297812636180721b495b8751472ffa130 | da7e62319f3efb08c258937bd1a99c3f3938f9df | refs/heads/master | 2020-03-27T18:05:15.167587 | 2018-08-31T13:42:04 | 2018-08-31T13:42:04 | 146,897,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,652 | py | import os
import os.path as op
from flask import Flask, url_for, redirect, render_template, request
from flask_sqlalchemy import SQLAlchemy
from wtforms import form, fields, validators
import flask_admin as admin
import flask_login as login
from flask_admin.contrib import sqla
from flask_admin import helpers, expose
fr... | [
"thuy05061986@gmail.com"
] | thuy05061986@gmail.com |
7b8a04e059b078e1ba5b84ff1d8be0dcdec7a196 | d6b4478e9530d9c395fb089f9c1e1c98ed631b67 | /Genetic_Algorithm_Take_3.py | 21ca313ee708607bbde17576cd877d90640ea910 | [] | no_license | kilbyjmichael/MutateMe | a4929712bd92ae1acbf8abd929f7fc17e2947a36 | c6d2a117dbe57698dbd9bd11e3021b28eeb9c695 | refs/heads/master | 2021-01-22T20:19:05.492546 | 2015-04-24T05:34:48 | 2015-04-24T05:34:48 | 34,408,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,327 | py | #!/usr/bin/python
'''Mates colors!'''
import random
from PIL import Image
IMG_SIZE = (250,250)
IMG_MODE = 'RGB'
WHITE = '#FFFFFF'
BLACK = '#000000'
MAX_RGB = 255
TARGET = [137,22,88]
DNA_SIZE = 3
POP_SIZE = 200
GENERATIONS = 500
MUTATE_CHANCE = [1,200] # 1 in 100
def random_color():
# Return a random ... | [
"kilbyjmichael@gmail.com"
] | kilbyjmichael@gmail.com |
86f6f88e0ab0d6da6af0439be4ce6e06014071a7 | b2a60c8776791b25595850706ad6f3334d0aaf22 | /test/create_circuit3.py | 2baf33a3c6ffef9e7314e378f6d0b82efd86637f | [] | no_license | cislab-ntut/Garbled_Circuit_Project2_Team5 | e649b22d6cf8eb5977aa26e9491b0c4782430902 | 82eb819f6951b6706a35689e84a964506b1b3801 | refs/heads/master | 2022-09-14T14:18:12.874486 | 2019-12-31T04:10:06 | 2019-12-31T04:10:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,985 | py | import sys
import gate
import random
import enigma_func as enigma
random_table = list()
def exist(value):
global random_table
if value in random_table:
return True
else:
return False
def get_random():
global random_table
val = random.randint(0, 25)
while exist(val):
val = random.randint(0, 25)
random_table... | [
"godofyax@gmail.com"
] | godofyax@gmail.com |
4d33c00a31200e8fa664671bb8c326c32c2bbc54 | 20ccd941834b5fca4b6362290ba5a85cfd867ff3 | /VGG/train.py | c8a8b5573f7ae8e67a315b52017399bace6600d2 | [] | no_license | yjzhao19981027/pytorch-learning | 233c452ae0db9ccaacf59c7dcbe21aae20d3e383 | f9e2c9df0c85a2599701105bd6c5bc9864bf41d9 | refs/heads/master | 2023-07-29T23:22:06.088914 | 2021-09-14T05:27:54 | 2021-09-14T05:27:54 | 406,197,224 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 907 | py | import time
import torch
from torch import nn, optim
import d2lzh_pytorch as d2l
from model import VGG11
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
# 经过5个vgg_block, 宽高会减半5次, 变成 224/32 = 7
fc_features = 512 * 7 * 7 # c * w * h
fc_hidden_units = 4096 # 任意
ratio = 8
small_conv_arch = [(1, 1, ... | [
"630877986@qq.com"
] | 630877986@qq.com |
9f7c8499aee2d5981eb0633c90622742aea200a1 | 4b62774fb7958d8917ff0eca29b105c160aa3408 | /pi3ddemos/Jukebox.py | c978dd3b5bb72aa469313994743424357a5c8e92 | [
"MIT"
] | permissive | talhaibnaziz/projects | 1dd6e43c281d45ea29ee42ad93dd7faa9c845bbd | 95a5a05a938bc06a65a74f7b7b75478694e175db | refs/heads/master | 2022-01-21T08:00:37.636644 | 2021-12-30T01:58:34 | 2021-12-30T01:58:34 | 94,550,719 | 0 | 0 | null | 2021-12-26T02:01:24 | 2017-06-16T14:16:24 | Java | UTF-8 | Python | false | false | 4,318 | py | #!/usr/bin/python
from __future__ import absolute_import, division, print_function, unicode_literals
""" Music and animation with changing images. Needs some mp3 files in the
music subdirectory and mpg321 installed. You may need to do some tweaking
with the alsa configuration. On jessie I had to edit a line in
... | [
"talhaibnaziz6343@gmail.com"
] | talhaibnaziz6343@gmail.com |
b984ae4d09b777cea27b15594325c8577d5b8fa4 | 141130d04641f37380f977a868d1c5211163e2ae | /supermarket/settings.py | 29d40e12ef2f50003f102dc211bd611f7b05119f | [] | no_license | bronejeffries/supermarket-in-Django | fac78184a7cac9849dc8269286f82280edce8465 | ffa90562d66fb6da22be84089391a8d01c4bf231 | refs/heads/master | 2021-06-11T14:02:54.612270 | 2018-07-31T16:14:09 | 2018-07-31T16:14:09 | 140,300,913 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,450 | py | """
Django settings for supermarket project.
Generated by 'django-admin startproject' using Django 2.0.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import o... | [
"brianbronej@me.com"
] | brianbronej@me.com |
a6b9dd390dc1e85b83a1d633966da434e5ea4071 | d4072201c7820d9b18e86e77361a21bbc62deaea | /flowviz/migrations/0006_gislayer.py | 201d135afbc5a21bcfa6a44878c6f417cbc3b130 | [
"Apache-2.0"
] | permissive | eleanxr/watersharingdashboard | 6741a056a9a6602a286671b44173b39fffd7f37e | d3e6bb2717e5e32a13dcf37f30271574a5d97666 | refs/heads/master | 2023-02-10T19:45:06.956049 | 2016-08-11T23:14:46 | 2016-08-11T23:14:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('flowviz', '0005_auto_20151207_1551'),
]
operations = [
migrations.CreateModel(
name='GISLayer',
fiel... | [
"wdicharry@tnc.org"
] | wdicharry@tnc.org |
41d74c532a58df6abc54c38bc1792a6a2b0a500b | 51468f7f539ec6c0b421b62fd5ed2b99fb6aba6e | /DSblog/dsproject/__init__.py | a0c9978276e3489a038d55f3a22e019d740207d3 | [] | no_license | Monsy-DS/blogDS | 91740f554f2d4a7b8ff9c52b046430d4c34d4fb8 | 38d7261ae329cb251cbad730bdf1068348e5ffc0 | refs/heads/main | 2023-04-17T08:59:13.982493 | 2023-04-05T18:39:22 | 2023-04-05T18:39:22 | 331,106,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from flask import Flask
import os
app = Flask(__name__)
app.config['SECRET_KEY']='SECRET'
app.static_folder = 'static'
#####################################
###### Blueprints registration ######
#####################################
#from slozka.podslozka.file import nazev_blueprint
#app.register_blueprint(nazev_blue... | [
"noreply@github.com"
] | noreply@github.com |
9f3fe077a1a4c9a540c6e4a89d2367f7c0d04e60 | f5139b36f9ffe06b140a18f0d91988999aecb737 | /modules/WordLSTM.py | 08942506907844907fc4dd4d766e65da5cd63895 | [] | no_license | yunan4nlp/NNEDUseg_conll | 7a71297d478fbc5e15739003021af4c44f8b8498 | 8ad68b1c88c4499eab638dd9c11d3e446d4ebcb7 | refs/heads/master | 2021-01-07T21:24:14.554746 | 2020-02-21T04:39:33 | 2020-02-21T04:39:33 | 241,823,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | from modules.Layer import *
class WordLSTM(nn.Module):
def __init__(self, vocab, config):
super(WordLSTM, self).__init__()
self.config = config
#self.conv = nn.Conv2d(1, config.hidden_size, (config.cnn_window, config.word_dims),
#padding=(config.cnn_window//2, ... | [
"yunan@MacBook-Pro.local"
] | yunan@MacBook-Pro.local |
012c3371720c7a822dba4444f606fbcdffb1a5ce | 560a56dcd1292ad1733ebd72d9cf1398ed13fa8c | /responses/models.py | 6c83f40d0f5041ad934d2688d41e94348afa8e4d | [] | no_license | reactionpowerorg/utils | 655e0f3be256f84f17253ebd8d81cf851cd7ca49 | c9ad36bf79171dd89d91910d81538eb4f4f63515 | refs/heads/main | 2023-04-17T07:35:25.683528 | 2021-05-07T06:41:11 | 2021-05-07T06:41:11 | 365,138,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,750 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
from django.db.models.signals import post_save
from django.dispatch import receiver
class Responses(models.Model):
CHOICES = [('1', 1),
('2', 2),
('3', 3),
('4', 4),
... | [
"77322089+Reactionpowerdev@users.noreply.github.com"
] | 77322089+Reactionpowerdev@users.noreply.github.com |
8f7d2e670202fe46834fd31c9e7eaf218bed9b04 | ca3d6e6683f4736792fc93352424c6e6d216ab4d | /chapter9/chapter9_app_external_api_test.py | ccdbb3f2d629abb50083ae1be6495e4b66566be2 | [
"MIT"
] | permissive | msg4rajesh/Building-Data-Science-Applications-with-FastAPI | 11ac071583002b15bc955fc3bc72ab86d2800222 | 99b472d8295a57c5a74a63d8184ac053dc4012f2 | refs/heads/main | 2023-07-16T09:48:48.536002 | 2021-08-26T05:02:39 | 2021-08-26T05:02:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,297 | py | import asyncio
from typing import Any, Dict
import httpx
import pytest
from asgi_lifespan import LifespanManager
from fastapi import status
from chapter9.chapter9_app_external_api import app, external_api
class MockExternalAPI:
mock_data = {
"data": [
{
"employee_age": 61,
... | [
"fvoron@gmail.com"
] | fvoron@gmail.com |
13b72516be454ffcf0392b2cc7c088e9f1a73bd5 | 6854464ef0805c10ca73ba4c2220ce4f42ee4243 | /auto_wjx_answer.py | d1717eddf9b28191f313084be037c26ec988952a | [] | no_license | tea321000/Auto-Wjx-Answer | dd9c64e612768236d69116d7bd06e5e8e082d9d7 | cf2ec6a49cc87b94453ad0092d779bab911d62e3 | refs/heads/master | 2021-01-02T19:09:17.086168 | 2020-02-08T14:20:50 | 2020-02-08T14:20:50 | 239,758,674 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,492 | py |
# coding: utf-8
# In[1]:
# get_ipython().system('pip install selenium')
# In[2]:
import argparse
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import random
import ... | [
"2633129202@qq.com"
] | 2633129202@qq.com |
df1c243259bb643cec2b5c3ab1980bd98628a229 | 78860e7facd130ccc4b7b6226dc19fce672d8d81 | /bikeshare.py | 0adcd08260c17919d4461c6c293deaf60248faab | [] | no_license | rishabh-bisht2302/Rishabh-udacity-project | d2b7d3f3de5c3363be9abb178f6ee31873c54226 | 94a0a723a1721182a444079996b4148cdf718b38 | refs/heads/master | 2020-06-07T08:55:34.038052 | 2019-06-20T21:38:13 | 2019-06-20T21:38:13 | 192,978,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,293 | py | # External sources used
# --> https://pandas.pydata.org/pandas-docs/stable/reference/frame.html
# --> http://unicode.org/emoji/charts/emoji-list.html#1f92d
# --> https://www.geeksforgeeks.org/python-program-to-print-emojis/
import time
import numpy as np
import pandas as pd
def get_filters():
""... | [
"Rishabh.bisht2302@gmail.com"
] | Rishabh.bisht2302@gmail.com |
ff96d11ffbd2b28520d2005e0854bde218bbd134 | 2dc38cc5ebade80e3b59c4d802271c4edff114e2 | /pyBattleship.py | 7cee55623a5f32b72912eff42963feba1522d80a | [
"Apache-2.0"
] | permissive | awhittle3/pyBattleship | 60db294e3ef807d2eaab6575f0e4bd43a12f9457 | be3b779654e68d355344258a334fcd0bc303d223 | refs/heads/master | 2020-05-20T11:11:01.968796 | 2014-05-30T23:13:16 | 2014-05-30T23:13:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,609 | py | import boards
import enemyAI
import playAnchors
def main():
enemyDead = False
playerDead = False
targetingMode = False
target = [99,99] #99, 99 is the null target value
turn = 1
n = boards.selectRand() #Select two random boards
enemyBoard = boards.makeEnemyBoard()
enemyLocations... | [
"awhittle@ualberta.ca"
] | awhittle@ualberta.ca |
51d5cfa038f52b53a7268bc01fad5b2b06dbf3b3 | 5fc947320389121abe4e0052614b7a23e0cf8226 | /pbcommand/schemas/__init__.py | 5f238df1c931e425457d19691407723684f0979f | [] | no_license | tperelmuter/pbcommand | 3e36c5d5a26bdb014e6986126148b946e8db9f3e | ebad4cf0504efa30fab64c4538022f77855d353d | refs/heads/master | 2020-04-07T18:49:27.901173 | 2016-02-09T21:59:00 | 2016-02-09T21:59:00 | 51,413,965 | 0 | 0 | null | 2016-02-10T01:23:31 | 2016-02-10T01:23:31 | null | UTF-8 | Python | false | false | 954 | py | import os
import functools
import avro.schema
from avro.io import validate
SCHEMA_REGISTRY = {}
__all__ = ['validate_pbreport',
'validate_tc',
'validate_rtc',
'SCHEMA_REGISTRY']
def _load_schema(idx, name):
d = os.path.dirname(__file__)
schema_path = os.path.join(d, name)... | [
"michael.kocher@me.com"
] | michael.kocher@me.com |
ff7e5353de2674b363d6503c65205bd258975026 | dfff7fef4d49266db475856d4c0afef8ca672e00 | /tests/cantfit.py | 54f692c8b57158768e4561a4098cae020b3eafbe | [
"MIT"
] | permissive | funilrys/black | 70a5a251338ab67fed0771ab6ec97cca03aa378b | b4cee97c99d5513ef81fdf2bff1809721662f87d | refs/heads/master | 2020-03-17T14:41:13.259870 | 2018-05-16T05:15:28 | 2018-05-16T05:15:28 | 133,682,656 | 1 | 0 | null | 2018-05-16T14:57:35 | 2018-05-16T14:57:35 | null | UTF-8 | Python | false | false | 2,983 | py | # long variable name
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = 0
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = 1 # with a comment
this_is_a_ridiculously_long_name_and_nobody_in_their_right_mind_would_use_one_like_it = [
1, 2, 3... | [
"lukasz@langa.pl"
] | lukasz@langa.pl |
a89b72dfd3f638a33e4b454b8f2ae58e5cd9155c | ae7b27c5bfabad681f8838b8268cdddb6048cd65 | /Src/correct.py | 5f71bca8b53882c53e93ee7feaf10ae8b48f566e | [] | no_license | Our-NLP/ChinesePronounse | f09fd4433a30662e14fedca8c8f6191b53384db5 | 7f513bdce47eff7a0e542d7dad030daf310d826e | refs/heads/master | 2021-01-10T16:00:05.077703 | 2015-12-11T08:38:52 | 2015-12-11T08:38:52 | 43,517,881 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 985 | py | # -*- coding: utf-8 -*-
import os
class Correct:
def __init__(self):
self.data_dir=os.path.realpath(os.path.dirname(os.path.realpath("__file__"))+"/../Data")
self.meta_dir=self.data_dir+"/MetaData/"
self.output_dir=self.data_dir+"/new_Data/"
self.postaged_dir=self.data_dir+"/postaged... | [
"ljfnwpusife@gmail.com"
] | ljfnwpusife@gmail.com |
7b0dbc63cff82f92ee55451cbdba8607fbeb356c | 65a784ef70fce0502a5711201639be5e80908d5b | /exp/tester/run.py | fb0c9b03cf114398651c833a1ccecdfe38561fe7 | [] | no_license | yunshengb/research | 5a93d6b3bc9e60fec152d817a17e9d4864ffdbd5 | 83e726678acaaf7116af5573a8419dc91a843df0 | refs/heads/master | 2020-09-11T01:24:28.235871 | 2016-12-05T05:51:33 | 2016-12-05T05:51:33 | 67,900,433 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 714 | py | from config import *
from os import system
from glob import glob
import pandas as pd
cmd = ''
if APP_TYPE == 'qa':
data = pd.read_csv(FILE_PATH)
for line in data[FIELD_NAME]:
cmd += 'tq\n'
cmd += line.replace('"', '').strip()
cmd += '\n'
elif APP_TYPE == 'asr':
files = glob(DIR_PATH + '/*.wav')
for... | [
"yba@umich.edu"
] | yba@umich.edu |
00b59084a85b1d55078321d160edd0d1e0677e4f | 0b7333006b9aa8ebf2497880baee5a333e8b9ef0 | /cnn/fer2013_to_file.py | 241b5fb5c2eff8c76e21b7d1bfed7afeb82ddf36 | [] | no_license | punkrocker/Deeplearning | 3c6066bc9e437aab0a0601b3ccc1069162803536 | 2d64eadce77aaac5664371593e44b73cee40bad8 | refs/heads/master | 2020-06-28T05:06:17.206052 | 2019-10-22T01:52:50 | 2019-10-22T01:52:50 | 200,148,849 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,636 | py | # encoding:utf-8
import pandas as pd
import numpy as np
import scipy.misc as sm
import os
emotions = {
'0': 'anger', # 生气
'1': 'disgust', # 厌恶
'2': 'fear', # 恐惧
'3': 'happy', # 开心
'4': 'sad', # 伤心
'5': 'surprised', # 惊讶
'6': 'normal', # 中性
}
# 创建文件夹
def createDir(dir):
if os.pa... | [
"punkrock_2000@163.com"
] | punkrock_2000@163.com |
32ccc301818cba58bc8652cc445d8944ea3d305b | 968df4b59df49396714d46d438057460ea8fea8b | /homeassistant/components/bond/utils.py | 48fbcd8021083d9beb0c69824137731e8342644d | [
"Apache-2.0"
] | permissive | dakesson/core | a71660e265d0742db0d0842f01ac4f3ddf3e074c | c9380d4972e4ec41991eca6e2bc0e4df99b763e7 | refs/heads/master | 2022-11-24T02:14:56.167005 | 2020-07-22T15:45:03 | 2020-07-22T15:45:03 | 282,056,305 | 0 | 0 | Apache-2.0 | 2020-07-23T21:12:02 | 2020-07-23T21:12:02 | null | UTF-8 | Python | false | false | 2,824 | py | """Reusable utilities for the Bond component."""
from typing import List, Optional
from bond import Actions, Bond
class BondDevice:
"""Helper device class to hold ID and attributes together."""
def __init__(self, device_id: str, attrs: dict, props: dict):
"""Create a helper device from ID and attri... | [
"noreply@github.com"
] | noreply@github.com |
7ef51710bf0d1477fb373d524df4209cae76669a | 38c5417c67c323de11feb03d5b90bdaa28012c87 | /open_canvas.py | 9173d87a5c52fbd35bc7c913c974310ebf9ace85 | [] | no_license | wongu0905/Class | c06145068fcc3951d211635ac3d7a25b62b9b64c | 93c25edd91ed6cfefedf974230deb78ba9e59f10 | refs/heads/master | 2022-12-16T20:17:07.110361 | 2020-09-22T14:45:16 | 2020-09-22T14:45:16 | 294,040,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | import pico2d
pico2d.open_canvas()
| [
"noreply@github.com"
] | noreply@github.com |
f2ed1999ab2fe5b10597c440649a3b93645b82d3 | c1e305171afcd18fdd66a46cbcf81d8dbcc3fd0c | /PyTorch/Py09_dropout.py | 447dd6e594089cf2812c287b60aa6a968b1ae24c | [] | no_license | ANRhine/PyTorch_Tutorial | 2f0d9fcc94dfec37a352b5dcb37fc66738abc37d | 378d03d2f2cfa08ff2040096218078a2e3cd659a | refs/heads/master | 2021-04-07T06:24:28.608860 | 2018-03-16T14:43:03 | 2018-03-16T14:43:03 | 125,291,327 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,116 | py | #! /usr/bin/env python
# -*- coding:utf-8 -*-
"""
-------------------------------------
File name: Py09_dropout.py
Author: Ruonan Yu
Date: 18-1-30
-------------------------------------
"""
import torch
import matplotlib.pyplot as plt
from torch.autograd import Variable
import torch.nn as nn
t... | [
"you@example.com"
] | you@example.com |
9393d21961b0043d35b932fd166c21ca22c72e0c | e456cdf76c1419413931d218317d44ea4b7c3fb7 | /demo/django/pokedex/admin.py | fd91861f03cd25790e7dec41cc349aba98f35f27 | [
"MIT"
] | permissive | Nekmo/angular-django | cbbd8bb0c6baeea6e788c5623fb98102b443f1e9 | 0464747806ce4e79571d3a72db0f04e15f0c6e5e | refs/heads/master | 2023-08-27T16:03:10.006482 | 2021-11-08T23:15:14 | 2021-11-08T23:15:14 | 298,419,330 | 14 | 6 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | from django.contrib import admin
# Register your models here.
from pokedex.models import Specie
@admin.register(Specie)
class SpecieAdmin(admin.ModelAdmin):
pass
| [
"contacto@nekmo.com"
] | contacto@nekmo.com |
3438306ad8e8827a648efd0fd5e6720bccebc58f | 80eef13ae9bcf5116c0b40ff2c6eef5655b8ebd5 | /sharingCode/metaclass/metaclass_login.py | ba778eaaafae527c22106108b5cb97242cdb5899 | [] | no_license | shmily-xiao/python_study | 8c53ff4c8f4bf7cd4990a7dc08a65adb300e7683 | 5bd1f7cf0e11345e18938b8c4439cca578e7d7d6 | refs/heads/master | 2021-01-24T07:55:03.872890 | 2019-03-20T13:04:38 | 2019-03-20T13:04:38 | 93,362,951 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from types import FunctionType
# 登录装饰器
def login_required(func):
print 'login check logic here'
def wrapper(*args, **kwargs):
print ("i get you", args, kwargs)
# 拿到这些值之后就可以去处理了return func(*args, **kwargs)
return func(*args, **kwargs)
re... | [
"wangzaijun1234@126.com"
] | wangzaijun1234@126.com |
6e8cba24b2548bcd9d286dde17fd656f2d2b9c88 | a8b023b73a400e7a7c6bb0d156e011df87b0b0b4 | /src/main/resources/ReadEDA.py | 65a1142d3388b46e0824deb1a5113d676bc0e5e2 | [] | no_license | makifcetinkaya/storm-simple | a5c998be004ea3ede2f05cd2f9b42a906d6f47e4 | 92f5098544a9de2365580cd9be0c98901289579a | refs/heads/master | 2021-01-06T20:45:36.261344 | 2013-02-20T16:55:11 | 2013-02-20T16:55:11 | 6,944,128 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | from edatoolkit import qLogFile
import os, sys
rpf = 5000 # read per file
edafile = qLogFile(sys.argv[1])
eda = edafile.EDA()
acc_x = edafile.ACC_X()
acc_y = edafile.ACC_Y()
acc_z = edafile.ACC_Z()
temp = edafile.Temperature()
# assume the lengths are the same
num_reads = len(eda)
num_files = num_reads/read_per_file... | [
"makif@mit.edu"
] | makif@mit.edu |
368438d6bd6eb2e764a63f7c2983f6a8380944e8 | 80775c192c7084171a0371b0fe14330b8cd89f0f | /stickerizer/emojis.py | 7070fbc525378011ade618d9b44d039bdcc88f9a | [
"MIT"
] | permissive | vanyakosmos/face2sticker | 5435ddbbc123c782a6501a78f6142e1ce88f9bc7 | 7b82eb12dd3e4c54c5033caee77f57b751f637b8 | refs/heads/master | 2021-09-13T07:40:51.156215 | 2018-04-26T17:16:24 | 2018-04-26T17:16:24 | 105,321,918 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,318 | py | import numpy as np
from emotion_clf.emotion import load_clf, vectorize, emotions
clf = load_clf('emotion_clf/clf2.pkl')
def associate_emojis(face_landmarks):
emotions_probs = predict_probabilities(face_landmarks)
emoji = map_emoji(emotions_probs)
return emoji
def predict_probabilities(face_landmarks:... | [
"bachynin.i@gmail.com"
] | bachynin.i@gmail.com |
89e026a18c52f389d46597ba589fee07cc32a352 | d44d33899aaab3d2a8b693b648701d49810aca12 | /cip5-multiprofile-wave.py | e001a331576902efdc7df62b78d3e40a59f81237 | [] | no_license | izham-sugita/CIP | 208eee2e108a910abd3a137083638244b8f60303 | a0cd77531a34ad32a0cebeb6069123e89aceb0b5 | refs/heads/master | 2021-06-27T14:51:45.696969 | 2021-01-07T11:44:04 | 2021-01-07T11:44:04 | 204,810,048 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,796 | py | import numpy as np
import matplotlib.pyplot as plt
#Changing the default size
#fig_size = plt.rcParams["figure.figsize"]
#fig_size[0] = 20
#fig_size[1] = 16
#plt.rcParams["figure.figsize"] = fig_size
imax = 2001
imax = int( input("Enter imax ") )
length = 2.0 #-1<=x<=1
dx = length/(imax-1)
u = np.ndarray((imax),dtype... | [
"sugita5019@gmail.com"
] | sugita5019@gmail.com |
ba555204a96171028853421c9e88db084f7bdb1e | cd5f75c051975e888cb86fea472b0108c747ba44 | /singlepage2/singlepage2/settings.py | 25c361d2e03441a6ebc0df3b84ef1423cb4f4499 | [] | no_license | astafanous/User-Interfaces | 68a53364c783f1a1d9e6a25a7d2c40b740f568f6 | 8ec84424394f14bf27228d02dda24944641557a4 | refs/heads/master | 2023-04-02T02:15:28.474982 | 2021-04-08T09:41:43 | 2021-04-08T09:41:43 | 348,271,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,095 | py | """
Django settings for singlepage2 project.
Generated by 'django-admin startproject' using Django 3.1.7.
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 pat... | [
"astafanousf@yahoo.com"
] | astafanousf@yahoo.com |
73d632b8868d43e2ed4fc736ba9368f1e9914594 | a16999aa79d39b1f6a1b9997cf7e2c8347a9b9e3 | /module.py | 84f6cd567fa0495a03905521f45c7454560f4392 | [] | no_license | song-ll/snippet | fa1d1b0a59c3b14bd5e744a4431e86cc4f7c0bf3 | b07a5fcdb00f15ac9fe345a548eaf7255c75a8df | refs/heads/master | 2021-07-14T03:50:41.278098 | 2017-10-19T23:05:56 | 2017-10-19T23:05:56 | 107,595,414 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | # -*- coding: utf-8 -*-
# @Author: Song
# @Date: 2017-06-24 16:21:15
# @Last Modified by: Song
# @Last Modified time: 2017-07-09 02:59:59
import os
from datetime import datetime
#print (dir(os))
print("current working directory:")
print (os.getcwd())
print("changed working directory:")
os.chdir ('C... | [
"noreply@github.com"
] | noreply@github.com |
35514cba717b052fe2dd9fe516d0221dc51e4212 | 19422d728737921856cada03941a7b802569b9e0 | /src/extract_ngrams.py | 2147944240d15ccba23a0c7e581de6b6f5e45e07 | [] | no_license | eneskeles/re-comma | 1d63ecad274788c258fffc91febc43a6a4ffbf70 | a5c42fd6ed53687ec5bce6a29877afa575db794a | refs/heads/master | 2020-04-19T13:41:14.015342 | 2019-01-29T20:41:03 | 2019-01-29T20:41:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,557 | py | from modify_ngrams import modify_ngrams
from nltk.corpus import stopwords
from nltk import ngrams
import os,re
import string
def get_words(base_path, filename):
#print("inside get_words")
a = set(get_ngrams(base_path, filename, 1))
return list(a)
def get_ngram_lists(base_path, modified_movies, modificati... | [
"noreply@github.com"
] | noreply@github.com |
8a16b83756f3b6f2cc7e3bf1f7c8a50c5bc43058 | f171072a6390997ea4cf398f32ff3c7b7680af3a | /bumerang/apps/video/albums/migrations/0005_auto__add_field_videoalbum_created.py | 598fadaa544415799e09f3de533bda105c00bcce | [] | no_license | onewaterdrop/bumerang | f1ab153d033072c49de2edb976fa761bd4293bba | 0466c8b37ad1073d7ba4fc4dc00a5c6debb343a7 | refs/heads/master | 2021-01-15T23:41:23.379010 | 2014-06-23T07:57:48 | 2014-06-23T07:57:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,622 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'VideoAlbum.created'
db.add_column('albums_videoalbum', 'created',
self... | [
"va.bolshakov@gmail.com"
] | va.bolshakov@gmail.com |
c44a67a3eaabc76d6e5635f62a79a69aa80faa77 | e5a511e346f5be8a82fe9cb2edf457aa7e82859c | /PythonNEW/Practice/StringRemoveExistingIdentitaion.py | f66992651f064d1098bc0a3e95b04ea1ee0ff896 | [] | no_license | nekapoor7/Python-and-Django | 8397561c78e599abc8755887cbed39ebef8d27dc | 8fa4d15f4fa964634ad6a89bd4d8588aa045e24f | refs/heads/master | 2022-10-10T20:23:02.673600 | 2020-06-11T09:06:42 | 2020-06-11T09:06:42 | 257,163,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | """ Write a Python program to remove existing indentation from all of the lines in a given text."""
import textwrap
sample_text = '''
Python is a widely used high-level, general-purpose, interpreted,
dynamic programming language. Its design philosophy emphasizes
code readability, and its syntax allows prog... | [
"neha.kapoor070789@gmail.com"
] | neha.kapoor070789@gmail.com |
f6d6555a8ba6236ab372c46d3874d38c6e764625 | db7660d3541c26b418ea84ca08fbf41f9ebd726b | /brax/jumpy.py | 7486fd1ac0b8ac9b44e57f3f0ed88c4c3ca5f7a4 | [
"Apache-2.0"
] | permissive | proceduralia/brax | 8727ada08184fe9f60356d17a15ea671df0906d6 | d54dc479a32e5e99641cde921c7988d69cd5bb7b | refs/heads/main | 2023-08-27T15:39:44.618414 | 2021-11-08T21:35:42 | 2021-11-08T21:37:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,680 | py | # Copyright 2021 The Brax Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | [
"erikfrey@google.com"
] | erikfrey@google.com |
38319b02bd4e57cd29c0ab49c5da043995369dde | 1cee2094b52f23172f262d4290011840066fcfc1 | /cw/cw_proj/model_hyperparameters.py | a4c6efaa929655998fa365b62d7ab3d9597918bc | [] | no_license | VariableDeclared/uop-computer-vision | 3210db7fd8797e0a94b807ee4449b73351b1ef0e | 59c07b9b25bd020409b28f88bb4aa7b9a1e543ca | refs/heads/master | 2020-03-30T14:01:43.298122 | 2019-05-07T08:17:48 | 2019-05-07T08:17:48 | 151,297,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,380 | py | from tensorflow.keras.layers import Dense, LSTM, Dropout
import tensorflow as tf
import pprint
import os
import datetime
import main
import numpy as np
import cv2 as cv
def modelv1(num_frames):
model = tf.keras.Sequential()
model.add(LSTM(100, input_shape=(num_frames, 1000)))
model.add(Dropout(0.5))
mo... | [
"petedes@live.com"
] | petedes@live.com |
2edcd56053e680eecd41a98f819562aeef6b12f5 | 2b238627de066356b54503bf762ec6dfd6d26e9a | /BinarySearchTrees/KthLargestValueBST.py | de73ae5a609b561064528d9f98de1cd8e2ef71b7 | [] | no_license | LKhushlani/leetcode | 601e1efa8ae6dbfdd4c3b49710f82cf68b9fa54a | 0a4643ca38224bd4cb4a101a6be3161f35979911 | refs/heads/master | 2023-04-28T08:17:38.286004 | 2023-04-20T02:13:52 | 2023-04-20T02:13:52 | 237,696,293 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 922 | py | # This is an input class. Do not edit.
class BST:
def __init__(self, value, left=None, right=None):
self.value = value
self.left = left
self.right = right
class TreeNode:
def __init__(self, noOfVisitedNodes, latestVisitedNode):
self.noOfVisitedNodes = noOfVisitedNodes
self.lates... | [
"lavinakhushlani@gmail.com"
] | lavinakhushlani@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.