blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16333d2fe48ad23cc47270a1b8fc53973efafdf3 | 90dc57404ea2e98006adba91f53ea9cc92124bb4 | /spare_parts/forms.py | a6679136c699e7b1b3cdd28e55c4d7b38fcc7460 | [] | no_license | AndreySkryl/flask-test | e57409c779f113980a9acf1c6f9a37be5106e119 | 8979e15789160e65a7ef6123e3ba638e764d8131 | refs/heads/main | 2023-04-24T18:33:59.675028 | 2021-05-10T15:16:56 | 2021-05-10T15:16:56 | 365,334,649 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | from wtforms import Form, StringField, TextAreaField, IntegerField
class SparePartForm(Form):
title = StringField('Заголовок')
price = IntegerField('Цена')
amount = IntegerField('Количество')
description = TextAreaField('Описание')
| [
"ya.skryl@yandex.ru"
] | ya.skryl@yandex.ru |
acd9987a8af8971c0f5e6a6f21ba6d326d4085ef | 167c9d3ebca64efd84a1446e058290e692cf9273 | /problem_sets/TeamManagerDeluxe.py | be8de36d924f445acc209289829c9659f4f6996e | [] | no_license | samanthamedrano/lps_compsci. | c02c9e656191478bf05b0de861c120c4b5ba1886 | 5413ceaf6c1906453c430f5ee1256dde64271d0c | refs/heads/master | 2020-12-24T12:00:38.346729 | 2017-04-25T15:56:13 | 2017-04-25T15:56:13 | 73,104,238 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | # This sets a class so that it can be used later in the code.
class Player(object):
def __init__(self, name, age, goals, jersey_number, position):
self.name = name
self.age = age
self.goals = goals
self.jersey_number = jersey_number
self.position = position
# This makes it so that there can be a stats.
de... | [
"rc.medrano.samantha@leadps.org"
] | rc.medrano.samantha@leadps.org |
fc903e00f7a6a2c56ad2ed1180965cb1057905e5 | 4bb3f4e325b315adaf009f58428f340f66714285 | /LapSol/urls.py | 65a7705f91f38b20814f1eb4364fd91b26c45f48 | [] | no_license | 36Boxes/Lapidus-Solutions | 001c7f0c580ee1a2138e15ac4d3791508c415cfe | 86bea61ca55bb9d9d02226f43eb2b401beeecebe | refs/heads/master | 2022-04-09T04:45:39.555965 | 2020-02-27T11:45:44 | 2020-02-27T11:45:44 | 231,281,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 411 | py |
from django.conf.urls import url
from django.contrib import admin
from django.conf import settings # new
from django.urls import path, include # new
from django.conf.urls.static import static # new
app_name = 'core'
urlpatterns = [
url('admin/', admin.site.urls),
url('', include(('core.urls', 'core'), namespac... | [
"46636974+36Boxes@users.noreply.github.com"
] | 46636974+36Boxes@users.noreply.github.com |
d99d9af55e893c3d9d453189b57c270d38b4a998 | bd3805c139b6f2e7733612c524d84ec15106e38c | /面向对象/1568-学生信息排序.py | fbe854f0519ac7f453ebf67e81a5b9655b83926f | [] | no_license | hurttttr/MyPythonCode | fc0787cfb317f3dbff78488e119a00fce6c69f3d | 339c4648da0265931abf567e91101cbd5ad3e72c | refs/heads/master | 2023-09-04T08:59:40.781407 | 2021-10-12T15:26:55 | 2021-10-12T15:26:55 | 364,437,579 | 2 | 4 | null | 2021-05-05T02:47:15 | 2021-05-05T02:07:22 | null | UTF-8 | Python | false | false | 883 | py | class Student():
def __init__(self, s) -> None:
self.number = s[0]
self.name = s[1]
self.sex = s[2]
self.a, self.b, self.c = map(float, s[3:6])
self.sumgrade = self.a + self.b + self.c
self.avegrade = self.sumgrade/3
def __str__(self) -> str:
return '{} {... | [
"945399100@qq.com"
] | 945399100@qq.com |
5e7fd79ebbe73607afa51ba6a52d8e1ee3a6c9b5 | 2579f37a13cfbb47944c5b81c6e83ca710b29f88 | /Client/config/Client_config_info.py | 4f407858ee9bb1f511c54d87662edd44d4154b42 | [] | no_license | YangQian1992/FTP | 932f32d5ed934bae295bd674757f7af23d0ad1ba | 87d3a78522e7eb8058def1d74d7f32f0f61f1b86 | refs/heads/master | 2020-03-31T16:28:35.146329 | 2018-10-10T06:53:12 | 2018-10-10T06:53:12 | 152,376,641 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | personal_config_info = {
'SERVER_IP':'127.0.0.1',
'SERVER_PORT':8082,
'CODING':'utf-8',#编码方式
'BLOCK_SIZE':1024
} | [
"1289089651@qq.com"
] | 1289089651@qq.com |
e5085e6ad9ef6a050534264f3571d48961143689 | 4180c9db58120a47fd0c79f292727f87b9279b66 | /data/aPY.py | b55fba9e73cedadfb110659bbb9814c1d01f9582 | [] | no_license | EliSchwartz/sp-aen.cvpr18 | 36301deb91dadcc684ba6c86578d9965e4ff7898 | 478c0204c74962e37c4c8d0cb355b2141ee357ee | refs/heads/master | 2020-04-25T03:57:57.640998 | 2019-01-10T14:08:36 | 2019-01-10T14:08:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,998 | py | import cfg
import os
import scipy.io as io
from tqdm import tqdm
import numpy as np
import h5py
import tensorflow as tf
from data_utils import *
from model.resnet import encoder_resnet
from model.comparator import comparator_caffenet
from model.encoder import encoder_caffenet
from utils.path import get_pretrain_encoder... | [
"479364840@qq.com"
] | 479364840@qq.com |
d68340dd457086ac5823e3bb9e81dc90828d2424 | 8c8282bcd7594883e63733339c8adda2ae95de2e | /GENe_Mac/setup.py | 786c24a87b8424e7e2602b0e798c036e9d28b92c | [
"MIT"
] | permissive | newOnahtaN/Genie-GENe-Cataloger | 0a181823f58c89772828a604dd49ed3c9b276a96 | 3d19191e89e1b7543d99b98e39ef78d1743e15ff | refs/heads/master | 2021-01-01T19:55:10.968073 | 2014-07-24T10:15:37 | 2014-07-24T10:15:37 | 20,414,568 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from distutils.core import setup
import py2app
setup(
app = ['GENe GUI.py'],
data_files = ['README.txt'],
options = {'py2app': {"iconfile" : "Lamp.icns"} }
)
| [
"ncowen@email.wm.edu"
] | ncowen@email.wm.edu |
c2abc82b9c03c5aede0c5044168e78866711619c | 6ee1b9179bb7833bac8b6b108a5837340a214b24 | /easydo/Algorithm/M1809/CoreAnalyse.py | dad8bc8cd0c5360b96757150e95862d6d94b5e60 | [
"Apache-2.0"
] | permissive | YinChao126/easydo | 5000ce01c1a00b4b596936ac7099589354e75ac5 | 94f31d1a9540f6caa67abe4486736644729957c3 | refs/heads/master | 2022-12-09T22:43:55.318780 | 2019-03-17T03:52:12 | 2019-03-17T03:52:45 | 157,706,968 | 2 | 3 | Apache-2.0 | 2022-12-07T23:37:30 | 2018-11-15T12:23:15 | Python | UTF-8 | Python | false | false | 19,193 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 14 00:26:21 2018
@author: yinchao
"""
import pandas as pd
from datetime import datetime
import time
import matplotlib.pyplot as plt
#from pylab import *
#mpl.rcParams['font.sans-serif'] = ['SimHei']
import txttoexcel
import numpy as np
import os
class CoreAnalyse:
... | [
"542062320@qq.com"
] | 542062320@qq.com |
9194cddcce2ea92f2338da483fa6b358696c1d3c | 754d88e29f40bed4f8e2fb54083e627c7e851337 | /app.py | 63ce4c31c87b3d620c1cf702eda2151061912211 | [] | no_license | station-10/data_maturity_tool | ea890fdd1cdab550164c1425bdf81f9c59760726 | 50384581fc625db6e672c5e494fa86f4ad113697 | refs/heads/master | 2022-12-11T14:49:32.244228 | 2020-08-21T15:32:20 | 2020-08-21T15:32:20 | 283,246,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | from modules.data_collection import collect_data
print("Welcome to Station10's Data Maturity Calculator")
print("What is the name of the company you would like to assess?")
company_name = input()
print("Please enter the homepage URL for " + company_name)
input_url = input()
print("Thank you")
data = collect_data(inpu... | [
"platten.ben@gmail.com"
] | platten.ben@gmail.com |
f1cd67923e90294c3a5c457d1925664b58b06270 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/exercises/Python_Hand-on_Solve_200_Problems/Section 7 Dictionary/check_key_exist_solution.py | 637344c193288ad01e3c9e4394cbd7653b485f05 | [] | 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 | 753 | py | # # To add a new cell, type '# %%'
# # To add a new markdown cell, type '# %% [markdown]'
# # %%
# # ---------------------------------------------------------------
# # python best courses https://courses.tanpham.org/
# # ---------------------------------------------------------------
# # Check if a given key already e... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
124e7811bb6bc602b4f9ca69144f9e11eeca1a7e | 1baefb4c64eeb8a1dd8a46b873d980844046f38f | /koapy/config.py | d04d295f88ef25fb782520cf634c2f00cd6a4c1f | [
"MIT"
] | permissive | smartkuk/koapy | b8fd6abd70d3697fcbdf9588b73c19900f1d042e | e66b68cb09dc9f8b070c140159a106ab1ed4e23a | refs/heads/master | 2022-12-26T07:17:26.197770 | 2020-10-11T17:48:51 | 2020-10-11T19:06:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | import os
import logging.config
from pyhocon import ConfigFactory
def read_config(filename):
return ConfigFactory.parse_file(filename)
config_filename_cadidates = [
'koapy.conf',
'.koapy.conf',
]
default_config_filename = 'config.conf'
file_directory = os.path.dirname(os.path.realpath(__file__))
default... | [
"kika1492@gmail.com"
] | kika1492@gmail.com |
838567c61815d072e618a7b9e4c3d971f3f43648 | f2e1d2f4b0f1f853027b677957eb1e00665262c9 | /python_intro.py | 6c497751c46b66a07cb3cd0bb59d415fa2d09936 | [] | no_license | Mia2252/my-first-blog | ba21acbc0d45163a2ce65785489ab48128aca039 | 375bf9f7a3863bf56d1f7880afa073d84192a6f4 | refs/heads/master | 2021-01-15T23:59:57.463634 | 2016-09-15T14:23:05 | 2016-09-15T14:23:05 | 68,301,219 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | def hi(name):
print('Hi ' + name + '!')
girls = ['Rachel', 'Monica', 'Phoebe', 'Ola', 'Mia']
for name in girls:
hi(name)
for i in range(1,6):
print(i)
print('next girl')
| [
"lessismore2252@yahoo.co.uk"
] | lessismore2252@yahoo.co.uk |
b0dad98cc918993b31888c8234bf8e6d804cb304 | 40eb94673bb2e015c1640665a639c508279e3df4 | /cursos/_flask/flask/ejemplos/u29/aplicacion/models.py | defde3e73d247258609be8cc99c0eaf13f0671aa | [] | no_license | josedom24/plataforma_pledin | 3ab5c59abd87c90f066ba9164d6d0cbc02ea816f | e0521eb103013e0f8d9e2b2ea50e6acac0d09784 | refs/heads/master | 2023-07-20T15:43:30.796223 | 2023-07-17T19:07:51 | 2023-07-17T19:07:51 | 138,278,487 | 2 | 0 | null | 2023-05-01T20:05:34 | 2018-06-22T08:44:58 | Python | UTF-8 | Python | false | false | 2,007 | py | from sqlalchemy import Boolean, Column , ForeignKey
from sqlalchemy import DateTime, Integer, String, Text, Float
from sqlalchemy.orm import relationship
from aplicacion.app import db
from werkzeug.security import generate_password_hash, check_password_hash
class Categorias(db.Model):
"""Categorías de los artículos""... | [
"josedom24@gmail.com"
] | josedom24@gmail.com |
ee8292982aa0fea19ab4c89f553e0976b7502fe2 | dd78194b9e7db58540bcd534c96917e0be03a13c | /screen/heads_up_display.py | 66528183fa4251138aa078657f7c8e885950ae40 | [] | no_license | Jagermeister/HorizontalHazzards | f2eacbd8a40fe67ec564da2c6581cad2e6f8aac6 | a7f90412b90ed80b3ccdaeaf4e70d6a2556e05c0 | refs/heads/master | 2021-01-19T01:26:40.652372 | 2017-04-01T02:21:55 | 2017-04-01T02:21:55 | 41,710,658 | 0 | 3 | null | 2017-04-01T02:21:55 | 2015-09-01T01:50:11 | Python | UTF-8 | Python | false | false | 3,456 | py | import pygame
from ship.gameobject import *
from weapon.weapon import *
class HeadsUpItem(GameObject):
title = ""
separator = ": "
x, y = None, None
width = None
attribute_function = None
def __init__(self, font, title, attribute_function, x, y, height = 50, width = 200):
self.font = f... | [
"MatthewBrandonYeager+git@gmail.com"
] | MatthewBrandonYeager+git@gmail.com |
8613105db2216ef666f511e6b8b92ddac10d2edf | f9c402a939fad45ab3ad3dfeaf1791f7270e6e60 | /Challenge-1.py | cec9c9cae221b7688cb67ba789c01db805abb5c7 | [] | no_license | MMowafak/QA-Challenges | 230fc11d093263f3ccf32c571de7679c1b168ce6 | b304e2b5305440d50abbf7b4b333e00951a1e20e | refs/heads/master | 2022-11-21T12:19:06.968487 | 2020-07-24T08:14:00 | 2020-07-24T08:14:00 | 280,360,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py |
First_name = ['chris', 'john', 'jason', 'ryan', 'bradley', 'javas', 'thembi', 'jacob', 'chifford', 'wasim', 'mowafak', 'tobi', 'chris', 'samuel', 'ed', 'amanda', 'steven','jack']
First_name.append('luke')
print(First_name[4])
print(First_name.count('chris')) | [
"Mowafak399@hotmail.com"
] | Mowafak399@hotmail.com |
3fd8824da688a313210111232b817a91fcd12c31 | 8712b53ad3b3a7f5adf52ea23a2574c7b063906c | /main.py | f526c292161e0ad1432dd8639990b7cedbd9e31c | [] | no_license | ktssaiteja/gps_parse | ac99bd5f9d0994bdabcb3cab6a51dc4531d02a51 | 75e48f32d4c94d828b55a8d2155e66343dc60844 | refs/heads/master | 2021-05-13T17:10:20.825561 | 2018-01-09T12:49:26 | 2018-01-09T12:49:26 | 116,815,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | import pynmea2
def print_detail(mode, msg):
print(mode)
if(mode=='GGA'):
print("Latitude : " + str(msg.latitude) + " " + msg.lat_dir + "\nLongitude : " + str(msg.longitude) + " " + msg.lon_dir + "\nTimestamp : " + str(msg.timestamp) + "\nNumber of Satellites used : " + msg.num_sats + "\n")
elif(mod... | [
"ktssaiteja@gmail.com"
] | ktssaiteja@gmail.com |
c7417d4cd31dae6cc24b8d56f05388363cd4ec94 | 79ecc705ef2bf543befa75d0843fa1719dfc956f | /venv/lib/python3.8/site-packages/automated_logging/models.py | 6bd7f571222a2a03ab8f02a2aa07c8d57d4eba0a | [] | no_license | obnormal/vkr | cc85fb47ff84911961a4344563acbe3567ec2d8c | 64322fcf81212512a89ac859319580a5e8055f8d | refs/heads/master | 2022-11-23T09:55:12.096272 | 2020-12-04T10:35:08 | 2020-12-04T10:35:08 | 235,219,405 | 0 | 0 | null | 2022-11-22T06:22:34 | 2020-01-20T23:38:22 | Python | UTF-8 | Python | false | false | 6,159 | py | """Database table definitions for the application, everything is logging related."""
import uuid
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.db import models
class BaseModel(models.Model):
"""BaseModel that is inherited from every model. Includes basic ... | [
"kamilgabdullin@gmail.com"
] | kamilgabdullin@gmail.com |
918eeff4891d62333f292bbd6350506b6c0454cf | c917ba108ac26cebf69888dfcbab42d3af0d013c | /official/bert/model_training_utils.py | 128c06d9ee29366dd0d7bdbc526acd3dc35c6d66 | [
"Apache-2.0"
] | permissive | EthanHolleman/models | 4aba7733a9f8bce9a84aa02632e8c036c220f8e5 | 0e2c0f7be465d1db118dbefcaca3bbf5a1c66490 | refs/heads/master | 2020-06-01T05:17:46.751843 | 2019-06-07T19:29:29 | 2019-06-07T19:29:29 | 190,651,569 | 0 | 0 | Apache-2.0 | 2019-06-06T21:23:33 | 2019-06-06T21:23:32 | null | UTF-8 | Python | false | false | 11,407 | py | # Copyright 2019 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... | [
"noreply@github.com"
] | EthanHolleman.noreply@github.com |
39fb305ca0630fcb6789879f6d3045b531d19f26 | e22fd36933c9114a9df1694e7a6274bf059de2a6 | /system/sensord/SConscript | 63d1d0d690987b701624ad0af4ae6666553f2250 | [
"LicenseRef-scancode-warranty-disclaimer",
"MIT"
] | permissive | commaai/openpilot | 66dfb7f31290bc8f58c9ead95d56697a52b45afb | a0b49d54222c52ff0112c402bc0e0d9262e77a66 | refs/heads/master | 2023-09-05T21:34:14.076796 | 2023-09-05T21:15:18 | 2023-09-05T21:15:18 | 74,627,617 | 46,071 | 9,878 | MIT | 2023-09-14T21:51:23 | 2016-11-24T01:33:30 | Python | UTF-8 | Python | false | false | 507 | Import('env', 'arch', 'common', 'cereal', 'messaging')
sensors = [
'sensors/i2c_sensor.cc',
'sensors/bmx055_accel.cc',
'sensors/bmx055_gyro.cc',
'sensors/bmx055_magn.cc',
'sensors/bmx055_temp.cc',
'sensors/lsm6ds3_accel.cc',
'sensors/lsm6ds3_gyro.cc',
'sensors/lsm6ds3_temp.cc',
'sensors/mmc5603nj_mag... | [
"noreply@github.com"
] | commaai.noreply@github.com | |
a6f2f1de33fb5366c4665d5bf68c430377dd8f85 | 8a8536f11bda1dbe23f3eb8c1894e784fa1d47da | /nposiepathos.py | 3f40bb56b193bafd0eedf947374f6dd748f09b7b | [] | no_license | iepathos/iepathos-npos | 6cb4839d44db684f748554f852035da58f598fbf | 9413ef762e80f55bcb84db4e727b73c77716e0e2 | refs/heads/master | 2016-09-05T16:31:05.145121 | 2012-11-16T12:58:18 | 2012-11-16T12:58:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,564 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Written by Glen Baker - iepathos@gmail.com
#
#
# I am a coder, writer, musician and lover follow me @iepathos
#
import MySQLdb as mdb
import sys
import os
def main():
# connect to mysql db - ( host, user, pass, db )
con = mdb.connect('localhost', 'iepathos', 'pathospa... | [
"glenbbaker@gmail.com"
] | glenbbaker@gmail.com |
4fdcea13ce8f33e8631e3a2ac5355110728100ff | b780e18145a21893240b8787b6b582bc64e5fec2 | /qubellclient/private/instance.py | e4f21015b6846af783f4ad45a775420c9b148d83 | [
"Apache-2.0"
] | permissive | dmakhno/contrib-python-qubell-client | 5f38dbada39d218e8bacf701da73ec9ce8eec5d3 | 351276dfd68de857e24d96ee12934005f5b8a509 | refs/heads/master | 2020-12-07T02:33:22.558783 | 2013-11-07T17:12:56 | 2013-11-07T17:12:56 | 14,303,708 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,283 | py | # Copyright (c) 2013 Qubell Inc., http://qubell.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agr... | [
"vkhomenko@qubell.com"
] | vkhomenko@qubell.com |
480c6928af753d2b345f42751c548eaf181799d6 | b1f4c837404784b66de2d8897a4a1ec0e395ec8f | /lib/fathead/jargon/parse.py | da95457bf782e1af2915dda601f30c9e8743d1aa | [
"Apache-2.0"
] | permissive | itsN1X/zeroclickinfo-fathead | 929e9a7868a3c3ce62d7ffd59544f730451712d3 | 71d42c4d4bf9a975d96140ba3c59ebd3d0f5d4f8 | refs/heads/master | 2021-01-09T20:31:48.925369 | 2018-11-15T00:47:49 | 2018-11-15T00:47:49 | 81,249,662 | 0 | 0 | Apache-2.0 | 2018-11-15T00:47:50 | 2017-02-07T20:14:31 | Python | UTF-8 | Python | false | false | 2,131 | py | #!/usr/bin/python3
import bs4
import re
see_also_re = re.compile("\s+(?:\()?[Ss]ee also.*( |$|\))")
nonletter_re = re.compile("[^A-Za-z]")
def trunc(s): #these lengths are completely arbitrary
s = s[:200] #chop at 200 characters
x = s.rsplit(". ", 1)
if len(x[0]) > 160: ... | [
"elebow@users.noreply.github.com"
] | elebow@users.noreply.github.com |
f6ef7121fd75295acf24d8a840dbae5b579b7af6 | 523f20c17abfd8e18947f0e136fcf2af9b723e50 | /network/forms.py | e06e900ba64b09a0f8b4b091c2908edcafb982a2 | [] | no_license | romaniki/project4 | 68e1b26afa59bb9b5df836e26183edbc53e67ad8 | 93903adc4299737657f9d25c801e6a682f209838 | refs/heads/master | 2023-07-17T17:07:25.926645 | 2021-08-28T18:41:01 | 2021-08-28T18:41:01 | 400,865,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | from django import forms
from .models import Post
MAX_POST_LENGTH = 240
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ["content"]
def clean_content(self):
data = self.cleaned_data["content"]
if len(data) > MAX_POST_LENGTH:
raise forms.Validat... | [
"romanos.niki@gmail.com"
] | romanos.niki@gmail.com |
8076de2dc8077701e489be4d165ececb737fe280 | 05eeb35ff56ae20b50cef55c1e0170a53f7c0893 | /algoritmos/a_star_NO_USO.py | ec3d5132a21196c2b5bf05a7752e0b5dfb1c276a | [] | no_license | laurarmoran/Planificacion_Robots | 6766f8b515f4ea426db7808b58251483ba7381ab | 2627b49441a5b663109b1c0f37cd2b36d679451b | refs/heads/master | 2020-04-02T18:56:14.046238 | 2018-11-11T23:58:49 | 2018-11-11T23:58:49 | 154,717,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,661 | py | #!/usr/bin/env python
"""
BSD 2-Clause License
Copyright (c) 2017, Andrew Dahdouh
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, t... | [
"noreply@github.com"
] | laurarmoran.noreply@github.com |
10da254f4b916fe94485339bbb590bc46404c718 | 46e271e27afe50b8b62be0651d78164490911bb3 | /ws_moveit/src/example/example_pkg/scripts/red.py | 1ec501210d7051649bb4e99b72defa0eede3bac3 | [] | no_license | Nidhiks2000/Vargi-bot | 8a43af1e470b6fc84d468003f67471a1e1f47aad | 3e2e7be310ed7372cb6960eea8faabec75d9fbcf | refs/heads/master | 2023-07-24T01:05:10.049800 | 2021-09-08T16:31:08 | 2021-09-08T16:31:08 | 403,935,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,639 | py | #!/usr/bin/env python
import rospy
import cv2
import sys
from std_msgs.msg import String
from sensor_msgs.msg import Image
from cv_bridge import CvBridge, CvBridgeError
import numpy as np
class Camera1:
def __init__(self):
self.bridge = CvBridge()
self.image_sub = rospy.Subscriber("/eyrc/vb/camera_1/image... | [
"Happysunshine.disroot.org"
] | Happysunshine.disroot.org |
fce9ee6dbb59c91417dc56b1a9b52ea0cdc84430 | bdc2a1792445874817bfcb4b017f262dae57e7f0 | /scripts/pdf_parsing/core/utils.py | 0ffc4922e9d1e2e8c8131b35fa5a7c4c4e5a6440 | [] | no_license | ClovisG/avalancheModeling | 58fc3114738ef08b8fa1960fed947720b25556e3 | adf0dec6bb799a8621dc247cb9d7b64cf0266042 | refs/heads/master | 2022-01-15T01:30:57.590269 | 2019-05-20T09:01:13 | 2019-05-20T09:01:13 | 158,809,592 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,539 | py | """
Some tools used here and there in the rest of the library.
Created on 23/02/19
Author : Antoine SANNER
"""
import re
from pandas import DataFrame
class ParsingException(Exception):
pass
class DataFormatException(Exception):
@staticmethod
def assert_format(pattern, text, error_msg):
"""
... | [
"antoine.sanner@yahoo.fr"
] | antoine.sanner@yahoo.fr |
5e1380e7e83fc9ec185495578654737b55934163 | 13f836eb4770d3d2b0e4be27067411a9d71b8e0d | /__init__.py | f61e61e171dabbbe82865b96ec71b02b37e4a5a4 | [
"ISC"
] | permissive | willsion/push_api | b6f5395178543a6139bffa2406a8955b69c8b393 | 91b5ab8f15029a698216791365b2f589dc340d5c | refs/heads/master | 2021-01-15T14:23:45.981417 | 2016-09-07T02:41:35 | 2016-09-07T02:41:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# =============================================================================
# FileName: __init__.py
# Desc: 2015-15/1/7:下午1:32
# Author: 苦咖啡
# Email: voilet@qq.com
# HomePage: http://blog.kukafei520.net
# History:
# ===================... | [
"voilet@voiletdeMacBook-Pro-2.local"
] | voilet@voiletdeMacBook-Pro-2.local |
0868a179fb371ce34300bdb050c211660d4d6b12 | 42f3bc5ca5b6ce1a82465292fe77df90d8432990 | /ClickAction/Click/urls.py | b8512732e1d826f09fd23764ce215f1431b4082e | [] | no_license | BHR3load3d/Clickeable | d9f3a9ca38dc1e3b6b085338b0d1b4fc500cc15e | edb1183f283868f61503623ce98e794d78b2f406 | refs/heads/master | 2023-02-10T10:09:57.376064 | 2020-12-22T19:26:19 | 2020-12-22T19:26:19 | 323,714,856 | 0 | 1 | null | 2021-01-08T12:47:51 | 2020-12-22T19:25:55 | HTML | UTF-8 | Python | false | false | 153 | py | from django.urls import path
from .import views
urlpatterns=[
path('', views.index, name='index'),
path('/carga', views.carga, name='carga'),
]
| [
"torrandel.daniel.ivan@gmail.com"
] | torrandel.daniel.ivan@gmail.com |
33376ec16a750c03a0f9aed679715104a270d556 | c76b88a35bec057090d333c3693061e7f52d207b | /Dossier Python/TP_211_scenario_2.py | b8c0cc9d6e68a11ca25fb2bcb092bd4def1a045b | [] | no_license | Raksii/TP_211_Solarius | b3ca33d3c794f98c807faf8cfff5d075f0f74a12 | e86051644f5c8024789beae1b1fcd7262e529938 | refs/heads/main | 2023-06-04T13:38:29.751272 | 2021-06-17T22:29:59 | 2021-06-17T22:29:59 | 370,713,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,541 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
# Date: Tue 10 jul 2021 17:41:52 CEST
# Author: Hugo Lux
# Last updated by: Hugo Lux
# Last updated date: Mon 14 jul 2021 22:25:52 CEST
# Description : TP211 senario 2
import time
import board
import analogio
import simpleio
import pwmio
from adafruit_motor import servo
... | [
"81249507+Raksii@users.noreply.github.com"
] | 81249507+Raksii@users.noreply.github.com |
d6b165efc97bb5a3b0e1b566bd42d58b34c8ea1a | fe88e67ada736f332a6a1b2e2e679de38ebf8cf2 | /prepro_utils.py | e7f7ea383618a0d64d10b97c7c5c107854c1b85f | [] | no_license | Two222/Bert2Tag | 51c88bf4ebd17e9b7062997a14ac9dc86da60a36 | 9514ebb5f14ac11a4461cc825cd0eec74c3b5b30 | refs/heads/master | 2022-04-09T19:40:49.354269 | 2020-03-31T11:46:34 | 2020-03-31T11:46:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,690 | py | import re
import sys
import logging
import unicodedata
import numpy as np
from tqdm import tqdm
logger = logging.getLogger()
class IdxTag_Converter(object):
''' idx2tag : a tag list like ['O','B','I','E','U']
tag2idx : {'O': 0, 'B': 1, ..., 'U':4}
'''
def __init__(self, idx2tag):
self.idx... | [
"s-sun17@mails.tsinghua.edu.cn"
] | s-sun17@mails.tsinghua.edu.cn |
0ef317ef103f05379beedc801400d2ea40dcb655 | 6636813b872aecd22a4436895bd6258e8bc7962e | /blog/common/__init__.py | 790183b13eb426a5f28a48eec10637807f1fc91c | [] | no_license | vincezkz/Nicething | 26306c77cb88eb169680c7203801030981cdfdec | 817b7b62f5ee442b7f9924aaa265c110a16a52b0 | refs/heads/master | 2023-01-03T15:33:37.321022 | 2017-03-01T08:40:44 | 2017-03-01T08:40:44 | 83,013,873 | 0 | 1 | null | 2022-12-13T14:06:12 | 2017-02-24T07:26:50 | Python | UTF-8 | Python | false | false | 35 | py | from Common.Enum import LoginStatus | [
"1778708359@qq.com"
] | 1778708359@qq.com |
0e9a6045a2362d065081c5500d5d393802d714e4 | 61bd056838a7140b2b1fb574f7d2c9ea0b4accea | /calculator.py | adb20a003b8101702f999815656efc736aa4b034 | [] | no_license | anoda-nii/Calculator | 688f90462c90d5b94c5ebb5e86dd5a750082db86 | 960a87d3b10d18d2a6355fba3b3bd4ffa0c7941b | refs/heads/master | 2022-11-12T14:09:43.049710 | 2020-06-30T21:46:04 | 2020-06-30T21:46:04 | 270,901,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,102 | py | # Calculator.
def cal():
print("This is a calculator.")
print("You choose a number, then a sign and then the last number. The signs can be plus, minus, times, **, division and modulos.")
num1 = int(input("Number 1 --> "))
sign = input("Sign --> ")
num2 = int(input("Last number --> "))
if sign == "+" o... | [
"ninnorts@gmail.com"
] | ninnorts@gmail.com |
1d5d22515ceb69a934cb6bae79eabbf50bc1f463 | 47744b621bd0bc03f2eb6c0fead3ad2347a70aac | /ud120-projects/k_means/k_means_3_features.py | 54960b687f087c22669e3e9627fb3600a5022b27 | [] | no_license | shivam04/udacity-intro-to-machine-learning | 55be33ab1c426d7578bac4cf6c23486feca52c0d | 5e3a535bc31ec3d29088db832a0fa921a6b4b467 | refs/heads/master | 2020-04-06T04:20:40.663517 | 2017-06-24T07:46:43 | 2017-06-24T07:46:43 | 82,966,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,623 | py | #!/usr/bin/python
"""
Skeleton code for k-means clustering mini-project.
"""
import pickle
import numpy
import matplotlib.pyplot as plt
import sys
sys.path.append("../tools/")
from feature_format import featureFormat, targetFeatureSplit
def Draw(pred, features, poi, mark_poi=False, name="image.png", f1_n... | [
"sinhahsivam04@gmail.com"
] | sinhahsivam04@gmail.com |
5257dcbf73054ac4ce25a53a24caaaaf2db5d8f7 | b245d49aa7739f40b568e9f4da82dff12954f548 | /jobs/app.py | 5a548277441b288c6c0099f020b62f134ef68196 | [] | no_license | EABelle/PythonFlask-JobBoard | 274cf22b650c395e9d5c45d926ed607b4e7df03f | eb9a3c6f7733ec05960798ee11914569d2ad5b7c | refs/heads/master | 2020-04-28T18:01:42.114017 | 2019-03-13T18:33:40 | 2019-03-13T18:33:40 | 175,465,617 | 0 | 0 | null | 2019-03-13T17:11:12 | 2019-03-13T17:11:11 | null | UTF-8 | Python | false | false | 907 | py | from flask import Flask, render_template, g
import sqlite3
PATH = 'db/jobs.sqlite'
app = Flask(__name__)
def open_connection():
connection = getattr(g, '_connection', None)
if connection == None:
connection = g._connection = sqlite3.connect(PATH)
connection.row_factory = sqlite3.Row
return co... | [
"esteban.bellegarde@gmail.com"
] | esteban.bellegarde@gmail.com |
22b935118aea1f6064aed8ed1f656dded1d82d8f | 34576cc7c6b63bb6835d90463cb8c26119b1f0fb | /scripts/ser_upload.py | 7ef3f141515334a83c0628bef4c8acac87db9d8d | [] | no_license | kennyz/nullbox | 9f52fa173ede840967ea3a2bde2e1039eaa36deb | 0766af3504d720399a2c783ee5e7d906d8f8e9c6 | refs/heads/master | 2021-01-01T19:20:31.420583 | 2013-06-23T15:30:34 | 2013-06-23T15:30:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,888 | py | import time
import serial
import smtplib
import xively
import datetime
import re
import os
TO = 'putyour@email.here'
GMAIL_USER = 'putyour@email.here'
GMAIL_PASS = 'putyourpasswordhere'
SUBJECT = 'Intrusion!!'
TEXT = 'Your PIR sensor detected movement'
ser = serial.Serial('/dev/ttyACM0', 19200)
XIVELY_APIKEY=os.ge... | [
"kunfirst@gmail.com"
] | kunfirst@gmail.com |
443aa5544b3be24fc81ef6c5bcdf09e46f936326 | 7b6b9a5822872821d3abead56cf2496240c60a08 | /Python/MITX/6.00.1X/findLowestPayment.py | 9b9221ce13ef41f8e7adef5cd81eefe4bf465191 | [] | no_license | jpark527/Fall2018 | 350e4f1a30d3654d8ca98a0442c75d618f433e5b | 44c7045647a574618568ce6e62d1d88dfdbc6fd6 | refs/heads/master | 2020-04-15T02:55:03.738539 | 2019-02-21T17:47:30 | 2019-02-21T17:47:30 | 164,328,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Sep 16 19:59:10 2018
@author: j
"""
balance = 3926
annualInterestRate = 0.2
mthlyInterestRate = annualInterestRate / 12.0
def balanceLeft(balance, prevBalance, mthlyInterestRate, fixedMthlyPayment, mth):
prevBalance = balance
mthlyUnpaidBalanc... | [
"j@JMac.local"
] | j@JMac.local |
3d58564f59cc7545e123c7b43ced16f47ae28d5d | 5f17d3b4538b243c957dd6f4630e8387d85710be | /cgi-bin-files/histomap/getAttachments.py | e1db225f060e3ce09c279f71d9ab628fadcb7a31 | [] | no_license | krissu2173/histomap | fe01eaf070d701e3877bd42ab8c7fbf717f353df | 36de73f508699d03d4f176c06eae5370c6a72c63 | refs/heads/master | 2021-01-01T16:31:19.977384 | 2014-05-28T18:41:57 | 2014-05-28T18:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,487 | py | #!/usr/bin/python
def jsonstr(data):
if data:
try:
data = str(data)
except Exception, e:
data = data.encode('UTF-8')
return str(data)
else:
return ""
import cgi, sys, sqlite3 as sqlite
import cgitb; cgitb.enable()
attachment_fields = ['attachment_id','attachment_fileName','attachme... | [
"Kristina@Kristina-PC.(none)"
] | Kristina@Kristina-PC.(none) |
ec1ff974949d84acfe1277e786b564a0462c7d31 | c20a7a651e63c1e7b1c5e6b5c65c8150898bbaf2 | /OJ/LeetCode/74. Search a 2D Matrix.py | bafc00d5a9be337a73709ca26357f10eba16536e | [] | no_license | Nobody0321/MyCodes | 08dbc878ae1badf82afaf0c9fc608b70dfce5cea | b60e2b7a8f2ad604c7d28b21498991da60066dc3 | refs/heads/master | 2023-08-19T14:34:23.169792 | 2023-08-15T15:50:24 | 2023-08-15T15:50:24 | 175,770,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 712 | py | # 剑指offer出现过
# 矩阵每一行都是左到右递增,每一列都是上到下递增,所以从左下角开始,类似二分查找
class Solution:
def searchMatrix(self, matrix, target):
if matrix == []:
return False
height, width = len(matrix), len(matrix[0])
i, j= height-1, 0
while 0<=i<=height-1 and 0<=j<=width-1:
if 0<=i<=height-1... | [
"cyk19951@gmail.com"
] | cyk19951@gmail.com |
6c7aa9e75a3628aa099c2c75c75c9a916f560f57 | cb061adb7b7b2bf4b0c068dced7d7b0abbe5af43 | /application/CanTestService/CanTest_routes.py | 742db32727bbdbefaec0e30f2e6313bd477fe2e0 | [
"Apache-2.0",
"MIT"
] | permissive | ahmadhmirza/MasterThesis_ESM | 9b3c8820e48bf991f0e6b100f961556d2fdf9509 | a79077787a98f65d4bf501f6eab718e1c2556a5d | refs/heads/master | 2022-12-10T11:06:43.986000 | 2020-08-25T19:58:53 | 2020-08-25T19:58:53 | 290,149,142 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,831 | py | # -*- coding: utf-8 -*-
#############################################################################
# #
# ROBERT BOSCH GMBH #
# STUTTGART ... | [
"ahmadhasanmirza@gmail.com"
] | ahmadhasanmirza@gmail.com |
3817a70832efcb1ba2460ff4fc78c4dd72572e17 | 9ab31a38f99afa497f9884cdc2f23e6890e637db | /check_speed/wsgi.py | aa34d167c0586d28051dd1dcd2855779c0fee8a3 | [] | no_license | ikasymov/check_speed | fe3bbb3e2440c36348ca8dac693b302b3c91bab1 | df99941b2d07c4bc8c03a113e124c5e4d8a66768 | refs/heads/master | 2020-04-03T10:26:42.317317 | 2018-10-29T15:58:48 | 2018-10-29T15:58:48 | 155,193,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | """
WSGI config for check_speed 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.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"ilgizkasymov@gmail.com"
] | ilgizkasymov@gmail.com |
01fc44af049e6ec35a932b0a48093df2f73ba151 | c226e85a914fd1491184e4fa9b66baff045598f8 | /cosmodc2/triaxial_satellite_distributions/monte_carlo_triaxial_profile.py | d243372d1a3d8d286dec0448b6f8d336b9d6c1a5 | [
"BSD-2-Clause"
] | permissive | ArgonneCPAC/skysim | c14c384479b600604214f1b2cd2aa37150634fd4 | f271debe3439efd1ae5230c6020b2dbc5f79d824 | refs/heads/master | 2022-12-25T15:36:22.815826 | 2020-10-07T23:44:27 | 2020-10-07T23:44:27 | 294,200,975 | 0 | 0 | BSD-2-Clause | 2020-10-07T23:44:29 | 2020-09-09T18:49:45 | Jupyter Notebook | UTF-8 | Python | false | false | 2,706 | py | """
"""
import numpy as np
from .monte_carlo_nfw import nfw_profile_realization
from halotools.utils import elementwise_norm
from halotools.utils import rotation_matrices_from_vectors, rotate_vector_collection
def generate_triaxial_satellite_distribution(
host_conc, host_Ax, host_Ay, host_Az, b_to_a, c_to... | [
"ekovacs@cooleylogin2.fst.alcf.anl.gov"
] | ekovacs@cooleylogin2.fst.alcf.anl.gov |
75ae57ff4ee114e75afc618e0e52b41489e7628d | f6e2744ba52b0655d82071edc741d36cb840e1ff | /Lab1/DataGenerator/CsvParser.py | 50f2e1699047b5e143d5ee2e059879b9de1ecd62 | [] | no_license | PinarTurkyilmaz/SDM-Lab1 | abb77192cf4c85b1751263e1939434cb2de8d3c2 | 0df7b8d2c47d588e15633a684c857ddda5ebefa7 | refs/heads/master | 2020-04-28T18:15:46.867738 | 2019-03-13T18:28:40 | 2019-03-13T18:28:40 | 175,473,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | import csv
with open('Populate.csv', 'r') as csv_file:
csv_reader = csv.DictReader(csv_file)
with open('Cititation.csv', 'w') as new_file:
fieldnames = ['title']
csv_writer = csv.DictWriter(new_file, fieldnames)
csv_writer.writeheader()
for line in csv_reader:
del li... | [
"pinar.turkyilmaz@estudiant.upc.edu"
] | pinar.turkyilmaz@estudiant.upc.edu |
535a0d384413555d6ce3b21e14e880baf41f5e98 | cc3691efcfdd6bd3645eac8f140bc2b453576d09 | /transit-gw-example/transitgw/jump_server.py | 31dc3d13a20db92e19dc98618ec67d42cf46fa1c | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | philbasford/adv_networking_demos | ba6e3061941945707d8c18d38a6816195e94f5da | 4d00cdbcdc563434f9e57bcb27217ee0d8b787be | refs/heads/main | 2023-06-04T05:58:47.643304 | 2021-06-23T16:40:52 | 2021-06-23T16:40:52 | 379,668,135 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,870 | py | """The following file is released under the Apache 2 Licence, see LICENCE.txt."""
from aws_cdk import (
aws_ec2 as ec2,
aws_iam as iam,
core as cdk
)
class JumpServer(ec2.Instance):
"""The Jump Server.
This allows SSH access from the internet and you can run your ping to other instances
Arg... | [
"phil@inawisdom.com"
] | phil@inawisdom.com |
8bb8872a18f1c5eafc368fbb1198a76a957a0687 | 9a41558b414f404c119e504df8b3627e37c8b8d0 | /nappy/mkcell/cell_maker.py | 1f0d2845cb9176af52414be290c4d573aef49319 | [
"MIT"
] | permissive | medgbb/nap | c5dfd099d301d72c87006b436376ed862df566b2 | 6e7b5c47fd33fed1ebf7a8c3890b2a7921101213 | refs/heads/master | 2022-12-10T01:26:12.329772 | 2020-09-10T02:50:49 | 2020-09-10T02:50:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,797 | py | #!/usr/bin/env python
"""
Make typical crystalline structures of conventional cell.
Usage:
cell_maker.py (sc|bcc|fcc|hcp|dia|nacl|zb|wz) [options]
Options:
-h, --help Show this help message and exit.
-s, --size=SIZE
Number of copies of the unit cell, in comma-separated format, nx,ny,nz. [default:... | [
"ryo.kbys@gmail.com"
] | ryo.kbys@gmail.com |
ce142906b85e1f5015cfa0e167728a94b755c0fe | a4066c4ab5f2d1519030a51717688f43dada0040 | /apps/funcionarios/migrations/0001_initial.py | df3cb5f524212a1bd60256afa9d01dd7cd7b61d7 | [] | no_license | AlexPires1/gestao_rh | 641d0a978b5028076741be8f6d7b49bf2a21d78f | 597cd8b7f1816590690e44dc1b0beadbe21bf944 | refs/heads/master | 2022-12-01T23:48:01.744040 | 2020-03-02T19:25:15 | 2020-03-02T19:25:15 | 201,318,685 | 0 | 0 | null | 2019-12-05T00:11:44 | 2019-08-08T18:51:10 | JavaScript | UTF-8 | Python | false | false | 1,036 | py | # Generated by Django 3.0.3 on 2020-02-22 19:32
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('departamentos', '0001_initial'),
('empresas', '0001_initial'),
... | [
"alexpirespereira747@gmail.com"
] | alexpirespereira747@gmail.com |
307d8c39d91a2446e236e83d6e276a15a26867b6 | 0cec6c92e5bc02ab4ae7dd12798621be09a4a1d0 | /04kHz/lson25RM1c.py | 7d3ab0118147cbdb5a8897b88bf74918d49c6829 | [] | no_license | AndrewBrughera/LSO_Transposed_Tones | cbdbbef4cffc866f6a0f07c33a1f0a161654c70a | 7911bfd447eeb3135b83d2f37cb6af8d3b4fc08d | refs/heads/master | 2023-08-29T12:08:20.302198 | 2021-10-12T19:50:17 | 2021-10-12T19:50:17 | 242,373,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,707 | py | # -*- coding: utf-8 -*-
"""
Model LSO Neuron Type 1c - Andrew Brughera 2019 January to June,
a modified Wang & Colburn (2012) model.
Based on the Cochlear Nucleus neuron model of Rothman & Manis 2003,
as implemented by Romain Brette, and downloaded from the Brian2 website
on Sat Jan 13 10:02:04 2018.
----------------... | [
"52719326+AndrewBrughera@users.noreply.github.com"
] | 52719326+AndrewBrughera@users.noreply.github.com |
07d0b39146ea6065f2b0c58807ac66f5d96a0bdf | 568af6a97c4dab00c8ff2a3c9e608fc8f912e2c1 | /207.py | 6339a2b201d487598fa68a3aeab974e43718e875 | [] | no_license | Deepakdk7/PlayerSet21 | b619e51ce2b601f3b5b46d188417a9a5a377a4ad | c01a6d69108cc8ce099b09c5d025e4828b6dab71 | refs/heads/master | 2020-06-08T16:22:08.421915 | 2019-06-25T16:19:15 | 2019-06-25T16:19:15 | 193,262,306 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 58 | py | ax=list(map(int,input().split()))
print((ax[0]*ax[1])//2)
| [
"noreply@github.com"
] | Deepakdk7.noreply@github.com |
99185c65e8bc7b5ea2554c66d8881f5c4958e2dc | bc71273c1d7300915906ec893427a4c4e19ec043 | /xblock_development/env/lib/python2.7/site-packages/fs/opener/ftpfs.py | 9e33b70e2860e6ccade68bff0b2d189ef58eaeef | [] | no_license | GitKelley/StaffUngradedAssignment | 2c3088db16aa00e061ac8b6ee27d587a114f165b | 0d7e26256421c9122367366d85e5d8f490256d35 | refs/heads/master | 2021-01-01T18:00:25.695194 | 2017-07-26T14:42:06 | 2017-07-26T14:42:06 | 98,221,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | # coding: utf-8
"""Defines the FTPOpener."""
from ._base import Opener
from ._registry import registry
@registry.install
class FTPOpener(Opener):
protocols = ['ftp']
def open_fs(self, fs_url, parse_result, writeable, create, cwd):
from ..ftpfs import FTPFS
ftp_host, _, dir_path = parse_result... | [
"johncharleskelley@gmail.com"
] | johncharleskelley@gmail.com |
fac2564f77072accc1726cbb112a6cd0a1793e1b | 486851d4f5ce8878b52e549d0de43e83bea2118f | /userstories/migrations/0002_auto_20150530_0408.py | 6a483d3d435a86a9019b4706594f521940c536e3 | [] | no_license | lokolte/SGP | 91b2b14d6084ebb664c27883f4b741ef773d7ad8 | c5ab143c0ef124e5cba51db0b3dc2c5c08f82387 | refs/heads/initial | 2021-01-15T23:27:21.008102 | 2016-05-13T21:04:35 | 2016-05-13T21:04:35 | 32,771,247 | 0 | 1 | null | 2015-03-24T02:25:24 | 2015-03-24T02:25:22 | Python | UTF-8 | Python | false | false | 1,209 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('userstories', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='userstory',
name='h... | [
"chuchosoft.239@gmail.com"
] | chuchosoft.239@gmail.com |
bd4dd82d1d0313844dd7f685c32923ba9e7e8a9b | 4dd8899d2bb21740ede3ea4ed5faf8ec17966b2a | /python/równanie.py | 16ab775da05db913bff4fe693a210408d48dd8f2 | [] | no_license | KgorIucharski/gitrepo | 27f7b32dfe8f58c022c468ac30833771deb3aa3e | bc191de8ad68d09dd4980ab1ef9a981bcf4c59e8 | refs/heads/master | 2020-07-24T19:29:02.263858 | 2020-03-11T10:40:48 | 2020-03-11T10:40:48 | 208,024,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
#
#
def main(args):
a = int(input("podaj liczbę a: "))
b = int(input("podaj liczbę b: "))
if a == 0:
if b == 0:
print("nieskończenie wiele rozwiązań")
else:
print("równanie sprzeczne")
else:
x = -b ... | [
"igorkucharski@lo1.sandomierz.pl"
] | igorkucharski@lo1.sandomierz.pl |
7035acb8a40194eba9b97b8e70803602562936bc | a13ffbab0f24047e43f003131b06052c4a29adff | /Chapter_07/shop/admin.py | c416b49b87b43f83b8f9e5857d303c64c142eaee | [
"Unlicense"
] | permissive | codingEzio/code_py_book_django2_by_example | 58a02b7b8e6a549804834d28488412243df94ea2 | d215d0c87a557685824286822186966b06fa8d59 | refs/heads/master | 2020-04-09T18:24:58.821192 | 2019-01-24T08:49:26 | 2019-01-24T08:49:26 | 160,511,430 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 964 | py | from django.contrib import admin
from parler.admin import TranslatableAdmin
from .models import Category, Product
@admin.register(Category)
class CategoryAdmin(TranslatableAdmin):
"""
For the "translated_fields", you need to
use `get_prepopulated_fields` instead of `prepopulated_fields`
... | [
"assassinste@gmail.com"
] | assassinste@gmail.com |
5ae1855ac38d6e09a2912d4071b0245447cb09e1 | 94c87557a47f5f32ab32b2aabf673e15278c48eb | /banco_do_brasil/segmentos/segmentoR/dados_debito/agencia.py | 6677f49f88dfb271d44eed4306cd27eeb392192b | [] | no_license | arannasousa/pyfebraban | 993c54b4d193e0c941675083eca71d2394880133 | 08b8e481b10f2075d3d4c560e20728ff929f3384 | refs/heads/master | 2021-01-20T15:18:15.265245 | 2017-05-09T13:34:09 | 2017-05-09T13:34:09 | 90,746,167 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | # coding=utf-8
"""
Desenvolvedor: asantos
E-mail: Arannã Sousa Santos
Mês: 04
Ano: 2015
Empresa: TINS - SOLUCOES CORPORATIVAS
"""
__author__ = u'asantos'
from .....febraban.segmentos.segmentoR.dados_debito import agencia
class Agencia(agencia.Agencia):
def __init__(self, lote=u'0001', num_seq=u'0... | [
"arannasousa@hotmail.com"
] | arannasousa@hotmail.com |
c72e1f3557701e0ca31eeef3fe8548e844f047ca | 8228ca989c4e13b9df44dce554c8a245eaf25bcf | /conf.py | 3ffec899050886126c23d47dfe234aafdae9af24 | [] | no_license | bakfoo/books | 7df0ca3c322c0e59a40f3ae252d00f57b5d1dfc2 | 65cfda5ca284b9b6feefc69e1d97beeb21602a7a | refs/heads/master | 2021-01-16T00:56:47.713007 | 2013-03-10T08:48:50 | 2013-03-10T08:48:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,735 | py | # -*- coding: utf-8 -*-
#
# book documentation build configuration file, created by
# sphinx-quickstart on Sun Mar 10 17:48:23 2013.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
# autogenerated file.
#
# All co... | [
"kashino@bakfoo.com"
] | kashino@bakfoo.com |
cb30d3971b49179b89cbc7a4a2cdb63ba08097e3 | 809de46f06d8aa23bf5b67e13350b4b107fa542b | /RL/rl1/player.py | 81ca2e5978c6047f5522d4596a63999944ab8124 | [] | no_license | marcuscollard/DD2380 | 5b3eaca089562d07ae248d185af71454613486bf | c3980f69b93c85dbb513826467e3525f4d8aee54 | refs/heads/master | 2023-08-13T09:58:52.297608 | 2021-10-14T11:17:06 | 2021-10-14T11:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,604 | py | #!/usr/bin/env python3
import random
import numpy as np
from agent import Fish
from communicator import Communicator
from shared import SettingLoader
class FishesModelling:
def init_fishes(self, n):
fishes = {}
for i in range(n):
fishes["fish" + str(i)] = Fish()
self.fishes = ... | [
"owilen@kth.se"
] | owilen@kth.se |
10235b766b57b8782da3f63d9d3d2e56e9ca1e9b | 5819ef711b4b65d589967b253f44f9af4f4b9e07 | /src/thumbs_up/thumbs_up_firmware.py | 9dc3e3e48707209675554f0e32b343918fcf6b79 | [
"MIT"
] | permissive | rbs-aob/Karta | 865131d9424a2c05bb5c202e14d153ed738a3b41 | a8af10311124e2df51d0dc9a58f8f4415ccdbaae | refs/heads/master | 2020-08-18T22:52:38.181861 | 2019-10-17T18:02:09 | 2019-10-17T18:02:09 | 215,844,099 | 0 | 0 | null | 2019-10-17T17:02:58 | 2019-10-17T17:02:58 | null | UTF-8 | Python | false | false | 8,354 | py | import sark
import idc
import logging
from elementals import Logger
from analyzer_utils import *
from analyzers.analyzer_factory import createAnalyzer
##
# Taken from Karta :)
##
class IdaLogHandler(logging.Handler):
"""Integrate the log messages with IDA's output window."""
def em... | [
"eyalit@checkpoint.com"
] | eyalit@checkpoint.com |
ea590224b5586f898dbc17f6cb755bd3676f56a1 | ee01a1f16e63483ebfd304b838f015f9f2d168b7 | /streamtools/web/main.py | 0188e48a1b050926b6b4c97b32e5a60899ae5eef | [
"MIT"
] | permissive | mariocesar/stream-tools | 284aa494676d27204d71da3a0bdb9a196bcab861 | 384c10d364d8b40b9dfa15eeebed15da6f90ed31 | refs/heads/master | 2022-12-22T14:52:01.033784 | 2021-07-19T01:32:17 | 2021-07-19T01:32:17 | 250,092,686 | 1 | 1 | MIT | 2022-12-12T08:22:55 | 2020-03-25T21:14:04 | Python | UTF-8 | Python | false | false | 867 | py | import asyncio
from asyncio import Queue
from aiohttp import web
from streamtools.relay.main import fetch_events
routes = web.RouteTableDef()
@routes.get("/ws/")
async def websocket_handler(request):
ws = web.WebSocketResponse()
await ws.prepare(request)
task = asyncio.create_task(fetch_events(request.... | [
"mariocesar.c50@gmail.com"
] | mariocesar.c50@gmail.com |
5b7af3bfaa504580453715397cc077e893e542ed | c2a65b3b34d52d5c651b42a452455467746fefd2 | /plugins/ondemand_send_mail.py | 970177f719727c7dd7049c6f33da810641b74611 | [] | no_license | evowilliamson/python-data-analysis | c18f60a137ef1d552727d3e9d0609a87ea6cc45d | c1f0d0b5e647bbeb84430af6019404fe181a07a9 | refs/heads/master | 2020-04-20T07:43:28.712564 | 2019-12-15T16:17:33 | 2019-12-15T16:17:33 | 168,717,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | from tools.ondemand.config import Config
from tools.ondemand.dao.dao import Dao
from tools.ondemand.email_processor import EmailProcessor
def send_mails():
config = Config.instance()
config.load()
EmailProcessor.instance(Dao.instance().get_all_requests()).process()
# send_mails()
| [
"ivo_willemsen@hotmail.com"
] | ivo_willemsen@hotmail.com |
e13aab2d4332ec9565193a0a391a97af511537be | ab7e8083d9e0a7e05010da62d795646d69a55138 | /data_analyse/numerical_to_categorical.py | eece8dcaff45cb67bcdc352a28f0a32c12f45d83 | [] | no_license | CaptainZP/risk_prediction | 1b7f517a0f15cd7826462b3b0426a8c32ae5e3a7 | 39965f7cd0949d52ed404aacc4c5be418fd98194 | refs/heads/master | 2020-04-09T17:30:04.530422 | 2018-03-07T13:17:03 | 2018-03-07T13:17:03 | 124,237,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 916 | py | import pandas as pd
# 与 numpy 的ndarray数据相比,DataFrame数据自带有行列信息
df = pd.DataFrame({'id': [1, 2, 3, 4], 'raw': ['a', 'b', 'a', 'd']})
print(df)
df['grade'] = df['raw'].astype('category')
print(df)
print(df.dtypes)
df['grade'].cat.categories = ['very good', 'good', 'bad'] # Categorical类型数据重命名为更有意义的名称
print(df)
... | [
"noreply@github.com"
] | CaptainZP.noreply@github.com |
800a18657ea413356da195756d4633044b38b5be | 533756349fbe39f3444d816e92011b1c7ef7d607 | /cameratest/cameratest03.py | c9ce450c632941dfa5e864de493233aae69ffcf3 | [] | no_license | judysoominhan/Raspberry_pi | 8563f4b17511ace2e5cea7775501b3c8f49e52fe | bc69f040c8c75f0e3b35b66e3f9f1c4635944c7b | refs/heads/master | 2021-01-16T21:04:13.439983 | 2016-06-17T08:14:46 | 2016-06-17T08:14:46 | 61,354,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | import time
import picamera
with picamera.PiCamera() as camera:
camera.vflip=True
camera.start_preview()
time.sleep(5)
camera.capture('/home/pi/image.jpg')
camera.stop_preview()
| [
"6533574@naver.com"
] | 6533574@naver.com |
4812a29670ce2e0cf17fc36ac81963e2417bd25e | 23d1be3a39230aaad45e988033282aad7bf80377 | /tortuga_kits/simple_policy_engine_6_3_0/web_service/controllers/ruleController.py | 8cff48467b0787e7f7cf80ca717e2156a413cd35 | [
"Apache-2.0"
] | permissive | thesystemninjaneer/tortuga-kit-simple_policy_engine | 0b30cb95a09919442391954364550275884524b3 | 55317025e7b31fce20f9514339d04e523e0aae22 | refs/heads/master | 2022-12-02T13:44:42.871308 | 2019-07-04T17:29:47 | 2019-07-04T17:29:47 | 287,007,747 | 0 | 0 | null | 2020-08-12T12:27:09 | 2020-08-12T12:27:09 | null | UTF-8 | Python | false | false | 7,902 | py | # Copyright 2008-2018 Univa Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in... | [
"dtougas@univa.com"
] | dtougas@univa.com |
0773caa9602074a48ee84872ac811a99c902e8d8 | 84cf141c082060906d21e8b72b530a9f1ba0411d | /main.py | 3d15d389c2bd4ee65787af33b51fdcf4bfe41555 | [] | no_license | Dtoce/zirnis | 161df0d6ee0a9ae0f47e46ea7c728eccd92050c7 | fc33a53c4a8bb6a346ac902cf06abf003f2f16dd | refs/heads/master | 2021-01-08T18:47:36.810926 | 2020-02-20T19:27:18 | 2020-02-20T19:27:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from flask import Flask, render_template,request
app = Flask(__name__)
@app.route('/')
def home():
return render_template('home.html')
@app.route('/about')
def about():
return render_template('about.html')
@app.route('/table')
def table():
return render_template('table.html')
@app.route('/contact')
def contact(... | [
"valters.huns@grobinasskola.lv"
] | valters.huns@grobinasskola.lv |
cbab6a1364c6b08a9f7ffbd0230b4402d0eff2c7 | 8f677e24b71cbad23f360335c1f93763e0749552 | /tmp/FriedoApp-master/nameinprofile.py | fac1db0a656cb2f3eec30cc416e80b92846f156e | [] | no_license | sagarpatel26/friedo | b72fb748c50443d73f6384d8c8c80fda28058b11 | c776ea38c4b9b53161a970861a28b6527c95a45a | refs/heads/master | 2021-05-01T16:24:53.554098 | 2017-04-30T08:49:51 | 2017-04-30T08:49:51 | 68,012,769 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | import json
a = {
"interests": {
"books": "3,6,9,12",
"dreamcity": "3,7,9,13",
"dreams": "3,4,7,9",
"food": "1,4,6,9",
"hate": "3,4,6,0",
"hobbies": "1,7,8,13",
"movies": "3,4,7,11",
"tvshows": "3,8,0,0",
"user_id": 3
}
}
key_index = {
... | [
"sagar.pp6@gmail.com"
] | sagar.pp6@gmail.com |
d86687cc25b4600fb7c01bc05e4bae1cc3167de3 | d3a8b3a172e2fbb1717673c75fe0d07c56423e25 | /DP_Notes/c_code_1.py | 52b8690757b704f76f9ba28e9be417f1e8311e7d | [] | no_license | sreekanthreddyv/Design_Pattern | 98d3bd6f94e54a5395aa4ceec491b64bb7d7df31 | 443ba66a7c626bfc10c985f741648403a8111a4b | refs/heads/master | 2020-12-12T02:42:24.565639 | 2020-01-15T07:25:41 | 2020-01-15T07:25:41 | 234,021,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,104 | py | import json
import xml.etree.ElementTree as etree
class JSONDataExtrator:
def __init__(self, filepath):
with open(filepath, 'r') as f:
self.data = json.load(f)
@property
def parsed_data(self):
return self.data
class XMLDataExtractor:
def __init__(self, filepath):
self.tree = etree.parse(filepath)
@p... | [
"sreekanthreddy.v@live.com"
] | sreekanthreddy.v@live.com |
98d4f83367c0c286914ad9a1c025650fefb1e43f | 8e2a6d9e2516dd255d744f28ad2914600360f368 | /service/werkzeug/exceptions.py | 2b1bd82df01b0d4d41e44d7385763c665977c2df | [] | no_license | parker1333752/svc_analyzer | 53ad42185f06792819d0efcd34f489aa06ee90cf | 6802af47309a8ef77e2f330b5f0a35443ba90473 | refs/heads/master | 2020-05-31T06:33:19.324707 | 2015-06-05T06:46:43 | 2015-06-05T06:46:43 | 34,787,856 | 1 | 0 | null | 2015-05-20T12:45:32 | 2015-04-29T10:34:21 | Python | UTF-8 | Python | false | false | 19,194 | py | # -*- coding: utf-8 -*-
"""
werkzeug.exceptions
~~~~~~~~~~~~~~~~~~~
This module implements a number of Python exceptions you can raise from
within your views to trigger a standard non-200 response.
Usage Example
-------------
::
from werkzeug.wrappers import BaseRe... | [
"524993618@qq.com"
] | 524993618@qq.com |
5b520f3cea40f18d95218ff037689e1c0029f046 | 832bc16059a98c2efe979b5aa3655b768dee14ad | /hooker/remoteworker.py | 85c089573ccc476e55959e13baeec10798cb2761 | [] | no_license | vickleford/hooker | 9edad7007a47f97bf21bfc4507a9ca0046a42188 | 620b0ae989b257ba202729475fa0686068e51851 | refs/heads/master | 2021-01-25T04:08:22.177200 | 2013-03-19T22:19:06 | 2013-03-19T22:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,966 | py | import paramiko
import logging
class RemoteWorker(object):
'''Hook up a new puppet agent.
This kind of blows because I have no separation between methods for
the puppet master and the puppet agent... both are piggybacking on the
same class for now.
'''
def __init__(self):
sel... | [
"vic.watkins@rackspace.com"
] | vic.watkins@rackspace.com |
cbb4c756dbb0e7a85aea088329f22c5b0066f554 | 29410748766458942067b13b9854cafde5c3de6e | /mmlpiMonitor.py | 74a24c49db8090e30ef9b686975f744728394376 | [] | no_license | dieser-niko/mmlpi | ed7fb870f6f86dde8a753f3e412ad8a02bcb8bb0 | 01a8f0d637a5a2a17c8ee327243f537060651869 | refs/heads/master | 2022-04-08T10:29:41.155351 | 2019-10-05T14:46:23 | 2019-10-05T14:46:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,593 | py | from tkinter import *
import time
import _thread
def tempmonUI():
w = Tk()
w.title('Monitor')
w.resizable(False, False)
l1 = Label(w, text='Temp: ')
l1.config(font=("Courier", 20))
l1.grid(row=0, column=0)
temp = StringVar()
l2 = Label(w, textvariable=temp)
l2.config(font=("Cou... | [
"marekkon@windowslive.com"
] | marekkon@windowslive.com |
96b810045b857ea088c89f5cc74784970160c889 | 877c8c11143be609c3105d6f29a18f992cca5cfc | /0106_20190419_195524.py | 7bd5df2cccfa4d404a68c73a221c336b3b20d0ed | [] | no_license | IvanaGyro/LeetCode-Answer | 8a0b0c56d7d751002f430f676280f6ee9dba1939 | aab9b4e6fda821763ce54e4f580a39c622971349 | refs/heads/master | 2020-05-01T17:53:15.651545 | 2020-04-18T11:49:20 | 2020-04-18T11:49:20 | 177,611,356 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | # Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def buildTree(self, inorder: List[int], postorder: List[int]) -> TreeNode:
if not postorder:
return None
root... | [
"iven00000000@gmail.com"
] | iven00000000@gmail.com |
6b0dabf6407f476f597a38ee846d19c31214eb64 | ab2e59bf7f58ab730506a6989fdd003c675fee65 | /PytestTest/test_selenium.py | 86df320f0ab10025563a1a203e3fb3a9dcbbc993 | [] | no_license | liuyang2239336/xuexi | 3e5bc1ee9c637fef0e6e94c0f011d2acbc8c2cdf | a0a3802adeb7eece99a5adcda4f8070b3936389c | refs/heads/master | 2020-12-28T16:36:27.355895 | 2020-03-04T13:35:11 | 2020-03-04T13:35:11 | 238,408,146 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | import pytest
from selenium import webdriver
from seleniumtools import find_element
def test_01_index():
driver = webdriver.Chrome(executable_path='chromedriver.exe')
driver.maximize_window()
driver.get("http://132.232.44.158:8080/ljindex")
search_input = ("xpath", '/html/body/div[1]/div/div[1]/div/i... | [
"475325525@qq.com"
] | 475325525@qq.com |
636e89e816adde63d47a7c4d4e3d83e62438d8d6 | c3dc08fe8319c9d71f10473d80b055ac8132530e | /challenge-133/paulo-custodio/python/ch-1.py | 0c9b9ec563b3fa36246755408c816a2874d78618 | [] | no_license | southpawgeek/perlweeklychallenge-club | d4b70d9d8e4314c4dfc4cf7a60ddf457bcaa7a1e | 63fb76188e132564e50feefd2d9d5b8491568948 | refs/heads/master | 2023-01-08T19:43:56.982828 | 2022-12-26T07:13:05 | 2022-12-26T07:13:05 | 241,471,631 | 1 | 0 | null | 2020-02-18T21:30:34 | 2020-02-18T21:30:33 | null | UTF-8 | Python | false | false | 760 | py | #!/usr/bin/env python3
# Challenge 133
#
# TASK #1 > Integer Square Root
# Submitted by: Mohammad S Anwar
# You are given a positive integer $N.
#
# Write a script to calculate the integer square root of the given number.
#
# Please avoid using built-in function. Find out more about it here.
#
# Examples
# Input: $N =... | [
"pauloscustodio@gmail.com"
] | pauloscustodio@gmail.com |
1de3abcab7b85d396cd54af9cbf1d2c796a0fb30 | 8994b2527baae4abd4695e23b06f1deac5610658 | /functional_tests/test_layout_and_styling.py | b029b6dc91cee2f42d09e47590bf8247f9c0913a | [] | no_license | davidfilat/superlists | 9018588ff6038ff39273f64cbd78d3034822fae0 | 57379ade1872b416fed72d55bbc05a217e55a5fe | refs/heads/master | 2023-04-23T07:29:46.857628 | 2021-05-03T08:21:41 | 2021-05-03T08:21:41 | 155,080,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | from selenium.webdriver.common.keys import Keys
from functional_tests.base import FunctionalTest
class LayoutsAndStylingTest(FunctionalTest):
def test_layout_and_styling(self):
self.browser.get(self.live_server_url)
self.browser.set_window_size(1024, 768)
inputbox = self.get_item_input_bo... | [
"david.filat@eurasiaprecept.org"
] | david.filat@eurasiaprecept.org |
9159c0686a9b0e960d01524c855d5e313fae05af | 21ef5577c4b5da7b6641191110f0298243e8a36b | /chap7j.py | c8b34e5696f66d4ca9a67d8f276ecf6a51e0bcf2 | [] | no_license | variancetoforecast/learnpython2018.02.19 | 3538b7f9faf1cf81d48a398f7adc22601841d277 | 15f98470f98b484b3f6c70373efb2f2525fde372 | refs/heads/master | 2021-04-28T09:34:51.154975 | 2018-02-19T10:05:06 | 2018-02-19T10:05:06 | 122,044,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | import re
import pyperclip
text = pyperclip.paste()
print('Text copied is: \"' + text + '\"')
EmailRegex = re.compile(r'@\w+')
mo = EmailRegex.sub('@CENSORED', text)
print(mo) | [
"dylan@test.com"
] | dylan@test.com |
04d3f8418b12c81fa96ad35c7000edf258ef809f | 97f88a01d1f4b9df66ce5080f4f5ee005119b7b3 | /common/libs/UrlManager.py | 9c44a94c0498cadf9fb91bd30ab71281e9adf831 | [] | no_license | yuanbin1111/hmsx | 912d6adf921080953c9b10b8db88cb5a7642b5a6 | 3b4113c5c8b3afa843f40b1751949845909e11de | refs/heads/master | 2022-07-04T20:48:12.417203 | 2020-05-03T13:24:17 | 2020-05-03T13:24:17 | 257,835,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | import time
class UrlManager(object):
def __init__(self):
pass
@staticmethod
def buildUrl(path):
return path
@staticmethod
def buildStaticUrl(path):
ver = '%s'%(int(time.time()))
path = '/static'+ path + '?version=' + ver
return UrlManager.buildUrl(path)
... | [
"1289340604@qq.com"
] | 1289340604@qq.com |
69fffa27f3895ac0ec76dfa70d08f3e0ab8e62f2 | e76c8b127ae58c5d3b5d22c069719a0343ea8302 | /tf_ex_5_linear_reg_with_eager_api.py | 31dc0013a8602daf6ff29927b818a2c4785c48cd | [] | no_license | janFrancoo/TensorFlow-Tutorials | 18f3479fc647db3cbdb9fb9d5c0b9a67be804642 | b34dbf903d2f5ff7bde6fb279fef6d7e2004a3bf | refs/heads/master | 2020-07-23T02:01:14.940932 | 2019-10-26T08:41:23 | 2019-10-26T08:41:23 | 207,410,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,490 | py | import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
# Set Eager API
tf.enable_eager_execution()
tfe = tf.contrib.eager
# Parameters
num_steps = 1000
learning_rate = .01
# Training data
x_train = np.array([3.3, 4.4, 5.5, 6.71, 6.93, 4.168, 9.779, 6.182, 7.59, 2.167, 7.042, 10.791, 5.313,
... | [
"noreply@github.com"
] | janFrancoo.noreply@github.com |
c094ca768a09f90b5ff71b83649c758e5347b11a | dbf34d933a288e6ebca568eaebaa53e5b98ba7c1 | /src/rebecca/index/splitter.py | 34d4aa005a6bca3c5d5273b7acd574142148f30d | [] | no_license | rebeccaframework/rebecca.index | dc68dfa2c1b77fc273a12b3f934074722fb8300c | ab452c9b375227e84fab42496633dc026421a283 | refs/heads/master | 2021-01-10T21:11:53.567186 | 2013-05-05T18:53:58 | 2013-05-05T18:53:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | from zope.interface import implementer
from zope.index.text.interfaces import ISplitter
from persistent import Persistent
from igo.Tagger import Tagger
@implementer(ISplitter)
class IgoSplitter(Persistent):
def __init__(self, dictionary):
self.dictionary = dictionary
@property
def tagger(self):
... | [
"aodagx@gmail.com"
] | aodagx@gmail.com |
b3697a00891574d09b962dbe774ba3c21a6a748d | d50ef9831e2ba36f265aa99033262b0c07989c92 | /app.py | dd2edd9a7274bc22c493008d6ec3effcd9a0c5e4 | [] | no_license | FlorianMerkle/surfcheck | 50ffe2bba0a2356c58c32314074a4ae92b9039fd | faab5d24a959de40c17126cefb6079975bf579f8 | refs/heads/master | 2020-04-03T12:34:56.151062 | 2018-10-29T18:03:41 | 2018-10-29T18:03:41 | 155,256,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,084 | py | from flask import Flask, render_template, request, redirect, url_for, send_from_directory, jsonify, session
from sqlalchemy import create_engine, MetaData, Table, sql
from werkzeug.utils import secure_filename
from urllib.request import urlopen
from json import loads
from sqlalchemy.sql import select, and_
from PIL imp... | [
"florianmerkle@Florian.local"
] | florianmerkle@Florian.local |
e3ce17808d1c78a0b8b0c39fbfbc3a482298e53b | f334fadf8ca44e88992dc4092a34256a957d10b8 | /aulaDjango/aulaDjango/bin/django-admin.py | 74e93fb8fa5483efcf8a90dbe39b19665eab581c | [] | no_license | juniorug/inf627_exercicios | f1f1450ede8764792142f494d597eed91eae4a22 | 7ab3102ddfb65e411f717a929fd269237dbe195c | refs/heads/master | 2021-01-10T09:35:29.632418 | 2016-04-26T22:16:12 | 2016-04-26T22:16:17 | 54,422,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | #!/home/aluno/jr_inf627/inf627_exercicios/aulaDjango/aulaDjango/bin/python3.4
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"aluno@gsortlab01"
] | aluno@gsortlab01 |
70f76bc9b439c416383973f9088f2be3a89488ca | cb9b861f5f3c0a36acfa2d0e1664216587b91f07 | /svr_surrogate.py | df181b6f63917221a1b40cfcb1ae7a7835fb5914 | [] | no_license | rubinxin/SoTL | feae052dba5506b3750126b9f7180a02a01bd998 | 16e24371972aab2a5fa36f8febbe83ae4dacf352 | refs/heads/master | 2023-01-20T14:35:37.027939 | 2020-11-30T16:51:29 | 2020-11-30T16:51:29 | 307,888,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,080 | py | # Our implementation of SVR-based learning curve extrapolation surrogate
# based on the description in B. Baker, O. Gupta, R. Raskar, and N. Naik,
# “Accelerating neural architecture search using performance prediction,” arXiv preprint arXiv:1705.10823, 2017.
import numpy as np
from sklearn.ensemble import RandomFores... | [
"robin@robots.ox.ac.uk"
] | robin@robots.ox.ac.uk |
665e82f0f648303adb266a62a8c0ce89ae7a431b | 1ba6653ef412dab11bd54f49588a3ca9301380c5 | /main/models/__init__.py | d3305226b82582d41228bf4cbe42684c872b325d | [] | no_license | UKHackspaceFoundation/website | 3106c6efa3c7d8244c7c9d23336be6bced417205 | c243f761d76c89c5f07f79b667a6977437e07bdc | refs/heads/main | 2023-07-29T10:57:23.992941 | 2023-03-06T13:07:11 | 2023-03-06T13:07:11 | 78,371,977 | 0 | 8 | null | 2023-07-20T12:10:13 | 2017-01-08T21:35:43 | Python | UTF-8 | Python | false | false | 552 | py | from .user import User, SpaceUserManager
from .space import Space, SpaceManager
from .supporter_membership import SupporterMembership, SupporterMembershipManager
from .gocardless_mandate import GocardlessMandate, GocardlessMandateManager
from .gocardless_payment import GocardlessPayment, GocardlessPaymentManager
__all... | [
"damian@axford.me.uk"
] | damian@axford.me.uk |
c9826cc909c6ccaa1d56df36acffaefce9861555 | 4a2f3369620add7a72de4f8c50ed208442e024ba | /my_admin/service/sites.py | 690c970485c84f936cf79d39885be357d65086f3 | [] | no_license | YangQian1992/CRM | a7292a48bbaf221baffdfdc80b04270f9d7a2398 | 7cd026f99a4bf46ed896517fbd1141d92a1072f3 | refs/heads/master | 2020-03-28T01:01:32.674293 | 2018-10-10T07:25:38 | 2018-10-10T07:25:38 | 147,470,027 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,420 | py | from django.conf.urls import url
from django.shortcuts import render, HttpResponse, redirect
from django.db.models.fields.related import ManyToManyField,ForeignKey,OneToOneField
from django.utils.safestring import mark_safe
from django.urls import reverse
from django import forms
from my_admin.utils.mypage import MyPag... | [
"1289089651@qq.com"
] | 1289089651@qq.com |
c361eca7aae2a04817c28fe837c042af887c9567 | 411e5de8629d6449ff9aad2eeb8bb1dbd5977768 | /AlgoExpert/greedy/minimumWaitingTime.py | 654f08d249d968d38d7b072c4abfa1fdfa5e8e37 | [
"MIT"
] | permissive | Muzque/Leetcode | cd22a8f5a17d9bdad48f8e2e4dba84051e2fb92b | 2c37b4426b7e8bfc1cd2a807240b0afab2051d03 | refs/heads/master | 2022-06-01T20:40:28.019107 | 2022-04-01T15:38:16 | 2022-04-01T15:39:24 | 129,880,002 | 1 | 1 | MIT | 2022-04-01T15:39:25 | 2018-04-17T09:28:02 | Python | UTF-8 | Python | false | false | 486 | py | """
"""
testcases = [
{
'input': [3, 2, 1, 2, 6],
'output': 17,
},
{
'input': [2],
'output': 0,
},
]
def minimumWaitingTime(queries):
queries.sort()
ret = 0
for i in range(len(queries)-1):
if i > 0:
queries[i] += queries[i-1]
ret... | [
"zerosky1943@gmail.com"
] | zerosky1943@gmail.com |
00865de56a75d5f37dc66f23b191f292fe1b3108 | 509f8739ac5f9f7ed71eebc76d4d833b8fe17bab | /P2/P1-square-root.py | c82152b7bead8fe416b76434c3e6b7fb40edff26 | [] | no_license | binit92/nd256 | ad86d80f8b952c9b0cec4a49c9f1482ec44e2870 | 2c10d0acaff377600ce0db3a4504c56861a51f89 | refs/heads/master | 2023-03-09T04:40:58.058560 | 2021-02-15T08:54:10 | 2021-02-15T08:54:10 | 316,165,991 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,409 | py | # find the square root of an integer without using any python library ..
# using binary search to find the square Root
def sqrt(number):
"""
Calculate the floored square root of a number
Args:
number(int): Number to find the floored squared root
Returns:
int: Floored Square Root
"""
... | [
"kumar.binit1992@gmail.com"
] | kumar.binit1992@gmail.com |
a59539977c000784998e7f2e363fcb81d9bc47ce | 75714da6a25e049162c38784ae7ed43e825bc67a | /code/xml_tools.py | 428c2c5a4b1a1ab7b610041787807bb4427fe268 | [] | no_license | kishkash555/NLP-for-TA | 4f2b446f184c96ebc7b4477114613bc8289895ae | 74820a51de95acd138984d66b7913bd5c9a06a18 | refs/heads/master | 2023-03-24T21:03:01.934951 | 2021-03-16T09:10:30 | 2021-03-16T09:10:30 | 348,281,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | from lxml import etree
def get_keywords(fname):
try:
tree = etree.parse(fname)
kws = [a for a in tree.getiterator() if a.tag.endswith('keywords')]
if kws:
for kws in kws[0].itertext():
if not kws.strip() or len(kws)<2:
continue
... | [
"kishkash555@gmail.com"
] | kishkash555@gmail.com |
fe4a1de15e82f2e2880d7c44dcd8407ed51fdc56 | cfd0c16edb48f468ba2e096ac63c159c6f352ad8 | /Dataset One/code/deal with 17 datasets/CNS.py | cb25d23b3bb0594f51e7307e0842d7ff3d8c2ad4 | [] | no_license | chaochaobar/MGRFE-GaRFE | 6824a52abd1095b9b2060a55bfa28aeab3ac0bd4 | d9edcf5e5c245719fc946035f01fd0170f66d16d | refs/heads/master | 2020-09-29T08:26:24.299260 | 2018-11-25T09:08:21 | 2018-11-25T09:08:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,232 | py | # -*- coding: utf-8 -*-
"""
This script is for dealing with the dataset CNS.
1. The Individual class is the individual in genetic algorithm (GA).
2. The Population class and its subclass APop implements GA,
with two functions of calc_fitness and calc_metrics helping calculate the fitness and classification metrcis of ... | [
"Pengeace@users.noreply.github.com"
] | Pengeace@users.noreply.github.com |
810b042622acc9d9cedfba2b326adb4433c28b73 | fe4f2aeb889f939ea6caf4a34371a3558064abcd | /vqa/model_vlmap_finetune.py | 5915643c18747587a1c77fb0bddde770a3e5516d | [
"MIT"
] | permissive | HyeonwooNoh/VQA-Transfer-ExternalData | cf9c1b82dd55389dfe5f52d8fd196780dd3d4629 | d21b700bcdc3ba3c392ff793b3f5efe23eb68ed6 | refs/heads/master | 2021-10-25T22:58:00.318492 | 2019-04-08T04:52:46 | 2019-04-08T04:52:46 | 122,662,354 | 21 | 3 | null | null | null | null | UTF-8 | Python | false | false | 9,938 | py | import cPickle
import h5py
import os
import numpy as np
import tensorflow as tf
from util import log
from vlmap import modules
W_DIM = 300 # Word dimension
L_DIM = 1024 # Language dimension
V_DIM = 1024
class Model(object):
def __init__(self, batch, config, is_train=True):
self.batch = batch
... | [
"hyeonwoonoh@gmail.com"
] | hyeonwoonoh@gmail.com |
a1afc86146e7725a1dbdf8011875c29c741ce8f5 | cd6a1e4c5dec0b6ce8f445e61b95ead1a4006871 | /outdated/transform_separate_files.py | f71f98a42af7bf1dbdcdb02ae0d01ed56a0c6c2a | [] | no_license | jessimic/LowEnergyNeuralNetwork | d6884575223eed88bacbb88d036c68aba9adfd8c | b773ce4b4e4915a279be464cff148bc7833fb07b | refs/heads/master | 2022-05-03T13:16:37.871962 | 2022-05-01T21:35:55 | 2022-05-01T21:35:55 | 163,332,551 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 11,235 | py | #################################
# Concatonates, cuts, and shuffles hdf5 training data sets
# Inputs:
# -i input files: name of file (can use * and ?)
# -d path: path to input files
# -o output: name of output file, placed in path directory
# -c cuts: name of cuts you want... | [
"jmicallef@illume-sub-0.illume-sub.illume.svc.cluster.local"
] | jmicallef@illume-sub-0.illume-sub.illume.svc.cluster.local |
98eb5fdd3f336a83e2e59daf7a51dc8b8eeedfe3 | 6c48c604f71100c635e743a4b002425e55e1f0fa | /test_demo/test_case/LabelManagement/subtag_add.py | 7d50518ef889ddb0ad94f397df2f4d214715cc6f | [] | no_license | Petrichorll/learn | a74456aed390be2ee9481f95feea4bc57ee62075 | 252fcfe2f496621d377c5477c054ce55c471a07d | refs/heads/main | 2023-08-25T15:32:51.367406 | 2021-10-25T07:47:16 | 2021-10-25T07:47:16 | 332,707,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,902 | py | # -*- coding: utf-8 -*-
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import Select
from selenium.common.exceptions import NoSuchElementException
import unittest, time, re, random
import sys
sys.path.append... | [
"690267573@qq.com"
] | 690267573@qq.com |
985479770a9041957e05c277f770d6c7d1a31de3 | 1702fd312fef377fb5ee21d004b2f2b561b8256a | /live_cfk.py | e898ef19ab3dad199a858062b100408a4183a866 | [] | no_license | ITBA/DL-workshop | f7830afcab4250fdf70b582b9f194b987d53081a | 86e3e3ab6ebc6fb6e3f5325b6d653e2817ae73b5 | refs/heads/master | 2020-03-19T03:39:24.969491 | 2018-06-01T19:34:51 | 2018-06-01T19:34:51 | 135,749,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,416 | py | import tensorflow as tf
import numpy as np
import os
from tqdm import tqdm
import random
# Disable tensorflow logs
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
MIN_PARAGRAPH_LEN = 5
def load_data(_dir):
ret = []
for each in os.listdir(_dir):
full_path = os.path.join(_dir, each)
if each.endswith("... | [
"i.itzcovich@gmail.com"
] | i.itzcovich@gmail.com |
8be0c72c6d98e9f7c7a32003f63bb311ca80a2aa | b21272bc71b8914561437cb9f4e694069a3c62b3 | /slam_msg/script/gps_reader.py | 1f03d6da3ed8774db4ebb18d0d37e2ef32adaf47 | [] | no_license | ZJU-Robotics-Lab/slam_msg | 27f5e358e3e42bbf2d3f6678b4db94a9bde94502 | cc64d4436c7b497840c3c21c23181f7f2e63de08 | refs/heads/master | 2020-12-14T08:45:04.384573 | 2020-01-18T06:17:00 | 2020-01-18T06:17:00 | 234,690,932 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,474 | py | #!/usr/bin/env python
# license removed for brevity
import math
import rospy
import message_filters
from serial_buffer import SerialBuffer as SerialBuffer
from rtk_gps.msg import Position, Orientation
from geometry_msgs.msg import Pose
from gps_common.msg import GPSFix
from std_srvs.srv import Trigger, TriggerResponse... | [
"noreply@github.com"
] | ZJU-Robotics-Lab.noreply@github.com |
d0d8b74010ace1abf234164e016fc0c34a0f1f48 | 930ba25dbdd80aa8f4edfc023ff34583ef19cb5c | /RedisTest.py | 8ec923cce78056f31a032ddd12692f8e68e8da08 | [] | no_license | thrfox/StockAnalyze | 95cb07612373ccea026a3419a6af81e6f936aa19 | 3190e70dc8a45ac37cd6b9f001842be814f13c6e | refs/heads/master | 2020-03-11T18:13:22.699696 | 2018-05-07T06:40:12 | 2018-05-07T06:40:12 | 130,171,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | import redis
pool = redis.ConnectionPool(host='127.0.0.1', port=6379, decode_responses=True)
r = redis.Redis(connection_pool=pool)
"""
# String字符
r.set('test', 'testStr')
print(r['test'])
# Hash
r.delete('stocks')
l = [{'high': '100'}, {'low': '99'}]
scale = '5'
r.hset('stocks', 'sh:'+scale+':data', json.dumps(l))
l ... | [
"www4836@gmail.com"
] | www4836@gmail.com |
3d90e1a3792eaec38062f7ea1dbe0cfdf9455b06 | 3fa4a77e75738d00835dcca1c47d4b99d371b2d8 | /backend/pyrogram/raw/base/server_dh_inner_data.py | 6813099ac6c9cffd446ad983b6da40d37ae93590 | [
"Apache-2.0"
] | permissive | appheap/social-media-analyzer | 1711f415fcd094bff94ac4f009a7a8546f53196f | 0f9da098bfb0b4f9eb38e0244aa3a168cf97d51c | refs/heads/master | 2023-06-24T02:13:45.150791 | 2021-07-22T07:32:40 | 2021-07-22T07:32:40 | 287,000,778 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | # Pyrogram - Telegram MTProto API Client Library for Python
# Copyright (C) 2017-2021 Dan <https://github.com/delivrance>
#
# This file is part of Pyrogram.
#
# Pyrogram is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free... | [
"taleb.zarhesh@gmail.com"
] | taleb.zarhesh@gmail.com |
52672e27c6777f2b06355b0ac2c2f1ec44202faf | bc854beade7e2c6ba818a2a212e3209c3830a386 | /manage.py | a84497fa64cbd9448e9f717b56b7d85bf31d946f | [] | no_license | czarkhenn/atom | 9a0ca59057f6a44e3874382bcf085642b2f02dd1 | 0dfb69bf1e691850266dea85410b0722d22eb8b3 | refs/heads/master | 2020-05-31T21:26:17.784136 | 2019-11-02T02:43:24 | 2019-11-02T02:43:24 | 190,492,703 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 545 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'atomsolutions.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django... | [
"czarkhenn@gmail.com"
] | czarkhenn@gmail.com |
a3d65266f149e4a63b3f85dec399a2ef6f11b802 | 64374e56f0624cc18392d7344b45333636aad65b | /django/form/myapp/migrations/0001_initial.py | 76abb4bf5b4d7c0fa57fe2cf1666c013c8a4b195 | [] | no_license | parksunwoo/TIL | 1b9e065dc09c349b204e8bb71a5de179951bd6d3 | 2c993708eb215df6d24c0187b783fdcf28a70977 | refs/heads/main | 2023-03-09T10:31:24.502635 | 2023-03-01T14:39:07 | 2023-03-01T14:39:07 | 194,853,850 | 3 | 0 | null | 2022-11-22T05:05:49 | 2019-07-02T11:53:47 | Jupyter Notebook | UTF-8 | Python | false | false | 677 | py | # Generated by django 2.0.13 on 2019-12-22 04:50
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',
fields=[
('id', models.AutoField(au... | [
"psw261@gmail.com"
] | psw261@gmail.com |
456296db9cb838c48376577192397e1c4707378d | 46164e5f1166fa351b0a1e289a7a45a981d304f9 | /Python_Intro/1.[End]Group_Learning/03Week/Review02_NaverNews.py | 3a58bfe508b70303b0e433d06b475bd6df618355 | [] | no_license | bellepoque7/Python_Intro | 9fe1e341a7ffeb1f54a041bee3a54db56955f86a | f9a7fa7848e46d3e4b7059fa2cb824f722a627f3 | refs/heads/master | 2022-12-11T03:44:23.724413 | 2018-08-06T11:46:26 | 2018-08-06T11:46:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 301 | py | import bs4
import urllib.request
url = "http://news.naver.com"
html = urllib.request.urlopen(url)
bs_obj = bs4.BeautifulSoup(html, 'html.parser')
div = bs_obj.find('div', {'class' : 'newsnow_tx_inner'})
for a_tag in div:
a_tag = div.find('strong')
print(a_tag.text)
# 못해따... 전문밖에 | [
"39439424+jayjunglim@users.noreply.github.com"
] | 39439424+jayjunglim@users.noreply.github.com |
38243bb28e7b23d87c1ad538570083e548834991 | 24c6c7a11487e058070632dc89047e0ed4bd4f0e | /tmpframe.py | 863c0aeb36f53b078b56259191305693f4243911 | [] | no_license | SevenXue/StrainDatabase | 1cbc988b22e606bab89faa55c24fc2fbe21206b7 | a913ef7f18e1f3cdcf282d41cbeba95d8088ffda | refs/heads/master | 2021-01-01T06:14:43.243825 | 2018-01-15T12:30:17 | 2018-01-15T12:30:17 | 97,390,742 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,798 | py | # -*- coding:utf-8 -*-
import wx
import wx.aui, wx.grid
import sys
from Infoact import *
from information import *
from Acuact import *
reload(sys)
sys.setdefaultencoding('utf8')
class AddFrame(wx.Frame):
# 添加信息弹出的小窗口
def __init__(self, parent, title):
self.mainframe = parent
wx.Frame.__in... | [
"825056849@qq.com"
] | 825056849@qq.com |
76f9cf3c70feb1745228287e760e543e56e9ce1d | 900f3e5e0a5f9bbc28aa8673153046e725d66791 | /less15/chat_v3/chat/chat/settings.py | e6a04b5f17f725ceee6cdb1c8879e9c0dbd6a011 | [] | no_license | atadm/python_oop | c234437faebe5d387503c2c7f930ae72c2ee8107 | 2ffbadab28a18c28c14d36ccb008c5b36a426bde | refs/heads/master | 2021-01-23T04:40:10.092048 | 2017-05-30T12:22:53 | 2017-05-30T12:22:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,427 | py | """
Django settings for chat project.
Generated by 'django-admin startproject' using Django 1.11.1.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
... | [
"anna@3g.ua"
] | anna@3g.ua |
92f3d34a7d5795887fd0b8f63268bdf2311bc62a | d081aeebf17651fa70b754607036f22f5b3a814f | /bookstore/startup.py | 23f00d534e95c52812c7cb850d68eca6c53f2b1f | [] | no_license | simonli/Pybookstore | bd0a959107bc8889a72453453716aa494ca6fc82 | f145d0c7acb2c422602d6f563403b18458715462 | refs/heads/master | 2021-01-16T18:07:09.867847 | 2017-08-27T15:42:33 | 2017-08-27T15:42:33 | 100,037,036 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,128 | py | # -*- coding:utf-8 -*-
from flask import Flask, request, redirect, jsonify, flash, url_for, render_template
from bookstore.apps.account import blueprint_account
from bookstore.apps.book import blueprint_book
from bookstore.apps.frontend import blueprint_frontend
from bookstore.extensions import db, login_manager, bcry... | [
"simonli@live.com"
] | simonli@live.com |
2ea30df6db951105fb4bc2b8f1eb8fdd7e346f4d | cbd60a20e88adb174b40832adc093d848c9ca240 | /solutions/busnumbers/busnumbers.py | 690a0be7996a788721974b7b20150d4091bcf299 | [] | no_license | maxoja/kattis-solution | 377e05d468ba979a50697b62ce8efab5dcdddc63 | b762bfa9bbf6ef691d3831c628d9d16255ec5e33 | refs/heads/master | 2018-10-09T04:53:31.579686 | 2018-07-19T12:39:09 | 2018-07-19T12:39:09 | 111,871,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 579 | py | n = int(input())
seq = sorted(list(map(int, input().split())))
prevs = []
for i in range(len(seq)):
current = seq[i]
nxt = -1 if i == len(seq)-1 else seq[i+1]
if nxt == current+1:
prevs.append(current)
continue
else:
if prevs:
## print('enter' , prevs)
... | [
"-"
] | - |
8985c156f126ecc79db188ed97f0e9294a25d6d3 | b048abb5f35b5c69b59387dda86ef0ed62a5b378 | /elias.py | c0500cbf67226b4feaa64037b1e26cba1ccc0539 | [] | no_license | vam-sin/DoctorElias | e7cc362417ad33bb0b43b354be3c65b7b38aa5fc | a3c543de17a3ab2f33e9d2c54159c0d378164084 | refs/heads/master | 2022-09-02T02:52:53.616775 | 2020-05-30T11:04:03 | 2020-05-30T11:04:03 | 257,921,467 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 10,899 | py | # tasks
# Consider all symptoms.
# Build engine
# Take severity symptoms: 0-5 scale, 0 being not at all, 5 meaning extremely severe.
# Libraries
from experta import *
symptoms_list = ['headache', 'back pain', 'chest pain', 'cough', 'fainting', 'fatigue', 'sunken eyes', 'low body temperature',
'restlesness', 'sor... | [
"vamsinallapareddy@gmail.com"
] | vamsinallapareddy@gmail.com |
3bd03fe4d769ba382d80392cf0c083c66cb30acb | 71501709864eff17c873abbb97ffabbeba4cb5e3 | /llvm13.0.0/lldb/test/API/functionalities/thread/concurrent_events/TestConcurrentTwoBreakpointThreads.py | 1f6832d9ecdb1b993193adf3655ceba218a19e06 | [
"NCSA",
"Apache-2.0",
"LLVM-exception"
] | permissive | LEA0317/LLVM-VideoCore4 | d08ba6e6f26f7893709d3285bdbd67442b3e1651 | 7ae2304339760685e8b5556aacc7e9eee91de05c | refs/heads/master | 2022-06-22T15:15:52.112867 | 2022-06-09T08:45:24 | 2022-06-09T08:45:24 | 189,765,789 | 1 | 0 | NOASSERTION | 2019-06-01T18:31:29 | 2019-06-01T18:31:29 | null | UTF-8 | Python | false | false | 700 | py |
import unittest2
from lldbsuite.test.decorators import *
from lldbsuite.test.concurrent_base import ConcurrentEventsBase
from lldbsuite.test.lldbtest import TestBase
@skipIfWindows
class ConcurrentTwoBreakpointThreads(ConcurrentEventsBase):
mydir = ConcurrentEventsBase.compute_mydir(__file__)
# Atomic seq... | [
"kontoshi0317@gmail.com"
] | kontoshi0317@gmail.com |
6b13e166608b4bf5492d6869c94bfb7411b81cc7 | 9918251bfab080d2bcec9e78279df95d4c90403f | /Insert_Ivr_Reservation.py | 5d8878696f3fd1035f90651aa8fab7b2f661d3b4 | [] | no_license | dpraja/IVR | cb67fd841cae4054a508eb5c0246cd68b5d7b473 | ab2a3579a4533f8632e73a99e734fa91ca66ef2c | refs/heads/master | 2021-05-25T10:39:23.069295 | 2019-04-15T09:04:41 | 2019-04-15T09:04:41 | 127,132,673 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | from sqlwrapper import dbget,dbput,gensql
import json
import random
def Insert_Ivr_Reservation(request):
d = request.json
confirmation = (random.randint(1000,9999))
d['confirmation_number'] = confirmation
gensql('insert','ivr_resevation',d)
confirmation = d.get('confirmation_number')
... | [
"noreply@github.com"
] | dpraja.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.