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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4d13f16a6de050457f0c137b74e3f6643612f28d | 6b9b032a5516c8d7dbb26deeb1b189022f8f9411 | /LeetCode/dp/91.解码方法.py | c999d3a7c5e8a176bfe03eb5318fd70a5954222c | [] | no_license | mrmenand/Py_transaction | 84db99a0010ae90f43fba6b737d7035e48af55fb | 7e82422c84ad699805cc12568b8d3d969f66a419 | refs/heads/master | 2021-07-13T21:15:03.714689 | 2020-06-21T11:49:31 | 2020-06-21T11:49:31 | 176,281,954 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # 91. 解码方法
from functools import lru_cache
class Solution:
@lru_cache()
def numDecodings(self, s: str) -> int:
if not s:
return 1
res = 0
if len(s) >= 1 and s[0] != "0":
res += self.numDecodings(s[1:])
if len(s) >= 2 and s[0] != "0" and int(s[:2]) <= 26:
... | [
"1006024749@qq.com"
] | 1006024749@qq.com |
f7ac72bb1c1fa4da0f7d2c090e7f273fca50211e | 7081075b68f9df9435fa4035d476e752cadd0414 | /stabilizer/reinitialize.py | 32f1908f71074e0707fa02c676d6c9acb5426d34 | [
"Apache-2.0"
] | permissive | shahules786/stabilizer | d35fdaba981ff02ba4981f0648fcf89a5d4b580d | bc958495087e06daa678ad8652463ac43357ea78 | refs/heads/master | 2023-08-12T16:55:49.258542 | 2021-10-01T05:42:59 | 2021-10-01T05:42:59 | 407,530,529 | 1 | 0 | Apache-2.0 | 2021-09-17T14:44:07 | 2021-09-17T12:22:17 | Python | UTF-8 | Python | false | false | 1,267 | py | import logging
import transformers
from torch import nn
AUTOENCODINGMODELS = [
"Bert",
"Roberta",
"DistilBert",
"Albert",
"XLMRoberta",
"BertModel",
]
def reinit_autoencoder_model(encoder, reinit_num_layers=0):
"""reinitialize autoencoder model layers"""
if not any(k in encoder.confi... | [
"shahules786@gmail.com"
] | shahules786@gmail.com |
1c9d684a5b6d092e12cabf6dfc8650ada0b266be | 4f94e4ceb22950333ad31565e780c6ae9d83c1cd | /main.py | cfd51e284cc8864f23af8d485a44af03988a72c6 | [] | no_license | AcidFilms21/AddedMc | e17dd06c90cd6d8909df410c6604b37bfc7cac1e | 5585f56a6f8f28471add1d47b709fdbb26e96682 | refs/heads/main | 2023-06-27T05:47:03.514419 | 2021-07-29T15:45:17 | 2021-07-29T15:45:17 | 390,773,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,017 | py | #This bot was coded by AcidFilms#2911
import discord
import os
import keep_alive
from discord.ext import commands
from discord.ext import tasks
client = commands.Bot(command_prefix="-", case_insensitive=True)
client.remove_command("help")
@client.event
async def on_ready():
print('Logged in as {0.user}'.format(... | [
"noreply@github.com"
] | noreply@github.com |
5aeafb500a54f459e637a436a597ec9fb8938344 | 31d757970f6b370f3c191064437b0e5529820dca | /mavsim_python/chap11/waypoint_viewer.py | 654079ac40a5c88b624d3cf8603595530e0c1f8c | [] | no_license | TylerQuacken/aircraft_simulator | e76cb7aee66a9deaf6e46f36a4a280f36be84246 | 1013365ccfc6e690ae59fc74d2033a50ee3e5d6e | refs/heads/main | 2023-04-10T03:33:01.667718 | 2021-04-20T19:14:14 | 2021-04-20T19:14:14 | 331,704,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,436 | py | """
mavsim_python: waypoint viewer (for chapter 11)
- Beard & McLain, PUP, 2012
- Update history:
4/15/2019 - BGM
"""
import sys
sys.path.append("..")
import numpy as np
import pyqtgraph as pg
import pyqtgraph.opengl as gl
from chap2.draw_mav import DrawMav
from chap10.draw_path import DrawPath
from cha... | [
"tylerquacken@gmail.com"
] | tylerquacken@gmail.com |
dd45483e653704b46f235469db76a85f89c48251 | b65704a210b990ff500fd80ae5a2953fdcd27e31 | /Convolution Neural Network/Week 3/Autonomous_driving_application_Car_detection_v3a.py | da74d4b085dff4666e7c8b34214e5cf04fcbd873 | [] | no_license | AhmedFakhry47/Deep-Learning-Specialization- | 1b36c0a02ad244dd0816ed03caf1f855a5ebf2d0 | c1d1463301c192a7cfe99230bdebcc026430c540 | refs/heads/master | 2021-05-20T08:33:55.831452 | 2020-04-10T18:39:30 | 2020-04-10T18:39:30 | 252,199,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,814 | py |
# coding: utf-8
# # Autonomous driving - Car detection
#
# Welcome to your week 3 programming assignment. You will learn about object detection using the very powerful YOLO model. Many of the ideas in this notebook are described in the two YOLO papers: [Redmon et al., 2016](https://arxiv.org/abs/1506.02640) and [Red... | [
"ahmedfakhry805@gmail.com"
] | ahmedfakhry805@gmail.com |
9a8442bf398c527a8d05edbf30a61ea08cc52c7b | 6f10be8cb10b49f8675a85330e936996940e38c7 | /Binary Trees/findSuccessor.py | 6389e3ef9a37ffb34ab98e1ae5c1d090c1bada13 | [] | no_license | DanielMevs/AlgoExpert | b78bee958dd69b65be563577dff4ad6407979cf6 | 2be2c692a09f915e7a59619fb38b5512b50341df | refs/heads/master | 2023-05-09T19:26:13.027501 | 2021-06-02T16:29:24 | 2021-06-02T16:29:24 | 372,627,337 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,262 | py | # This is an input class. Do not edit.
class BinaryTree:
def __init__(self, value, left=None, right=None, parent=None):
self.value = value
self.left = left
self.right = right
self.parent = parent
#O(n) time, O(n) space
def findSuccessor1(tree, node):
inOrderTraversalOrder = getInOr... | [
"dannymevs@hotmail.com"
] | dannymevs@hotmail.com |
f25e4afb6e6e90b5b1d9c89c08d9fb119089a777 | 0a316c6857a1a0cb03fcf5889adde6be8cb3323c | /Prajwal/asgi.py | d3f9431098219822b70fd25222fc2a14ee8a9928 | [] | no_license | Prajwal-Umale/Prajwal2 | c93e8f18cd078d2752c938605ed34d31ddf492ec | 139a109d3c73a970f7f05789e5e7e99bf3727dda | refs/heads/master | 2023-06-25T22:03:56.814880 | 2021-07-22T07:32:03 | 2021-07-22T07:32:03 | 369,554,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for Prajwal project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTI... | [
"prashant.m.umale@gmail.com"
] | prashant.m.umale@gmail.com |
4052771b1b4311c09a293921817f66b82411e14f | e095a91a3424ecc364c4532e8fc705b728a0d1b1 | /CodeWars/补充知识/reduce函数.py | cfbe488542ecf69f30da70eb19144d14b6799a9e | [] | no_license | Anakinliu/PythonProjects | caed257e71d2e52f691abc5095c4aca5c052feb2 | 2246794a88d06eaa381db1b3a72e9bc54a315dd7 | refs/heads/master | 2021-06-03T05:51:09.319613 | 2021-01-26T02:35:38 | 2021-01-26T02:35:38 | 101,546,309 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | from functools import reduce
from itertools import groupby
def sum(a, b):
return a + b
def mul(a, b):
return a * b
def fuck(v, _):
print('v is: ', v)
v.append(0)
return v
lst = range(2)
# reduce函数参数: 函数名, 序列[,初始化序列]
print(reduce(sum, lst))
# 计算阶乘。。。
print(reduce(mul, range(1, 4)))
lst2 = [1, 3,... | [
"gugeliuyinquan@gmail.com"
] | gugeliuyinquan@gmail.com |
92d7ede01aeddd7feaebd69fdcf982fba963220a | 3d9de06ed096f90544630c06cd49aca93e0a9b35 | /search | 400ad66091d743e48c0ecafadefab13cd0053801 | [
"MIT"
] | permissive | jonsim/search | 204e6e6ba4457fe149c8cbee48dd1c163d99cce7 | ea899edc7bd75cf43f30843c7b37ae5f1e587a10 | refs/heads/master | 2021-05-06T17:00:11.655471 | 2018-01-10T21:23:47 | 2018-01-10T21:23:47 | 113,791,261 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,913 | #!/usr/bin/env python
# Copyright (c) 2017 Jonathan Simmonds
#
# Licensed under the MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limita... | [
"jonathansimmonds@gmail.com"
] | jonathansimmonds@gmail.com | |
1d622c9d401180509b6b38e377265c01494123c0 | afde7810ec72531f6e47c9c1554f44c6c416234e | /tickets/admin.py | d87ad764cba0f92cd3ae417a1f279c957ac89935 | [
"MIT"
] | permissive | jejimenez/invetronic | f95224769fc8c91cb9b31de5de618125dbc8a027 | 999d58bc0224b6056b16d4e54fefcc81a22e334c | refs/heads/master | 2021-09-10T08:41:51.352441 | 2018-03-23T04:15:39 | 2018-03-23T04:15:39 | 106,342,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | from django.contrib import admin
from tickets.models import Incident
from django import forms
# Register your models here.
class IncidentForm( forms.ModelForm ):
remote_diagnosis = forms.CharField( widget=forms.Textarea(attrs={'rows': 5, 'cols': 100}))
phone_diagnosis = forms.CharField( widget=forms.Textarea(a... | [
"jimenez.ing.sis@gmail.com"
] | jimenez.ing.sis@gmail.com |
65a29c1532ffff5557649df602bf0f0cd7e542ac | 61c083f9c23dbf40fde8172391f8c132609fcceb | /PCAtransfertsv.py | 73973763324ac2b662b8021789b359a1e696e368 | [] | no_license | Dontageme/CAE-model-for-twin-screw-process | ef88bc15928d720730d13b6ea58b447e61663073 | 4b2a8668fed3e565d073af53a6f9f56de1573cda | refs/heads/master | 2023-07-10T07:51:35.094152 | 2021-08-10T09:23:34 | 2021-08-10T09:23:34 | 237,623,640 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,647 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
from mpl_toolkits.mplot3d import Axes3D
import csv
columns = ['Element_name','1','2','3','4','5','6','7','8','9','10','11','12']
features=['1','2','3','4','5','6','7','8','9','10','11','12']
for i in range(10):
... | [
"noreply@github.com"
] | noreply@github.com |
bbc3579035e77831e8555252ce7744a017d1a169 | 4b47f9db9b83f04b1b751fcb06e883aafe554a2e | /rabadiom/models.py | fdaf7fbf1bad8191a2294c8b9f49a0be97334762 | [] | no_license | jjaskirat/BlockChain-Authenticator-Disease-Predictor-Recommender-System | 8d3eb3b2b062dd24476fc98faa9c2caec3434a72 | 2c1c18a2b943274d48555d790f2f300a58e41f7b | refs/heads/master | 2023-08-10T13:35:55.382030 | 2023-07-26T18:33:01 | 2023-07-26T18:33:01 | 295,797,513 | 0 | 0 | null | 2023-07-26T18:11:55 | 2020-09-15T17:11:46 | Python | UTF-8 | Python | false | false | 4,540 | py | from datetime import datetime
from itsdangerous import TimedJSONWebSignatureSerializer as Serializer
from flask import current_app
from rabadiom import db, login_manager
from flask_login import UserMixin, current_user
import os
@login_manager.user_loader
def load_user(id):
return User.query.get(int(id))
class Us... | [
"noreply@github.com"
] | noreply@github.com |
7c3bd271365032a72f849dd8b9f4c39fb4bb321c | 2b642643fa8c3fc9f340d90451afd197accd29e3 | /obsapis/scrapers/scripts/assemblee.py | 68dcc89aa54de987cbcf4ea8c249d279e24597a2 | [] | no_license | orochvilato/obsapis | aade4c3f10c9c2eeb74c7d94ff4ed656d3798100 | c71364859ea539876923f0d899fe6ed51e17e105 | refs/heads/master | 2022-12-24T07:37:31.940355 | 2019-10-11T11:03:19 | 2019-10-11T11:03:19 | 110,365,503 | 0 | 0 | null | 2022-12-07T23:42:36 | 2017-11-11T17:30:38 | Python | UTF-8 | Python | false | false | 13,493 | py | #!/home/www-data/web2py/applications/observatoireassemblee/.pyenv/bin/python
# -*- coding: utf-8 -*-
import locale
locale.setlocale(locale.LC_ALL, 'fr_FR.utf8')
import scrapy
import requests
import json
import re
import datetime
import sys
output_path = sys.argv[1]
commlibs = {
u'Commission de la défense nationale... | [
"olivierrochvilato@yahoo.com"
] | olivierrochvilato@yahoo.com |
c6f07f3f3ac1a9aee578ef8efdd586025fb2fd6b | 5a587b806cb614741ba7db0a6fc9c2114061a7d2 | /tt_1.py | 111181a24fdbfc0e23c35b1dade095db73d545be | [] | no_license | lanke2017/sleep | 509c167436c42c2dc7ddd280c4b60038d06a4ca3 | 62017ef0b8a2b0001e8d09877a970a16edd57165 | refs/heads/master | 2021-05-06T09:20:44.053609 | 2017-12-13T02:04:53 | 2017-12-13T02:04:53 | 114,057,376 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | import par as pa
import matplotlib.pyplot as plt
# import SQI_ECG_house as sqi
import numpy as np
from biosppy.signals import ecg as eecg
from biosppy.signals import tools as st
import time
# 原始code
filePath = 'zhuyan.CHE'
# filePath = 'D:\\LDC设备人体实带数据20171124\\LDC设备人体实带数据20171124\\李志光\C2\\00000015-2017_11_24-17_30_1... | [
"lk_lanke@yeah.net"
] | lk_lanke@yeah.net |
f5e97027f74f2f81dba89a2eae89161d63e21e0c | 696ae6173e8544d92e72647fbc492ab6a9b28e51 | /index/admin.py | d897a9512b45e7f7a7e042623355f840be49ca2a | [] | no_license | edgar-sebastian-94/Fase2CastilloBarrera007D | c813243cbf7307268c2b700b3c67e31611a4aa3d | 59ec1fe33fd496d626f561d1b4836b488ef127ec | refs/heads/main | 2023-01-19T04:44:36.430554 | 2020-12-01T02:22:46 | 2020-12-01T02:22:46 | 309,462,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.contrib import admin
# Register your models here.
from . models import Mensaje, Musico
admin.site.register(Mensaje)
admin.site.register(Musico)
| [
"edgar94_sebastian@hotmail.com"
] | edgar94_sebastian@hotmail.com |
df414e41fe317f5c11dc94c6fef35b66c9aa5506 | a5db650c4e8a7d098c590e6b6c24941ced5fdf8f | /Módulo 9/spin.py | 3b95c92a6cd52914cbf87ca8913a262012413cb6 | [] | no_license | XMATHEUSX/Mestre_da_automacao | 11ae56c142dab41289c7fa5050c0f068169fa2e0 | fa7a76481c1d2d29fe2e0341550b51920e932384 | refs/heads/master | 2022-12-03T02:45:01.426992 | 2020-08-20T02:58:15 | 2020-08-20T02:58:15 | 273,998,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | import PySimpleGUI as sg
# Tema
sg.theme('Reddit')
# Layout
layout = [
[sg.Text('Digite Um Site')],
[sg.Slider(key='qtd', range=(1, 100), orientation='h',
size=(34, 20), default_value=1)],
[sg.Text('Digite Um Site')],
[sg.Spin(values=(1, 2, 3, 4, 5, 6, 7, 8, 9, 10),
initial... | [
"matheusxavier2302@gmail.com"
] | matheusxavier2302@gmail.com |
2ed4905e9b0d4556acdfe1ddf6a5e250b43f2f6f | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2273/60870/314985.py | 5e53cfd0963d3bbed85c252351f8e04244c40b52 | [] | 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 | 1,702 | py | num_test = int(input())
info_list = []
for i in range(num_test):
info = input().split()
info = [int(x) for x in info]
for j in range(info[0]):
data = input().split()
data = [int(x) for x in data]
info_list.append(data)
if info_list == [[0, 1, 1], [1, 1, 1], [1, 1, 3], [2, 1, 10], [3,... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
598e66d5ef4fd350baaaf6083a95f4d25cb14829 | 86e81e60bb1bfd95fa477409dca21b586137a6a1 | /src/Hotel/settings.py | 1f2d7b0497a327a0abfc4c484643702922aa90d7 | [] | no_license | LhrKhalil98/Django-Project | 02992a53a17ac4f447606cd562c52519bc41d66e | 4e05fa8c19015d213b453230e9a6159298bb45da | refs/heads/master | 2022-12-23T22:19:44.371359 | 2019-12-16T05:01:36 | 2019-12-16T05:01:36 | 228,304,787 | 1 | 1 | null | 2022-12-17T04:36:52 | 2019-12-16T04:48:23 | Python | UTF-8 | Python | false | false | 3,204 | py | """
Django settings for Hotel project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Bui... | [
"lhrkhalil98@gmail.com"
] | lhrkhalil98@gmail.com |
8be4be017c6af7fce4bd719c6b78a351b1b14568 | c9000e5e30825b29febbefa5ad00da1f57551f8e | /02/fandengyuan/homework.py | c6bce72ffa5f56803c26555e16520532b283fbab | [] | no_license | xiaotian1991/actual-10-homework | 81c58b24f58fc87e4890f1475ad83de8b66ee53b | 0b379ca6189f843f121df4db5814c83262f9981a | refs/heads/master | 2021-06-12T23:35:52.954510 | 2017-03-24T07:41:18 | 2017-03-24T07:41:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | arr = [3,1,5,9,2,11,7]
arr0 = []
for i in range(len(arr)):
arr0.append(int(arr[i]))
m = len(arr0)-1
while m >= 1 and arr0[m] < arr0[m-1]:
arr0[m],arr0[m-1] = arr0[m-1],arr0[m]
m = m - 1
print arr0
| [
"shengxinjing@addnewer.com"
] | shengxinjing@addnewer.com |
c4c89a05394aa51bf7fef9c9882d74238a2a27c5 | 4e191cceb32700ef44de814fd4dcd552b4eb4696 | /docs/tutorials_torch/action_recognition/demo_i3d_kinetics400.py | 91679320d59b38769997a7a5a14edb9e5b2208e5 | [
"Apache-2.0"
] | permissive | albertodiaz-dev/gluon-cv | 4e102d5288cad9d6d6505c9adfa530074e9f24d2 | 9b97ff228c8e428a7c92dfbd39cf953d79140060 | refs/heads/master | 2023-01-12T22:57:18.966580 | 2020-11-19T01:52:45 | 2020-11-19T01:52:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,339 | py | """1. Getting Started with Pre-trained I3D Models on Kinetcis400
================================================================
`Kinetics400 <https://deepmind.com/research/open-source/kinetics>`_ is an action recognition dataset
of realistic action videos, collected from YouTube. With 306,245 short trimmed videos
f... | [
"noreply@github.com"
] | noreply@github.com |
d7ea612d308d7b4f02c590f2d7d783457b7fee26 | 3b60e6f4bbc011003ac4929f01eb7409918deb79 | /Analysis_v1/Simulation/Pythia/genfragments/ADDGravToGG_NegInt-0_LambdaT-6500_M-4000To6500_TuneCUEP8M1_13TeV-pythia8_cfi.py | 8a74a89ef9ff1b0945512ccf71c71c4c03d5767a | [] | no_license | uzzielperez/Analyses | d1a64a4e8730325c94e2bc8461544837be8a179d | 1d66fa94763d7847011ea551ee872936c4c401be | refs/heads/master | 2023-02-09T04:54:01.854209 | 2020-09-07T14:57:54 | 2020-09-07T14:57:54 | 120,850,137 | 0 | 0 | null | 2020-06-17T16:48:16 | 2018-02-09T03:14:04 | C++ | UTF-8 | Python | false | false | 1,266 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
maxEventsToPrint = cms.untracked.int32(1),
pythiaPylistVerbosity = cms.untracked.int32(1... | [
"uzzie.perez@cern.ch"
] | uzzie.perez@cern.ch |
38db47ac8c64af76f1e1c14bf4a79136979fb973 | 3248729f0e66deca1f2c8f09932bfa1fb3057903 | /test.py | a8abc744dc1844abf0361cd2b7c96fae8ead0280 | [] | no_license | jinre/sele_project | 5df1680ea4f2c4a64907452600ebe76388375006 | 9b627eed233ef6f6d60de3d93843f2e70fd74ffc | refs/heads/master | 2020-03-14T17:02:24.512536 | 2018-09-02T12:53:53 | 2018-09-02T12:53:53 | 131,710,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # coding:utf-8
import os
file_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "smtp_text\\qq.ini")
a = open(file_path, "r")
s = a.readline()
a.close()
s1 = s.split("|")
for i in s1:
if i != "":
sl = i
print i
| [
"jnzhangjin1213@163.com"
] | jnzhangjin1213@163.com |
336dd7f61467755db4b33134a6e5fa15e0a3b747 | 70645f21849ecb2a3537ea6a788b367b9399677c | /Bookstore_/urls.py | e6d886b270ba8dbb0a5b461266eb7a89159c69c8 | [] | no_license | Arman170616/BookProject | 113f10a4037c059893d85f291eddecf763587150 | 81abec982ad0c560f2000d0639ff11772a951373 | refs/heads/main | 2023-02-15T01:51:14.375681 | 2021-01-14T12:58:57 | 2021-01-14T12:58:57 | 329,582,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py |
from django.contrib import admin
from django.urls import path, include #new
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('Pages.urls')),
# User management
path('accounts/', include('django.contrib.auth.urls')), # new
path('accounts/', include('users.urls')), # new
]
| [
"armanice09@gmail.com"
] | armanice09@gmail.com |
0d9caedf53be4e4eeed3c24fe1afe0c914314a09 | 0527ebfe2fe943d914f6f80f8b6fec5e2f703d22 | /KNNLearner/code.py | 4646aff0a161b816e800c2a7c0553d4d36a9b060 | [] | no_license | afcarl/MachineLearning_FinancialTradingApplications | 12f81c39c1c3f27988efd2c4cdb7b24c63c58734 | 87b91c237621adb73f450e44e0ca274fb703314f | refs/heads/master | 2021-09-07T15:59:53.811048 | 2018-02-25T17:36:41 | 2018-02-25T17:36:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,666 | py | ######################################################################################################
# Mark Trinquero
# Machine Learning for Trading
# Project 3.2
# Stock Trading Strategy
######################################################################################################
# Resources Consulted:
#... | [
"mtrinquero@Marks-Air.attlocal.net"
] | mtrinquero@Marks-Air.attlocal.net |
2fcce99f2eeae4e8968019534fdec2ec1d8f29aa | 187283c06bb426a0cc291b28b9f3d2765b2aac53 | /tests.py | 0f0c379bde2e568e2d643a8d17bb42549b187e8a | [] | no_license | dmgt/flask_microblog | 5139e84ff2bc1131a1d60a9519003d3795ba87d3 | bbe5019a163f2980eb0e39076e6de9f8f1e5e279 | refs/heads/master | 2023-01-12T07:44:16.556182 | 2020-11-17T23:29:36 | 2020-11-17T23:29:36 | 313,736,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 162 | py | import unittest
from app import app, db
from app.models import User, Post
# TODO https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-viii-followers | [
"dmgt@users.noreply.github.com"
] | dmgt@users.noreply.github.com |
86da49003cebaa0aecff9825675aec49a4b9033d | 905d5d49c5490869bb1d6483b8ec26ebac978f2f | /sources.32/LUI-android/Builtin/LUIFrame.py | 4408b5c7704303ab6ed3a3e555c554d8bdca73ac | [
"MIT",
"Beerware"
] | permissive | judge2020/pydk | ff4feef8019c87ac3aa680ef5a61e25cf1d2a8d8 | 3d7ac6d2323626f76837abf46a4afe426242d359 | refs/heads/master | 2022-11-06T19:01:45.032448 | 2020-06-30T00:26:50 | 2020-06-30T00:26:50 | 274,766,978 | 0 | 0 | MIT | 2020-06-24T20:50:38 | 2020-06-24T20:50:37 | null | UTF-8 | Python | false | false | 2,525 | py |
from __future__ import print_function
from LUIObject import LUIObject
from LUISprite import LUISprite
from LUILayouts import LUICornerLayout
from LUIInitialState import LUIInitialState
from LUIScrollableRegion import LUIScrollableRegion
__all__ = ["LUIFrame"]
class LUIFrame(LUIObject):
""" A container which c... | [
"pmpp.pub@gmail.com"
] | pmpp.pub@gmail.com |
4128705672aac704e2129b4e05442806b35083ef | 34ecdedf1cfe4ed603c4af7e54326f22d342012a | /С1.10.3/main.py | acd7ae5024c45ba7d701812d4301647ebce4cbd8 | [] | no_license | LanderStandart/Cat | 3af0e711ea577ead6e1677d5a4f51a63b9ed438c | 6ed4a963eb86e165b59e76f8ab61561a6c8088fb | refs/heads/main | 2023-01-25T01:30:33.679337 | 2020-11-05T19:16:12 | 2020-11-05T19:16:12 | 306,953,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,233 | py | from houseofpets import List_Clients,Client,Guest,List_Guests
LC = List_Clients()
LC.add_client('Василий Иваныч',100)
LC.add_client('Петька',1000)
# LC.get_list()
command = 'start'
def get_command():
com = input('С кем работаем '
'(Гость/Клиент):')
if com == 'Гость':
guest()
else:
... | [
"36069532+LanderStandart@users.noreply.github.com"
] | 36069532+LanderStandart@users.noreply.github.com |
06506087bf5f772d28d494b39ced3da9ef421291 | 7ba19b40a19300390296f7ef2ef82d5a749d0584 | /Binary_options.py | 921b10700276bc7409984193612ad80e71d254b9 | [] | no_license | TuGiu/DATA_Analysis | c4d092480c74ddd8ef01899155f081b3c571bb10 | 15760901dd440d8ab6367c9f4971e4df7db1b97a | refs/heads/master | 2021-09-07T13:24:56.784115 | 2018-02-23T14:18:38 | 2018-02-23T14:18:38 | 101,458,720 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,421 | py | from CAL.PyCAL import *
from lib.PDE import BSMModel, CallOption, BSMThetaScheme
from matplotlib import pylab
import numpy as np
import math
class PutOption:
def __init__(self, strike):
self.k = strike
def ic(self, spot):
return max(self.k - spot, 0.0)
def bcl(self, spot, tau... | [
"1572012818@qq.com"
] | 1572012818@qq.com |
11221d326cbfe3960009a4808569c39836bbc24b | 850a54a806c9ace329b7673589b36ca36d5dc902 | /event_handler.py | 35a2db0fab9ddab5259a3ec3f5ae8e8d8b64ab11 | [
"MIT"
] | permissive | dexmo007/indexmo-local | 35ac8534aec7c435e3b18134e328d953bb8db64c | 6a4c6cf94c79fb4cb6ece4c0e9e4fc034d6d888d | refs/heads/master | 2020-04-20T17:53:34.059554 | 2019-05-19T12:57:05 | 2019-05-19T12:57:05 | 169,002,506 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,722 | py | import os
import logging
from watchdog.events import FileSystemEventHandler
from textract.exceptions import ExtensionNotSupported
class RelativeFileSystemEventHandler(FileSystemEventHandler):
def __init__(self, watched_folder):
self.watched_folder = watched_folder
def _normalize_path(self, file):
... | [
"henrik.drefs@outlook.de"
] | henrik.drefs@outlook.de |
73ce4583f224f380bd501fdd63b7d6d70b9f61a1 | 270ec784e8c0ec03d05625dac4049867ea3a3397 | /ql/orm/utils.py | e5d96e2b47336a61550e20d45210442b703578f3 | [
"MIT"
] | permissive | michzimny/teamy-quick-lineup | b728f54b0717074e2b04828727f96c1415daf359 | 843ed80cb0153f0628e33ae2d5bc1c473d2555db | refs/heads/master | 2021-01-17T17:25:44.019284 | 2018-02-24T11:18:34 | 2018-02-24T11:18:34 | 70,361,209 | 1 | 0 | MIT | 2018-02-24T11:18:35 | 2016-10-08T22:40:13 | Python | UTF-8 | Python | false | false | 165 | py | from .models import Team
def get_num_of_tables():
num_of_teams = Team.objects.count()
assert num_of_teams % 2 == 0
return int(num_of_teams / 2)
| [
"michzimny@gmail.com"
] | michzimny@gmail.com |
5931b02613512b291a1c6c3ed56317fd9de7b0c7 | 4dd1d8fa59e20061e2c12e540fc52b1b305e575b | /source/sims-2/vapor-box/s7/mkmov.py | fc6d4a9fa9ec7401b461a45e20313be61bfd08fe | [
"MIT"
] | permissive | ammarhakim/ammar-simjournal | f63521906a97d55ab290a5960d94758139944c89 | 5019f4723e20db80a20db6f2bd454c2fd3241412 | refs/heads/master | 2023-06-08T08:18:11.722779 | 2023-06-02T15:06:43 | 2023-06-02T15:06:43 | 204,050,516 | 3 | 3 | null | 2022-02-01T16:53:13 | 2019-08-23T18:28:44 | Lua | UTF-8 | Python | false | false | 3,609 | py | from pylab import *
import tables
import euler
import pylab
import tables
import math
import numpy
import pylab
import numpy
from matplotlib import rcParams
import matplotlib.pyplot as plt
# customization for figure
rcParams['lines.linewidth'] = 2
rcParams['font.size'] = 18
rcParams['xtick... | [
"11265732+ammarhakim@users.noreply.github.com"
] | 11265732+ammarhakim@users.noreply.github.com |
3dec21436a55d8fe61d12b4ce4c5a094affc6383 | 48bec0057f9946b240111cde7903792076fe408b | /chapter_7/avg_spam.py | d9faf74eb8c68dc4d03fbb1664eb5604a550dc16 | [] | no_license | oscar-dev19/Py4E | 9cdcb42457ec683dac0ebabb1bb5b5d2c00d2fad | 6e91caea4c362c42b733fa3131f35a07b54fb34e | refs/heads/master | 2022-07-07T05:26:20.673670 | 2022-06-21T15:13:51 | 2022-06-21T15:13:51 | 203,110,624 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | """
A program that will read each line of a given file and if possible
count the spam confidence level present in the file.
Author: Oscar Lopez
"""
conf_total = 0
conf_average = 0
count = 0
fname = input('Enter name of file: ')
try:
fopen = open(fname)
except:
print('ERROR: File ',fname,' not found!')
ex... | [
"oscarl.developer@gmail.com"
] | oscarl.developer@gmail.com |
846b9dd0c7775be88cc5af59c2e787272a1744fe | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/6/oyy.py | c217d3393a75f12289698377f7dc47c74ac12e21 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
613ae66c20f76890a8cd6ec2a2da4069623ef2cb | 5479a969513e1e00fc5a9bf16c8b661a667744d9 | /bin/easy_install | edc13dc1762e644494f2063387fcc585e8859ace | [] | no_license | taylorrose/pptxSlides | f6d206225787264e7f21e0a5ace124cc51dfa140 | c7f61111055954c77f3bb7d5fb519fdb7b1a8202 | refs/heads/master | 2023-07-18T04:27:59.120919 | 2021-08-30T21:22:27 | 2021-08-30T21:22:27 | 319,321,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | #!/Users/taylorrose/Projects/pptxSlides/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"trrosebudd@gmail.com"
] | trrosebudd@gmail.com | |
468de0754823dc8c328f482520c6129d2613be61 | e6add359c589879962e3f59810817ea7ad9711d3 | /login1/resturant/resturant/asgi.py | f8600826307ac4526c2357707e2a8500b24a47f9 | [] | no_license | hupu496/login | f4dd047898177334fe483a380cb3440c091f8e25 | 19478e718027d5d6d453ec2aa19e7236866cc963 | refs/heads/master | 2023-02-08T02:14:42.091554 | 2021-01-03T16:30:37 | 2021-01-03T16:30:37 | 326,447,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for resturant project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"aadarsh629@gmail.com"
] | aadarsh629@gmail.com |
4431e54f9105216251d4e6a0975b9889725a1d7e | e7c3b2da42b11487f0cfceab56b0d4ceb1819886 | /5_Python_Statements/list_divisible_by_3.py | b38aaa355ef84e7119240372f3959e085e94c194 | [] | no_license | davidcoxch/PierianPython | c34a4abe6bfae88210da4f6a957e67acb08dc1d5 | a402aff745c48cab64fe99bb85d2fb7a580ed679 | refs/heads/master | 2022-12-24T14:38:03.154184 | 2020-10-10T09:56:09 | 2020-10-10T09:56:09 | 278,562,613 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | '''
Use a List Comprehension to create a list of all numbers between 1 and 50 that are divisible by 3.
'''
y = [x for x in range(1,51) if x%3 == 0]
print(y) | [
"davidcoxch@gmail.com"
] | davidcoxch@gmail.com |
5b2224f3c84090e21c38bb5254fff1fc2cc14a75 | 114c1f7ceff04e00591f46eeb0a2eb387ac65710 | /g4g/DS/Trees/Binary_Trees/Construction_and_Conversion/2_construct_tree_from_inorder_and_level_order.py | be8b1575e1d72ff06ab39f696a67b1dc1a2ce5d4 | [] | no_license | sauravgsh16/DataStructures_Algorithms | 0783a5e6dd00817ac0b6f2b856ad8d82339a767d | d3133f026f972f28bd038fcee9f65784f5d3ea8b | refs/heads/master | 2020-04-23T03:00:29.713877 | 2019-11-25T10:52:33 | 2019-11-25T10:52:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 953 | py | ''' Construct Binary Tree from Inorder and Level Order Traversal '''
class Node(object):
def __init__(self, val):
self.val = val
self.left = None
self.right = None
def construct_tree(inorder, levelorder):
if not inorder:
return
for i in range(len(levelorder)):
if l... | [
"GhoshSaurav@JohnDeere.com"
] | GhoshSaurav@JohnDeere.com |
eb3ca5bca4a646f601b4da42d2bd05a05751e50f | c51d2a38fb3c4721b79e577f439eefe4e4112325 | /example2_testing.py | 393aad5e1c156b9c5deffec84afa5a55395a965e | [] | no_license | lpk-py/amb_noise_tools | d56a8bf9642197d8254d1da52290796ca7ddf5ee | 552ee1e864a563aa3a22f6aa00496d6bb6fc2c56 | refs/heads/master | 2022-12-11T11:50:33.639398 | 2019-09-26T09:42:42 | 2019-09-26T09:42:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,817 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Nov 24 14:35:18 2016
@author: emanuel
This script uses the alternative picking method, where the picks are smoothed
with a sliding window before picking.
You can also try replacing noise.get_smooth_pv with
noise.extract_phase_velocity. In this case, adapt the input parameter... | [
"edkaestle@t-online.de"
] | edkaestle@t-online.de |
3b16d69fd0e71567c72e77065c03cd825362b455 | 6767499ced33ff53a7b74b7b2130e1255bafcc54 | /website/jeans/migrations/0002_item_slug.py | c8ff7c2299ecbcd4ac5a8b701c5024567ef905e3 | [] | no_license | sanchit20199120/E-Commerse | 5bdd5ead92300f76437021e59d93abee4a110921 | ed06004a9f345957926b4c002689480008c0870e | refs/heads/main | 2023-03-03T08:39:24.712154 | 2021-02-10T21:10:52 | 2021-02-10T21:10:52 | 335,693,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # Generated by Django 3.1.6 on 2021-02-09 21:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('jeans', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='item',
name='slug',
field=mod... | [
"sanchit.bhard@gmail.com"
] | sanchit.bhard@gmail.com |
a393c04f3af4c09948f6b7058a3d529726a40692 | 928184c6f525bc852a1a1eb6e4a88a1c5843e711 | /calendarproject/calendarproject/urls.py | 3c3d40737c53ccf834a4402c55260d0cc079ff94 | [
"MIT"
] | permissive | Devesh-Maheshwari/calendar-application-tutorial | e8e56b68cb10a3ec36c3c75872f2a86b33f2cc46 | 3b651ae14ce6ff8834c15d1dd5d94b13e922c155 | refs/heads/master | 2020-03-18T11:22:20.434337 | 2019-10-31T11:50:27 | 2019-10-31T11:50:27 | 134,667,177 | 1 | 1 | MIT | 2019-10-31T11:50:29 | 2018-05-24T05:50:26 | Python | UTF-8 | Python | false | false | 707 | py | from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.urls import path
from myapp import views
urlpatterns = [
path('', views.IndexTemplateView.as_view(), name='index'),
path('calendar', views.CalendarListView.as_view(), name='calendar'),
path('signup', vi... | [
"noreply@github.com"
] | noreply@github.com |
55a9d9ea910d5c646c90de8e6f47192ffaaac67c | d4ea02450749cb8db5d8d557a4c2616308b06a45 | /students/MichaelM/lesson5/Assignment1_Mailroom_rev_try_catch.py | d87dc30206eeae6e7370674915b31a7133656798 | [] | no_license | UWPCE-PythonCert-ClassRepos/Self_Paced-Online | 75421a5bdd6233379443fc310da866ebfcd049fe | e298b1151dab639659d8dfa56f47bcb43dd3438f | refs/heads/master | 2021-06-16T15:41:07.312247 | 2019-07-17T16:02:47 | 2019-07-17T16:02:47 | 115,212,391 | 13 | 160 | null | 2019-11-13T16:07:35 | 2017-12-23T17:52:41 | Python | UTF-8 | Python | false | false | 1,761 | py | # wk: cd C:\Users\v-micmcd.Redmond\Dropbox\UW_Python\git\Self_Paced-Online\students\MichaelM\lesson5
# mo: cd C:\Users\geekw\Dropbox\UW_Python\git\Self_Paced-Online\students\MichaelM\lesson5
# hm: cd C:\Users\geekw\Dropbox\UW_Python\git\Self_Paced-Online\students\MichaelM\lesson5
# git add Assignment1_mailroom_rev_try_... | [
"geekwriter@hotmail.com"
] | geekwriter@hotmail.com |
9e4e132295f92f059015ea0940a9e53c7fcbda5e | 36875f4fdcba5d6cd8eb38f393cb0481b487fcbb | /Assignment-8/question-4.py | 430cfd9b977b1a9ee8b4045520fa1c9629a2e626 | [] | no_license | harshit0810/Acadview-Python-Assignments | 5d5e87a08d828f01185c7126571dc97f919ca134 | 0f6fa0e57b9625e4dbbdbfece9d09dd09666d670 | refs/heads/master | 2020-03-28T17:35:04.815894 | 2018-10-21T16:38:45 | 2018-10-21T16:38:45 | 148,804,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | #QUESTION-4
class movieDetails:
def __init__(self,artist,year,rating):
self.name=artist
self.year=year
self.rating=rating
def Add(self,movie):
self.moviename=movie
def Display(self):
print(self.name)
print(self.year)
print(self.rating)
pri... | [
"harshitaf0810@gmail.com"
] | harshitaf0810@gmail.com |
8f81b456d8c76beb94d125958a7047351fe638f4 | cb3ee9346bc497043e5569033a45feeb5247c736 | /kdd/analysis_task_1/task1_model_2.py | ba2c3f12db97b3a146fe645ed8408cfe007530fb | [] | no_license | sunwillz/kdd2017 | 6564b5d040c97f39a83578523a5afb0a369217ca | 08fc2c43ae35ba15ea17f18d520a49f3e97cfc17 | refs/heads/master | 2021-03-24T11:55:27.235428 | 2017-04-26T02:19:35 | 2017-04-26T02:19:35 | 86,531,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,913 | py | # -*- coding: utf-8 -*-
"""
task1_model_2:回归模型,线上测试0.1893
训练数据:2016-07-19至2016-10-17的三个月车辆轨迹数据以及2016-09-17至2016-10-17一个月的交通流量数据
构建特征工程
输入空间来自三个月前两个小时6:00:00-8:00:00和15:00:00-17:00:00,输出空间为对应的后两小时8:00:00-10:00:00和17:00:00-19:00:00
在测试数据中按相同方式构建特征工程
测试数据(预测数据):2016-10-18至2016-10-24一个星期的8:00:00-10:00:00和17:00:00-19:00:00... | [
"sunyw1993@sina.com"
] | sunyw1993@sina.com |
9f2f6b2dbff80e94f6d87d41643a81199702a663 | 9755020793d0de3306a7be428e8a3d3218fdc442 | /homeworks/Car_dealer/apps/orders/factories.py | 121dc938951c4a7ba5de165e2909991c7c339fe8 | [] | no_license | Xundril/Python-Martian-Manhunter-adv- | 389c42bbe6a55b4d659370fd1ed06cfd6a8a2064 | 2cf9bb1babeda63dba3f1be5a6d9f963d15e5588 | refs/heads/master | 2023-07-14T18:17:33.144785 | 2021-08-28T09:03:21 | 2021-08-28T09:03:21 | 370,254,396 | 0 | 0 | null | 2021-08-28T09:23:10 | 2021-05-24T06:45:01 | Python | UTF-8 | Python | false | false | 247 | py | import factory
class OrderFactory(factory.django.DjangoModelFactory):
class Meta:
model = 'orders.Order'
first_name = 'Mikhail'
last_name = 'Chabanenko'
email = 'test@gmail.com'
phone = '+380684635829'
car_id = 1 | [
"mikhail.chabanenko@gmail.com"
] | mikhail.chabanenko@gmail.com |
2c61c41255c06d0451a389aeb1b50f18d3cf40e1 | 1348c4e9219defbc85a4c3c6019e654084c32215 | /rmail_apiv3/models/packaging_response.py | 9768b32cbc1da68cafb53028e3e68a155d25ca1f | [] | no_license | joantune/rmail-shipping-REST-python-api | 77cf95a92e6b5a018f0d22f4cf8d5234a91e4cb3 | c7293adc8a52259dfb43ae277ba9652754fe4308 | refs/heads/master | 2022-12-15T21:56:12.296453 | 2020-09-15T08:44:06 | 2020-09-15T08:44:06 | 180,843,828 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,081 | py | # coding: utf-8
"""
Royal Mail API Shipping V3 (REST)
This API specification details the requirements for integrating with **Royal Mail API Shipping V3**.<br><br>It specifically covers how the Royal Mail API Shipping V3 can be used by business customers to conduct shipping activity with Royal Mail and provide... | [
"joao.antunes@tagus.ist.utl.pt"
] | joao.antunes@tagus.ist.utl.pt |
6a4d3358b397d62c5099278671c21b275fffd073 | 153cd23c47a8e3c30dccee2e14fb4aeffe3df561 | /main/migrations/0005_auto_20161115_1343.py | e5705d77fcd29e8140876c118b5f8da3950a405f | [] | no_license | Tatsi/Cookit | f7f6483e2b8d569a980b3b3fc7d459bec167f382 | 2b730d46bea0498ec02bf9807b52bfa026b80f2d | refs/heads/master | 2021-06-09T16:40:46.767126 | 2016-12-30T14:11:14 | 2016-12-30T14:11:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.1 on 2016-11-15 11:43
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('main', '0004_auto_20161111_1446'),
]
operations = [
migrations.AlterField(
... | [
"severi.salminen@iki.fi"
] | severi.salminen@iki.fi |
442ca8bf52d89c3b46aa97ea92168ad89ffd55b1 | 243b7c1162264e381ab6575f493bd4fb97ced325 | /src/comments/migrations/0005_comment_parent.py | 02d0344397530913347a2b50e8802bfd0fe04aa7 | [
"MIT"
] | permissive | trivvet/djangoAdvance | a409dd3003ab5f60b1621e7677826b2002e0d8c8 | 28891893869c1c0c3cf67d7f496dda96322de18c | refs/heads/master | 2020-04-05T22:05:14.272989 | 2018-12-09T11:00:58 | 2018-12-09T11:00:58 | 157,244,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-11-28 16:29
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('comments', '0004_auto_20181126_1850'),
]
operatio... | [
"trivvet@gmail.com"
] | trivvet@gmail.com |
69b6433a052d4876e57a68195988a40ad4ea11bc | 6fa66fce619807ed1136c647197ad199c4030624 | /SVM/__init__.py | b0d8ac68b0a64115f82195e4edf7863537601748 | [] | no_license | JayceSYH/MLlib | cd9959f77c2443e4275286389030dfde9c401af0 | daf0cd058caad017405b5693d5c9a09bf82d37f2 | refs/heads/master | 2021-04-26T04:56:26.684833 | 2017-10-22T07:37:51 | 2017-10-22T07:37:51 | 107,018,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | from .SVMClassifier import SVMClassifier | [
"514380599@qq.com"
] | 514380599@qq.com |
45e4e0961c6c1788cede1f419e61f45e3779c0b9 | bdbbd88a47ec8f153bcf885a0d317412f1c57329 | /Ablog/wsgi.py | 8d7fdb12d228e97d6e66e922038c8519ff4d4548 | [] | no_license | PelaNisha/Blog | 1b155aa504856b89bca459023d4395190ecbffc3 | cabbb9b103a01c360df11120e4e942eee0751ab4 | refs/heads/master | 2023-06-05T08:07:59.323519 | 2021-06-29T15:15:30 | 2021-06-29T15:15:30 | 378,460,333 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
WSGI config for Ablog project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTING... | [
"nishapela777@gmail.com"
] | nishapela777@gmail.com |
75bae986a76a0d4e744d5609995a7abc38a22bde | a49f25fd18ad6dada590f9f13ff9240da43ea180 | /seclogproject/pix/pixapp/views.py | 33c1df6dbae1ee56abb6dbd827474247fe61f449 | [] | no_license | Adhithya7/Seclog-Django | 08117a978c5ff6e22d6d66e0ce063ef1d16ecd6c | 0ee783c35879f034382c02bd29b94278a7258747 | refs/heads/master | 2022-12-05T03:01:48.402339 | 2019-03-26T06:16:05 | 2019-03-26T06:16:05 | 174,471,367 | 0 | 0 | null | 2022-11-22T01:06:49 | 2019-03-08T04:52:33 | Python | UTF-8 | Python | false | false | 7,811 | py | import os
import string
import time
import socket
from django.shortcuts import render
from django.views.generic import TemplateView
from itertools import islice
from django.http import HttpResponseRedirect
template_path ='/Seclog-Django/seclogproject/pix/pixapp/templates/'
py_path = '/seclog/'
tmpfile_path = template... | [
"noreply@github.com"
] | noreply@github.com |
617408fa17e69625c8ef4ddae149b7e9c0854017 | 726328ddac06cec86851479a7592ddbdf57cceb2 | /BlokesInBlue/JSH_Sandbox/dedup_street_parts/dedup_street_04_MSOA_year.py | 267573d43857ecf2b75403587b10934bff1d7c68 | [] | no_license | timgator/ukcrime | fe8fca204cb430ba53671b27210b9d75ef6cd918 | 95216580f69795803570dbf6a0b7a807babcf250 | refs/heads/master | 2021-06-10T17:23:52.626069 | 2017-08-07T05:53:05 | 2017-08-07T05:53:05 | 56,410,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96,545 | py | #==========SETUP==========#
#Packages
from pyspark import SparkContext
from pyspark.sql import Row, SQLContext
#Declare spark context environments
sc = SparkContext( appName="Dedup Street" )
sqlCtx = SQLContext(sc)
#Load street data
street = sc.textFile('s3://ukpolice/street_MSOA_month')
#Break... | [
"noreply@github.com"
] | noreply@github.com |
f0e45b1fb4b83b8df90170a17ff2e2c3e5ee84de | 7d8b5220152b4ef4876c489d6648be56bc83c8e7 | /exercises/development/beginner/exercise_12.py | 78175e5a2f27eacb75544c488c37742e2dba2c08 | [
"CC-BY-4.0",
"ISC",
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | comp-think/comp-think.github.io | 8f89518e7a463376b431f55fb7f495cb3019d4a5 | e48a7ecf3b1799471271e01430e089e8f8e3c68d | refs/heads/master | 2023-01-04T20:38:27.593237 | 2023-01-02T14:48:54 | 2023-01-02T14:48:54 | 157,171,226 | 52 | 22 | NOASSERTION | 2023-01-02T14:48:55 | 2018-11-12T07:11:23 | Python | UTF-8 | Python | false | false | 1,189 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2019, Silvio Peroni <essepuntato@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any purpose
# with or without fee is hereby granted, provided that the above copyright notice
# and this permission notice appear in all copies.
#
# THE SOFTWARE I... | [
"essepuntato@gmail.com"
] | essepuntato@gmail.com |
a347526fa82082a7141843624a280be915f95160 | da5a7bc9f7c9d698ff82ac83508ec7c7bb284be5 | /tieba.py | 0a2cda4d5d93023ae0012513541526d4390fd407 | [] | no_license | LottoDog/pabug01 | 031cbcf6d49f8fd0ebde6ae4e382c41d8dbfd246 | c4609cb3ee1d6d1257724906fb8d404f46fb6f12 | refs/heads/master | 2020-05-29T09:03:21.966806 | 2019-05-28T14:54:02 | 2019-05-28T14:54:02 | 189,048,920 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | from urllib import parse, request
# 1分析url规律
# f?kw=xx&pn=50*(n-1)
class TieBa(object):
def __init__(self):
self.headers = {
'User=agent': "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.131 Safari/537.36"}
# 获取响应内容
def get_page(self, url):
... | [
"1461217709@qq.com"
] | 1461217709@qq.com |
a35f9f0b7f38ba41b08a8770f7eff81791f845df | 8739b9813e3f5784067ae768826888f7cbfa0060 | /test/test_MOptimize.py | 6b052018d008daa485a946d4d1a86b6971290d55 | [
"MIT"
] | permissive | chemalot/tOpt | 6d2058d89a6c986bc5341f4f52383fa990d21b54 | 1e5e2ee52950d139be36255bfd84de5290ae3b96 | refs/heads/master | 2021-05-19T13:34:29.931711 | 2020-05-28T20:51:32 | 2020-05-28T20:51:32 | 251,726,782 | 4 | 1 | NOASSERTION | 2020-05-28T20:52:52 | 2020-03-31T20:43:20 | Python | UTF-8 | Python | false | false | 2,544 | py | import os
import logging.config as logConfig
from tOpt import sdf_multi_optimizer
from tempfile import NamedTemporaryFile
from cddlib.util import io
import difflib
import logging
import re
logIni = os.path.dirname(__file__) + "/../tOpt/log.debug.ini"
logConfig.fileConfig(logIni, disable_existing_loggers=False)
log = ... | [
"gobbi.alberto@gene.com"
] | gobbi.alberto@gene.com |
771eb48c547d8f9ba01bf6587e11e845aae491e3 | 0c110eb32f2eaea5c65d40bda846ddc05757ced6 | /python_scripts/pimriscripts/onsetxformMVnoval1stv2ndtargetnamebehavioralmeasures.py | 85bcf157630dd8984d938188faa1be2e0d0dffb2 | [] | no_license | nyspisoccog/ks_scripts | 792148a288d1a9d808e397c1d2e93deda2580ff4 | 744b5a9dfa0f958062fc66e0331613faaaee5419 | refs/heads/master | 2021-01-18T14:22:25.291331 | 2018-10-15T13:08:24 | 2018-10-15T13:08:24 | 46,814,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,812 | py | from __future__ import division
import os, csv, copy, numpy
__author__ = 'katie'
#data note: for subj 7619, run 1M3, target "Kelly", there is a line of data that didn't get recorded, probably because the
#eprime crashed. 1M3 then is fully collected with a new startup point on the next line. It is too much work
#to... | [
"katherine@Katherines-MacBook-Pro.local"
] | katherine@Katherines-MacBook-Pro.local |
4e16fdbe2e92cfb9355b49f7f2b61231b5481fe7 | e6bc1f55371786dad70313eb468a3ccf6000edaf | /Datasets/the-minion-game/Correct/082.py | 95c75f16f90cb4f3654bfe9b2114f728c53db3fe | [] | no_license | prateksha/Source-Code-Similarity-Measurement | 9da92e3b22c372ed6ea54d8b6ab2c5921e8c41c0 | fb371b837917794d260a219a1ca09c46a5b15962 | refs/heads/master | 2023-01-04T07:49:25.138827 | 2020-10-25T14:43:57 | 2020-10-25T14:43:57 | 285,744,963 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | string = input()
stuart = 0
kevin = 0
for i in range(len(string)):
if string[i] in ["A", "E", "I", "O", "U"]:
kevin += len(string) - i
else:
stuart += len(string) - i
if kevin > stuart:
print("Kevin", kevin)
elif kevin < stuart:
print("Stuart", stuart)
else:
print("Draw") | [
"pratekshau@gmail.com"
] | pratekshau@gmail.com |
1c588cb29c1546a967980761266c9cd99ae05371 | 39888e5f52bc4278679cb8437faa976a400c1f43 | /pytest.py | ab05bfd7da63bfeae1fbea396cb7fcad378dc942 | [] | no_license | gtenmac/Ryu | d2c455ed060a106a98c245492f24351dbca064df | 8ef5ddbf8e8172c0a456f7c2278b61bcdef18dc3 | refs/heads/master | 2020-03-12T10:25:43.294382 | 2018-05-12T09:20:53 | 2018-05-12T09:20:53 | 130,572,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | ary = {}
dpid = 1
ary.setdefault(dpid, {})
a = [1:10,2:20]
ary[dpid][a] = 10
if 1 in ary[dpid]:
print('???') | [
"32523064+gtenmac@users.noreply.github.com"
] | 32523064+gtenmac@users.noreply.github.com |
678fd8a74cf26d7b268a0bca0a0e1bb094c0044b | 1b6fd0e1da9aa6d28b19540887ffcb5233ac3692 | /Resources/RP01/P01.4/shooting_005.py | f7c4565e4a016f5f60b0c5ef8bfa949852f8b00f | [] | no_license | rugbyprof/4443-2D-PyGame | a637cd1237f90ca30a484d9fb2b6738571777d8c | bba26f794bd85599cf0598c1c64feec59fa31246 | refs/heads/master | 2022-11-27T14:14:54.982351 | 2020-08-05T19:32:45 | 2020-08-05T19:32:45 | 271,365,653 | 3 | 5 | null | null | null | null | UTF-8 | Python | false | false | 18,569 | py | """
Sprite Sounds and Collision
Description:
"""
# Import and initialize the pygame library
import pygame
import random
import json
import pprint
import sys
import os
import math
import glob
from helper_module import rgb_colors
from helper_module import mykwargs
from helper_module import straightDistance
f... | [
"terry.griffin@msutexas.edu"
] | terry.griffin@msutexas.edu |
ad38a8f2cb5608beb486c95d05efd28affd3e33f | 2bccab3cea54fdf283533d91b4a88363847b565d | /triple-center-loss/triple_center_model.py | 50bfb7111808affc301bed6a03c61cf867c47ae2 | [] | no_license | AmberzzZZ/classification_keras | 647727597cc086cc72f532583ad80c6d88ecdce8 | 8e1886f130452b0f5ad30f7e9a32eb8388babb9a | refs/heads/master | 2020-08-28T22:51:53.832386 | 2020-05-26T02:35:44 | 2020-05-26T02:35:44 | 217,844,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | from models import *
from keras.layers import Embedding, Lambda
import tensorflow as tf
from keras.utils import to_categorical
from keras.utils import plot_model
def TCL(y_true, y_pred):
return y_pred
def l2distance(args, n_classes):
embedding, center_standard, y_true = args
n_centers = center_standard.... | [
"774524217@qq.com"
] | 774524217@qq.com |
ec9d3ab0161bd0be2d1d9cc810b7baf064cb9258 | 0c110eb32f2eaea5c65d40bda846ddc05757ced6 | /scripts/mastersort/scripts_dir/p7477_run1L6.py | fd95e6f425fc95d1d5f1740df9048f4676b66a4c | [] | no_license | nyspisoccog/ks_scripts | 792148a288d1a9d808e397c1d2e93deda2580ff4 | 744b5a9dfa0f958062fc66e0331613faaaee5419 | refs/heads/master | 2021-01-18T14:22:25.291331 | 2018-10-15T13:08:24 | 2018-10-15T13:08:24 | 46,814,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | from __future__ import with_statement
import os, csv, shutil,tarfile, uf, dcm_ops
dest_root = '/ifs/scratch/pimri/soccog/test_working'
dst_path_lst = ['7477', 'run1L6']
uf.buildtree(dest_root, dst_path_lst)
uf.copytree('/ifs/scratch/pimri/soccog/old/SocCog_Raw_Data_By_Exam_Number/2539/E2539_e2401779/s2411337_1904_1L6_s... | [
"katherine@Katherines-MacBook-Pro.local"
] | katherine@Katherines-MacBook-Pro.local |
2a513e3d4663991af21d041fc0a0e3a8048aec21 | 8dbbac230062611206d5f13254e7388f7f7db4a8 | /train.py | b7bc6941e0d0ba8eafd0fb91679d567731ffbca1 | [] | no_license | decoli/cell-detection | 74d44a01d5cbe680efe63e0e2db9ff4ccf90970e | ef255737f4875538d4c9be18461d5eef70e9509f | refs/heads/main | 2023-05-19T13:40:53.933117 | 2021-06-10T14:04:47 | 2021-06-10T14:04:47 | 359,720,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,178 | py | from data import *
from utils.augmentations import SSDAugmentation
from layers.modules import MultiBoxLoss
from ssd import build_ssd
import os
import sys
import time
import torch
from torch.autograd import Variable
import torch.nn as nn
import torch.optim as optim
import torch.backends.cudnn as cudnn
import torch.nn.in... | [
"shirui.zhang.japina@outlook.com"
] | shirui.zhang.japina@outlook.com |
d9f730e4118368988e36e7c10041825d42312a5a | fb5c44282cee565d0ea108c2c3d1a0bd958b526a | /intrinio_sdk/models/api_response_security_detrended_price_oscillator.py | ee62b9afc8b1411adbb65137bffbf6420157e4ce | [] | no_license | shahkevaln/python-sdk | 21d204b6e5d659d965e79e2a3bdce26fd7d96a56 | a7eed11e49676d1e279c7a576f13f187dcf4ece4 | refs/heads/master | 2020-05-07T20:50:12.917589 | 2019-04-10T20:25:34 | 2019-04-10T20:25:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,004 | py | # coding: utf-8
"""
Intrinio API
Welcome to the Intrinio API! Through our Financial Data Marketplace, we offer a wide selection of financial data feed APIs sourced by our own proprietary processes as well as from many data vendors. For a complete API request / response reference please view the [Intrinio API ... | [
"kgmilerdev@gmail.com"
] | kgmilerdev@gmail.com |
9092374f2f7bd919bb7440ab24d22def3c1b7979 | 7c763b914175e5ad0a8cacb6aafc53f6b73b7523 | /src/overview.py | c8e2e271de178ecc7d43e14fdf0c96d0234b91bd | [] | no_license | sujaes/bigdata | 49e97a2be9f5cc5b213ac35b64f87c82386696c1 | 1167319e4d97eebbdeacb48728a4ebcac28cd16e | refs/heads/master | 2021-09-20T19:24:58.957260 | 2018-08-14T11:28:06 | 2018-08-14T11:28:06 | 84,919,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import matplotlib.pyplot as plt
myRddex=spark.sparkContext\
.textFile(os.path.join("data","overview.txt"))
wc2=myRddex\
.flatMap(lambda x:x.split())\
.map(lambda x:(x,1))\
.reduceByKey(lambda x,y:x+y)\
.map(lambda x:(x[1],x[0]))\
.sortByKey(False)\
.take(100)
count = map(lambda x:... | [
"sujaes@naver.com"
] | sujaes@naver.com |
f11df114619990c157be3126d3976af5f9a59b3c | 1a6d1fb43a8aae12077f1e91ffa8ef3d30655135 | /awesome-python3-webapp/config.py | 995aabce87c0242f2126f2efa65f6d4903d9e5ec | [] | no_license | WongIhsin/WebServer | aa15b56795df979d18858c13a61487f8801171a2 | 1c560d01f31955334f9c56cce20a403e8b6408c3 | refs/heads/master | 2020-05-19T20:08:49.723027 | 2019-05-09T01:53:13 | 2019-05-09T01:53:13 | 185,196,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
"""
config.py
"""
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, values):
self[k] = ... | [
"tjuwangyixin@163.com"
] | tjuwangyixin@163.com |
432654325fa3c3e4ef2b5dea97f3ff81125a84ac | 52f8d1c53d7a7a251b216cacc2d1aaa8cc60c33e | /tools/utils.py | edef9d3436684af263ef426b90366eae0859b595 | [] | no_license | sbein/BayesQcd2019 | d9ecbf252b336f1d18c9dd35828bde1331a0028a | bb259e6d95e7eeee8d655866cbb7eeaa3e476036 | refs/heads/master | 2022-02-22T20:24:19.008157 | 2019-08-08T07:53:44 | 2019-08-08T07:53:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,416 | py | from ROOT import *
from array import array
tl = TLatex()
tl.SetNDC()
cmsTextFont = 61
extraTextFont = 50
lumiTextSize = 0.6
lumiTextOffset = 0.2
cmsTextSize = 0.75
cmsTextOffset = 0.1
regularfont = 42
originalfont = tl.GetTextFont()
epsi = "#scale[1.3]{#font[122]{e}}"
epsilon = 0.0001
binning = {}
binning['Met']=[45,... | [
"samuel.bein@gmail.com"
] | samuel.bein@gmail.com |
2cc1538519f2fa73713c4487c223f1163fa58764 | 7dcfc060f4f1f350551f7905cb7bf76b083e7f26 | /SimpleMachines/pulleyClass.py | 4ff05966992a4186afdd3f61baac8c9d35dc4b7b | [
"MIT"
] | permissive | THuzeyfe/SimpleMachines | 8c508e639a7ebe058793ca1cb3961ec5f5e6122b | a8c9d5e91455404a97b16427a146fbb603872244 | refs/heads/master | 2022-04-24T19:14:14.096823 | 2020-05-01T15:31:00 | 2020-05-01T15:31:00 | 260,463,007 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,972 | py | from .SimpleMachines import SimpleMachine
class pulley(SimpleMachine):
def __init__(self, F = None, P = None, movable = 0, fixed = 1):
"""
a pulley simple machine class that holds basic calculations.
Pulleys is assummed without weight.
At least one of P or F is required.
... | [
"taha.huzeyfe@gmail.com"
] | taha.huzeyfe@gmail.com |
7c2f5061a271d606299c7fa5dc4522b435d60ce4 | 9dc0fdf6bd6ed81eb0fd441ff6123b439c2c14c7 | /features_extractor/dataloader.py | 2d19416b9de6e78a67e2da79871761f26f41ed15 | [
"MIT"
] | permissive | omarsou/MIL-lymphocytosis | 0c3f0caf77a235394f0cc32626ac4d45cd95680d | 0971e1cfc9e033ec6af6bc3e214a9eb4bb9f326a | refs/heads/master | 2023-07-04T10:43:02.272454 | 2021-08-06T13:26:55 | 2021-08-06T13:26:55 | 338,534,638 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,365 | py | from torch.utils import data
from PIL import Image
class LymphoDataset(data.Dataset):
"Characterizes a dataset for PyTorch"
def __init__(self, filenames, transform=None):
"Initialization"
self.filenames = filenames
self.transform = transform
def __len__(self):
"Denotes the... | [
"omar.souaidi@student.ecp.fr"
] | omar.souaidi@student.ecp.fr |
4f836b2023d170e009b30b7f259ccce89b59b81b | a71582e89e84a4fae2595f034d06af6d8ad2d43a | /tensorflow/python/ops/ragged/ragged_dispatch.py | 1115eee4129f202ecda914d185a6dc76e3187919 | [
"Apache-2.0"
] | permissive | tfboyd/tensorflow | 5328b1cabb3e24cb9534480fe6a8d18c4beeffb8 | 865004e8aa9ba630864ecab18381354827efe217 | refs/heads/master | 2021-07-06T09:41:36.700837 | 2019-04-01T20:21:03 | 2019-04-01T20:26:09 | 91,494,603 | 3 | 0 | Apache-2.0 | 2018-07-17T22:45:10 | 2017-05-16T19:06:01 | C++ | UTF-8 | Python | false | false | 19,006 | py | # Copyright 2018 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
3b1a202d6d7c912bf1579490ddaafc3f09239174 | 1af71babd0cb4b1fc16d0bf4e15ea17f00c7ab3b | /Chapter19/callDatabase.pyw | 42f244f3f05bff03d39ef7561a04ce8fa28632cf | [
"MIT"
] | permissive | PacktPublishing/Python-GUI-Programming-A-Complete-Reference-Guide | 798b01b03ada18dd1875fc50268e887e1ef4e5f7 | 98bb7da80617f9c1330d83b742fdea59a1a2691e | refs/heads/master | 2023-02-02T04:44:30.417990 | 2023-01-30T09:00:38 | 2023-01-30T09:00:38 | 191,381,001 | 37 | 31 | null | null | null | null | UTF-8 | Python | false | false | 790 | pyw | import sqlite3, sys
from PyQt5.QtWidgets import QDialog, QApplication
from sqlite3 import Error
from demoDatabase import *
class MyForm(QDialog):
def __init__(self):
super().__init__()
self.ui = Ui_Dialog()
self.ui.setupUi(self)
self.ui.pushButtonCreateDB.clicked.connect(self.crea... | [
"adityaks95@gmail.com"
] | adityaks95@gmail.com |
94dc35c61b39b874b3b81884b9524967947c0b81 | c3eda1a67e2be5b200e6c9f5a80f20fbcce75bcb | /persephone/builds/migrations/0001_initial.py | 0b7a613e655fa3b74eb0ec33645b168124808fac | [
"MIT"
] | permissive | karamanolev/persephone | b389a871f6fae58525eeedaec3739ec563c9b934 | 6d1887ae4e1d1941da3dbc416901e9de4764cbbb | refs/heads/master | 2023-05-14T20:28:24.209056 | 2023-04-26T20:50:46 | 2023-04-27T10:32:25 | 86,364,458 | 14 | 2 | MIT | 2023-04-11T10:10:50 | 2017-03-27T17:29:12 | JavaScript | UTF-8 | Python | false | false | 4,720 | py | # Generated by Django 3.0.5 on 2020-04-11 23:17
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='GlobalSet... | [
"ivailo@karamanolev.com"
] | ivailo@karamanolev.com |
b972712db9c06a6e225044317d7101da94faf755 | 56d235e8bb7d71c49c7158caca524c3b92aa3e21 | /MIS/manage.py | b7aaa0b3386850c8607ecac6c9a827bd5a6e6822 | [] | no_license | zhang1oc/699project | beba43ff00ec204bc792fa345fb1c8700e2080ad | d6e527058d32bdb8bb126a661f8936842e92a291 | refs/heads/master | 2021-01-25T07:02:03.224067 | 2017-08-24T15:29:17 | 2017-08-24T15:29:17 | 93,645,536 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "MIS.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that... | [
"qifengxiyu.711@163.com"
] | qifengxiyu.711@163.com |
129f19fa9fcc6f1f3f86d88b5fd0f502de0322c3 | c4c92829a3ef5bd956fe1a94cb0d51f69d1d0c3b | /MusicApp/OxJS/tools/unicode/unicode.py | fc360791092c4e43657aea2c16495b9305af8174 | [] | no_license | Nido89/ModernJavascriptpractice | 23330392c19a5b6535717722244e3906e1fe0e8f | fafd37ead1ae248452a282b88d2c023591f3077c | refs/heads/master | 2022-12-09T00:53:43.822458 | 2020-03-20T13:48:09 | 2020-03-20T13:48:09 | 243,349,522 | 0 | 0 | null | 2022-12-06T16:30:13 | 2020-02-26T19:37:43 | JavaScript | UTF-8 | Python | false | false | 4,903 | py | import json
import ox
import re
remove = [
'ABOVE', 'BAR', 'BELOW', 'CEDILLA', 'DIGRAPH', 'LONGA', 'ROTUNDA'
]
special = {
'ACCOUNT OF': 'a/o',
'ADDRESSED TO THE SUBJECT': 'a/s',
'AM': 'a.m.',
'ANGSTROM SIGN': 'A',
'C OVER KG': 'c/kg',
'CADA UNA': 'c/u',
'CARE OF': 'c/o',
'CM CUBED'... | [
"naveed.jalal@edu.novia.fi"
] | naveed.jalal@edu.novia.fi |
2f810088c1d7c89839e81cd9c11e22c2d9e2f920 | 1185c629b091e09366aec9830d09ecd1b51dddda | /eval.py | 7fee4cd1b8819c5d70a410ec118be451f76e6231 | [] | no_license | billy-inn/refe | 9ed79b8cfed83225cbc81a8637d0bafc24e0e494 | deeaa1934ea7011e22dc7d3d98eedd6144212c7e | refs/heads/master | 2021-07-03T20:26:47.329020 | 2017-09-24T02:33:16 | 2017-09-24T02:33:16 | 104,605,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 946 | py | import tensorflow as tf
import numpy as np
import pandas as pd
import config
from optparse import OptionParser
from task import Task
import logging
from model_param_space import param_space_dict
def train(model_name, data_name, params_dict, logger):
task = Task(model_name, data_name, 1, params_dict, logger)
task.ref... | [
"bly930725@gmail.com"
] | bly930725@gmail.com |
f0388545ef0f49c52619451f5278867c587d2bd5 | b9cdf0c322c1cbe3a66415fd1eba001919d72b2d | /setup.py | 1e00b22cc733c28cbb9866abea86d39340762aaf | [
"MIT"
] | permissive | bepoli/mppysam | 019f4b9c897dd2467e8722b427d7778cc1de4bdb | 0d37c1de56f559dad03d7810093c90b80f0814d9 | refs/heads/main | 2023-02-03T04:10:56.070266 | 2020-12-21T16:35:17 | 2020-12-21T16:35:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 747 | py | from setuptools import setup, Extension
def make_ext(modname, pyxfilename):
import pysam
return Extension(
name=modname,
sources=[pyxfilename],
extra_link_args=pysam.get_libraries(),
include_dirs=pysam.get_include(),
define_macros=pysam.get_defines()
)
setup(name='m... | [
"baye.james@gmail.com"
] | baye.james@gmail.com |
869005ef98c7286dd70490e5629d7092d91d6e54 | c9a56a6a54bc8eb0ac7cf2d89d5d16274f4815dd | /_code/config.example.py | ba5a72547a32c4465ed9ba03a4824e4e6a4b8831 | [
"Apache-2.0"
] | permissive | neurodata/ndprojects | 9bf636224eef922d335642e87c6b0b80cfaefcd6 | c212b96af3fdb5b5721f4e36664ab512d9b6fcd7 | refs/heads/master | 2020-12-28T02:04:12.999023 | 2016-01-25T00:17:24 | 2016-01-25T00:17:24 | 48,243,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | # This is your GitHub username.
USERNAME = ""
# These tokens can be generated here: https://github.com/settings/tokens/new
AUTH = "########################################"
IGNORE_FILES = [
'.ipynb_checkpoints',
'.gitignore'
]
| [
"j6k4m8@gmail.com"
] | j6k4m8@gmail.com |
0fc92672b5418fb4d7a84bf047d0f41c344ad087 | b0612bf9ede23301a0680ef017ebdd1abc2217a2 | /exercice2.py | b9d53d115c056b21117de9dcb17f711a3df716ac | [] | no_license | aftalib/randomwalk | 55a41c0eea27a3256c4711502c7410ae573849bd | 50afc86029cfa6479215790d831bb71e36bdc226 | refs/heads/main | 2023-04-01T17:22:57.649048 | 2021-04-20T12:04:16 | 2021-04-20T12:04:16 | 359,793,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 8 15:12:33 2020
@author: Mehdi
"""
import random
import matplotlib.pyplot as plt
#graphe en 1D avec p=0.5 et p=0.75
def grapheComparaison():
n=10000
x=list(range(0,n))
a=0
b=0
y=[]
y2=[]
for j in range (n):
... | [
"noreply@github.com"
] | noreply@github.com |
1a33e97b506c63b225efcada527721dbfd02816e | 44a919553acf39c6979767bb42f6b70fe5ecba83 | /Farkkila-et-al-1/data-quality/lost_cell_detection_cycif.py | 43e632549a39e8168868bc110c77401b862c76ab | [
"MIT"
] | permissive | farkkilab/pubs | cb92d67132925cbebbf9b79744ed9a0c5020ccd7 | 0e76ee49aaba6583334ba3657366507673e638e9 | refs/heads/master | 2022-11-17T22:10:09.355688 | 2022-11-15T14:44:40 | 2022-11-15T14:44:40 | 234,320,206 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,899 | py | import os
import pandas as pd
import cycifsuite.detect_lost_cells as dlc
import numpy as np
import time
import glob
from multiprocessing import Process, freeze_support
## First clone Jake Wang's repository from https://github.com/yunguan-wang/cycif_analysis_suite
def processFile(fname, path_out, manual_threshold=None... | [
"juliacsd@gmail.com"
] | juliacsd@gmail.com |
dbefc9772aa55d5d6d74d388b77e2596aa76f9bc | 5be35ce511115933560220879250fc9e4f232bf8 | /docker/predictor/run.py | 453bff0bfb6580eaef580760aed0fca43aab6e30 | [
"MIT"
] | permissive | MaximAdler/Cryptocurrency-Price-Prediction | adf81745aa84a9c5647198b167f6a5f56aa67c90 | ef0e451d84743d7da0e32ca08447045b427af03c | refs/heads/master | 2023-05-12T21:56:01.225960 | 2022-05-25T08:17:53 | 2022-05-25T08:17:53 | 131,998,136 | 2 | 1 | MIT | 2023-03-25T01:23:38 | 2018-05-03T13:20:28 | Python | UTF-8 | Python | false | false | 762 | py | import gc
import numpy as np
from models import neural_network as nn
from utils import helprs as h
btc_data = h.parse('bitcoin', 'BTC')
eth_data = h.parse("ethereum", 'ETH')
market_data = h.join(btc_data, eth_data)
with nn.NeuralNetwork(market_data, ['BTC', 'ETH']) as prediction:
prediction \
.create_mod... | [
"orelmax@i.ua"
] | orelmax@i.ua |
a4e469aabefcb66fecbbd7c670945810077e0c2f | 422e9746da8c692531883077bf9037624ab2acbf | /src/models/event.py | 1c4c09166a680f890d2cdaacf167444ba7db13cd | [] | no_license | nmichellenguyen/ticketbox-event-page | 45377fa5bdb029faae2f663b7947a748b7aba7e7 | 65b5b35230be0c90be2075e73680b1d4f6d6452e | refs/heads/master | 2020-05-19T22:10:46.419473 | 2019-05-06T17:25:40 | 2019-05-06T17:25:40 | 185,240,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | from src import db
from datetime import datetime
from werkzeug.security import generate_password_hash
class Event(db.Model):
id = db.Column(db.Integer, primary_key=True)
user_id = db.Column(db.Integer, db.ForeignKey('user.id'))
description = db.Column(db.String(128), unique=True, nullable=False)
ven... | [
"ngan.nguyen1186@gmail.com"
] | ngan.nguyen1186@gmail.com |
a357f99eeb2586079e4f9f2f7d69c6f57ffcb713 | 8522034ed44d22a50b45f36e7dea057b1ca9c9bd | /core/views.py | 49d2d84d2b27fb7ee828f7685fc2c656a7e45160 | [] | no_license | JayjeetAtGithub/oth2 | 71c769150d132a253ce9a64da83442ed3409a592 | d8be9b8e69d23c137045ce8485b27e08300db809 | refs/heads/master | 2020-03-22T14:04:51.838326 | 2018-07-16T18:11:18 | 2018-07-16T18:11:18 | 140,152,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,524 | py | from django.shortcuts import render
from django.http import Http404
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from .models import Player , Level , TotalLevel
from .serializers import PlayerSerializer , LevelSerializer , TotalLevelSerializer ,... | [
"jc.github@rediffmail.com"
] | jc.github@rediffmail.com |
71e678a0332eb9b0dddc74e7ee7677d3d3e5f0be | d10c5d3603e027a8fd37115be05e62634ec0f0a5 | /10_Supervised-Learning-with-scikit-learn/10_ex_2-10.py | 684d17126431f630f2a9e550a279918f00947165 | [] | no_license | stacygo/2021-01_UCD-SCinDAE-EXS | 820049125b18b38ada49ffc2036eab33431d5740 | 027dc2d2878314fc8c9b2796f0c2e4c781c6668d | refs/heads/master | 2023-04-29T01:44:36.942448 | 2021-05-23T15:29:28 | 2021-05-23T15:29:28 | 335,356,448 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | # Exercise 2-10: K-Fold CV comparison
import numpy as np
import pandas as pd
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import cross_val_score
df = pd.read_csv('input/gm_2008_region.csv')
y = df['life'].values
X = df.drop(['life', 'Region'], axis=1).values
# Create a linear regre... | [
"stacy.gorbunova@gmail.com"
] | stacy.gorbunova@gmail.com |
39a1bc5fda6da711ecbf809bbb0e03ae3ad609d5 | a3372a1a78dc42706edf9978f0a2c2acc4904c84 | /question_parser.py | d617e52980ff221878dda78e0aa972cb419ae5db | [] | no_license | runseason/medicalQA | e9e1e787938c953fb65eba2b05963a98b92ef2d5 | 9be699cfddf2ab649b07a6b1871b87ca34f9d61f | refs/heads/master | 2021-05-23T18:32:18.665739 | 2020-04-12T11:22:52 | 2020-04-12T11:22:52 | 253,417,252 | 2 | 1 | null | 2020-04-06T06:50:21 | 2020-04-06T06:47:48 | null | UTF-8 | Python | false | false | 9,845 | py | #!/usr/bin/env python3
# coding: utf-8
# File: question_parser.py
# Author: lhy<lhy_in_blcu@126.com,https://huangyong.github.io>
# Date: 18-10-4
class QuestionPaser:
'''构建实体节点'''
def build_entitydict(self, args):
entity_dict = {}
#如果arg并非库里有的,此处就需要寻找最相似的
#sqls='MATCH (m) where m.name =... | [
"cjhai1988@163.com"
] | cjhai1988@163.com |
18083c6386091bb73672e2ad5436cbdd0b051497 | e2bb816783dd0dcb3ed67487d97c1c95cb4d7503 | /Exercise Files/Ch5/htmlparsing_start.py | 5e9f58577ebde8f7bbb27a781ae3422c20abad95 | [] | no_license | pemasingye/Learning-Python | ab337196d359c07687a24085c7b97201e34f98f3 | 0de59efce22f10b3da9267db983fa03dbe52be61 | refs/heads/main | 2023-02-21T22:35:56.731620 | 2021-01-27T12:58:37 | 2021-01-27T12:58:37 | 333,419,646 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | #
# Example file for parsing and processing HTML
#
from html.parser import HTMLParser
class MyHTMLParser(HTMLParser):
def handle_comment(self, data):
print("Encounted comment: ", data)
pos = self.getpos()
print ("\tAt line: ", pos(0), "position", pos[1])
def main():
# instantiate the parser and feed it... | [
"noreply@github.com"
] | noreply@github.com |
08c80609e53b5cbdd9a1d5887409b786104c3db9 | 1c3baf7150f1d8a722964ead41b2a3d347d7aea2 | /fetch.py | 976455c97b21dcf59ee82e56c0af82cada70b524 | [
"MIT"
] | permissive | yxngl/pymol-scripts | d3fd6cf6755330101965f9bfd119dbb8b8cf706d | 69f241e0a0fcc43466070275f4cc5a3d88ea77fe | refs/heads/master | 2021-05-29T15:09:38.439844 | 2015-03-16T03:25:33 | 2015-03-16T03:25:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | from pymol import cmd
from pymol import preset
import re
import urllib2
def fetchd(code, name='', type='pdb', quiet=1, async=-1, **kwargs):
"""
DESCRIPTION
Wraps and extends the built-in fetch function.
It can fetch SCOP domains or PDBs and render the domain or chain of
interest to publication repre... | [
"yuxingliao@gmail.com"
] | yuxingliao@gmail.com |
52f01532ecbffb50cda41adf6570fecdacdbec45 | 471126cc6ef000f5ee24fe4d106163d2c22a331c | /api/urls.py | ba9271da4cb3401f33948b7a842fba30be94e826 | [] | no_license | kelervcav/lookup-endpoint | fc72989c68cabd80a712e23b60a1f56fe99262fb | 4e9f39ed714c3decd9d0943d82638c1d03aa3c99 | refs/heads/master | 2020-03-30T09:41:39.887095 | 2018-10-01T14:28:43 | 2018-10-01T14:28:43 | 151,087,764 | 0 | 0 | null | 2018-10-01T14:28:44 | 2018-10-01T12:48:41 | Python | UTF-8 | Python | false | false | 341 | py | from django.conf.urls import url, include
from rest_framework.routers import DefaultRouter
from api.views import (
CategoryViewSet, SubCategoryViewSet
)
router = DefaultRouter()
router.register(r'categories', CategoryViewSet)
router.register(r'subcategories', SubCategoryViewSet)
urlpatterns = [
url(r'^', inc... | [
"michael@tirsolutions.com"
] | michael@tirsolutions.com |
71e9ed8c9504230daf93b0b70b074a4c889626e5 | f19b36c878f1105103388bdfe7440d172a530983 | /pruebacali.py | 35ac710b5ac5effef40e9932564a434e47c327f0 | [] | no_license | cradlerob/figuras | 01bef456d388c8e39e6c6b50a176ba3e6ab0299c | f9d4c33c3ffe5131cd6b070cc2021be249cdb0c1 | refs/heads/master | 2020-05-21T08:54:04.641136 | 2016-10-10T17:21:18 | 2016-10-10T17:21:18 | 69,883,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | import unittest
from calificaciones import calificaciones
class Testcalificaciones(unittest.TestCase):
def setUp(self):
self.calificaciones = calificaciones()
def test_cal_1(self):
self.calt([10, 9.5, 8], 9.166666666666666)
def test_cal_2(self):
self.calt([8, 9, 8],... | [
"felipe_jesus_@hotmail.com"
] | felipe_jesus_@hotmail.com |
0eb34ab5296d23fe1e63b4b4f4aebccde66b8bad | 3c38f64238009fa7b2c426e069800b0797e75b76 | /employee/migrations/0003_employeeshiftrecords_week.py | de029a95b4ca3f95f5b8d5f5f0d1a5061190bf58 | [] | no_license | AlbertChisoro/shiftmanagement | 0bd93f9154bf2f54df55e41ff44f0a4c2aec9d1d | e51e363782eef13392a035537aaf1d04ed3e8422 | refs/heads/master | 2023-01-02T18:05:44.702847 | 2020-11-01T18:57:32 | 2020-11-01T18:57:32 | 309,168,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # Generated by Django 3.1.2 on 2020-10-19 08:36
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('employee', '0002_employeeshiftrecords'),
]
operations = [
migrations.AddField(
model_name='employeeshiftrecords',
na... | [
"chixpyy@gmail.com"
] | chixpyy@gmail.com |
ebe9729b1ade4f59526afac281fe2fa4538fe6ba | 18001e61777772d8ab8146bbb8849701399efa81 | /projeto/edp/migrations/0004_auto_20180717_1816.py | 3f8421929e3756428199e0027bf5f94a380417be | [] | no_license | raiarruda/adaple-restruturado | 0dce4a75802d7ae9a83f102bb5da8b3cd56f4ad6 | 72d7f9582aa1e5edfb27c0df9d33bb9ea93d07fd | refs/heads/master | 2022-12-13T01:17:02.557978 | 2018-11-27T21:01:08 | 2018-11-27T21:01:08 | 129,459,324 | 0 | 0 | null | 2022-12-08T02:09:24 | 2018-04-13T22:22:22 | JavaScript | UTF-8 | Python | false | false | 437 | py | # Generated by Django 2.0.5 on 2018-07-17 21:16
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('edp', '0003_respostaedp_aluno2'),
]
operations = [
migrations.RemoveField(
model_name='respostaedp',
name='aluno2',
... | [
"raiarruda.raa@gmauil.com"
] | raiarruda.raa@gmauil.com |
f03ef6fb350fdeeb6969f11ba578deaa77ab13d0 | d677707e4141b0ebbc2925d52b61a91b884d2f88 | /icevision/trim_checkpoint.py | f552799a71c27490392d5bfa8a23b8aba87aa53e | [] | no_license | ivbelkin/icevision | 94307c1ed96145b58b73e96a6e8eefcdd5e581ee | 0a01821cb892ddf02e0f729e83102d7b89e3dcda | refs/heads/master | 2020-05-30T11:40:45.531761 | 2019-07-14T22:43:13 | 2019-07-14T22:43:13 | 189,711,302 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | import argparse
import torch
def build_parser():
parser = argparse.ArgumentParser()
parser.add_argument(
"--in-checkpoint",
type=str,
required=True
)
parser.add_argument(
"--out-checkpoint",
type=str,
required=True
)
return parser
def main(args... | [
"ilya.belkin-trade@yandex.ru"
] | ilya.belkin-trade@yandex.ru |
45c4089cf3f5396e9987ecb2926535b87cbcaa31 | c6ae0981a39d14b9f157a41959d28f2ea730ea3e | /core/migrations/0002_event_slug.py | a665b98e1b2610d7c213d876f2b555bef6b487f4 | [
"MIT"
] | permissive | bonville/nyc-councilmatic-test | 56d959cd62419290a811714b8f6e563b673886a1 | 9d11d7116182a9f9a6e3460c135912f769074661 | refs/heads/master | 2020-12-27T08:10:51.909294 | 2015-09-30T18:28:50 | 2015-09-30T18:29:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='event',
name='slug',
... | [
"cathyd125@gmail.com"
] | cathyd125@gmail.com |
60da00eb7bf26b9bf45d16906bd2fd18682d09cb | dad08a6b33b2e58f9b0572e1f52beb888be42893 | /venv/bin/pip3 | 48bee24ada5e30de4a05021317706352bb6c4670 | [] | no_license | Klariss/report_exportation | 54466b57cc97acfe245ed2af07d8858554aa2b0b | 5806d248ec9209c84987274ed0cb8ee30f190441 | refs/heads/master | 2020-05-18T03:47:15.062247 | 2019-04-29T23:04:20 | 2019-04-29T23:04:20 | 184,154,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | #!/Users/klara/PycharmProject/suade_test/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
... | [
"klari.kollar@gmail.com"
] | klari.kollar@gmail.com | |
cd7df9d495748a58a71a447ae126ee3589918c43 | 76a0c637376cf00311b9ede71a019b77475e1a6b | /RestApi/Types/Chart.py | 1eae897b347be2b03e8fc92bebe40e82ce29ba6c | [] | no_license | anasbarg/JDATA | c33a4aa3f256c86640f100671b750541d3e32071 | f96b01f9dc054cdd80a41fd3223585e9a3818402 | refs/heads/master | 2020-04-01T02:34:50.782712 | 2018-12-22T09:12:56 | 2018-12-22T09:12:56 | 152,785,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,065 | py | from typing import List, Dict, Tuple
from RestApi.Types.Slider import *
from RestApi.Types.YAxis import *
from RestApi.Types.XAxis import *
from RestApi.Types.Dataset import *
from RestApi.Types.Dropdown import *
from RestApi.Types.ControllersList import *
class Chart:
def __init__(self, title, data_provider, con... | [
"anasbar97@gmail.com"
] | anasbar97@gmail.com |
b532663dbe99cf46e6de9766168e7521419f9b32 | c59194e1908bac7fc0dd4d80bef49c6afd9f91fb | /CodeSignal/Python/SlitheringInStrings/ConvertTabs.py | 5e77e7af1f1acf2c9b3f435b15c1daae37a49f38 | [] | no_license | Bharadwaja92/CompetitiveCoding | 26e9ae81f5b62f4992ce8171b2a46597353f0c82 | d0505f28fd6e93b2f4ef23ad02c671777a3caeda | refs/heads/master | 2023-01-23T03:47:54.075433 | 2023-01-19T12:28:07 | 2023-01-19T12:28:07 | 208,804,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | """
You found an awesome customizable Python IDE that has almost everything you'd like to see in your working environment.
However, after a couple days of coding you discover that there is one important feature that this IDE lacks:
it cannot convert tabs to spaces. Luckily, the IDE is easily customizable, so you deci... | [
"saibharadwaja92@gmail.com"
] | saibharadwaja92@gmail.com |
c110808814fde0c43dd4ae98902bdd5618eabd10 | 1282142df9ce9e5808641effbefd8733e4196328 | /modeltraining/migrations/0001_initial.py | 74b8f8560a2a3bd3c9530bbf145d92eae551b850 | [] | no_license | emmethanratty/Detecting-Twitter-Bots-using-Machine-Learning | 6a0f084bd7e8e9b86bc4095dc4ffe4affb4df891 | b2ed97414b3eead3929db66d7fd00864836baf6c | refs/heads/master | 2021-06-19T18:41:59.505548 | 2017-06-10T11:34:30 | 2017-06-10T11:34:30 | 81,451,011 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,508 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-13 16:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='links_... | [
"emmethanratty@hotmail.com"
] | emmethanratty@hotmail.com |
1dad86a2398f0ba35ec7eae771277fb34b70e513 | 196d32dbe3d212974f90fec3fcf58ffbaf6fe654 | /reward/utils/batch.py | 34808a77074f4e623ee0de6058d2c4a6c213cd5f | [
"MIT"
] | permissive | lgvaz/reward | a4f1f418f39102225d7ee00a70fed33f1137051a | cfff8acaf70d1fec72169162b95ab5ad3547d17a | refs/heads/master | 2021-10-10T08:16:29.151557 | 2019-01-08T10:08:57 | 2019-01-08T10:08:57 | 115,865,905 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | import numpy as np
import torch
from torch.utils.data import DataLoader, TensorDataset
from reward.utils.memories import SimpleMemory
from reward.utils import to_tensor, join_first_dims, to_np
from reward.utils.device import get
class Batch(SimpleMemory):
def __len__(self):
return len(self["s"])
def... | [
"lucasgouvaz@gmail.com"
] | lucasgouvaz@gmail.com |
2a11fb54a422b8cf1361ca29a338af7bc9e835c6 | 4d042d123e291927312ee1fe225054ac5428dc9f | /CZ4042-Neural-Networks/Proj2/project2a_3.py | 3e7545c0cac41efc9f2317407a0c11e304d1674d | [] | no_license | ludvigp/CZ4042-Neural-Networks | dec15ade09d5372b0c95b430b7dfbfc58b7cecd7 | 1512acc87fc7a0942896f3d2feedeb091dc8cd1b | refs/heads/master | 2021-09-15T21:44:49.324025 | 2018-06-11T12:23:08 | 2018-06-11T12:23:08 | 104,209,682 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,747 | py | from load import mnist
import numpy as np
import pylab
import theano
from theano import tensor as T
from theano.tensor.nnet import conv2d
from theano.tensor.signal import pool
# 2 convolution layer, 2 max pooling layer, one fully connected layer and a softmax layer
np.random.seed(10)
batch_size = 128
noIters = 100
... | [
"ludvig_pedersen@hotmail.com"
] | ludvig_pedersen@hotmail.com |
99a79788b66c1dd80cd56b60e680e4fe39c60657 | 80e5765bfeff6de009fe20077ce9992b4a3eb3e9 | /main.py | 7c0d1d9f73dd4bd11e2aaadd20781f8999d6889d | [
"MIT"
] | permissive | dschoenberg/planter-mcplantface | 4f2ad0992c75efadce6f6e499178d3724e7740f3 | d40c70b4ca4dc5d94cee30a785b89a907ea0b56c | refs/heads/master | 2021-06-20T00:33:46.851610 | 2021-05-30T02:56:31 | 2021-05-30T02:56:31 | 132,199,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | #!/usr/bin/python
import time
import configparser
import sys
import requests
from Events.EventManager import EventManager
from Sensors.SensorManager import SensorManager
from Sensors.Tempature import AirTempatureSensor
from Sensors.Tempature import AirPressureSensor
from Sensors.Light import LightSensor
s = SensorMan... | [
"dschoenberg@gmail.com"
] | dschoenberg@gmail.com |
a6f4c806afcd4051f0b9bbbeb789868a1ff33345 | fa30d9ed985277f89fea76ab62d8995a03e50682 | /nov2020challenge/LinkedListBinToDec.py | 2273cb66e3be3611588f9828ad91ddf9af8f1e7b | [] | no_license | smahamkl/ScalaSamples | 2e1ade4e6517b180e704a239f66eaf45d9ee7aaa | 4fa2935b546d54a61736ab7d6eefcad61cbf64d4 | refs/heads/master | 2022-05-02T10:13:17.845341 | 2022-04-24T20:51:57 | 2022-04-24T20:51:57 | 146,243,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,046 | py | from typing import List
'''
Given head which is a reference node to a singly-linked list. The value of each node in the linked list is either 0 or 1.
The linked list holds the binary representation of a number.
Return the decimal value of the number in the linked list.
Example 1:
Input: head = [1,0,1]
Output: 5
Expl... | [
"tzones2006@gmail.com"
] | tzones2006@gmail.com |
6221e6442f60ee124158b3eabf124eddb05dd89f | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/100_Interactive_Python_Exercises_to_Boost_Your_Python_Skill/Section 4 Data Structures and Algorithms/Coding Exercise 26 Every Seven.py | 9ed14197470bf07a70e6f73daeff5fd0cbe90d89 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 31 | py | # ___ foo mylist
# r_ ? ||? | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
c008e0806beaccc4d9526eb954576c58d6c04a90 | 98f078b52352ab08a8c9ac08a631a7ff1ac3fa63 | /medeina/medeina/models.py | 7e1e6b0c4f8958eb78d39da777536283f8675ab5 | [] | no_license | Eimis/medeina | 160ceed5044cec5640f272190d2a14d4428f01dc | 3bd838798481f933d729f6104c8b1af29a6f587d | refs/heads/master | 2020-03-08T11:14:11.198773 | 2018-04-08T14:23:29 | 2018-04-08T14:23:29 | 128,092,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,119 | py | from django.contrib.auth.models import User
from django.db import models
from django.utils.encoding import python_2_unicode_compatible
from medeina.managers import IssueManager
from medeina.states import IssueStates
from django_states.fields import StateField
@python_2_unicode_compatible
class IssueCategory(models.... | [
"eimantas.stonys@gmail.com"
] | eimantas.stonys@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.