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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ffb17e90ec91c824a02892c3dda985a8848bee6b | 07034c6fb49f7c8fc26ff9752bc4672551985023 | /PumpData/table_to_excel.py | be522bb1e6b4274a77dfcf9cb314673c36583172 | [] | no_license | wolfhawkld/Python-Learning-Code | 1ce78e3c0b0ffbf56ef5e7b0c665cf6aa1bbdcb9 | 3cf769a6c5b74158bcad66f93fef0c400fca5136 | refs/heads/master | 2023-08-10T14:40:08.440840 | 2023-08-01T06:54:54 | 2023-08-01T06:54:54 | 203,334,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,049 | py | '''目前仅支持SQL Server脚本语法'''
import pump_to_excel
# Global Params Start.
SCRIPT_FILE = 'CDM_DEV_20210222.sql'
# PUMP_RE = '.*?PostAPI.*?webApi.*?' #SFDC_API_Post
PUMP_RE = 'CREATE TABLE'
# PUMP_RE = '.*?GetAPI.*?webApi.*?' #SFDC_API_Get
ROOT_PATH = 'C:\\Users\\M293906\\Documents\\Project\\HK_CDM'
EXCEL_FILE_NAME... | [
"m293906@one.merckgroup.com"
] | m293906@one.merckgroup.com |
07e77c32a21bb14eb73d60a292be401093309297 | 3a693a9e4766d63a2af07339aeb94e4823857505 | /APL/A6B/Report Files/code6.py | d734735e81c2681159e49f17d45715fce1f5b7df | [] | no_license | DevaO7/Applied-Programming-Assignments | 0f53320243cda45dacc58cac0be79a6407ee36e9 | 653bfea5a43d021ba187925b44a86467538b9748 | refs/heads/master | 2023-07-10T11:14:36.893381 | 2021-09-06T10:32:29 | 2021-09-06T10:32:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 305 | py | def outputPlotter(H,u,t,title):
t,y,svec = sp.lsim(H,u,t)
plt.plot(t,y)
plt.title(title)
plt.xlabel('Time')
plt.ylabel('Output')
plt.show()
#Q6
t = arange(0,3e-2,1e-7) #Large Time Scale
u = cos((1e3)*t)-cos((1e6)*t)
outputPlotter(H,u,t,'Output plot (Large time scale)') | [
"ee19b018@smail.iitm.ac.in"
] | ee19b018@smail.iitm.ac.in |
814cd83774c4d087f409c51956e170a690fceb02 | 646e2932ee4da82434f0a7c4c3baba85bcd329a2 | /MestaDB/mestadb/content/management/commands/fetch_mail.py | a79d3712f61ddec15a83626fb8e1c941433a8aa4 | [] | no_license | sizzlelab/Arki | 182e71d662198dc34e03f896f8fdc116e1a9bcea | 329998985f8c15663afe47719c385e7b57bc7171 | refs/heads/master | 2021-01-19T05:33:39.484302 | 2012-05-15T06:20:05 | 2012-05-15T06:20:05 | 1,278,500 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,235 | py | # -*- coding: utf-8 -*-
import imaplib
from optparse import make_option
from django.conf import settings
from django.core.management.base import BaseCommand
from content.models import Mail
settings.DEBUG = False
import logging
log = logging.getLogger('fetch_mail')
def imap_connect(host):
try:
return imap... | [
"aapo.rista@aalto.fi"
] | aapo.rista@aalto.fi |
1b9d522a68c779c6fbab61ff905ce1cec0ad5f22 | 4dd18f00564dada51d30d7ea7477ec4e28447c1a | /myInceptionRestNet_FeatExt.py | eedc32294c1aedfba7441353bd3fdbaded4601c2 | [] | no_license | zxecho/FedFER4robot | 61a328889165389a8fae3aee33bd87b03f4c6009 | 6bfde7eb8f6e077dcbf7201bf908bb9dae6e1649 | refs/heads/main | 2023-07-03T08:57:15.077466 | 2021-08-06T08:33:22 | 2021-08-06T08:33:22 | 393,309,915 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,620 | py | import torch
from torch import nn
import torch.nn.functional as F
class Inception_ResNetv2(nn.Module):
def __init__(self, in_channels=3, classes=1000):
super(Inception_ResNetv2, self).__init__()
blocks = []
blocks.append(Stem(in_channels))
blocks.append(my_IncepResNet_uni... | [
"noreply@github.com"
] | noreply@github.com |
11ed9e9b15a39888808ba8c5239f94214ee5a921 | 1159ef2febfd0a36cd51ac43dfe23a087913e05f | /Day_3/listdemo.py | a6b9f7d3ef697024dad7aa698099bba928f347d2 | [] | no_license | Satish980/JNTUK_Python_Workshop | 64903addf14439ef961db00b79d5d434da4464a9 | ba2ede71b7b1145402efce9566471d6d9bc3d6a6 | refs/heads/master | 2022-12-05T12:27:36.810481 | 2020-08-24T14:59:02 | 2020-08-24T14:59:02 | 288,081,719 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py |
alist = [10,20,30,40,50,60,70,56,54,54,5454]
blist = ["oracle","microsoft","unix"]
clist = [10,20,"oracle"]
# assigning new element to the list
alist[0] = 1000
print("after modifying :", alist)
print(alist[0])
print("elements are :", alist)
# slicing
print(alist[0:1])
print(alist[0:3])
print(alist[4:7])
print(... | [
"isatishkumar4008@gmail.com"
] | isatishkumar4008@gmail.com |
50a0c577419e9816c0044d6ecb525ba9e83b893c | f4ef876264bb4335257336723776e00fd6f0a77a | /day1a.py | 95eaa2548670f0a8d2f8ff8585549a63ee193d6f | [] | no_license | matt-j-e/advent_of_code_2020 | cd8d79f4509ad992b1cd2594aace4f6a78de8ebe | 8f767bf0b6690d69f274a1f41abdc7918d9dde4e | refs/heads/master | 2023-01-24T05:40:30.805350 | 2020-12-15T08:35:00 | 2020-12-15T08:35:00 | 320,642,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | arr = []
with open ("day1.txt") as f:
for line in f:
arr.append(int(line))
for i in range(len(arr)):
for j in range(i+1, len(arr)):
if arr[i] + arr[j] == 2020:
print(arr[i], arr[j], arr[i] * arr[j])
break
| [
"the.matt.edwards@googlemail.com"
] | the.matt.edwards@googlemail.com |
c61878608715a968411a0145bb77acbe05ffcc3a | 5c69c86387caf5c5b02ff71e2c65bad4568185bb | /Run/3.py | f4728c1d4041332a5870c511c0fa42ab47c9a6f9 | [] | no_license | PozAnta/SystemOrig | 991ca7c8d84062154d1cb658dc8f5a85e15ffebf | 357ed79cca28c21c188f0d578b8366b6d009545d | refs/heads/master | 2020-04-17T21:44:19.867531 | 2019-01-23T07:17:19 | 2019-01-23T07:17:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py |
recset_file = ""
f = ""
new_value = "4"
try:
recset_file = open('C:\\MC Projects\\UCI2\\StartPRG.PRG', "r")
list_file = recset_file.read()
recset_file.close()
print(list_file.find("dim setup_con as long = 1"))
if list_file.find("dim setup_con as long = 1") != -1:
cut_end = list_file[li... | [
"33724307+PozAnta@users.noreply.github.com"
] | 33724307+PozAnta@users.noreply.github.com |
880d06ad03f6cf569657d3039340803cf78404fe | df8b0b089e2bf863ce2d1e471db8d34f12ada531 | /model/sg_perception/opt_classifier/opt_classifier.py | 9f68de78a461dcb0b161e54979001f68695e180e | [] | no_license | ICRA-2019/TCG | aba1af1c607626819c6900eb488b711d4e4890be | e917dada693d912c7dc6d46d379ad696c7e6a632 | refs/heads/master | 2022-02-13T07:30:28.827489 | 2018-09-04T15:49:44 | 2018-09-04T15:49:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,535 | py | import tensorflow as tf
# contains information relating to input data size
from model.sg_perception.constants import *
# network layer information for P_CNN
layer_elements = [-1, 16, 32, 128, OPT_CLASSES]
output_sizes = [32, 16, 4]
filter_sizes = [4, 4, 8]
stride_sizes = [2, 2, 4]
padding_size = [1, 1, 2]
'''
Classi... | [
"eccarpio@hotmail.com"
] | eccarpio@hotmail.com |
2cfbcc49b59402a8068228ec76bd75bc3e6f4437 | 06cb5b7ec7388f131d11ab5eb49154d097ebefb2 | /menu.py | fdd38356047f1cfdc1f76879f4c5541386b0fbc3 | [] | no_license | conner-jowitt/miniproject | 85a624617cc2ddbacbb583bfc30da7ce1a5e5dd9 | 48fb4f1e1e547885570241189fdfbc6d600f0bfe | refs/heads/master | 2020-07-25T10:00:14.033871 | 2019-10-09T16:18:01 | 2019-10-09T16:18:01 | 208,251,601 | 0 | 1 | null | 2019-09-19T14:21:39 | 2019-09-13T11:31:04 | Python | UTF-8 | Python | false | false | 1,804 | py | class Menu(): # TODO add starting index
def __init__(self, initial_options, header="", index=0):
self.options = initial_options
self.header = header
self.index = index
def add_option(self, new_option):
self.options.append(new_option)
def remove_option(self, old_option):
... | [
"conner.jowitt@infinityworks.com"
] | conner.jowitt@infinityworks.com |
eb9ea2feaa474643ea39f42d1aa1f5a6de783699 | 15f2eda8d5c81922bdfb84edeffcaacefe0949b6 | /ex3.py | 216273549d9c83244d640adcda56ebb329ff9767 | [] | no_license | linus1211/thehardway | afe75924f01762dba09291cad65e74815fbb8a24 | f6c6ff9356c08b3b56e4ba04c8a1f37bca3e2a9c | refs/heads/master | 2016-08-09T23:10:39.700053 | 2016-03-11T09:25:17 | 2016-03-11T09:25:17 | 53,643,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 637 | py | #!/usr/bin/env python3
'''
+ plus
- minus
/ slash
* asterisk
% percent
< less-than
> greater-than
<= less-than-equal
>= greater-than-equal
'''
print ('I will now count my chickens:')
print ("Hens",25+30/6)
print ("Roosters",100 - 25 * 3 % 4)
print ("Now I will count the eggs:")
print (3 + 2 + 1 - 5 + 4 % 2 - 1 / 4 + ... | [
"linus1211@163.com"
] | linus1211@163.com |
9ded1f8eb5f608062618445b5a27278af9cc3f6b | 16600afc8c99b78e0ed522574a8908d594ed26d5 | /IdentifyReplicates.py | 0b039ac1ae77e9e197aa5941b2e1c457a8d4f529 | [
"MIT"
] | permissive | srp33/TCGA_RNASeq_Benchmark | cc3d86c29c14c8dc49e9665a02bef58ca27b215f | 317ceac16ce58f9521b4a5ea488be494a83de400 | refs/heads/master | 2021-01-20T08:19:14.831654 | 2015-11-28T15:25:11 | 2015-11-28T15:25:11 | 41,886,603 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | import os, sys, glob
countDict = {}
for filePath in glob.glob("FeatureCounts/*"):
fileName = os.path.basename(filePath)
sampleID = fileName[:20]
#sampleID = fileName[:12]
if sampleID in countDict:
countDict[sampleID].append(fileName)
else:
countDict[sampleID] = [fileName]
numComm... | [
"stephen_piccolo@byu.edu"
] | stephen_piccolo@byu.edu |
2aef3812fb1788abf8827b8fc2b00f1387b7ffc1 | 2dbc4c21280483d380b7c3ad7c574cfe27fc62c2 | /studies/curso_em_video/ex046-contagem-regressiva.py | a360789cc2aa22149631f0ce39079d76b28bf077 | [
"MIT"
] | permissive | alexander-colaneri/python | 78c2c5b5119dc5fdd886d8e161427ef944b21985 | fbc84a2818d8324b712014e1a5abfc01474e49ea | refs/heads/main | 2023-01-29T22:07:48.891902 | 2020-12-11T18:24:20 | 2020-12-11T18:24:20 | 306,061,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | # Faça um programa que mostre na tela uma contagem regressiva para o estouro de fogos de artifício, indo de 10 até 0,
# com uma pausa de 1 segundo entre eles.
from time import sleep
class ContagemRegressiva():
fogos = '*** FELIZ ANO NOVO!!!! ***'
def __init__(self):
pass
def iniciar(self):
... | [
"alexcol@gmail.com"
] | alexcol@gmail.com |
aea9f74fbe8035b182ce5bec757a8d90c175a52d | 4677108deeb961b59aa8ab6ba0e386c0ab35f061 | /main.py | 1b95c01a06fd65dd5508e7dee444e12035dad7bc | [] | no_license | ferenc4/abn_lookup | 9ce4a15dec9abb2296cc141c8b37ff0e6aaf7653 | b3b417e91b8355d3cca19f4e51eae77d9329584d | refs/heads/master | 2020-09-16T06:22:21.666722 | 2019-11-24T03:25:51 | 2019-11-24T03:25:51 | 223,681,742 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,210 | py | from builtins import Exception, input, str
import requests
# https://3583bytesready.net/2016/08/17/scraping-data-python-xpath/
from lxml import html
import re
# //*[@id="content-matching"]/div/div/table/tbody/tr[1]
# //*[@id="content-matching"]/div/div/table/tbody/tr[1]/th[1]
# //*[@id="content-matching"]/div/div/ta... | [
"ferenc4.fazekas@gmail.com"
] | ferenc4.fazekas@gmail.com |
04bd461e80569d6354730bef59803b1014bc988b | 3b7825faf7d28b6fe6957feed2dafb352e64e86e | /poll/views.py | 468a15e5a1e8902e4dfe507bbe40da7ede48dd1f | [] | no_license | omolojakazeem/pollApp | b34ca84326748341a303289d553c4ef0f8bcf0c6 | dd4fd2737ff574251948422aedecc36101f7f7e6 | refs/heads/main | 2023-02-26T06:29:42.176995 | 2021-02-07T16:57:52 | 2021-02-07T16:57:52 | 336,839,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | from django.shortcuts import render, redirect, HttpResponse
from .forms import PollForm
from .models import Poll
def home(request):
template = 'poll/home.html'
polls = Poll.objects.all()
context = {
'polls': polls
}
return render(request, template_name=template, context=context)
def cre... | [
"omolojakazeem@gmail.com"
] | omolojakazeem@gmail.com |
48d5dad900ecdf584f2ec639d5b62ce8f06d2c2c | 82074ba616918ede605dec64b038546a7b07bd7d | /empowerb/middleware.py | 85764001431cfbf3cedb9002fb6e1ccf8f38b859 | [] | no_license | chetankhopade/EmpowerRM | b7ab639eafdfa57c054a0cf9da15c3d4b90bbd66 | 8d968592f5e0d160c56f31a4870e79c30240b514 | refs/heads/main | 2023-07-05T03:20:13.820049 | 2021-08-26T11:56:28 | 2021-08-26T11:56:28 | 399,354,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 774 | py | from _contextvars import ContextVar
from django.utils.deprecation import MiddlewareMixin
from empowerb.settings import DATABASES
db_ctx = ContextVar('var')
class WhichDatabaseIsTOUseMIddleware(MiddlewareMixin):
"""
Middleware to update the context var with the db alias
"""
@staticmethod
def... | [
"noreply@github.com"
] | noreply@github.com |
41149f6477c2d1571dcea511c175f10051270178 | 1519eed36a133f988cbfe922f748c3941a58ed00 | /utils/utils.py | b005b1ea22bb8261ac135a0c5dddb223689750a0 | [] | no_license | MASILab/MontageQA | fc5e99c40707c58a90790e2efebf44dc1a8820f9 | fe3e410881a0fca4a43efda77a124af89529a5b0 | refs/heads/master | 2020-12-19T05:02:36.363705 | 2020-04-09T22:09:08 | 2020-04-09T22:09:08 | 235,628,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,552 | py | from tkinter import *
from datetime import datetime
class Window:
# TODO: Add a prompt window asking for starter label file path
# TODO: Add a label for displaying idx
"""
The master tkinter window
"""
def __init__(self, root, img_display):
"""
Configure the master window.
... | [
"marcus.yu.56@gmail.com"
] | marcus.yu.56@gmail.com |
880c458d3f3529d6d643d216ff4c6061674fcd20 | 18aee5d93a63eab684fe69e3aa0abd1372dd5d08 | /test/legacy_test/test_jit_save_load.py | 7f58638e7ac7ad178372817cd669397568a0e4c8 | [
"Apache-2.0"
] | permissive | Shixiaowei02/Paddle | 8d049f4f29e281de2fb1ffcd143997c88078eadb | 3d4d995f26c48f7792b325806ec3d110fc59f6fc | refs/heads/develop | 2023-06-26T06:25:48.074273 | 2023-06-14T06:40:21 | 2023-06-14T06:40:21 | 174,320,213 | 2 | 1 | Apache-2.0 | 2022-12-28T05:14:30 | 2019-03-07T10:09:34 | C++ | UTF-8 | Python | false | false | 57,829 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://... | [
"noreply@github.com"
] | noreply@github.com |
628a26377a4ac11054ec002268c2916d3883eccf | 601e6891504cc9da063e3ef9993e7b5f142bbe35 | /examples/wifiStationsAndHosts.py | 8e68f22b85c8a2a65ee1968f5506555a2831560b | [] | no_license | caiqiqi/mininet-wifi | b8a13f83e4fbadea20865faecf6719abf8e68437 | 547cf3c01d85b9bfb38b3e9df3b5c52119b5b5e2 | refs/heads/master | 2021-01-20T16:44:34.270734 | 2016-05-16T12:55:56 | 2016-05-16T12:55:56 | 58,878,807 | 0 | 0 | null | 2016-05-15T19:01:01 | 2016-05-15T19:01:01 | null | UTF-8 | Python | false | false | 1,177 | py | #!/usr/bin/python
"""
This example shows how work with wireless and wired media
"""
from mininet.net import Mininet
from mininet.node import Controller, OVSKernelSwitch
from mininet.cli import CLI
from mininet.log import setLogLevel
from mininet.link import TCLink
def topology():
"Create a network."
net = M... | [
"ramonreisfontes@gmail.com"
] | ramonreisfontes@gmail.com |
3d3ef2ae01cfb64ab347fd0b2059de334af5e8a0 | 0953fdab77be774dc26e933735022e24b0035610 | /src/shop/migrations/0009_auto_20210828_1650.py | df6f9c6bf37eac8def20368d30f9f4e2cfdd7bc0 | [] | no_license | arindamdas612/bigtfox-django-app | 99a682f1708ad622800210c64e1c459c6de6eec7 | 7a4bc437647ddc0b3a0db9481a28bfd4da2171a6 | refs/heads/main | 2023-08-26T01:33:58.955268 | 2021-10-12T17:58:55 | 2021-10-12T17:58:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | # Generated by Django 3.2.6 on 2021-08-28 11:20
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0008_productattribute'),
]
operations = [
migrations.AddField(
model_name='category',
name='abr',
... | [
"arindam@Arindams-MacBook-Pro.local"
] | arindam@Arindams-MacBook-Pro.local |
cc6f0d63c7fdb76f60da7a6fd13f80a6561bb2a2 | 96464e20c680bd9b7d8d9f4cc3668b338e92b949 | /Code/tree_project/amazons_game.py | d13f3bc95a77278f137aa060a87866f60d22fa86 | [] | no_license | SWHarrison/CS-2.1-Trees-Sorting | 3a5bc44f30ca9ad8cb2e70546a870ad66f0ad3a9 | 9da835d136c01445c65579c864289c549ecf84a1 | refs/heads/master | 2020-08-26T20:13:41.051958 | 2019-12-17T01:28:05 | 2019-12-17T01:28:05 | 217,133,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,721 | py | class gameBoard:
def __init__(self, size = 5, pieces = 2):
self.board = []
for rows in range(size):
new_row = []
for columns in range(size):
new_row.append(" ")
self.player1_pieces = player_pieces(size,1)
self.player2_pieces = player_pieces... | [
"samuel.harrison@students.makeschool.com"
] | samuel.harrison@students.makeschool.com |
3f62be4bee13a60402b2cf034c3b14ae9504a016 | 68bdd0187747709c2df5258b5b8afb2af339e5c9 | /db_create.py | a1d96c7cb088512cc4fa2856596fa61f06f4ff58 | [
"MIT"
] | permissive | katmentecki/fiction | 3240bed4d4b6a154e1dc9a1b255cfede9d30700d | 05d3ef59959418805bf6f67d0c35c232ad65880c | refs/heads/master | 2021-01-19T18:17:50.898813 | 2016-11-16T22:20:08 | 2016-11-16T22:20:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 113 | py | from application import db
from application.models import *
db.drop_all()
db.create_all()
print("DB created.")
| [
"lavin@pitt.edu"
] | lavin@pitt.edu |
11f6638b642a36c6cd899731274fcab13d234a23 | 14d35454bacfb77b2efd1e70700408ac270e3d58 | /Faire/lib.py | 9b4b1b87b7340cc8526b95a37e69acebd6fd05ee | [] | no_license | yrjie/genomeBackup | e1e17dfa402bdeee60d0a94f2c490e91f2ba3a58 | 3c42ab3eca16954fe438c0e5f56bf6ad135a9a18 | refs/heads/master | 2021-01-23T22:43:23.945250 | 2015-10-17T16:26:32 | 2015-10-17T16:26:32 | 26,046,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89,898 | py | #!/usr/bin/env python
import os,sys,re
from rpy2.robjects import r,FloatVector,StrVector
from glob import glob
from wig import Wig
from wigs import Wigs
from reads import reads
import numpy
from copy import deepcopy
from math import log10
#from functions import merge_peaks_by_head_tail_distance
def batchOccInRegions(wg... | [
"yrjie0@gmail.com"
] | yrjie0@gmail.com |
78c13825dd9efc3dcdf4483d0bb317a9788cefd6 | 3cd9435ce80ed6388e5c69bfc2d7d61481acbcfe | /problems/programmers/42577-list-of-telephone/agrajak.py | 39b293089e46fd8adbfb1747d54a27422558ce63 | [] | no_license | five-per-week/algorithms | 6eca96c2b87b2b92f0dfbd59850b184bc91bdd56 | 3ed573e89985fea4b1a62c523abf4e230aea3873 | refs/heads/master | 2023-01-04T09:59:51.358233 | 2020-11-05T01:31:01 | 2020-11-05T01:31:01 | 297,027,057 | 5 | 3 | null | 2020-11-05T01:30:32 | 2020-09-20T07:45:24 | JavaScript | UTF-8 | Python | false | false | 423 | py | def solution(phone_book):
root = {}
for num in phone_book:
cursor = root
for idx, n in enumerate(num):
if n not in cursor:
cursor[n] = {}
cursor = cursor[n]
if '*' in cursor:
return False
if cur... | [
"noreply@github.com"
] | noreply@github.com |
344bd38c621d2e0cf736ba0347abf79b7721cd6e | f1818f6ff8269b39892bb3ba98047db8e0370fe6 | /article/migrations/0002_auto_20190901_1918.py | b96a6e0e0c4d46dc0262bb393ba58236863985d9 | [] | no_license | ozythings/blog | 7d3f2c4f769406433d590fc8832b901b2400aad9 | ad4ecf9c4bb0033223e9055cb808433be71450e9 | refs/heads/master | 2020-07-21T10:14:26.899148 | 2019-09-06T16:25:30 | 2019-09-06T16:25:30 | 206,822,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | # Generated by Django 2.2.4 on 2019-09-01 16:18
import ckeditor.fields
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('article', '0001_initial'),
]
operations = [
migrati... | [
"oguzhanciyiz@gmail.com"
] | oguzhanciyiz@gmail.com |
eb78a4b2dd125da394029b0e4dc4fd7f4c796455 | 68e99da17343937339df7ff5aadcfe0c017697b5 | /catalog/models.py | e19cf903e1379e9065949c0f9c2f2375c31e88d1 | [] | no_license | piusmons/django_local_library | 2fc9ba77529af536199eb769f8bbe55b2bcacace | c34faeb63a53a90cb6d414daccd60b263cdb46a7 | refs/heads/main | 2023-02-09T08:41:37.142106 | 2021-01-03T22:52:20 | 2021-01-03T22:52:20 | 326,514,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,112 | py | from django.db import models
from django.urls import reverse # Used to generate URLs by reversing the URL patterns
import uuid
from django.contrib.auth.models import User
from datetime import date
# Create your models here.
class Genre(models.Model):
"""model representing a book genre"""
name = models.CharField(max... | [
"piuslchua@gmail.com"
] | piuslchua@gmail.com |
93676b1ccd5b8f20a34473032ab5d4db03956a52 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5634947029139456_1/Python/AlonH/2014A1A.py | a02bf27c55c7c31dc651a2d0b8c8393d949d0274 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,292 | py | def match(now,needed):
now.sort()
needed.sort()
for i in range(len(now)):
if now[i] != needed[i]:
return True
return False
def count(ar,l):
ret = [0]*l
for i in range(l):
for s in ar:
ret[i] += int(s[i])
return(ret)
def compare(n,o,l):
... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
2bf0c12af8a63aa130ff5b61c4e8f624b0a23dc3 | 4602c60c5ce05b00355f462e806fdeaac6b578cd | /Classifier_Code/back_import_clean.py | 405b90d775e8201554879d3b055b56fe7b0289c5 | [] | no_license | pranavmrane/News_Headline_Classifier | 8fc57bb5110e7c137789dc02730fd4dad88fb5e9 | 068670e5bd53e92d2408923cbc690f199a489ccb | refs/heads/master | 2020-04-25T14:39:07.793654 | 2019-10-29T21:24:55 | 2019-10-29T21:24:55 | 172,848,658 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,013 | py | import pandas as pd
import string
import nltk
nltk.download('stopwords')
from nltk.stem.porter import PorterStemmer
from nltk.corpus import stopwords
import os
import sys
import traceback
class ImportAndClean:
__slots__ = ['dataFrame', 'stemmed', 'stopWordList']
def __init__(self, file_address=None, columns... | [
"pmr5279@g.rit.edu"
] | pmr5279@g.rit.edu |
4c6a4945f123306bcdf31d8b8f17939c2b32cc2f | 094304d0aa7cb6949c0f471d1c432dc7db5a4c2a | /VIRSCAN/vir_scan_db.py | 1358ecd8d77cb2b4438e1bd9cfcaacc0392ee70c | [] | no_license | smallmeet/fangzhen | 7f8e232b87841b88268d14133479846e48e33ba1 | d0cbf09eba98c835a4ea013889a8cf0b34263d0d | refs/heads/master | 2020-12-24T22:28:54.972613 | 2016-08-12T09:24:15 | 2016-08-12T09:24:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | from base_db import MysqlClient
from get_conf import GetConf
class VirScanMysqlClient:
def __init__(self, conf):
self.mysql_client = MysqlClient(conf)
def insert_vir_scan(self, args):
self.mysql_client.insert('PRO_VIR_SCAN_INSERT', args)
def insert_apk_black_list(self, args):
sel... | [
"luojianfeng2011@163.com"
] | luojianfeng2011@163.com |
6e9a46b9a6f69fb1024a1da8c825295da764cf97 | 173016e62bcca69fc36b7888c1784ad599756ed5 | /convert-string-to-camel-case.py | 9e54ba6d581cdd09175f6e86c22cbdfd7f3d8dfc | [] | no_license | dogac00/Python-Problems | c9415a1e3f8fbf5418088bfe94564e3e4d6b388e | 057674477cd3c8fc2de550bb512eeb8ab5edba2e | refs/heads/master | 2020-03-18T00:28:39.154471 | 2019-07-11T20:48:29 | 2019-07-11T20:48:29 | 134,096,575 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # Complete the method/function so that it converts dash/underscore delimited words into camel casing.
# The first word within the output should be capitalized only if the original word was capitalized.
# Examples
# to_camel_case("the-stealth-warrior") # returns "theStealthWarrior"
# to_camel_case("The_Stealth_Warrio... | [
"noreply@github.com"
] | noreply@github.com |
4f9cdc759c20a19b123b187ed82e7d01eb37bd48 | 8827574a663cc9d18194eb355dce7ffb676e6d0b | /everest/transit.py | 8958b3c59d794095e0ea42a5548d12f5aa0ef602 | [
"MIT"
] | permissive | mirca/everest | 70a79432f6cd2b604a64fc4c97c7513bbe2a6406 | b96cc5cd1949b81ddc49fb74b90bf5a95c6fca14 | refs/heads/master | 2021-01-13T05:56:00.206244 | 2017-03-17T16:35:49 | 2017-03-17T16:35:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,317 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
:py:mod:`transit.py` - Transit models
-------------------------------------
These are routines used to generate a transit model, primarily for
transit injection/recovery tests. These are wrappers around
:py:func:`pysyzygy.Transit`, with the added feature that
the transi... | [
"rodluger@gmail.com"
] | rodluger@gmail.com |
8387f13e44b83640b4203424ab42916600e6b426 | 082b62ab33af75154881599d91191aa76ea3d965 | /modelos/modelo_servicios_afiliados.py | de2157a802f265599d017574d949ef1e31aa6f67 | [] | no_license | clau2489/sindicatomunicipalmerlo | 03b55ed0048367c9444a8ca41c4d27e19d656c98 | f019bf40a7055ec3a40caf8f10abecaec3d3d879 | refs/heads/master | 2021-10-09T21:38:25.924117 | 2019-01-03T17:05:15 | 2019-01-03T17:05:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,258 | py | from PyQt5 import QtCore
from libs.db import querier
import cerberus
class ModeloServiciosAfiliados(QtCore.QAbstractTableModel):
__querier = querier.Querier()
__v = cerberus.Validator()
def __init__(self, propiedades = None, parent = None):
super(ModeloServiciosAfiliados, self).__init__()
... | [
"info@oestedev.com"
] | info@oestedev.com |
f4f8dd60ea58ec7d4096eb4aea102d0f080017d0 | 9ccf4964ffa09f285cc4ae90e323034c963b11ed | /rfc822.py | 0e635a767f231120237ddd1dcd416e9d2c7f3658 | [] | no_license | anybow/hyt | ff9ce0d837cb2b2dc275620ff3e2bbf7ede2e04b | 06d916ab38797e98f2ed9fba28ada3a988113a15 | refs/heads/master | 2021-01-20T12:16:47.136140 | 2014-08-07T02:39:58 | 2014-08-07T02:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 33,378 | py | """RFC 2822 message manipulation.
Note: This is only a very rough sketch of a full RFC-822 parser; in particular
the tokenizing of addresses does not adhere to all the quoting rules.
Note: RFC 2822 is a long awaited update to RFC 822. This module should
conform to RFC 2822, and is thus mis-named (it's not worth rena... | [
"digtip@gmail.com"
] | digtip@gmail.com |
544856a2128a2663e2458371b221be88ec516551 | c5b817222506a283bce75d3e8b4fa5482385710b | /python/edu.metrostate.ICS460/Assignment_7/ProxyServer.py | 1fc886a190e50022c2a83206f5875fd3fb2bf5d1 | [] | no_license | DavineChi/_Fall2019 | 38c646da9b0ed49be4ed5423bf232428a314658a | 3f9835f0dd1830cce7cd6fbc5a11421b3fbd1110 | refs/heads/master | 2020-06-26T16:43:32.012994 | 2019-12-05T18:53:49 | 2019-12-05T18:53:49 | 199,689,006 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,709 | py | from socket import *
import sys
if len(sys.argv) <= 1:
print('Usage : "python ProxyServer.py server_ip"\n[server_ip] : The IP Address Of Proxy Server')
sys.exit(2)
# Create a server socket, bind it to a port and start listening.
tcpServerSocket = socket(AF_INET, SOCK_STREAM)
# Fill in start.
serve... | [
"davine_chi@hotmail.com"
] | davine_chi@hotmail.com |
656773742fd28b2e301e5bcb2d716d2c45b39d52 | 05d6e25937f66255cd098771cb0dde36088b9db0 | /makeFeynmanDiagrams | 84fdeae657ee393e081820cbbca0feb4a57a2a48 | [] | no_license | scphall/feynman | 52f761b7a527e327ddd048309ae660f9dd809582 | f8008c8ac99e2487eaf0b75664dcbac1447cc05a | refs/heads/master | 2016-09-05T15:01:55.075675 | 2015-01-20T11:50:17 | 2015-01-20T11:50:17 | 29,527,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 611 | #!/usr/bin/python
from os import system
fd = 'feynman_diagrams'
print 'Making diagrams'
system('make')
cmds = [
'mv {}_1.pdf feynman_dsphi_sm.pdf',
'mv {}_2.pdf feynman_dsphi_susy.pdf',
'mv {}_3.pdf feynman_hhh_kpipimumu.pdf',
'mv {}_4.pdf feynman_hhh_phikmumu.pdf',
'mv {}_5.pdf feynman_theory_pen... | [
"samcphall@gmail.com"
] | samcphall@gmail.com | |
1ef6c6b6d66bfbf092460d8bb0caa237ffd3ca09 | fcf6933261c478786f92b30ddbf3633ecc00be78 | /conversion.py | c29ee324b65abb8342ccda74daa4a2ddbf6b1168 | [] | no_license | Chamb3r73/tkintwer | 7de0f3ade5f2d5d683a5d86214134b6d252b812c | 5f079573e50eedb79080e09e96af72f194e743b3 | refs/heads/master | 2023-04-27T04:55:46.781958 | 2021-05-14T19:57:02 | 2021-05-14T19:57:02 | 367,470,665 | 0 | 0 | null | 2021-05-14T20:17:39 | 2021-05-14T20:17:38 | null | UTF-8 | Python | false | false | 12,961 | py | import tkinter
from tkinter import ttk
from tkinter import *
root = tkinter.Tk()
root.title('Conversion')
root.configure(bg = '#000000')
weightans = 'Please enter an answer'
def weightcalculate():
weightask = float(weightentry1.get())
weightfrom = weighttkvar.get()
weightto = weight2tkvar.get()
if wei... | [
"71326878+HugoCotton@users.noreply.github.com"
] | 71326878+HugoCotton@users.noreply.github.com |
11ec425f8be68dda877b4711dab7240438492217 | c1fb485fe32e1c5b73761751da1e52e6a89f83cc | /dl-learnings/CNN/cifar10Traditional.py | 6cc9beb620262ee34ce947ae8edff7182b895f4a | [] | no_license | venkateshwj/Machine-Learning-and-Deep-Learning | 24c7435be44498773ba270ba217e3c0f518f0df8 | 8a164cb67e1480ab8200cf402c95812014081278 | refs/heads/master | 2020-04-22T05:47:28.468051 | 2019-02-11T18:02:08 | 2019-02-11T18:02:08 | 170,168,044 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,302 | py | # CNN
# Image -> Input Layer > Hidden Layer - Output Layer
#
# Input Layer :
# Accepts the images as part of pixels and form arrays
#
# Hidde Layer
# Feature Extraction
# - Convolution Layer (சுழற்சி)
# - Relu layer
# - Pooling layer
# - Fully connected layer.
#
# CL RL PL
# IL... | [
"venkat@masha.io"
] | venkat@masha.io |
72dbd153b494bd8b92ad9480744487c0e206a442 | 4cb43105861cb04d6b4d8c435455c273ba4ba57c | /resources/hello_world_try.py | 8152ca69843ae52e4eace4d41e4402fd3ef8c0cf | [] | no_license | Coqueiro/airflow-sample-dags | cc30dd95097d56323d73111e98e3f2bcde3f8df6 | 5b62fbed79ead02612613962ca230f09477c4fce | refs/heads/master | 2022-12-10T17:53:35.669969 | 2020-09-03T14:29:12 | 2020-09-03T14:29:12 | 283,019,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | #
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not us... | [
"lucas.garcia@LGarcia-Mac-01.local"
] | lucas.garcia@LGarcia-Mac-01.local |
8ea144ad15a989a6fb5c66f893ce896d2f61d1d5 | 0adf575f118216bd40b921732b91099810f233d2 | /tasks/update_customer_invoice/__manifest__.py | 7bfb7e31416b6a5bc8ede980200bcce7b9315707 | [] | no_license | EzzEldinSaleh/addons | a03eecc90ca990d187ba8f98d2db25331dc5821f | 6029591b5191f5587c1f70478fa8c0ccc00dce10 | refs/heads/master | 2023-07-05T07:20:36.705822 | 2021-08-29T11:26:42 | 2021-08-29T11:26:42 | 401,021,206 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 650 | py |
{
'name': 'Change Partner For Draft Invoices !',
'summary': 'Change Partner For Draft Invoices !',
'author': "ITSS , Mahmoud Elfeky",
'company': 'ITSS',
'website': "http://www.itss-c.com",
'version': '14.0.0.1.0',
'category': 'Accounting',
'license': 'AGPL-3',
'sequence': 1,
'de... | [
"zizosaleh2009@gmail.com"
] | zizosaleh2009@gmail.com |
1390b2d3b283c49021827414a5f0ca6601dd27e8 | 1cfafec5935522b386d40ab7bb7246f39da89fcc | /temp/20201221_naver_ai_handsonsummit.py | ff8784adba43b2a7a15adeb0447977ce5373c919 | [] | no_license | madfalc0n/my_coding_labs | 0d9e13e2d1579607d5481c6a78baa70a2c7c374a | b38fd988a5e3ebb8d8b66bf5a0b15eb3eaa20578 | refs/heads/master | 2021-07-03T17:33:16.801207 | 2021-06-18T06:24:09 | 2021-06-18T06:24:09 | 241,097,976 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | import sys
import requests
client_id = "CID"
client_secret = "CSECRET"
lang = "Kor" # 언어 코드 ( Kor, Jpn, Eng, Chn )
url = "https://naveropenapi.apigw.ntruss.com/recog/v1/stt?lang=" + lang
data = open('filepath', 'rb')
headers = {
"X-NCP-APIGW-API-KEY-ID": client_id,
"X-NCP-APIGW-API-KEY": client_secret,
"Con... | [
"chadool116@naver.com"
] | chadool116@naver.com |
9172f750d7849ab7bbc817f35d4f92b13a8c9ac5 | 887448be64b191a9bf0eb80db6aa74e58e7aee9e | /tmdb/models.py | 814da167808c1803c7d8201263b91ea391dbad98 | [] | no_license | YBouz/TMDb | 31e3b041282c18fcc7e7bbeacd91e0eca3eb6e86 | a9b39c480372b2c75fbade28e545a7b46aacb9a0 | refs/heads/master | 2023-05-07T15:31:00.701015 | 2021-05-25T15:58:16 | 2021-05-25T15:58:16 | 364,262,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,882 | py | from django.db import models
from django.core.validators import MinValueValidator, MaxValueValidator
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
# Create your models here.
class Title(models.Model):
TYPES = [
('Movie', 'Movie'),
('S... | [
"youssef@bouz.me"
] | youssef@bouz.me |
3b10596eaeb6c57b1df26cc257017ff071dade92 | 9e949193fa4166beb2acc49fa1d26f53998bc6a7 | /backend/manage.py | 21e45f31ce4106f083035414c4960e509e2f7441 | [] | no_license | chpenaf/TeLlevoAPP | 6a72e1507585fb2aa73c8e2883837f9efb2d0764 | 3f412cc30bb5a716486ec71eb06326993792bd3c | refs/heads/master | 2023-08-26T20:25:59.422049 | 2021-11-05T21:03:27 | 2021-11-05T21:03:27 | 404,098,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TeLlevoApp.settings')
try:
from django.core.management import execute_from_command_line
except I... | [
"ch.penaf@gmail.com"
] | ch.penaf@gmail.com |
14679579a6dbc0f503f5b3d8562401165ce94756 | 91deb97afda334c5366e560325995cf6b5407bee | /src/command_modules/azure-cli-billing/azure/cli/command_modules/billing/custom.py | 21965f255ffa9f5644f22068a40961f8ca75b5a3 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | viananth/azure-cli | ab117c1b0b676026cbb57567544cd70630efe830 | 4d23492ed03e946cfc11bae23b29acb971fb137d | refs/heads/master | 2021-05-23T05:13:51.414113 | 2017-08-17T16:58:10 | 2017-08-17T16:58:10 | 95,239,804 | 0 | 0 | NOASSERTION | 2019-03-19T18:45:16 | 2017-06-23T17:01:34 | Python | UTF-8 | Python | false | false | 891 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"troy.dai@outlook.com"
] | troy.dai@outlook.com |
1c733ac34e31752915353a8e409c649a76ae919c | 46348f2f13617c5364044440bd3a1691fae3f96d | /app.py | 9068c5766a697d973fb57d1cc04402e5affaad96 | [] | no_license | mkmaurya25/carprice | ef4142d4d24a0e708ac95f02693b1df254be17ea | 3cdca98692b7e59cd3970ef55cdf2f0bf2115846 | refs/heads/main | 2023-04-12T06:16:25.948844 | 2021-05-14T22:03:47 | 2021-05-14T22:03:47 | 367,480,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,133 | py | from flask import Flask, render_template, request
from flask import jsonify
import requests
import pickle
import numpy as np
import sklearn
from sklearn.preprocessing import StandardScaler
app = Flask(__name__)
model = pickle.load(open('random_forest_regression_model.pkl', 'rb'))
@app.route('/',methods=['GET']... | [
"noreply@github.com"
] | noreply@github.com |
e80086c7681aba8a3e9db60de523efc0dda13b05 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02886/s458066707.py | c314b1e82e4800300ac6e420a37e53e4fca14534 | [] | 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 | 98 | py | n=int(input())
d=list(map(int,input().split()))
d2=[m**2 for m in d]
print((sum(d)**2-sum(d2))//2) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
e8238ad90f566718d69fdf452dc3609eabf220b0 | d1e5de46c7bf5000f193f365642149368768a90f | /repository/discriminacion_horas_trabajo.py | 3ad83e73952301d6467f4df7f6ab709f09c8cc6d | [] | no_license | duvangiraldoavendano/sisteInfo | 5fb969cff8da7b6a462ad413f49c324480e3cfa8 | e932a8a0c8ccc355761999fc503d3b6e7be7c2c2 | refs/heads/main | 2023-01-21T19:33:38.666703 | 2020-11-30T17:01:49 | 2020-11-30T17:01:49 | 317,289,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,998 | py | from openpyxl import load_workbook
#Función que obtiene los profesores de ciencias politicas de catedra y los
#de derecho que son de cátedra y a su vez va al archivo de programación para
#mirar cuantas de las horas que aparecen en las horas de profesores, le corresponden a cada pregrado.
def discriminacion_hora... | [
"noreply@github.com"
] | noreply@github.com |
161ae1ba5c2aee37cddf0bd2e95c6feee60f60ea | e3428ec60a71a90fed3d157c472e561778f830c2 | /apps/main/models.py | e4dcfa55a7bb0452743e5095c075c13a45f49381 | [] | no_license | Rchimedes/travelplanner | 221c3dc5886c71b96070b205919424e546f37d13 | 928d63781fb7b21d819e9e8a6a3d8321628522f0 | refs/heads/master | 2023-02-03T08:12:20.792738 | 2020-12-21T21:58:40 | 2020-12-21T21:58:40 | 320,104,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | from django.db import models
from apps.login.models import User
class TripManager(models.Manager):
def basic_validator(self, post_data):
errors = {}
if len(post_data["destination"]) < 3:
errors["destination"] = "Please enter a destination with at least 3 characters"
if len(post... | [
"seventh_fret1@yahoo.com"
] | seventh_fret1@yahoo.com |
39963d3f5fd4b2c8772eba64c11eb9018bea8634 | 9aa8fcaff3541e6527314ec04ced80d4aa4767aa | /args.py | 9b4f3ef538a9952fbb511a2bb5a7ff3902535b69 | [] | no_license | einstalek/centertrack_torch | 5cc0d7eea43ac5c3a292e8e32529d35b76af68da | 67816c09b774dc5726dc3927f4dac32d9b70bb63 | refs/heads/main | 2023-01-07T12:04:55.916122 | 2020-11-11T19:39:01 | 2020-11-11T19:39:01 | 312,070,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,832 | py | import torch
class Args:
# Model parameters
device = 'cuda'
device_id = 1
backbone = 'resnet50'
heads = {'hm': 1, 'reg': 2, 'wh': 2, 'tracking': 2, }
weights = {'hm': 1.1, 'reg': 1, 'wh': 0.7, 'tracking': 1, }
use_bias = True
use_conv_transp = False
num_kernels = 2
down_ratio =... | [
"arganaidi@phystech.edu"
] | arganaidi@phystech.edu |
b02b17830771cfde31dd41ff465f4a7e44fcaf1c | 96ad70021009fdd4ee0df52e06ce30e87696cc99 | /Homework4/basic_simulations.py | 18bcbdb87157180dd56983ee8a4dc22dc080f68b | [] | no_license | tthatcher95/Large-Scale-Data-Structures | ee27e60b4e12f816023b57eb198a319d25fcefb4 | a42cd9abeccad407d0273a7aa9f64236848e7aeb | refs/heads/master | 2020-04-16T16:29:16.239421 | 2019-01-14T21:38:49 | 2019-01-14T21:38:49 | 165,739,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,853 | py | import numpy as np
import random
import sys
def get_random_letter(letter):
a = ['A', 'C', 'T', 'G']
a.remove(letter)
return random.choice(a)
def no_error(file, generated_number):
with open(file) as s:
total = 0
unique = []
while (total < generated_number):
current_s... | [
"tthatcher84@gmail.com"
] | tthatcher84@gmail.com |
697285250228dcb49cfeba0a6f5ac32856abae93 | 9a09bb914b6d99d5fa6b62b36818e2fafff59262 | /Practice_programmes/numpyExample/example2.py | 4d75d9564974d334a957443a9327ece93b51ae9b | [] | no_license | lgoyal06/LearningPython | c589f02a3457b0d8c656b70e74d9467ece5a7a23 | 14fac94133599db1fab55ab35cf0b74cd2828b60 | refs/heads/master | 2020-04-02T18:23:52.630539 | 2019-06-25T16:32:33 | 2019-06-25T16:32:33 | 154,698,458 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | import numpy as np
a=np.array([0,1,2,3,4])
print(a)
print(type(a))
print(a.dtype)
b = np.array([3.1, 11.02, 6.2, 213.2, 5.2])
print(b.dtype)
| [
"lgoyal06@gmail.com"
] | lgoyal06@gmail.com |
67558e1d4c168ae6ffe706cae7b73d5b96991949 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /ec2_write_1/client-vpn-client-certificate-revocation-list_export.py | 590e1a0b6582eaa6d0a43363fd3ba344c40e4825 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_one_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/export-client-vpn-client-certificate-revocat... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
08d9ef9e0df888661ac7a92b07f1072c7c740bb1 | 45231c60b4f011993975c081cfbf9c0c434e7d0e | /lab6_face_.py | 322431abfd79667f4c98eb121affb2806bd1a061 | [] | no_license | sumi89/Machine_Learning | bae6035e245eb2ef9f429a4a4d10551cbf87ccfd | 617d7ac5b3f8834c98589e77ad41fb448a3f3180 | refs/heads/master | 2020-04-24T01:31:19.797817 | 2019-02-20T04:49:38 | 2019-02-20T04:49:38 | 171,601,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,904 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu May 3 02:17:45 2018
@author: sumi
"""
from __future__ import print_function
import sklearn
from sklearn.model_selection import train_test_split
from scipy.special import expit
import numpy as np
import tensorflow as tf
import matplotlib.pyplot as... | [
"sumi@sumis-MacBook-Pro.local"
] | sumi@sumis-MacBook-Pro.local |
022be4db452f8ecc1c423f41fa77963d1855a30e | 9e21ee282d0a567b42a96f938f61d655eb2d5940 | /chat_room/tests/test_base.py | 1262db10f3b75ee65a9f2fb0e64f06f887ac4d2a | [] | no_license | smolynets/chat-interface | e0ac815639dd993f029f331a545c5c5932785569 | 3b66970c241eb1660b60a612aceffde36223eff4 | refs/heads/master | 2021-06-12T02:19:47.749561 | 2019-07-13T12:42:21 | 2019-07-13T12:42:21 | 191,516,912 | 0 | 0 | null | 2021-06-10T18:21:22 | 2019-06-12T07:06:21 | Python | UTF-8 | Python | false | false | 1,496 | py | """
This test is inherited by tests of other apps.
"""
from django.urls import reverse
from rest_framework.test import APIClient, APITestCase
from rest_framework_simplejwt.settings import api_settings
from ..models import User
class APIRestAuthJWTClient(APIClient):
"""
APIRestAuthJWTClient class.
Login... | [
"smolynets@gmail.com"
] | smolynets@gmail.com |
3bf1de822c4ab67af57788b5f747874e40c1bb8d | 2d4b27060f9870240293e00e9704fcb448bb1644 | /tester.py | a3bb9bcc33a96108e6663db86e279b473a150b19 | [] | no_license | majedomran/capstone | 465cff836f0c2832caa7e723ce38d4dee2e50516 | 244637b2dba560ba67ebbd644a5516b0fdc2838d | refs/heads/master | 2023-01-18T18:34:35.086818 | 2020-11-30T09:58:33 | 2020-11-30T09:58:33 | 308,686,263 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,973 | py | import requests
import json
data = json.dumps({'name':'SLS','model':'2020','reuseable':'True','capacity':5})
header = {'Authorization': 'Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IncyZVdtNWdrMl9nVjBNMVMtZWtFcCJ9.eyJpc3MiOiJodHRwczovL2Rldi04b2JlaGV1ei5ldS5hdXRoMC5jb20vIiwic3ViIjoiYXV0aDB8NWY4YTg1ZGNiYWFhMWMwMD... | [
"majedbinomran@gmail.com"
] | majedbinomran@gmail.com |
4b23b94b4f2d585da0f98db4029d3c7ee8ae51b4 | e9ad052050bffec5ce61ab272a7d39336625c687 | /appstore/wsgi.py | 2d5028843b96722e6325e28aba06e2cfe721e774 | [] | no_license | rxlisbest/django-appstore | 8a8946e781fb1e271650dbed6b66b40577cab002 | 2cd9c55fae604c10b90d2dd147bc0527c872e395 | refs/heads/master | 2020-04-05T23:06:30.463090 | 2014-04-27T09:17:24 | 2014-04-27T09:17:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | """
WSGI config for appstore 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 sys
import os
sys.path.append('/var/www/python/appstore/')
os.environ.setdefault("DJANGO_S... | [
"roy@localhost.localdomain"
] | roy@localhost.localdomain |
00b8187a078d6e96f49f7e9472e15e264b6980da | 0a51871ae18acb0ad24a4f4c090cfd805a6d8c41 | /ShareKnowledge/wsgi.py | 0c38c1077c593af8f6f063b41723ed1fca24f68d | [] | no_license | kiudou/ShareKnowledge | beb595c1e0ab0e6bdf8a7f79be184095b95d919c | 568485ee5b29b9bf2e6df9141b095981c74df6fa | refs/heads/master | 2020-03-14T16:51:43.574871 | 2018-05-19T01:54:04 | 2018-05-19T01:54:04 | 131,706,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for ShareKnowledge 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/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"qidong120@hotmail.com"
] | qidong120@hotmail.com |
93af9a347d6f279d1e07da3c44e45072e228bc89 | cbfe621b0790157c05cc6ab16fe01cc5db0e8a34 | /game.py | 6a5cfb0eb0d72780d48785782c0d811179b47282 | [] | no_license | sirdigital/korpo_trail | caf1e671ae9ec87e1a272afb79a9841f504e4fae | d70336075db3a04a5500c44648da1eb6c578ae56 | refs/heads/master | 2020-04-22T05:11:06.067409 | 2019-02-12T12:01:04 | 2019-02-12T12:01:04 | 170,150,797 | 0 | 0 | null | 2019-02-12T12:01:06 | 2019-02-11T15:18:21 | null | UTF-8 | Python | false | false | 97 | py | from story_manager import StoryManager
if __name__ == '__main__':
manager = StoryManager()
| [
"Cezar4853"
] | Cezar4853 |
259cf5d639056369c3f945a9da6687d606cf610b | 0eb0e6e65a0e00cdf52f9817ca73990f97644d54 | /01 - janela e fundo/main.py | adddcb015dadc6083645c69c8a0cb9798b065090 | [] | no_license | dudu9999/Tkinter_Projects_dudu9999 | aafffb4e6b298788b8580f44eb0cfb3c713d2f84 | 5bd7f4939ee149c7024013e987879f4b6bba398e | refs/heads/master | 2020-08-05T12:06:42.562741 | 2019-10-03T04:37:23 | 2019-10-03T04:37:23 | 212,497,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | ##import tkinter as tk
##
##janela = tk.Tk()
##
##janela.mainloop
# OU
import tkinter
janela = tkinter.Tk()
janela.title("Janela Principal")
janela["bg"] = "green" # coloca a cor de fundo
janela["background"] = "green" # ou assim.
# largura x Altura + Distancia da esquerda da tela + Distancia do to... | [
"ecaetanocorrea@gmail.com"
] | ecaetanocorrea@gmail.com |
e80392eaa312e8e823423e815e039a6b62a9e4a1 | 461b17f1d781b93838fd4e447506572252991c75 | /Hand Gesture Recognition/segment.py | 2afbae0bc88b544eb9184244157728fb6e0b5474 | [] | no_license | sohamtiwari3120/visionAiTaskphase | 8a50aa9dd2176d9522eed00b1c72a37cefbd703c | 3e979596bf1438df84b092a951fe526b1b87178c | refs/heads/master | 2021-04-14T14:16:39.237531 | 2020-05-08T01:07:58 | 2020-05-08T01:07:58 | 249,236,673 | 0 | 0 | null | 2020-03-22T17:32:50 | 2020-03-22T17:32:49 | null | UTF-8 | Python | false | false | 895 | py | import cv2
import numpy as np
import imutils
kernel = np.ones((5, 5),np.uint8)
bg = None
def run_avg(curr_image, aWeight):
global bg
if bg is None:
bg = curr_image.copy().astype('float')
return
cv2.accumulateWeighted(src = curr_image, dst = bg, alpha=aWeight)
def segmentImage(curr_image, t... | [
"soham.tiwari800@gmail.com"
] | soham.tiwari800@gmail.com |
977df78d722282409ad0ab4c71cf5d039b03b76d | ccaa16ac556eea4158af2385fb8e1dc2b76eaf91 | /apps/civic_pulse/apps.py | 22f47a4d88b35df40457cc6f2dd6952bf224e96c | [
"MIT"
] | permissive | morisy/GovLens | 9814d65683fa467ca9c8c09b46c5fb2ab8199f27 | efcd37b04b5ccbbe991a53e4a5d0b40754cf8889 | refs/heads/master | 2020-11-24T04:29:01.407047 | 2019-12-14T04:54:49 | 2019-12-14T04:54:49 | 227,965,237 | 1 | 0 | MIT | 2019-12-14T04:23:07 | 2019-12-14T04:23:06 | null | UTF-8 | Python | false | false | 96 | py | from django.apps import AppConfig
class CivicPulseConfig(AppConfig):
name = 'civic_pulse'
| [
"jdansey@bu.edu"
] | jdansey@bu.edu |
3c78d94f96313789cdcab22a4e37af4d6683944f | dcda5ba16474dd8ff650e04e7f4a9bf700f6a9ff | /manage.py | e4582d9147c1e546b5dee4a9c82e5fcceb52ac75 | [] | no_license | 007vict/shopbyexample | 2084d6e53faafb5c7e856cc8b3a5ff43bc3a82e2 | bc7dcfe5818499731c3cbf956c9c0b95cf3791da | refs/heads/master | 2022-12-21T13:05:08.425653 | 2019-04-10T10:30:41 | 2019-04-10T10:30:41 | 177,291,341 | 0 | 0 | null | 2022-12-08T04:58:00 | 2019-03-23T13:18:59 | JavaScript | UTF-8 | Python | false | false | 547 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myshopbyexample.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Djan... | [
"super_vg@bk.ru"
] | super_vg@bk.ru |
8a6f357264b2dbc8114efa7cb34e8a02b9be2820 | 63b814265ab49ebc2ed8e62577757991119be83b | /data-quality/kalman-filt.py | d10a0e87d25b724b1f8289d92c13e7a3168ac9bd | [] | no_license | wisecg/mjd-analysis | 7de4e67c34c19215984f528f31f71a8e584e1e91 | ca4f00a767f2dfe6d460b44c700e2b59fe0bb296 | refs/heads/master | 2020-12-07T21:28:34.376478 | 2017-08-28T15:20:17 | 2017-08-28T15:20:17 | 65,919,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | """
The idea is to take plots like "gmax" and "gbase" in data-quality.cc
and apply a Kalman filter to them, to look for "extrema"
http://scipy-cookbook.readthedocs.io/items/KalmanFiltering.html
Intro to Kalman filters:
http://www.cs.unc.edu/~welch/media/pdf/kalman_intro.pdf
Ben says:
everything is “basically linear... | [
"wisecg.neontetra@gmail.com"
] | wisecg.neontetra@gmail.com |
1547ae20bcab955d0bc53826f0c25ebaf5c0ca77 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2645/60768/316508.py | 65bd1d2918995f2d545307313de4c81f073d0279 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | piles = eval(input())
h = int(input())
max_k = max(piles)
min_k = int(sum(piles) / h)
re = max_k
for k in range(min_k, max_k + 1):
time = 0
bananas = [i for i in piles]
while len(bananas) > 0:
for i in range(len(bananas)):
bananas[i] = bananas[i] - k
time += 1
if ... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
8114b4cb6593c1b9742ce21db55745a0f2733e00 | 0ca0471d6457d8dcacc5f3433af586bed44cb7af | /python/aBasic/c_module_class/mypackage/mymodule.py | 6ee5dd3ceb7d03117b50fac88b916f3a39884dfb | [] | no_license | ehan831/coding_study | 61f47a8b5a7fe448fc71a868637590821d988729 | 14958b6b4642e6488156091293e854cc36cf9411 | refs/heads/master | 2022-12-21T20:29:10.265425 | 2019-09-05T04:07:22 | 2019-09-05T04:07:22 | 181,843,058 | 0 | 0 | null | 2022-12-16T00:45:37 | 2019-04-17T07:50:37 | Jupyter Notebook | UTF-8 | Python | false | false | 1,204 | py | """
[정리]
* 함수 : 파일 내에서 일정한 작업을 수행하는 코드 블록
* 모듈 : 함수나 클래스들을 파일
모듈이름은 py 확장자를 제외한 파일 이름
* 패키지 : 여러 모듈들을 모아놓은 디렉토리
패키지 = 디렉토리
모듈 = 파일
[ 모듈 ]
- 자주 사용되는 함수를 매번 작성하지 않고 하나의 모듈로 사용하여 재사용
- 모듈 단위로 분리하여 설계함으로 작업의 효율을 높임
- 동일한 함수나 클래스를 모듈로 관리
... | [
"ehan831@gmail.com"
] | ehan831@gmail.com |
979fc63e25109ceca7ce6c252e93769919babbfb | be989b74573721f4359553d375bd752006f70b5c | /handson_XOR_Classification.py | c85e637283eac0d0b2967060bf5d048aee420b7f | [] | no_license | onegeeknosquad/HandsOn-ML-Tensorflow | a5b94bab252dae68ec3fd22beeb4e7f1da64d747 | fccc700ffcb052f90d990e3dcfcf04241c28bb74 | refs/heads/master | 2020-03-20T22:52:30.816609 | 2018-06-19T00:00:09 | 2018-06-19T00:00:09 | 137,819,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 18 18:08:23 2018
@author: mrpotatohead
XOR Classification Problem
Hands on Machine Learning with Scikit Learn and Tensorflow
Page 262
Figure 10-6
"""
import tensorflow as tf
import numpy as np
X = [[0,0],[0,1],[1,0],[1,1]]
y = [[0],[1],[1],[0]]
... | [
"onegeeknosquad@gmail.com"
] | onegeeknosquad@gmail.com |
e95391f7262eb77f17c357f16d90808250365044 | 3bd5b9c81bca76565e583dd5e35e9f10966926ac | /ptr_with_no_coverage/BiDAF.py | 0591eee01dd3038286da4c308e8c11c78ae0375c | [] | no_license | FeixLiu/graduation_project | cc06e89098ade093f149291638c3edc044976356 | 42b9de0138446097b5396d6306698be1661b3d3b | refs/heads/master | 2020-04-25T13:53:47.711713 | 2019-04-13T03:37:18 | 2019-04-13T03:37:18 | 172,822,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,947 | py | import tensorflow as tf
class BiDAF():
"""
self._refc (tensor): the context tensor
shape = [paragraph_numbers, max_seq_length, bert_embedding_size]
self._refq (tensor): the query tensor
shape = [paragraph_numbers, max_seq_length, bert_embedding_size]
self._cLength (int): the length of ... | [
"1842068905@qq.com"
] | 1842068905@qq.com |
d98d52460289e88e419f5d0a57625556b7e514b8 | 8e8ed90ee59426da5c8a350ded2b635cefcc923c | /robosuite/models/segmentation/split_dataset.py | b5a522743505a5348e3fab91e58b7eb5b254a77a | [
"MIT"
] | permissive | YeWR/robosuite | 6286782294fd922f20bce3e8ff89449ddab34b8a | 49bd80c0e6499299a96b67b5e23cd8903e849d7d | refs/heads/master | 2020-12-05T18:54:38.029260 | 2020-09-12T15:41:08 | 2020-09-12T15:41:08 | 232,214,909 | 2 | 1 | MIT | 2020-11-17T03:04:53 | 2020-01-07T01:09:21 | Python | UTF-8 | Python | false | false | 1,520 | py | import os
import random
def split_by_type(file, path, type=4):
lines = open(file).readlines()
fs = []
for t in range(type):
p = os.path.join(path, 'label_' + str(t) + '.txt')
fs.append(open(p, 'w'))
for line in lines:
path, action, obj_type, reward = line.split()
f = fs... | [
"yeweirui16@gmail.com"
] | yeweirui16@gmail.com |
c3c4498cc89fc0759a18d9c2e42405e1699763d0 | 89771f98d03e9bda96301a08544585061595af6c | /ros_start/src/kinematics.py | e641fd96af68ce4c41e27f77bc5f187fbe4e8421 | [
"BSD-3-Clause"
] | permissive | Ryosuke-YA/kadai2 | c21f6875924a2fbbfef29c40f8451c767b2253c6 | b981a9d02a4d02948e54d371569bf158b8c3212f | refs/heads/master | 2020-12-18T19:41:57.108435 | 2020-01-23T15:34:48 | 2020-01-23T15:34:48 | 235,501,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 935 | py | #!/usr/bin/env python
import roslib
import rospy
import math
PI = math.pi
def Kinematics_f(x, y, z):
sheta1rad = float(math.atan2(x, y))
sheta1 = float((sheta1rad* 180.0 / PI)*10)
C3 = float(((x-pow(51.2*math.sin(sheta1rad),2) + pow(y - 51.2*math.cos(sheta1rad),2) + pow(z,2)-pow(54.2,2)-pow(118.0,2))... | [
"noreply@github.com"
] | noreply@github.com |
5509f28877444ba0ac97b513a2106dbc9ddd0995 | ea0c0b8d67a42086f840149b3dbe1c0e4f58e56f | /members_area/migrations/0005_auto_20200129_2122.py | 12832e8dc63b3301b343c645b65d640d95c3d93b | [
"MIT"
] | permissive | AzeezBello/raodoh | 78b27e0886f8882144a4def160d9c3f53bcc6af9 | 296bd44069bd750557bf49995374601f5052d695 | refs/heads/master | 2022-05-03T05:07:21.632642 | 2020-02-26T10:16:08 | 2020-02-26T10:16:08 | 235,878,080 | 0 | 0 | MIT | 2022-04-22T23:01:27 | 2020-01-23T20:15:39 | JavaScript | UTF-8 | Python | false | false | 481 | py | # Generated by Django 2.2.9 on 2020-01-29 20:22
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('members_area', '0004_auto_20200128_2330'),
]
operations = [
migrations.AlterField(
model_name='... | [
"azeez@scholarx.co"
] | azeez@scholarx.co |
16e3399b6851e6117677a58a73bbfb612061145e | 16bd8ca85a6249975b47fab6513e89de0d737986 | /rooms/migrations/0007_auto_20210323_1545.py | f830de470b2f06ef79b94668c9c29d87bf6901ab | [] | no_license | yessm621/airbnb-clone | ed5ee7b52c290bb6a4e140b1387d66048e41db39 | 76faadc75f00c3b8801e50e2596334d08ff29ff2 | refs/heads/master | 2023-06-01T05:12:29.779071 | 2021-07-13T02:21:00 | 2021-07-13T02:21:00 | 344,806,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 2.2.5 on 2021-03-23 06:45
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('rooms', '0006_auto_20210321_1752'),
]
operations = [
migrations.AlterField(
model_name='photo',
name='file',
... | [
"yessm621@gmail.com"
] | yessm621@gmail.com |
3225468d05a0d7d8ccb6a3150949dc7e5a44ca89 | cab6d7986b8a001a1e41a8f9063d5b91e0b3215b | /Exercício 10/ex10.py | 1f58afc7995f23ed34d64b6c2b543ac0e515ecac | [] | no_license | DevVictorr/Python-Exercicios | 4f59527d7be7fbf5be46c2344feee8876f10464d | 4b449505e0a94877da512a80e4e17b69020d143c | refs/heads/master | 2023-06-04T22:19:32.211581 | 2021-06-16T22:14:13 | 2021-06-16T22:14:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | frase = 'Completando o desafio EX 10 em python'
print(frase[:18]) | [
"victordsantunes@gmail.com"
] | victordsantunes@gmail.com |
b08e83d8310b1e996d5490e5a676d7b291570857 | 91be5031ae0ed8fa9adc1ad91b2f23d5e780c02e | /app/my_app.py | 2c1d0f7d594f994eef715fdabe1cda9490b0033c | [] | no_license | chadkendziorski/flask_app | 190bbf60a73ffc81b343a4879144b9008dcd8e95 | 5ee0d8f795e09d1fa1afebdd49070c6a8487da05 | refs/heads/master | 2023-08-06T23:08:12.343286 | 2021-09-30T02:28:51 | 2021-09-30T02:28:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | from flask import Flask, render_template, url_for
app = Flask(__name__)
@app.route("/")
@app.route("/home")
def home():
return render_template('home.html')
@app.route("/about")
def about():
return render_template('about.html', title='About')
if __name__ == '__main__':
app.run(debug=True) | [
"btwist540@yahoo.com"
] | btwist540@yahoo.com |
974c211fc0aafd7072d0d9fe4abf58e736c2437e | 9bc228372e586a1f90bb0685c43e744be9638ecd | /19_송지영/session09/blogproject/blogproject/urls.py | 3d9666b58bf08aa36fe65c0a9c7c339174ab6a5b | [
"MIT"
] | permissive | LikeLionSCH/9th_ASSIGNMENT | 3e58862a76e3232aed7e19e8939da23330ff2e22 | c211995ad12f404833ffec7fd80e1229b82a3bfa | refs/heads/master | 2023-07-03T10:27:11.843177 | 2021-08-02T14:52:02 | 2021-08-02T14:52:02 | 379,633,279 | 7 | 18 | MIT | 2021-08-02T14:52:03 | 2021-06-23T14:36:59 | Python | UTF-8 | Python | false | false | 1,054 | py | """blogproject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"thdwldud8@gmail.com"
] | thdwldud8@gmail.com |
838ea1d1a76bac8e500e2182ffc6165bcc297aab | 507bd189770e324c9961f5e6b1cc429f8f56013f | /maths.py | a3dfa48a1cb31612731b6c654d800d8cb6c75d11 | [] | no_license | aditijhaa9901/git-tutorial | 48abf9d16273c9101a01a02368955e0f8e7701a5 | f7306368a5a0bca5287efd6c3a47b72c0abb2c81 | refs/heads/master | 2022-11-04T21:40:52.159567 | 2020-06-28T07:04:43 | 2020-06-28T07:04:43 | 275,533,962 | 0 | 0 | null | 2020-06-28T07:45:31 | 2020-06-28T07:45:30 | null | UTF-8 | Python | false | false | 32 | py | a=5
b=4
print(a+b)
print(a-b)
| [
"noreply@github.com"
] | noreply@github.com |
5cab032420aeef10362adc5c232ceff023afc26a | 4aa7c3c3b9b8bd898411a8409b4ac2ede1914914 | /Fileutils.py | 8be4ed73c4e2d0b71f2732c775a20c1410873550 | [
"Apache-2.0"
] | permissive | davidhstocker/Intentsity | c2848867874f84ba6be84516d9b153025f849686 | c8e0c6a5ecfb910bf456f6218a3d2eae3b6b8486 | refs/heads/master | 2021-10-11T23:40:42.665897 | 2021-10-06T19:15:55 | 2021-10-06T19:15:55 | 170,385,686 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,039 | py | '''
Created on June 13, 2018
@author: David Stocker
'''
import re
import os
import codecs
import zipfile
import importlib
import sys
import Graphyne.Graph as Graph
#globals
logType = Graph.logTypes.ENGINE
logLevel = Graph.LogLevel()
tiogaHome = os.path.dirname(os.path.abspath(__file__))
d... | [
"david.stocker@sap.com"
] | david.stocker@sap.com |
5afae695f4d0d8c66f3a8d64f55c514f3919824c | a00ed711e3e08b50ad6e91cc07a2cddc4a1de5ea | /airflow/providers/microsoft/azure/operators/data_factory.py | 488ccbced070222c2fa5c3d5046514b7ee751015 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ishiis/airflow | 4305794e36b611d01f49e3f2401be3dc49782670 | 292440d54f4db84aaf0c5a98cf5fcf34303f2fa8 | refs/heads/master | 2022-07-30T00:51:28.806940 | 2022-07-14T12:07:11 | 2022-07-14T12:07:11 | 209,801,072 | 1 | 0 | Apache-2.0 | 2019-09-20T13:47:26 | 2019-09-20T13:47:26 | null | UTF-8 | Python | false | false | 9,684 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | noreply@github.com |
0455597e32ed947b92e63329538060ec63a7cb7e | 861fdf0e6ee0d12c7fecc1449ff9e878dc5bb4cb | /1 Basics of Neural Network/1.2 Logistic Regression for Binary Classification/3. ProblemSet-Prog1.py | ffc085f046cef5fe035cbece0767da15f414aa43 | [] | no_license | PromitR99/Deep-Learning | 74ef0cb95e329987b7cbf49bfc8c3d27f3ad0025 | f2efefd6c1a5cc75be8918f86d7a21bb9718742a | refs/heads/master | 2022-12-11T14:39:03.742034 | 2020-08-31T08:45:21 | 2020-08-31T08:45:21 | 287,965,679 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | #numpy is the fundamental package for scientific computing with Python.
import numpy as np
#h5py is a common package to interact with a dataset that is stored on an H5 file.
import matplotlib.pyplot as plt
#matplotlib is a famous library to plot graphs in Python.
import h5py
#PIL and scipy are used here to test your mo... | [
"pr18u10260@btech.nitdgp.ac.in"
] | pr18u10260@btech.nitdgp.ac.in |
656bb960ef1d2fd531df0a667c4d97135b95bcb1 | dd5ee6d1e88527cd22f1b64443320ba8ef751b59 | /rlcard3/envs/mocsar.py | 2b3edd2b9df42da117998cd3dd3b41bf88e15885 | [
"MIT"
] | permissive | sorata2894/rlcard3 | 42a2587e3ab00f3a33c684fb76efbc334a835359 | e9bbd36b789e670f96622a3a2ba8327f0d897561 | refs/heads/master | 2022-11-05T00:08:10.809055 | 2020-06-11T03:28:41 | 2020-06-11T03:28:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,854 | py | """
Mocsár Environment
File name: envs/gmocsar.py
Author: József Varga
Date created: 3/27/2020
"""
from rlcard3 import models
from rlcard3.envs.env import Env
from rlcard3.games.mocsar.game import MocsarGame as Game
from rlcard3.games.mocsar.utils import action_to_string, \
string_to_action, payof... | [
"31209755+cogitoergoread@users.noreply.github.com"
] | 31209755+cogitoergoread@users.noreply.github.com |
76faf3fd6ac8be77e3a1174cf85ff9d069e4638a | 96c970ebacd9ade1493f4d01537005788b43a49b | /pychron/experiment/tasks/experiment_actions.py | 1449ab2015d4a6e355f16e188813b9cb6753b314 | [
"Apache-2.0"
] | permissive | OSUPychron/pychron | d2da9051b68024200d0009de634da810ccef2a0d | fe0ba9daff9548fa8bebab26db66a1cefff7c1d6 | refs/heads/master | 2021-01-14T12:47:26.389887 | 2015-12-18T22:27:02 | 2015-12-18T22:27:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,537 | py | # ===============================================================================
# Copyright 2011 Jake Ross
#
# 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... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
682fb58ece5814588e15685a98e46a2f6dfcc2f7 | 7f2ce7e465b434dae7158f0a53b247ba74e43024 | /powergenome/externals/cpi/cpi/parsers.py | 473e8b16a334937b9c693268400da4ac0e5b67c1 | [
"MIT",
"CC-BY-4.0"
] | permissive | nspatank/PowerGenome | 14ba0f2a61535f6e125790f91e91a67a6b61dfda | 780e6ab5aa56da9abbbaadb6230af6304d9ecc06 | refs/heads/master | 2023-06-24T08:54:45.355887 | 2021-07-22T21:02:28 | 2021-07-22T21:02:28 | 273,345,726 | 0 | 1 | MIT | 2021-07-22T21:02:29 | 2020-06-18T21:42:46 | Python | UTF-8 | Python | false | false | 6,364 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""
Parse and prepare the Consumer Price Index (CPI) dataset.
"""
import os
import sqlite3
import logging
from .models import MappingList, SeriesList
from .models import Area, Item, Period, Periodicity, Index, Series
logger = logging.getLogger(__name__)
logger.addHandler(... | [
"greg.schivley@gmail.com"
] | greg.schivley@gmail.com |
008383cce6aa8a6910ad5b4da236d93f9721d8ec | 3ff40164604372340944477eaace1ecaaf755de4 | /Directory/www/views.py | 276364e1a5582872043631c518d7977955dce681 | [] | no_license | sigkillchris/djangoteamapp | 8eaa497963a93ac3206c74325a9356e27fc4dc73 | fc0e339c0b8cfcd0d5867aaff0cd82ce6cb901cb | refs/heads/master | 2021-08-28T00:28:47.246947 | 2017-12-10T21:17:21 | 2017-12-10T21:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py |
from django.shortcuts import render
from . models import Person
# Create your views here.
def index(request):
people = Person.objects.all()
return render(request, 'index.html', {'people':people})
| [
"cvg.developer@gmail.com"
] | cvg.developer@gmail.com |
66dfe6b365de0000540bc736f3ffb564d3fe2321 | 8c7138f50bdf002e6bd5282eafc7cc6b5976110a | /twitter/cmdline.py | dcc5255fa1f3b55dcb201e5a166e7604d1a72e6a | [] | no_license | lgrs05/bigdata-project2 | d11f1a1b982d15c2df4177e1c8ec7647003893f4 | fefb627854eb60f8f1157d7bc05c3e7895e4bc23 | refs/heads/master | 2020-12-03T04:14:51.696092 | 2017-06-30T03:09:43 | 2017-06-30T03:09:43 | 95,838,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,304 | py | # encoding: utf-8
"""
USAGE:
twitter [action] [options]
ACTIONS:
authorize authorize the command-line tool to interact with Twitter
follow follow a user
friends get latest tweets from your friends (default action)
help print this help text that you are currently reading
leave ... | [
"luis.rivera157@upr.edu"
] | luis.rivera157@upr.edu |
e7286393de85a9ea1daeff4f6a590f0d35dd069b | f50f1aa1f8f139d546db3230a1cb1f53043fd9e6 | /hardware/mobile/ifuse/actions.py | 4253ce5b51f00a7f0adaacfac0ba3a76d71890d3 | [] | no_license | pars-linux/corporate2 | 7887961d1552d39bc3b0bef4a60fd3413d9b82bb | 14d1eacfc824fb8d0bff8173e7ac06b36b88d10d | refs/heads/master | 2020-05-26T15:02:12.005654 | 2017-02-27T03:07:14 | 2017-02-27T03:07:14 | 82,476,084 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2009-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
de... | [
"ozancaglayan@users.noreply.github.com"
] | ozancaglayan@users.noreply.github.com |
369e5de6978cd855314fe286b88ec95c0f367146 | 19bdbe1c4aa00ba9799764681f16e09f65d6ea2b | /np/lib/smtp.py | 0065154141cf437ba3588749e4b816c5fc03783f | [] | no_license | invisibleroads/networkplanner | b4a3c7b3c0c169c3cd6610a6fb77125434dcb1c4 | 7ad8c0f2b4078f6cca681205e1671d060a937c18 | refs/heads/master | 2023-08-11T17:33:44.458438 | 2012-05-31T13:41:04 | 2012-05-31T13:41:04 | 961,674 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | 'Routines for sending messages'
# Import system modules
import smtplib
import email.message
import email.utils
import socket
def sendMessage(fromByValue, toByValue, subject, body, headerByName=None):
'Send a message using SMTP'
# Prepare
message = email.message.Message()
message.add_header('from', ema... | [
"support@invisibleroads.com"
] | support@invisibleroads.com |
afa233f76cb5afeb5878c1f8371c6ee8b5e88667 | 5ed795f324b1f94ded479a22f60580d9f41a114b | /dashboard/migrations/0007_auto_20190212_1753.py | 231eeaf5940eeed0afb26eda070c777986ca996d | [] | no_license | ashutoshdev/Django-Main-news-wesbite | 907f52a131e136072a585c903c906adb19457765 | 9a934255465d73ab12e16031fb99ad5847b65b55 | refs/heads/master | 2023-08-23T20:27:40.286701 | 2021-10-21T02:03:49 | 2021-10-21T02:03:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,404 | py | # Generated by Django 2.0 on 2019-02-12 12:23
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('dashboard', '0006_rfcompany'),
]
operations = [
migrations.CreateModel(
name='Dashboard... | [
"looklikeme05@gmail.com"
] | looklikeme05@gmail.com |
535593d22f261c2160a28ef49bdc94ee12184408 | e4537b92847c8489215338265a1410de37aeed0a | /run/runner_generate_literature_edges.py | 5e59eeb820d2b1f1b2f88b8dea998dd87669db1e | [] | no_license | KnowledgeLab/bm_support | 4e0b7712d01161480c7bbf3412445a5c14616a3a | b7b28b2485564a491c933c1a4c7233335b5297a1 | refs/heads/master | 2023-08-18T05:39:32.476129 | 2021-10-13T21:09:33 | 2021-10-13T21:09:33 | 50,460,089 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | import gzip
import pickle
from os.path import expanduser
import pandas as pd
from datahelpers.constants import ye, up, dn
df_type = "lit"
versions = [8, 11]
df_types = ["lit", "gw"]
version = 11
dfs = []
for ty, v in zip(df_types, versions):
with gzip.open(
expanduser("~/data/kl/claims/df_{0}_{1}.pgz".for... | [
"abelikov@gmail.com"
] | abelikov@gmail.com |
f37af5154d5298728a9393b150cbf139ca619504 | 92afc7a9140bdc392ae52256f70962917ade4615 | /phonereviewsapp/migrations/0002_store_phone.py | cdce932971c8f251b775c0bb7da674b40242922e | [] | no_license | Mateuzs/phone-reviews | 9b901a15e98dc625c26efdb064eac01f1f40af20 | 84cb4e88e92fab420b38940dd5b9f768a2696d47 | refs/heads/master | 2020-03-19T18:43:42.635748 | 2018-06-10T15:45:18 | 2018-06-10T15:45:18 | 136,821,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | # Generated by Django 2.0.5 on 2018-06-08 09:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('phonereviewsapp', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='store',
... | [
"mateusz.zembol@gmail.com"
] | mateusz.zembol@gmail.com |
1f6142ec058d2e3a37ed2bb2ff5227382cd9b409 | 0bee73e5bde6b4899db8e38e3fb59a75caf71ad9 | /tst/person_detection/person_predictor/test_spline.py | ff75c8c9238f51e430c13185e4982b2cc1a9be77 | [] | no_license | mycal-tucker/stalker-drone | 8e7710045b4d57fb4ddf19197371f55c1e5acfac | 245695009a1a1a70a009c4acbaf8533ef6877ced | refs/heads/master | 2020-04-04T11:54:01.756265 | 2018-12-04T22:00:39 | 2018-12-04T22:02:55 | 155,907,258 | 0 | 0 | null | 2018-11-27T19:58:50 | 2018-11-02T18:34:44 | Python | UTF-8 | Python | false | false | 5,821 | py | import time
import unittest
from person_detection.person_predictor.spline_predictor import SplinePredictor
from utils.person_state import PersonState
# Define a few helpful variables common across a few tests
origin_person_state = PersonState(0, 0)
second_intervals = [1, 2, 3, 4, 5, 6]
class TestSpline(unittest.Test... | [
"mycal@mit.edu"
] | mycal@mit.edu |
00d9d5011339462d1de81b32c298106c9f81c7b6 | 52c6415bea542cee6a043986a28ac8c2baee58ca | /test_app_3/wsgi.py | 90dd1f72167a0e487ac3ca494686865cfdfc4002 | [] | no_license | KarstenPoddig/django_test_app | 5380f037353f0a637a5dd6e2099024a3a75820a1 | 0b4a7490ef5a93a382ff739b375614bd2584c5a3 | refs/heads/master | 2020-11-28T21:12:21.332733 | 2019-12-29T11:25:12 | 2019-12-29T11:25:12 | 229,921,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for test_app_3 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"karsten_poddig@web.de"
] | karsten_poddig@web.de |
3558ffcff95890aa4e2acd17a5a1708e19ca0ca4 | f6c08dc702f39dbe3693d325327eeeddd65bb6df | /SNN_TUT/backup/stimAlt2.py | af186c2a3fc507689f05fa4ec01215d9adff84d0 | [] | no_license | christofrancois/BioSWdev4ASN | fae10e98d494379cd7ea206504977f924b229846 | 380d0ce5f3568deda434ca609ff30ccb8309299e | refs/heads/master | 2021-01-13T16:39:26.162383 | 2017-10-11T10:14:35 | 2017-10-11T10:14:35 | 78,402,746 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 859 | py | #script generating SIMPLE stimtime format
from random import randint
start = 25
length = 2000
#only 2 patterns
i = 0
while i < length:
if i % 5 == 0:
print("%s %s %s"% (i + 0.01 - 0.01 + start, 1, 0))
print("%s %s %s"% (i + 0.01 + start, 0, 0))
if i % 5 == 0.5:
print("%s %s %s"% (i +... | [
"francois.christophe@helsinki.fi"
] | francois.christophe@helsinki.fi |
3fd599f2dd2b120dfc1fa457dd87c9056ade3f26 | 00a9295409b78a53ce790f7ab44931939f42c0e0 | /FPGA/apio/iCEBreaker/FIR_Filter/sympy/venv/lib/python3.8/site-packages/sympy/multipledispatch/utils.py | 11cea683ed08448b11c2efecaea1b7e234934cc4 | [
"Apache-2.0"
] | permissive | klei22/Tech-OnBoarding-Class | c21f0762d2d640d5e9cb124659cded5c865b32d4 | 960e962322c37be9117e0523641f8b582a2beceb | refs/heads/master | 2022-11-10T13:17:39.128342 | 2022-10-25T08:59:48 | 2022-10-25T08:59:48 | 172,292,871 | 2 | 3 | Apache-2.0 | 2019-05-19T00:26:32 | 2019-02-24T03:50:35 | C | UTF-8 | Python | false | false | 3,042 | py | def expand_tuples(L):
"""
>>> from sympy.multipledispatch.utils import expand_tuples
>>> expand_tuples([1, (2, 3)])
[(1, 2), (1, 3)]
>>> expand_tuples([1, 2])
[(1, 2)]
"""
if not L:
return [()]
elif not isinstance(L[0], tuple):
rest = expand_tuples(L[1:])
ret... | [
"kaunalei@gmail.com"
] | kaunalei@gmail.com |
d1d37d55ddd2effdd725fcd0b86dd12c8c294955 | bc92e1b18d73259349bd813eb5199182c8ac12fa | /src/detect_peaks.py | db8acd67ed3031e5a46980357b2570d3bcecb0c2 | [] | no_license | IanVlasov/OTUS_epileptic_seizure_detection | e88f0e95700ddd5a8c8b6e195b42362c63ee2c9e | d18ae0c3c09366abce94362c1eb1fa6c27323638 | refs/heads/main | 2023-04-11T07:55:38.091808 | 2021-04-29T12:52:05 | 2021-04-29T12:52:05 | 362,772,523 | 0 | 0 | null | 2021-04-29T12:52:06 | 2021-04-29T10:05:37 | Jupyter Notebook | UTF-8 | Python | false | false | 5,267 | py | import numpy as np
# Copied From http://nbviewer.ipython.org/github/demotu/BMC/blob/master/notebooks/DetectPeaks.ipynb
# Thank you Marcos Duarte
def detect_peaks(x, mph=None, mpd=1, threshold=0, edge='rising',
kpsh=False, valley=False, show=False, ax=None):
"""Detect peaks in data based on their... | [
"noreply@github.com"
] | noreply@github.com |
6602f0f5a7e9c69451cabe5de3227b1c51e36e9f | 3509b286919369502f0a53b0e2cef2f654470d81 | /ScotteLogger/getsystemdata.py | b85a703d2c431f4abed61c8ce7c1bb7f474ada44 | [
"MIT"
] | permissive | fkierbye/scottepi | ffce524014904dfc477a79b8192562babcd59d5a | 372ad44fc54ac458e7be51644e470c028e2a6f01 | refs/heads/master | 2021-01-13T08:04:58.624818 | 2016-11-08T23:17:47 | 2016-11-08T23:17:47 | 71,733,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,211 | py | #!/usr/bin/python
import subprocess
import os
import json
from pprint import pprint
project_path="/home/scotte/scottepi/ScotteLogger/"
json_file=project_path+"systemdata.json"
def get_mem_usage():
"""Returns memory usage in percent, see http://www.linuxatemyram.com/ for available ram"""
try:
s = subpr... | [
"frederik@kierbye.dk"
] | frederik@kierbye.dk |
632bcfd9791ccbdc1e14fd7487c231c3e8ccd408 | 29b6a856a81a47ebab7bfdba7fe8a7b845123c9e | /dingtalk/python/alibabacloud_dingtalk/conv_file_1_0/models.py | 4327631ff59f6b9e1c0b1d34a2c61fedcfc59b67 | [
"Apache-2.0"
] | permissive | aliyun/dingtalk-sdk | f2362b6963c4dbacd82a83eeebc223c21f143beb | 586874df48466d968adf0441b3086a2841892935 | refs/heads/master | 2023-08-31T08:21:14.042410 | 2023-08-30T08:18:22 | 2023-08-30T08:18:22 | 290,671,707 | 22 | 9 | null | 2021-08-12T09:55:44 | 2020-08-27T04:05:39 | PHP | UTF-8 | Python | false | false | 30,852 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
from Tea.model import TeaModel
from typing import Dict
class GetSpaceHeaders(TeaModel):
def __init__(
self,
common_headers: Dict[str, str] = None,
x_acs_dingtalk_access_token: str = None,
):
self.comm... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
936fe33888460fe111915ebee493e4b636140d10 | b42957e496e5c9447b858d7382caea83ce9ea431 | /packtml/__init__.py | d3f0e325a23686c69f7eec073c983de5f0695885 | [
"MIT"
] | permissive | PacktPublishing/Supervised-Machine-Learning-with-Python | 153b9f5248fd4ca79896a277c7f703cf5899ac07 | 00d6ce2451547a73e6358d85937f8cbf2af762a4 | refs/heads/master | 2023-02-02T21:20:35.889344 | 2023-01-30T08:34:13 | 2023-01-30T08:34:13 | 187,639,872 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | # -*- coding: utf-8 -*-
import os
# global namespace:
from packtml import clustering
from packtml import decision_tree
from packtml import metrics
from packtml import neural_net
from packtml import recommendation
from packtml import regression
from packtml import utils
# set the version
packtml_location = os.path.ab... | [
"packt.suwarnar@gmail.com"
] | packt.suwarnar@gmail.com |
5897ad30e799ace1a772be841481c713f069e46d | 552d688a9f5b39df5791b65f6f09240190337936 | /Core_Python/Data_science/Numpy/Lec1/Assignment_1.py | a13a01832f816c9b4586e1d26100723796e04270 | [] | no_license | dev7796/MVC_Architecture- | b999bab77a7b0674c85cbe9455e9ea2e6f65cf51 | e34ae3bdb1b81501c65390aed77dc8d811baa8f1 | refs/heads/main | 2023-08-16T17:55:42.279859 | 2021-09-12T15:04:00 | 2021-09-12T15:04:00 | 405,671,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,881 | py | import numpy as np
import re
from itertools import islice
rows=int(input("Please Enter number of Rows: "))
columns=int(input("Please Enter number of Columns: "))
nparray = np.random.random((rows,columns))
print(nparray)
'''def slice_from_string(slice_string):
slices1=re.split(",|\[|\]",slice_string)
while ("... | [
"dev7796@gmail.com"
] | dev7796@gmail.com |
9574c1a6631802cab39ed7556c4b041f29946c38 | ce7e4aca111ddfb9c947d473a0e3ffb3edb3a4e4 | /model/imagenet_multitrain/data.py | 3c0c45fed12e39af2bdb943fa76d3a4ce5ad1cbc | [] | no_license | xarion/masters | 6825a15f7dda3a153dc7cd35d5d9032c7dd32371 | b9eba0c30c66a59486439997eacef4f29031a181 | refs/heads/develop | 2021-01-12T16:50:04.683082 | 2017-09-01T10:08:10 | 2017-09-01T10:08:10 | 71,443,978 | 5 | 0 | null | 2016-11-24T14:57:38 | 2016-10-20T08:56:57 | Python | UTF-8 | Python | false | false | 10,305 | py | # Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"erdicalli@gmail.com"
] | erdicalli@gmail.com |
648453f9015e6f615977b841101a1da4263b24e9 | c94c652ffda7b6d352e40f8a3b3de65b4896b7a3 | /Modules/TestingAndCI/bsearch.py | 18d7c0b797606f66ec9b4c8084f24c0ea54c953c | [
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-4.0",
"BSD-2-Clause"
] | permissive | jputlock/CSCI-49XX-OpenSource | e4d6365a152e814d22bc3af271544029736cb3b7 | 3d3542156339dc8e325718a8c4b87f55f349da8e | refs/heads/master | 2020-06-04T09:40:56.463707 | 2019-07-23T14:54:11 | 2019-07-23T14:54:11 | 191,970,285 | 0 | 0 | NOASSERTION | 2019-06-14T15:53:18 | 2019-06-14T15:53:18 | null | UTF-8 | Python | false | false | 251 | py | def bsearch(a,x):
n = len(a)
i = 0
j = n-1
while (i <= j):
mid = i+(j-i)/2
if (a[mid] == x):
return(1)
if (a[mid]<x):
i = mid+1
else:
j = mid -1
return(0)
| [
"wdturner@gmail.com"
] | wdturner@gmail.com |
2da48d4fe2ab88ad57d4bc2ce4b47d37ade84327 | 00c14f5816c3ef6a9ff5652af89c27c12bcf023c | /example/jspm_0_17/jspm_0_17/urls.py | 9ef86b2113613f0783470d90f157872b78c2522d | [
"MIT",
"ISC"
] | permissive | ilyashupta/django-systemjs | 148fd7de73aeb2cf562a07d3bb392436f3a78010 | f4d26794c06449d4d3ae2a6f7ab0bc550b35b0c7 | refs/heads/master | 2023-04-27T14:41:45.265046 | 2016-09-19T09:15:35 | 2016-09-19T09:15:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 815 | py | """jspm_0_17 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-b... | [
"sergeimaertens@gmail.com"
] | sergeimaertens@gmail.com |
286d4837a392a3730412cc78c44d91c56603e5b6 | dd8227454b817ccf2ceb24b3dfd4260d4ded7a72 | /scripts/item/consume_2434546.py | fd4214fd1a7ed1410ab093ba89cb8ce96fcf7213 | [
"MIT"
] | permissive | Snewmy/swordie | 0dd3c17808b064c2cb2bd9576b51daf01ae5d686 | ae01ed4ec0eb20a18730e8cd209eea0b84a8dd17 | refs/heads/master | 2023-06-30T21:14:05.225798 | 2021-07-06T14:32:39 | 2021-07-06T14:32:39 | 389,497,502 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | # Scribbler Damage Skin
success = sm.addDamageSkin(2434546)
if success:
sm.chat("The Scribbler Damage Skin has been added to your account's damage skin collection.")
| [
"vcalheirosdoc@gmail.com"
] | vcalheirosdoc@gmail.com |
4858680842e0e7d094d838872bbf72d6eb10b4f2 | d9ced71adb4ae21931de9376700de4af540acdad | /principal.py | b1d34cee5d3984b8fd5581898397b656b68f123b | [] | no_license | PauloRobertoVieiraDeCastro/CRUD- | f70adff1784614630a0fc5b1a932c6432ffb5840 | 7ec6fe17c9ba4c78ee277ebdabd37130819abac9 | refs/heads/main | 2023-03-21T15:55:37.561141 | 2021-03-12T17:53:45 | 2021-03-12T17:53:45 | 347,150,590 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,070 | py | from tkinter import *
import sqlite3
from tkinter import ttk
from tkinter import tix
from tkinter import messagebox
from tkinter import scrolledtext
import tkinter as tk
from reportlab.pdfgen import canvas
from reportlab.lib.pagesizes import letter, A4
from reportlab.pdfbase import pdfmetrics
from reportlab.p... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.