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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90326bbdaaa0ab4b084e6754140a9d7f1a830f10 | debaaecda4526b8520af82c4863e772943018b49 | /medium_pos/DataProcessor.py | be5fd780e5036f5febb7542cc12446ad4b3c67e3 | [
"MIT"
] | permissive | joshuakosasih/TA | ff725bad7c4414365f95f45f6681f590d9016d44 | 97abe70c0b10f13dbad0afd4a2b7ee5665fc81f3 | refs/heads/master | 2021-03-19T07:18:29.915778 | 2018-08-04T06:19:24 | 2018-08-04T06:19:24 | 117,322,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,640 | py | import nltk
import numpy as np
import random
import pickle
class DataLoader:
"""
Initialize with a string of file name
ex: DataLoader('filename')
Attributes:
corpus
words
labels
filename
"""
def __init__(self, name):
print "Opening file", name
... | [
"joshua.kosasih@gmail.com"
] | joshua.kosasih@gmail.com |
3c8856f1148ce3c7501e2f38cff7c7091246166e | 403b4a222fe82322406cf6ce0fc1ee9598c13751 | /day_11/solution.py | 2a6c16d8bc50ec47822d3eb0ecc5b004f1e26dd4 | [] | no_license | bertop89/aoc_2020 | ec704f94c76427a0b2bcab68eafaf04407d0ca1e | cc565cb3a5b124bd6e2ddcb6a3b43be7cdd77d78 | refs/heads/main | 2023-02-05T09:13:28.171810 | 2020-12-25T11:12:41 | 2020-12-25T11:12:41 | 317,626,647 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,164 | py | input_lists = []
mapping_dict = {"L": 0, "#": 1, ".": -1}
with open("input.txt", 'r') as file:
original_input = [[mapping_dict[char] for char in line if char != '\n'] for line in file.readlines()]
# part 1
idx_to_check = [
(-1, -1),
(-1, 0),
(-1, 1),
(0, -1),
(0, 1),
(1, -1),
(1, 0),
... | [
"albertopp@unlimiteck.com"
] | albertopp@unlimiteck.com |
56ed6415334c94846e424fbe3a3fa544287add23 | 28c0bcb13917a277cc6c8f0a34e3bb40e992d9d4 | /koku/masu/processor/parquet/parquet_report_processor.py | 56f26031a5e31292051e466eb8e95e023fc13982 | [
"Apache-2.0"
] | permissive | luisfdez/koku | 43a765f6ba96c2d3b2deda345573e1d97992e22f | 2979f03fbdd1c20c3abc365a963a1282b426f321 | refs/heads/main | 2023-06-22T13:19:34.119984 | 2021-07-20T12:01:35 | 2021-07-20T12:01:35 | 387,807,027 | 0 | 1 | Apache-2.0 | 2021-07-20T13:50:15 | 2021-07-20T13:50:14 | null | UTF-8 | Python | false | false | 20,188 | py | #
# Copyright 2021 Red Hat Inc.
# SPDX-License-Identifier: Apache-2.0
#
"""Processor to convert Cost Usage Reports to parquet."""
import datetime
import logging
import os
from functools import partial
from pathlib import Path
import pandas as pd
from dateutil import parser
from django.conf import settings
from api.co... | [
"noreply@github.com"
] | noreply@github.com |
70dcdb34d80447358d3c7db2ab16fe7d112037b7 | 9a9082d5e746e45ff72bea59dc6365b1877d8901 | /practice/Prg100Plus/Pr200.py | 6d624ef4e9f9b2cb0d9c0fbb20bda167a6c0e718 | [] | no_license | krishxx/python | 0dfdf78899eae40a792e8dd9d9c3c7f136604566 | fb5261f8615a486aa2741c592d0156cfc2c2e05d | refs/heads/master | 2020-03-16T07:49:06.124601 | 2019-08-07T10:55:51 | 2019-08-07T10:55:51 | 132,584,104 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | '''
201. Write a program to Map Two Lists into a Dictionary
'''
#testing if i can upload to git
#adding new line
#third line adding post khdel
#fourth line post crmdel
#fifth line post khcrmdel.cmdcls | [
"codeaurora7@gmail.com"
] | codeaurora7@gmail.com |
721083c36ad4bc92f72d393c174ce90d7f8aed99 | 3b9fc11da4bbb3e83ad43a7b4f99f7549d085045 | /Evaluation.py | 85abe8939ac13efabf5d9a66d024200634661432 | [] | no_license | isnt1t/Data-Analysis-and-Practice-1 | dd5645984b8d93c81e7ffba9fd2e5e2cf90d4144 | 4032cae330a7aca99545371557fed0afd20c90f4 | refs/heads/master | 2020-07-31T20:09:23.916991 | 2019-12-22T12:07:11 | 2019-12-22T12:07:11 | 210,739,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,297 | py | from __future__ import (absolute_import, division, print_function, unicode_literals)
from collections import defaultdict
import numpy as np
import pandas as pd
from surprise import Dataset
from surprise import KNNWithMeans
from surprise import SVD
from surprise.model_selection import KFold
import warnings
warnings.f... | [
"standingchild@gmail.com"
] | standingchild@gmail.com |
1b35196193a61bf28c62ee650d3e53c45e7541b0 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03053/s439502616.py | 81a964f661902f7e08cba0681473061dbc558555 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | import sys
def input(): return sys.stdin.readline().strip()
def mapint(): return map(int, input().split())
sys.setrecursionlimit(10**9)
H, W = mapint()
As = [list(input()) for _ in range(H)]
from collections import deque
Q = deque()
dist = [[10**18]*W for _ in range(H)]
for h in range(H):
for w in range(W):
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
436102852d82d418e03cefacb942939dea1ff7c4 | e530bccd57910185681d5ceee4279b84bc889e4d | /src/smartcast/expressions_common.py | a3381c127ceb754701850bd69ab6f6a5e329ad71 | [
"MIT"
] | permissive | qhpea/smartcast | e23e2637ec678255ea307f954a425554e023fe7d | a70231a2843ce5ad6dda5af073c9a20630ff46fe | refs/heads/main | 2023-08-14T19:07:58.923523 | 2021-09-25T06:33:50 | 2021-09-25T06:33:50 | 406,550,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | from typing import Type
from smartcast.symbols import NUMBER
from .symbol import symbol_q, Symbol
from .expression_typed import TypedExpression
String = TypedExpression("String")
Number = TypedExpression(NUMBER)
TypedExpression = | [
"git@lize.live"
] | git@lize.live |
63186a8cdc7fa9612b687e2999dde46ed4eb74c7 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/valid_20200616215901.py | 0a5eee49ea2e4313e5ba7c021044a1aa7cca4116 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | # Ipv4 --> 4 decimal numbers,between 0 to 255
# leading zero's is invalid
# check whethere its a digit between 0 to 255
import string
def valid(str):
if str[len(str)-1] == ":" or str[len(str)-1] == ".":
return "Neither"
address = str.split(".")
numbers = range(0,256)
result = None
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
eb43d5d08ec9762e2d84e9ffc23122749a4e3095 | 29976072f902f19392cb45f519693990b4460e07 | /lec_07/house.py | a209a66eb335f0336dd53510ef0a6cf6d2deca26 | [] | no_license | s4nktum/infa_2021 | f6bcc213cd7f263701c353ab0f74169aac47ebaa | 2ac9841ea16869c196b055b16b16ea61c2586565 | refs/heads/main | 2023-04-25T22:17:22.170456 | 2021-05-23T15:07:39 | 2021-05-23T15:07:39 | 367,618,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,229 | py | import pygame
from pygame import *
pygame.init()
def main():
x, y = 300, 200
width, height = 200, 300
draw_house(x, y, width, height)
def draw_house(x, y, width, height):
"""
Нарисовать домик ширины width и высоты height от опорной точки (x, y), которая нахоится
в середине нижней точки фунд... | [
"irnbru382@gmail.com"
] | irnbru382@gmail.com |
dad4f8d07f49c9018d64a20ca5e304e947a1a965 | b45d66c2c009d74b4925f07d0d9e779c99ffbf28 | /tests/unit_tests/core_tests/service_tests/analytics_tests/test_aggregate_time_series_demographics.py | 69912b74d94a76c4dd8e28f2516f6162451ae71f | [] | no_license | erezrubinstein/aa | d96c0e39762fe7aaeeadebbd51c80b5e58576565 | a3f59ba59519183257ed9a731e8a1516a4c54b48 | refs/heads/master | 2021-03-12T23:44:56.319721 | 2016-09-18T23:01:17 | 2016-09-18T23:01:17 | 22,665,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,898 | py | from __future__ import division
from core.service.svc_analytics.implementation.calc.engines.demographics.aggregate_time_series_demographics \
import AggregateTimeSeriesDemographics
from core.service.svc_analytics.implementation.calc.company_analytics_calc_helper import CompanyAnalyticsCalcHelper
from core.service.s... | [
"erezrubinstein@hotmail.com"
] | erezrubinstein@hotmail.com |
d162e769db8a080490c01aec386b556637747410 | de0bd0d81d5c11371d267d49e529e7c8314e7d91 | /Desafios/Mundo 1/desafio014.py | 9e64ca21d8300754c4ed101d70b8abdf3b45bf94 | [] | no_license | joaovlev/estudos-python | 69e30320dd02d3ced37da4d022750e9793f0d6b6 | 792421ab6ffb96bca938998edbffa9b456605c8a | refs/heads/master | 2023-04-17T19:07:34.141830 | 2021-05-07T15:02:31 | 2021-05-07T15:02:31 | 365,256,844 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | dias = int(input('Por quantos dias seu carro foi alugado ? '))
km = int(input('Quantos Km foram rodados ? '))
diasres = dias*60
kmres = km*0.15
total = kmres + diasres
print(f'O total a pagar é: R${total}') | [
"joaovictor.lev@gmail.com"
] | joaovictor.lev@gmail.com |
1183562acf5fdc3b08378dbaf5e390c44eb99772 | 00fa557179c0b46e2c0f87839f541c1740b8f3fb | /transport/ch_stats.py | 863bf9de7b952c6164a5869dd63d50be1d74d207 | [] | no_license | pmacaodh/open-data-apps | 02f8e14b9559f94acc5da9ffc4b87a92dc8f5162 | 21543fcad5d0eb8bf881e09b09e60eb04cb81cb6 | refs/heads/master | 2020-05-17T17:50:36.011169 | 2014-05-08T09:47:43 | 2014-05-08T09:47:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,485 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Apr 28 21:08:40 2014
@author: paul
"""
import pandas as pd
import numpy as np
xlfile = 'su-d-01.02.02.01.15clean.xls'
df = pd.read_excel(xlfile,'2012',index_col=0)
district_ix = df.index.map(lambda s: '>>' in s)
kanton_ix = df.index.map(lambda s: '- ' in s)
town_ix = df.in... | [
"paulinzurich@gmail.com"
] | paulinzurich@gmail.com |
b45e67b8c4f22dfe83f2e0fe8d5fc5782bfaa46d | 6f614a3a8a9ce198a120d15f88331b2802ece645 | /CurrentScripts/Models/Legislator.py | 7d0bbe8dc0936e81412118f41bedb2d1575fd98e | [] | no_license | digitaldemocracy/dd-Data3.0 | d77f62c4936f7598d3bae2353a0d035d76fb345a | 82ddf61e8e833387f63ea57142c405e0583c0528 | refs/heads/master | 2023-04-13T18:36:53.709299 | 2023-04-11T00:29:41 | 2023-04-11T00:29:41 | 32,046,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,525 | py | class Legislator(object):
def __init__(self, name, image, source, alt_ids,
capitol_phone, capitol_fax, website_url, room_number, email,
state, year, house, district, party, start, current_term,
end = None, caucus = None, pid = None,
description = N... | [
"nrusso19@gmail.com"
] | nrusso19@gmail.com |
7770cb118d186238e6e4dd8a61d026d2ea13cce5 | 1432b47c39715c4c1921531f96273005686a0ca2 | /customer_browser/management/commands/add_customers.py | 14cb3f139e3dbf881eac8b15899d661381d24a6b | [] | no_license | peteralfredoflynn/allegiant_challenge | 8581c86b75f844767fae662fa367a9785ea1276a | 9dd1b1e03c1db7571ed4daa2412ace05203dae75 | refs/heads/master | 2021-01-20T19:39:27.941334 | 2016-06-14T07:19:49 | 2016-06-14T07:19:49 | 61,096,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | """
Commands run daily in this order:
1. add_games
2. add_pitcher_stats
3. add_game_events
4. crunch_numbers_pitchers
"""
from customer_browser.management.commands.customer_data import \
customer_data_list
from customer_browser.models import Customer
from django.core.management i... | [
"fredoflynn@gmail.com"
] | fredoflynn@gmail.com |
0a65e9ac331727589cd64f87a3ab0c382483c7b5 | 61cc5a14a40652b8b5457009215d5e4227b24447 | /pattoo_agents/network.py | 823eb8d1b156268fcd3913c00543ba9f70f314f7 | [
"GPL-3.0-only"
] | permissive | palisadoes/pattoo-agents | 26a7cb8c96eef3669ecc6805cf2258546a431be8 | d73453ceac1747573dfbcad4da724325e86b208d | refs/heads/master | 2020-08-07T11:34:49.957937 | 2020-07-05T04:38:15 | 2020-07-05T04:38:15 | 213,434,072 | 0 | 0 | Apache-2.0 | 2019-10-07T16:34:27 | 2019-10-07T16:34:26 | null | UTF-8 | Python | false | false | 609 | py | """Module used to manage network resources."""
# Import PIP libraries
import ipaddress
import socket
def get_ip_address(device):
"""Get IP address for a device.
Args:
device: Device for which address is required
Returns:
result: IP address
"""
# Initialize key variables
res... | [
"peter@colovore.com"
] | peter@colovore.com |
58dfcfe1528bac91186c5505ac0c0f69d0660967 | c27c1289500ec8d908ba6ac5a2d85155247a34e0 | /coursebuilder/modules/student_groups/triggers_tests.py | 0488292db311a6ea9da92db955bc4e1876a8694d | [
"CC-BY-3.0",
"Apache-2.0"
] | permissive | blckt/lib | 552ff9b1f89019f93c6bcb37483b6a7b1e2785f7 | 14611aed47e475514a32be211eccd93381a4d9d5 | refs/heads/master | 2021-01-12T18:05:25.024657 | 2016-10-19T05:33:01 | 2016-10-19T05:33:01 | 71,322,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,536 | py | # Copyright 2016 Google Inc. 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 applicable law or ... | [
"mgainer@google.com"
] | mgainer@google.com |
7087b08b8d591aca1fad709d9837c36be818fce6 | f87390bfe8dbddd5aab0c1d5b054b6de7072132f | /firstapp/migrations/0001_initial.py | 5c4ea50ba47f05d95bf3a7952cade73c20eecf0a | [] | no_license | RitwickVerma/Intern_project | 5b657cdebabf0c15a9a2e33bdfb6a22a0df66d5b | 3fb7dbe7a4624f702d73864a2b7bbf216c691228 | refs/heads/master | 2020-03-20T08:31:03.498277 | 2018-06-27T17:56:20 | 2018-06-27T17:56:20 | 137,310,822 | 0 | 3 | null | 2018-06-26T14:56:13 | 2018-06-14T05:36:59 | Python | UTF-8 | Python | false | false | 2,511 | py | # Generated by Django 2.0.6 on 2018-06-12 07:53
from django.db import migrations, models
import django.db.models.deletion
import jsonfield.fields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ConfigurableTe... | [
"verma1997@gmail.com"
] | verma1997@gmail.com |
10c9f668c41efc95b861f012f1251780a6fb2386 | 4de28b1f6d97640834e4a795e68ca9987f9e2cd5 | /check plugins 2.1/dell_idrac_redfish/agent_based/dell_idrac_rf_thermal.py | 43eec1ae032a7af3d96c7df8ffabee97d4088086 | [] | no_license | Yogibaer75/Check_MK-Things | affa0f7e6e772074c547f7b1df5c07a37dba80b4 | 029c546dc921c4157000d8ce58a878618e7bfa97 | refs/heads/master | 2023-09-01T15:52:28.610282 | 2023-08-29T06:18:52 | 2023-08-29T06:18:52 | 20,382,895 | 47 | 16 | null | 2023-07-30T15:52:22 | 2014-06-01T18:04:07 | Python | UTF-8 | Python | false | false | 1,008 | py | #!/usr/bin/env python3
# -*- encoding: utf-8; py-indent-offset: 4 -*-
# (c) Andreas Doehler <andreas.doehler@bechtle.com/andreas.doehler@gmail.com>
# This is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation i... | [
"andreas.doehler@gmail.com"
] | andreas.doehler@gmail.com |
2ea002be0526353d7dbab93f7bd832cf20550c95 | 1ef722810d15d73f6b7a168e03bdab28cbac0d7d | /stafano.py | ee65eae453c396dc0af64474a69e6e65f0cb3672 | [] | no_license | ANOBABY/stafano | cd350e532cd1ef1b96620d927c52dd10f64b69b6 | e49ea67a632f8b13b51373c358e420486e921f21 | refs/heads/main | 2023-01-28T23:53:38.923293 | 2020-12-13T18:26:46 | 2020-12-13T18:26:46 | 321,131,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,913 | py | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,urllib,cookielib,requests,mechanize
from multiprocessing.pool import ThreadPool
from requests.exceptions import ConnectionError
from mechanize import Browser
reload(sys)
sys.setdefaultencoding('utf8')
br = mechanize.Browse... | [
"noreply@github.com"
] | noreply@github.com |
57d798ccd06a88c5c0058d7e2d46b628084450ac | f4cb944b5cd184384222b0d1c337c32b98ff89a6 | /app/tasks/jobs_count.py | 2f3afaa4b12217227b10a8a8809fdd21811cf985 | [
"MIT"
] | permissive | nikepineapple/webspider | 979bcde47859d3cda1645da3563ac2352cdbc46f | 505d887a90e9003b02bad00758899df1a0068ae2 | refs/heads/master | 2021-01-22T04:23:41.948038 | 2017-09-02T07:37:22 | 2017-09-02T07:37:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,055 | py | # coding=utf-8
from __future__ import absolute_import
import logging
import requests
from retrying import retry
from requests.exceptions import RequestException
from . import celery_app
from common import constants
from common.exception import RequestsError
from app.controllers.keyword import KeywordController
from a... | [
"heguozhu@zhihu.com"
] | heguozhu@zhihu.com |
710ceaf4377c0f955c9a2a169a632d93a76eaa30 | 0d3c3857f68704308e2defe0002962e2f675001d | /Bootloader V2.2/Flasher/SPI_FasherV2.2_FEB.py | 993dd7c70f7ea5f496dff4727e3b23e417aa50b5 | [] | no_license | GautierDev31/MCF51AG128_Bootloader_SPI | a27c57b1011e54fe0fd7ac34d27ffb8fed575634 | 5f4e9753d8b3afacef73ee3e33c355594e2eb0f9 | refs/heads/main | 2023-09-04T05:08:14.657559 | 2021-10-19T13:02:39 | 2021-10-19T13:02:39 | 346,677,289 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,974 | py | # 02/05 Flasher SPI avec protocole de communication S19 adapté communicant en réseau avec la FEB
# Communique avec la version V2 du Bootloader
# Code et protocole de communication (README.md) : https://github.com/GautierDev31/MCF51AG128_Bootloader_SPI
# Maj V2.2
# Modification de l'interface graphique
# Possibilité d'... | [
"noreply@github.com"
] | noreply@github.com |
9927cd4bca84ee185c4b5cdf617ba0a29e5b1f9a | 251d6d11e807fa47fd1bad1f070b727500b17fd5 | /shares/apps.py | 9c121ab60adeccabe231925656fcce78bc87b080 | [] | no_license | khokhlov/dinv | a0964403a930f479fb744d90c4dbad887ba9810c | 7943b533808c913ec3564aa28ada485f857609ee | refs/heads/master | 2020-05-26T13:06:42.975971 | 2017-03-10T12:02:30 | 2017-03-10T12:02:30 | 82,479,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | #coding: utf-8
from __future__ import unicode_literals
from django.apps import AppConfig
class SharesConfig(AppConfig):
name = 'shares'
verbose_name = u'Акции'
| [
"kolya.khokhlov@gmail.com"
] | kolya.khokhlov@gmail.com |
9154f740d0f00f873094db8dbd94808071bf1838 | 95a6555114011d7ba9b0a842dd348dc4a18a56fc | /page_locators/about_page_locator.py | 8d1ab126684c99a78c454f3e87d3de5abecd78ad | [
"Unlicense"
] | permissive | battyone/ParaBankSeleniumAutomation | c96dfdcb11591dd12db31b7ddd373326ce4284f7 | e28a886adba89b82a60831ad96a3a8f00f863116 | refs/heads/master | 2023-05-04T19:58:13.067568 | 2020-03-15T17:19:09 | 2020-03-15T17:19:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | # Created by Egor Kostan.
# GitHub: https://github.com/ikostan
# LinkedIn: https://www.linkedin.com/in/egor-kostan/
from selenium.webdriver.common.by import By
from page_locators.base_page_locator import BasePageLocator
class AboutPageLocator(BasePageLocator):
'''
Holds all relevant locators for 'ABOUT' page we... | [
"igorkostan@gmail.com"
] | igorkostan@gmail.com |
56f3f93fd2ed45d9e734ff45306e8d266a3a83fb | ef37e54481656c677dddb30603edf8510e984774 | /src/pyext/Model.py | e4f13ead9ba52758adb3743b4c2a09de8496d8e0 | [
"MIT"
] | permissive | saijananiganesan/LDAPathwayPrediction | 3b62ee479731b13ec498de4bb7e9e09dae9e65df | 1e00e87b7854e45e36bd63723bffad18cb78c0bd | refs/heads/master | 2022-05-20T20:14:28.400809 | 2020-05-01T19:14:59 | 2020-05-01T19:14:59 | 224,623,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,279 | py | import os,pickle,random
import pandas as pd
from collections import Counter
from sklearn.model_selection import train_test_split
from gensim import corpora, models
from gensim.models.phrases import Phrases, Phraser
import gensim
from sklearn.metrics import fbeta_score
from sklearn.metrics import f1_score
from gensim.m... | [
"ganesans@salilab.org"
] | ganesans@salilab.org |
6d52279cf0b8d4e65c8120e72598c9c122ea0ba2 | 35c79cf663a904902600fb636fe38541a54c2e63 | /python_007_oop/Inheritance.py | c80433dc5b40461a2d733d73b7fc6b56fa1b9749 | [] | no_license | DanielW1987/python-basics | bed5cedefc0336036461f0533f060383186314c9 | fe3a8787874d997a4a840fc43c718aebc37eccfa | refs/heads/master | 2020-08-15T09:58:47.065512 | 2019-10-29T14:06:25 | 2019-10-29T14:06:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 971 | py | class BMW:
def __int__(self, maker: str, model: str, year: int):
self.__maker = maker
self.__model = model
self.__year = year
def start(self) -> None:
print("Starting the car")
def stop(self) -> None:
print("Stopping the car")
class ThreeSeries(BMW):
def __i... | [
"wagner.daniel87@gmail.com"
] | wagner.daniel87@gmail.com |
223c65e3f71ebe19ae8b913a56b6f987169da4ad | 534b223934feff5c2e5909352eb87bd4cb71df15 | /venv/Scripts/pip3.7-script.py | 6d26f943198ff8f9ae309d56b86891b1e671d970 | [] | no_license | XBCJWen/Boss_total | 43827585b074f45a57dad96dd8da49a210e97ccb | 8fd8f83e6a77d356684e6c98835225875834ec9a | refs/heads/master | 2020-05-26T07:32:00.416653 | 2019-05-27T07:33:43 | 2019-05-27T07:33:43 | 188,151,808 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!C:\Users\Wen\PycharmProjects\one_test\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__requires__ = 'pip==19.0.3'
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... | [
"1737142643@qq.com"
] | 1737142643@qq.com |
fc22f44b99299c959de06ccae6aaf2489e491db2 | fb3dfdb61e4d915917dd927ee46fafc28dc5eb6b | /virtual/bin/pip3 | 3411a02bba1871c08a5e21d9c54f6b2d3289cbcf | [] | no_license | ClarisseU/neighborhoodNews | a16aa1e892eed590ced6ea90a098b3818e489d09 | 0788fdb972a278cf9509f78cd0bd1212812f669f | refs/heads/master | 2020-08-31T17:02:46.576909 | 2019-11-04T08:21:13 | 2019-11-04T08:21:13 | 218,738,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 292 | #!/home/clarisse/Documents/moringa-school-projects/Python/neighborhoodNews/virtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"clarisseum@gmail.com"
] | clarisseum@gmail.com | |
21bd1fa8ffe41b02c5d2542d4ef33663e46d68da | bd8acd125105b2786ae2edab700f844ab5b80749 | /wordplay/wsgi.py | 13af673077aaa9725340b82fa6b1bd084115b88e | [
"Apache-2.0"
] | permissive | mvillis/wordplay | a1e42b61341b8457635b9e4917028a86a5b1c4e4 | 8f34788564d3094d845808c28f2e7389d10efd3a | refs/heads/master | 2021-01-10T06:54:12.882944 | 2015-11-30T10:42:49 | 2015-11-30T10:42:49 | 43,244,997 | 3 | 2 | null | 2015-11-30T10:42:49 | 2015-09-27T12:02:14 | Python | UTF-8 | Python | false | false | 424 | py | """
WSGI config for modus project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "teamtemp.settings")
from django.core.ws... | [
"mvillis@gmail.com"
] | mvillis@gmail.com |
8e25ec0009bfe7f79af1abf451b58e2e3b426678 | b023d1fe4e5941737af34d59d5d4b73a9a8798f7 | /UpdatedDataBase/M1Webhost.py | fa3817cb369a91df76875823e3e7c5ffea0649bd | [] | no_license | dbomb995/dbomb995.github.io | 40e6be3c8191e1047a0e9f0fd874bbfb9bfae84c | 1fa0cf95d3d99254f8135b32411dc150e0b4cdae | refs/heads/master | 2022-12-01T23:24:26.478278 | 2020-08-17T03:25:21 | 2020-08-17T03:25:21 | 275,789,774 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,312 | py | #!/usr/bin/python
import json
from bson import json_util
import bottle
from bottle import route, run, request, abort
import datetime
import CRUD
import pymongo
from pymongo import MongoClient
#set up URL paths for REST service
#creates a new stock based on inputted JSON
@route('/stocks/api/v1.0/createStock/<newTicke... | [
"dbomb995@gmail.com"
] | dbomb995@gmail.com |
5fb0daed6465949e3508a4f30bbeae2151ab8c48 | 292f227759367127ab94833defe8ef854412b67c | /Quiz/migrations/0002_remove_quizmodel_secs.py | 17d5c0e54e29aa0af1708203fbbf988730de99c2 | [] | no_license | Ren0503/django-quiz | f339f7346c16d833834f4ac183fc4f99725bd76d | d080aa524e19e41e8602739e08c6937cef6b168f | refs/heads/master | 2023-08-30T08:27:43.839358 | 2021-11-15T14:52:27 | 2021-11-15T14:52:27 | 428,305,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | py | # Generated by Django 3.1.5 on 2021-05-10 11:33
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Quiz', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='quizmodel',
name='secs',
),
]
| [
"illuminati0440@gmail.com"
] | illuminati0440@gmail.com |
c528a64e067004a9b467ea07ec7d0bbdea7886a7 | 82860a7fba8d997881bd691cef6ad47c005099d6 | /contacts/admin.py | c8e97cca538f360737584e499365ba10fa96e877 | [] | no_license | vip-lash/campus_olx | 8f5892c60c301e49595d1122cd61c134b48eef45 | 74eeaef6db7604026ade9c89198031dbd5b61ad4 | refs/heads/master | 2023-05-04T04:49:57.665575 | 2021-05-22T12:10:20 | 2021-05-22T12:10:20 | 367,361,102 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | from django.contrib import admin
from .models import Contact
class ContactAdmin(admin.ModelAdmin):
list_display = ('id', 'name', 'listing', 'listing_id', 'email', 'contact_date','username')
list_display_links = ('id', 'name')
search_fields = ('name', 'email', 'listing')
list_per_page = 25
admin.site.regist... | [
"79157623+vip-lash@users.noreply.github.com"
] | 79157623+vip-lash@users.noreply.github.com |
4134a9c84a7db616605f1fbe930c40549f6951bd | 9203639695092e883083d73615536a4b75433256 | /app/routes.py | 4a5fb3a1d38d58a92de10f6de8f4126ca7c90755 | [] | no_license | vijoin/Flask_Stackoverflow_Survey | 01020d5efcc40aa1b0a3a65d6804a80a7d7112d9 | 3782851cb5d68d5ed38d53875fa4d3c3ff9c78ea | refs/heads/master | 2020-08-21T09:24:31.076447 | 2019-10-19T02:08:18 | 2019-10-19T02:08:18 | 216,130,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | import csv
from collections import Counter
from flask import render_template
from app import app
@app.route('/')
def index():
return "Hello World"
@app.route('/language/<language>')
def get_results_by_language(language):
with open('source/developer_survey_2019/survey_results_public.csv') as f:
cs... | [
"vijoin@gmail.com"
] | vijoin@gmail.com |
3f8d38892e670df3fddf9bcc9239385bc3f76a08 | f7d2c529728fa267556dc330d6dbe92f1a9d1081 | /FunAstar/Graph.py | 32b8ee40660f0f74ac270173b0e10623f7de5e9b | [] | no_license | NicholasArnaud/Python_Work | a93f2463cbf95c7a3d38c064b5b44306ec3a918a | ca97526beafe13277f59aad3fbf0ccd1dad899a5 | refs/heads/master | 2020-09-08T05:14:09.981056 | 2017-04-12T17:54:35 | 2017-04-12T17:54:35 | 73,519,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | '''Graph creator'''
from Node import Node
class Graph(object):
'''Graph constructor'''
def __init__(self, dims):
self.width = dims[0]
self.height = dims[1]
self.nodes = {}
self.nodelist = []
for i in range(0, self.width):
for k in range(0, self.height):
... | [
"cobrahead09@gmail.com"
] | cobrahead09@gmail.com |
5b9ba02f6e6b790c9994785afbbaaf66b0d92716 | bbd38d7fa5b055253a03bbeeff053975d33f2dae | /django/pythonatm/catalog/migrations/0028_auto_20191110_1731.py | b83b37dfbf17fd552e5a36d0c7fe33407706adde | [] | no_license | LeVarS/Python-ATM | 45a10faed84d0d6a444c8bea855867b0a8e1485f | 14f2faa91b87a644c5675ea2846cae58a2c70dd1 | refs/heads/master | 2020-08-09T06:50:38.873592 | 2019-11-19T19:35:45 | 2019-11-19T19:35:45 | 214,026,416 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,551 | py | # Generated by Django 2.2.6 on 2019-11-10 22:31
import datetime
import django.core.validators
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('catalog', '0027_auto_20191110_1652'),
]
operations = [
migrations... | [
"small.levar98@gmail.com"
] | small.levar98@gmail.com |
36641b439a101f2895653de388cfb25e45911f74 | a3a817089e25ff256411855618e1fba2cff2c0f5 | /docker_test/find_tradable.py | badff5602544a6d555410d59ef752b97bb2e9510 | [] | no_license | antoinecomp/portfolio-advisor | 2503e6d3f2f92679fc9c7ea2cdd97f6fbc98a7ec | fd9a2459ce020ed1306bc9782e4e4c20e4e521a8 | refs/heads/master | 2022-12-02T05:18:52.755878 | 2020-08-10T12:38:16 | 2020-08-10T12:38:16 | 250,929,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,530 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import ElementClickInterceptedException
from... | [
"antoine.coppin@auspex.ai"
] | antoine.coppin@auspex.ai |
c740c8d9b308f9829f4b5ad322ca6506f09eccde | f0136ec80c551d266ec6052deb17e4de93089640 | /100-199/Q141.py | 14a70c5ae3498ea3fbe76558eee76da13a23b661 | [] | no_license | ZakHu7/LeetCode | 57145b8c511cded4b368d49daa407a547e54281e | 33bcea558595b94169d120f345958067396a2b35 | refs/heads/master | 2023-03-04T18:39:50.726662 | 2021-02-13T23:27:23 | 2021-02-13T23:27:23 | 280,045,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def hasCycle(self, head):
slow = head
fast = head
while slow and fast:
slow = slow.next
fast = fast.next.next
if... | [
"zakhu7@hotmail.com"
] | zakhu7@hotmail.com |
87e73aaf284063b168a9e4b843c80a87d7167e80 | 57fad2716596d3ce264176a6c80ade063c4c5cba | /HigherVariability.py | 87ae4fbb2a7fb97cdec6160bf72375dd080d5aa3 | [] | no_license | OlegFS/ED-simulations | 2596958562d79aa74b0f77aa0fa337947b573157 | 3e89919df2be64b491037704cc9e610f68360d1c | refs/heads/master | 2020-04-12T00:12:03.810656 | 2019-04-28T19:42:43 | 2019-04-28T19:42:43 | 162,192,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,792 | py | %matplotlib inline
import pandas as pd
from func.processing_helpers import *
origEps = [0.05,0.1,0.2,0.3,0.5,0.7,0.8,1]
origEps2 = [0.05,0.1,0.2,0.25,0.3,0.5,0.7,0.8,1]
origIBI = [65.467486666666659,
12.760416666666666,
10.365777777777778,
12.699990909090911,
17.38184,
16.656661538... | [
"o.vinogradov.92@gmail.com"
] | o.vinogradov.92@gmail.com |
f746eedab5c4b51a3f09b597d89ae74ffc5df280 | 5b8b36090fd5546f52bcfcd47c75ddd9b3418a40 | /logistic_regression_batchGD.py | 53dd6f9076e6fd5efb1e3598405afedc62959268 | [] | no_license | krzysztof-marcin-rozanski/machine-learning-algorithms | 695e0ddbe75b404f33f83fe26f107ef9dc259290 | 2774fe74bcc2be2721d50ffff8e875cd4f773c5a | refs/heads/master | 2020-04-16T11:00:15.934992 | 2019-07-28T19:31:36 | 2019-07-28T19:31:36 | 165,520,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,660 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Jan 21 21:26:38 2019
@author: krzysztofrozanski
"""
#Initial packages
import numpy as np
import pandas as pd
import os
import matplotlib.pyplot as plt
# %% Class definition:
class logistic_regression_batchGD():
"""Logistic regressor.
Cl... | [
"krzysztof.marcin.rozanski@gmail.com"
] | krzysztof.marcin.rozanski@gmail.com |
1cb8be49fabf46b7d1996007bd3c40c46fb353c1 | 1775a5522f465cb74a1e02393d32c363bb7ef215 | /django/db/migrations/executor.py | 7ebfe3d13b012c3f15b931e04127b07bd98bbff4 | [
"BSD-3-Clause"
] | permissive | trught007/django | b280eaff7706e72a6fc0f298c68e3c065daa448b | d55d21dbb8b307941c2d26b95be46bf83015d868 | refs/heads/master | 2022-12-21T04:23:49.786811 | 2020-10-01T08:24:33 | 2020-10-01T08:24:33 | 300,203,187 | 0 | 0 | NOASSERTION | 2020-10-01T08:23:34 | 2020-10-01T08:23:33 | null | UTF-8 | Python | false | false | 6,401 | py | from django.db import migrations
from .loader import MigrationLoader
from .recorder import MigrationRecorder
class MigrationExecutor(object):
"""
End-to-end migration execution - loads migrations, and runs them
up or down to a specified set of targets.
"""
def __init__(self, connection, progress_... | [
"ekurgn@gmail.com"
] | ekurgn@gmail.com |
00d7f9ccc7f783dfc7d508878d47bbd559417ad9 | f71517168487f47f0f328d1597274f4b6bdd551b | /Assignments/assignment5/nmt_model.py | 0bcf5e96ad070ce701288d897f26f788d186ac07 | [] | no_license | YukunJ/NLP-with-Deep-Learning | 0dda9d099c595e66d02743f27f2683b15f12af16 | 77667fbcebde32a39e8f34e34034d38f352a9cbd | refs/heads/main | 2023-07-25T16:33:23.225456 | 2021-09-07T00:40:35 | 2021-09-07T00:40:35 | 349,331,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,155 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
CS224N 2018-19: Homework 5
nmt_model.py: NMT Model
Pencheng Yin <pcyin@cs.cmu.edu>
Sahil Chopra <schopra8@stanford.edu>
"""
from collections import namedtuple
import sys
from typing import List, Tuple, Dict, Set, Union
import torch
import torch.nn as nn
import torch.n... | [
"noreply@github.com"
] | noreply@github.com |
d89d6b19c984ccabeae5fc5aca7677c08e505160 | 4c0cfe74b972b6f758d479920118185f07b3ae66 | /project/project3/tests/q2_1_1.py | 5bf8157ed5f2b39dc87b7d16b08e49a84c6f52d8 | [
"BSD-3-Clause"
] | permissive | ds-modules/Colab-data-8 | 20a72aee6b7d051d2aff50a49f02c89891201971 | cccaff13633f8a5ec697cd4aeca9087f2feec2e4 | refs/heads/main | 2023-05-29T04:05:47.976935 | 2021-06-02T23:15:06 | 2021-06-02T23:15:06 | 333,593,562 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | test = {'name': 'q2_1_1', 'points': 1, 'suites': [{'cases': [{'code': '>>> 0 < one_distance < .01\nTrue', 'hidden': False, 'locked': False}], 'scored': True, 'setup': '', 'teardown': '', 'type': 'doctest'}]}
| [
"cheungclj108@berkeley.edu"
] | cheungclj108@berkeley.edu |
b1c0ddb8225b93e15e7a2ee97fe879269b637a8c | a9f3beb294b3d1f0397ecb4a0b1e6487361d04c8 | /financial_modeling_tool/stock_prediction/html.py | 5c27d13266a50fee09209336bdb99aa22963d525 | [] | no_license | ikbalsingh/MoneyControl-Hackabot | ef77b600f90e06684307fd9fb6bc188fe8aa14c1 | b139261a8032d7098b39a18e6bc45dee6574b853 | refs/heads/master | 2021-08-30T09:36:34.348118 | 2017-12-17T08:27:18 | 2017-12-17T08:27:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | fn = "content_for_inshorts.txt"
file = open(fn, "r")
of = open("daal.txt","w")
count = 0
for line in file:
print (line)
if line is '\n':
count = 0
continue
elif count == 0:
line = '<h3>'+line+'</h3>'
count = count + 1
elif count == 1:
line = '<p>'+line+'</p>'
of.write(line)
| [
"menkudlekrutik@gmail.com"
] | menkudlekrutik@gmail.com |
d1ab74682b364990dd5ac2704bf6a733bc592772 | 46494ee049e72d99a1b371a685692f040ab21a36 | /1345. Jump Game IV DC (27-12-20).py | 25cf8c7d0cacabf19275acd2406bcef42dc0b8ed | [
"MIT"
] | permissive | Dharaneeshwar/Leetcode | 5570b953787a65f5c2a831aca3645bca50710844 | cc3ed07f6ac5f4d6e3f60c57a94a06a8be2f5287 | refs/heads/master | 2023-03-25T18:40:26.258939 | 2021-03-18T06:04:11 | 2021-03-18T06:04:11 | 313,374,143 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,103 | py | # Refer Solution
class Solution:
def minJumps(self, arr: List[int]) -> int:
arrlen = len(arr)
if arrlen in [0,1]:
return 0
graph = defaultdict(list)
for i in range(arrlen):
graph[arr[i]].append(i)
current = [0]
visited = set(... | [
"daranip@gmail.com"
] | daranip@gmail.com |
6efbff97a1eb3d659a5b884175b4e260d12f7142 | 49cb44cfe9b4cd382d8a7d10e1719de69e356ed9 | /scripts/problems/ch4/p11/doSolutionStableNode.py | d1b8ad10850cc9c37fb79e5945439c7d0761cce3 | [] | no_license | joacorapela/figsResultsAndErrorsFromIzhikevich2007 | 913a25ff10479b04fa657cea013226766bef730c | 2c04cacbaa94485168926ddc7e343207beb033b9 | refs/heads/master | 2022-01-28T15:26:30.122964 | 2022-01-21T19:56:52 | 2022-01-21T19:56:52 | 150,012,910 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py |
import sys
import pdb
import math
import matplotlib.pyplot as plt
from plotFunctions import plotVectorField
def main(argv):
a = -6.0
b = 1.0
c = 1.0
xMin = -4.0
xMax = 4.0
nXs = 16
yMin = -4.0
yMax = 4.0
nYs=16
colorSaddle = (1.0, 0.0, 0.0)
colorSaddleNode = (0.5, 0.0, 0.0... | [
"joacorapela@gmail.com"
] | joacorapela@gmail.com |
8c2f7ccdf059f0192c8d9280f267840f176d69cc | 5aa7a89493e51d5e9bc8e2a124ff70b726c7c98e | /qstn7.py | 432967dee80384432ad00aceffa93930a4b0d07c | [] | no_license | UmmeSalma2614/U_3_Assessment_2 | 6edc8a4f7fe9fb27e9a07ae51b59bb52d8b74c38 | 5e5684351584707384974c8e938f400d02bbc0b8 | refs/heads/master | 2022-11-06T02:56:49.404643 | 2020-06-25T15:46:33 | 2020-06-25T15:46:33 | 274,954,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 117 | py | # Write a Python program to count occurrences of a substring in a string
s="ram is a good boy"
print(s.count("ram")) | [
"noreply@github.com"
] | noreply@github.com |
c067bbd6647ca7b193a224150e4f26296cfdc4fd | f5a615089555338fbf47574da80080303c1f45c7 | /locallibrary/urls.py | de5b643896fed82fe087f9a364e3b947da7b3d2a | [
"MIT"
] | permissive | rtora/django_local_library | eba8795274a3c7c6afb589aebe19c62a218cae54 | 454e6cb51ce53070e10a3bd9d71bd4ff55cb97a4 | refs/heads/master | 2022-11-28T23:13:24.359938 | 2020-08-14T01:08:05 | 2020-08-14T01:08:05 | 287,398,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,540 | py | """locallibrary URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"rtora@Romtin.localdomain"
] | rtora@Romtin.localdomain |
76f8121fe98413ca6968d65b7bd6bef9ed0594fd | 75e8f932e1e08c7e71380e6b71d85ddd04f052dd | /SDAPythonTesting/test_teacher.py | 0be270a7e62250060e66527352106940a261ccd8 | [] | no_license | aeciovc/sda_python_ee4 | fe470a253126ad307c651d252f9f9b489da32835 | 9e1e8be675fcafe4a61c354b55b71f53ad2af0fe | refs/heads/master | 2023-08-29T15:17:34.033331 | 2021-10-31T09:41:57 | 2021-10-31T09:41:57 | 365,678,373 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,558 | py | import pytest
from teacher import Teacher
@pytest.fixture()
def valid_person_name():
yield 'James'
print("Cleaning the environment")
@pytest.fixture()
def invalid_person_name():
return ''
class TestCreateDirector:
@pytest.mark.skip(reason="still not implemented")
def test_create_director_wit... | [
"aeciovc@gmail.com"
] | aeciovc@gmail.com |
8b557c8955a63421c33ce7f9d2752c4cf05e91f2 | c598e71fd1fdd9469b9616178cc4daab9a509841 | /4. Leader&Team Dynamics - from simulation to experimentation (with Simn Karg)/oTree/__temp_migrations/otree/0001_initial.py | 6fb47237b72b0969ba25f1d514b789cd29361087 | [
"MIT"
] | permissive | Rnault/SCDC-archives | 0e8f7612c59ccb07b9708963481f9c5c7f3530b5 | 4de173bf807a235a3529d6e19ecc70de583173ab | refs/heads/master | 2020-07-05T19:15:27.241907 | 2019-11-30T20:37:04 | 2019-11-30T20:37:04 | 202,743,157 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,179 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2018-11-02 10:06
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
import otree.common_internal
import otree.db.models
import otree.db.serializedfields
import otree.models.varsmixin
import otree_save... | [
"32672200+Rnault@users.noreply.github.com"
] | 32672200+Rnault@users.noreply.github.com |
02d809593ba6a38543c41effe1e818c54ac1a82c | 306bbd0a99fc2744635017eb5ba798f33e6e5977 | /networking_sfc/tests/tempest_plugin/tests/api/test_sfc_extensions.py | 5c130146ebf1c564d4eabd77b3f699c58b0b7e1f | [
"Apache-2.0"
] | permissive | doonhammer/networking-sfc | 3b980a0ad930b15476eef0de73c58eeeed039c06 | 13cce64bbaf3dc9a692efffc92b19264b9085be7 | refs/heads/master | 2021-01-17T23:33:14.665381 | 2016-10-17T00:23:31 | 2016-10-17T00:23:31 | 55,648,157 | 0 | 0 | null | 2016-04-06T23:22:58 | 2016-04-06T23:22:57 | null | UTF-8 | Python | false | false | 12,855 | py | # Copyright 2016 Futurewei. 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 appl... | [
"xiaodongwang991481@gmail.com"
] | xiaodongwang991481@gmail.com |
cf4a648f40740cd744dde1770aef72963b4cc788 | 7dabcbde11781ff4bc709749bc5113bddfb3bdf2 | /python/deep-learning/tensorflow/prac.py | a4097cb23bd7e681c3256160aecdb8fd96aece9f | [] | no_license | wkoki/Workspace | 64c28581ddad6b68b831c13af060b7f55dbfc69a | 964bbf4db1360e8e6fbab80c8cf130824e89e272 | refs/heads/master | 2021-08-07T01:02:11.191923 | 2017-11-07T08:10:26 | 2017-11-07T08:10:26 | 107,400,107 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets('MNIST_data', one_hot=True)
import tensorflow as tf
sess = tf.InteractiveSession()
x = tf.placeholder(tf.float32, shape=[None, 784])
y_ = tf.placeholder(tf.float32 ,shape=[None, 10])
W = tf.Variable(tf.zeros([784, 10]))
b =... | [
"kokikiechiri@icloud.com"
] | kokikiechiri@icloud.com |
2f26abea6ebf6a0b66e6652cdabb2001af34d990 | 4ecab1190b24f6866cb3b0e8c5d4a6e74d911c26 | /programs/py/like.py | f52b66635e6286ea8914afa09840bf89ea132004 | [] | no_license | bhupkas/Backup | f15ccfa8bc44a2dc3544b204dfeaeea6d8728ded | 67d5343cf9de9267488414aa4da0eb2ada867464 | refs/heads/master | 2020-06-08T09:37:48.140088 | 2015-05-22T21:00:15 | 2015-05-22T21:00:15 | 32,330,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | #bhupkas
import requests
import json
# Himanshu's post time
AFTER = 1373535091
TOKEN = 'CAACEdEose0cBAKYpL911YZCU2cxrPrfCq4byxZALOauxn6MCRkzfDQkXrhQ7lNgOxrsdb2YKfmxuPOgZBG0rvqyksZBIiyoLYOBe88jnLKcxjipwQ7SJltXJE3v58BblA7umAgYJrDyarjX5prEm6QKTZCnzZAfAkVPLdxtaoKywZDZD'
def get_posts():
query = ("SELECT post_id, act... | [
"bhupendra@bhupkas.(none)"
] | bhupendra@bhupkas.(none) |
cbea326e7b014b522803373a61372a366f563f9e | 96e77a734bf865f998e719fafcaabd120b93759c | /Python/Django/login_reg_proj/apps/login_reg_app/models.py | ea5e8361c65eb78b014f69c076a74c0cb4e33b65 | [] | no_license | imronha/codingdojoprojects | 3346feca1c03f625270eeded2cfb6a9b0249ab56 | 1b40688372844eca3fd02401f397c4ba4b334ce7 | refs/heads/master | 2020-04-05T12:59:14.237411 | 2017-11-06T08:27:06 | 2017-11-06T08:27:06 | 94,944,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | from __future__ import unicode_literals
from django.db import models
import re
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
class UserManager(models.Manager):
def basic_validator(self, postData):
errors = {}
if len(postData['first_name']) < 2:
errors['fir... | [
"imronha@gmail.com"
] | imronha@gmail.com |
b4b1846f13fb3468ed8fa0ce3fbf3534f5db68c5 | f573b1b9b9446dc9367178140633a27571bb4692 | /settings.py | 799f695d54d9b7086b599a9b343b7bfd97256e72 | [] | no_license | Deadflagx/InstagramToVk-2.0 | 78b60947df80f8ab3d53588a30b6009e5b0ae883 | 4f7e6677fd32d95d4bcb73022595428c4da9d2d7 | refs/heads/main | 2023-04-07T21:58:08.694132 | 2021-04-08T10:34:13 | 2021-04-08T10:34:13 | 355,862,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | group_id = #Vk Group Id
topic_id = #Vk Topic Id for list of followings
token = #Vk Token(User)
inst_login = #Instagram Login
inst_password = #Instagram Password
| [
"noreply@github.com"
] | noreply@github.com |
e6184723c07a77ff9e21bc8008c83d6707a1a41a | 5b386862b7fd10a6426a16be4383c9fdf71f594b | /Text editor.py | 2774867ce40042dd79814a3b1cb79ebf10b38c2e | [] | no_license | uosf2004/python-text-editor | 288e4431f70e32871a410d438157cc778a0cdff1 | e43fe668fb646d9c1a00232fd63d476e381f4051 | refs/heads/main | 2023-05-02T05:34:22.115191 | 2021-05-21T19:44:52 | 2021-05-21T19:44:52 | 369,638,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,396 | py | import tkinter as tk
from tkinter.filedialog import askopenfilename, asksaveasfilename
from tkinter import *
def open_file():
"""Open a file for editing."""
filepath = askopenfilename(
filetypes=[("Text Files", "*.txt"), ("All Files", "*.*")]
)
if not filepath:
return
txt... | [
"noreply@github.com"
] | noreply@github.com |
746432141ac3bf1c70aeef48bdf0910d0dbf16f0 | a5dc52a3df9d2a61b593d1e5a9ce668b7b597ebd | /bin/python/gui.py | df73c9f4d51cc5f7d975db51120e438bd90e49de | [] | no_license | wdswihart/linear-algebra-project | 3fa2b1084d90ff97617b82d7246f54812fb10a74 | 4e2f3387c892211f96ef826bedb36cf7d3b204da | refs/heads/master | 2021-01-21T14:44:55.840019 | 2017-07-08T06:13:07 | 2017-07-08T06:13:07 | 95,330,865 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,102 | py | # Gui represents a GUI object, for a Linear Algebra Project on fractal compression,
# using Python 2.7.
#
# William Swihart, Nick Phillips
# University of Central Arkansas
# Summer 2017
import sys
import os
import ctypes # Used to get screen resolution, to calc frame size
import wx # wxPython 3.0 amd-64 (made for Pyth... | [
"wdswihart@gmail.com"
] | wdswihart@gmail.com |
f1c6fde56435d1036e1c7a5a17eaac7c66df7741 | 32bba67ea638ea292b372b86274b2fddaf7b24da | /dta.py | 8be485eb7fd79de10450956a3dae91e63c53e8a2 | [] | no_license | jorgebotas/DTApredict | df272418a4485246d3959ce3f0a845a2c140002f | cb60389ead5ff93006ad65b4295a0bc2e27e43ed | refs/heads/master | 2022-09-29T03:59:07.356854 | 2020-06-07T17:06:43 | 2020-06-07T17:06:43 | 270,357,848 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,370 | py | # Jorge Botas Miret and Beatriz Campillo
# Based on DeepDTA paper
from __future__ import print_function
import numpy as np
import tensorflow.compat.v1 as tf
import random as rn
import pandas as pd
import sys, pickle, os
import math, json, time
import decimal
import matplotlib.pyplot as plt
import matplotlib.mlab as ml... | [
"noreply@github.com"
] | noreply@github.com |
e4bbd7f3e9f31eeaa371d7003f67e911a77afce4 | aa1fc34a6f7f7093b209292a28404aacddfde03c | /cubed.py | 0bcae4bb0820f62c894743eced355d305501cb95 | [] | no_license | aaronhalstonlee/selfTaughtProgrammerUdemy | 117c6329d6e0e9898acb72b389fd51129cea99ae | d9a52329d5364f3cc69602aa0603d09db12fe1c1 | refs/heads/master | 2023-03-27T21:51:20.990036 | 2021-04-04T23:20:16 | 2021-04-04T23:20:16 | 354,666,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | """Assignment 3 - module to import"""
def cubed(num):
return num**3
| [
"aaronhalstonlee@gmail.com"
] | aaronhalstonlee@gmail.com |
18c2c0d1ad03ab578a48bb6e7743e2579e047cd7 | 95e38accf6a20581ce60811676db7abbdfb5e16f | /genre_detection.py | 80ecf3e6a499adcd61f5a7c7b9834bfade68729f | [] | no_license | archikanandi/genre-detection-using-tensorflow | 9446ca78b53554506cdf0a85aab20fda97f6c95b | 1913f7b9771a246a96890fd37b5acbc5bf88276c | refs/heads/master | 2022-12-19T15:06:28.363927 | 2020-09-26T08:04:56 | 2020-09-26T08:04:56 | 298,748,316 | 2 | 0 | null | 2020-09-26T08:04:57 | 2020-09-26T06:00:00 | Python | UTF-8 | Python | false | false | 1,402 | py | import nltk
import json
from nltk.stem import LancasterStemmer
lancaster=LancasterStemmer()
with open("booksummaries.txt","r",encoding= 'utf8', errors='ignore') as f:
contents= f.readlines()
books=[]
test_books=[]
count=0
for con in contents:
fi=con.find('{')
li=con.find('}')
if fi==-1:
cou... | [
"aritraghosh084@gmail.com"
] | aritraghosh084@gmail.com |
0daf640594f3f76d2704380dcd023c03d07564da | 17138c4b629c222da3aa31dc676c2ce496735c8f | /tweet.py | 9a107497af374a9185ef7f6e2f017a03669aa630 | [] | no_license | armostafizi/election_twitter_sentiment_webapp | b817b7787ca9a0b40f38d10293ff95500f0bd125 | 7640d179caf2dc5e2586a8fd14be95ed697b0e3e | refs/heads/master | 2022-12-13T13:08:48.210548 | 2019-10-01T07:22:02 | 2019-10-01T07:22:02 | 211,234,377 | 0 | 0 | null | 2022-12-08T06:38:58 | 2019-09-27T04:11:36 | Python | UTF-8 | Python | false | false | 1,122 | py | # Tweet object
class Tweet:
def __init__(self, text, time):
self.time = time
self.text = text
self.sentiment = None
self.sentencize()
# clean tweet and break down sentences
def sentencize(self):
from sentence import Sentence
from clean_tweet import c... | [
"ar.mostafizi@gmail.com"
] | ar.mostafizi@gmail.com |
87862af793e12cbbe956d19af94e299d5849d5f1 | 79eb476a2f0295d5f7fe99c935b3ab755164bc3b | /Veci.py | 43d25b7261fc028b729346d489866bc42434263f | [] | no_license | nyborr/OpenKattisProblems | b5d5d8bb4d5a5b3e89f8070f3e8c6c90b54617a7 | 1a96faaaed40e6b1e61ef904a1740cf8aea63cb9 | refs/heads/master | 2020-03-27T22:38:30.637627 | 2018-09-25T17:47:07 | 2018-09-25T17:47:07 | 147,248,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from itertools import permutations
x = int(input())
smallest = None
for n in permutations(str(x)):
n = int(''.join(n))
if n > x:
if smallest == None:
smallest = n
smallest = min(smallest, n)
print(smallest if smallest is not None else 0)
| [
"robynlynnyates@hotmail.com"
] | robynlynnyates@hotmail.com |
e52b82f3af5b000de9b29947a705c750295a1264 | e2a612cbe46de164ca6e13e4910f024812993767 | /src/twitter_analysis.py | 146901643018e5a3d3c088bc415aeb9857453d39 | [] | no_license | arun1gv/IdeaFest_Twitter_Analysis | 8d05a049fb99f74451e5ea87e431d8deffdf2655 | 962509970d66b2501431beee8d592bb373c1ad12 | refs/heads/master | 2020-05-16T11:14:09.895518 | 2019-04-23T15:03:56 | 2019-04-23T15:03:56 | 183,009,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,034 | py | import sys, tweepy, csv, re
from textblob import TextBlob
import matplotlib.pyplot as plt
class SentimentAnalysis:
def __init__(self):
self.tweets = []
self.tweetText = []
def doSentimetAnalysis(self, searchTerm, NoOfTerms):
# authenticating
consumerKey = 'tqUCmpG5TdvRz8JeE3... | [
"niket.kumar@ellucian.com"
] | niket.kumar@ellucian.com |
39b5d06427dab80a5c1770bca51caf5abf75af1e | ed5d65df8409becebfa0c6c0db5ebf3d79f97137 | /0x04-python-more_data_structures/2-uniq_add.py | 21437ee5c1d6174c330e6f6cf80bdb6dca7750b1 | [] | no_license | kelliemogg/holbertonschool-higher_level_programming | 6f1f5d45cb51392de014eee36a4fd86044e5746d | fe22b6b3a2e97e9b79896763a2b941df0305f133 | refs/heads/main | 2023-05-25T06:07:26.872420 | 2021-05-18T01:50:56 | 2021-05-18T01:50:56 | 319,393,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | #!/usr/bin/python3
def uniq_add(my_list=[]):
result = 0
uniqlist = set(my_list)
for i in uniqlist:
result += i
return(result)
| [
"kelliedmogg@gmail.com"
] | kelliedmogg@gmail.com |
94c45b958dd5fbac3ee4be6377fe4eaced0a3f99 | 149e0ac3f80646b607dde340d1c4895b7d0bb027 | /Package/otRebuilder/Dep/fontTools/subset/__main__.py | 10e470fe6122bf2fae8a4bd8df2af76437008c1f | [
"MIT"
] | permissive | Pal3love/otRebuilder | e86780dbfc4d76e0e5b19f26968584b1d8fff959 | a1acf28a88696dbbe8f0d23e5d4cf20ba20c4941 | refs/heads/master | 2021-01-02T08:53:13.383424 | 2018-09-21T17:45:57 | 2018-09-21T17:45:57 | 99,083,999 | 58 | 4 | MIT | 2019-06-25T06:14:17 | 2017-08-02T07:05:26 | Python | UTF-8 | Python | false | false | 193 | py | from __future__ import print_function, division, absolute_import
from fontTools.misc.py23 import *
import sys
from fontTools.subset import main
if __name__ == '__main__':
sys.exit(main())
| [
"hsydyj@hotmail.com"
] | hsydyj@hotmail.com |
cbea78a65424df6b3a4b38d99b6137904309ff01 | 5ccef16d6ab5ab48ae5e1cb2c9dcc4917a8bc895 | /tools/rsa/rsa.py | 49c665b2e29a1b81ee5519a060429b5b9dc52734 | [] | no_license | PolarPeak/CTF-Note | bd8bbe2dc5a136c4d738f990e2c7cb658446e129 | c7501e1212caa7d4212e0d27f364f5315a163f79 | refs/heads/master | 2023-08-11T12:49:30.206614 | 2021-09-30T06:08:24 | 2021-09-30T06:08:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | import gmpy2
## 已知 p q e c 求 m
p = 3
q = 11
e = 3
c = 26
n = 33
s = (p- 1) * (q - 1)
d = gmpy2.invert(e,s)
m = pow(c,d,n)
print(pow(c, d, n))
| [
"292826387@qq.com"
] | 292826387@qq.com |
f98c0ba473b4f18f1b2dc9a34cf29bf54651c48f | 71acb7214efd91c0d327f6d8958e1798eadb4401 | /locations/spiders/halfords_nl.py | a324790d8a41e361696f8252b1f530caa2776328 | [
"CC0-1.0",
"MIT"
] | permissive | alltheplaces/alltheplaces | 21b9f8b4ace1352e52ae7b8f8825a930d2cb033e | 1bcbb55cfcf06f2c714465570711f6e83f205c22 | refs/heads/master | 2023-08-30T19:45:35.098658 | 2023-08-30T17:51:54 | 2023-08-30T17:51:54 | 61,166,935 | 453 | 176 | NOASSERTION | 2023-09-14T17:16:40 | 2016-06-15T01:09:18 | Python | UTF-8 | Python | false | false | 2,333 | py | import json
import re
from scrapy import Request, Spider
from locations.hours import DAYS_NL, OpeningHours
from locations.items import Feature
from locations.structured_data_spider import extract_email, extract_phone
class HalfordsNLSpider(Spider):
name = "halfords_nl"
item_attributes = {"brand": "Halfords"... | [
"noreply@github.com"
] | noreply@github.com |
b4e6b550ec11c5ebc1f49d06f932e65f432f3392 | 3a68517ac835085c5f7f6a712ea6d99b8aeced57 | /manage.py | 2aa4d1879ca4b96935edd8c47d935b9d28f2126b | [] | no_license | LuchoMate/jurassicrysis1 | 4ec22a8f297ff4d4652800dd6d2537af875ddb52 | 7ba25ce72657e51abff8572e612b0cea6916b9b7 | refs/heads/master | 2023-06-06T08:09:57.138891 | 2021-06-22T17:02:08 | 2021-06-22T17:02:08 | 350,543,981 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'jurassicrysis.settings')
try:
from django.core.management import execute_from_command_line
excep... | [
"luisdavidballadares@gmail.com"
] | luisdavidballadares@gmail.com |
35dabd2ca94f9cf2c73f45631985a39eb651d457 | 0ac9ba2576e22f773dca0472e6a5f64791b39b2b | /get_nn.py | 85057a6bce7e25a9252f47a46c31a2fd69f7d0a5 | [] | no_license | cambridgeltl/xling-postspec | 78e6475236e48e6f07c9f1b0a32b450d9de45b21 | c82324d92c0aace11191ddcda880c065623d17d6 | refs/heads/master | 2020-11-26T13:19:53.804424 | 2019-12-19T16:04:56 | 2019-12-19T16:04:56 | 229,083,573 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,747 | py | import io
import numpy as np
import faiss
import argparse
parser = argparse.ArgumentParser(description='Get nearest neighbours of a list of source words in a target language')
parser.add_argument("--src_emb", type=str, required=True, help="Source embedding path")
parser.add_argument("--tgt_emb", type=str, required=Tr... | [
"edoardomaria.ponti@gmail.com"
] | edoardomaria.ponti@gmail.com |
3ee6fb007388a9ebf13eb6352dc5caecbbb4a475 | 47d40770c337e95c4fe332d56830c4cf274e839f | /Collect_onPicking.py | c37e4c67c5602fb00ef37fffbabd4928282a450c | [] | no_license | Yeath98/Main-control-system-and-car-navigation | 4ef6b6e00babd388ac4c4ae7e93458bed23ec189 | 57c593f63a62e7aeaf1e68a8f4706eef3995e85b | refs/heads/main | 2023-05-29T17:53:27.681424 | 2021-06-21T09:40:10 | 2021-06-21T09:40:10 | 378,878,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,293 | py | #-*- coding:UTF-8 -*-
import RPi.GPIO as GPIO
import time
import smtplib
# from email.mime.text import MIMEText
# from email.mime.multipart import MIMEMultipart
# from email.mime.image import MIMEImage
from time import sleep
from pip._vendor import requests
import sys
import pygame
from pygame.locals impor... | [
"noreply@github.com"
] | noreply@github.com |
04bbb86a8f5cf288084c3aecadf6ba85576c17c9 | 1cb1df707eee19a1b2c804e8e15d24575ed53b42 | /drone_control/src/tello_server.py | 1767ce3027ef81cad65ac1fd2a3ef6e21c79d3f0 | [] | no_license | SMRazaRizvi96/MixedReality-based-drone-controller | 2fce3a7f3fca38459f97cff85fc7b613444a4474 | d69fcc0b55f5fa3f586a5cf93a2f5418eed484fa | refs/heads/master | 2023-08-30T19:58:37.294429 | 2021-10-22T15:38:53 | 2021-10-22T15:38:53 | 386,764,810 | 10 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,103 | py | #!/usr/bin/env python
# Tello Python3 Control Demo
#
# http://www.ryzerobotics.com/
#
# 1/1/2018
# This is a Server. TELLO has its own client.
# Type the commands, and it will send the UDP Packets to the UDP CLients.
import threading
import socket
import sys
import time
import platform
# Python libs
import mat... | [
"noreply@github.com"
] | noreply@github.com |
98719caa5ed85927ef29f9e8b6dad72ae8b83627 | fed124f6e0b9abef313a0a18d908667aa2ea8d1c | /run.py | e9d461c947780bd20ce8f17321df0eefece5de02 | [] | no_license | Robustic/Orchestime | 72fbb01a6e5b3667b8989149fd6c81a22b1af9e6 | 759a1b8773e8b090924b05d68caeb87c9949b864 | refs/heads/master | 2021-07-10T06:02:17.740804 | 2020-02-28T21:54:57 | 2020-02-28T21:54:57 | 234,333,700 | 0 | 0 | null | 2021-03-20T02:43:28 | 2020-01-16T14:06:07 | Python | UTF-8 | Python | false | false | 221 | py | from application import app
import os
if os.environ.get("HEROKU"):
app.logger.addHandler(logging.StreamHandler(sys.stdout))
app.logger.setLevel(logging.ERROR)
if __name__ == '__main__':
app.run(debug=True)
| [
"juha.malinen@helsinki.fi"
] | juha.malinen@helsinki.fi |
085eddfb4a106edb55364a642adb368999dcd761 | dc7d0af6a34027d1d6423350a2edff08e8d0f9c1 | /actions/admin.py | 7813aff3d877d235edc61fb02a4b68eb51254686 | [] | no_license | massimilianoporzio/bookmarks | eda9c104f7634094971046eb4c6a9d1b56a9cf44 | 3bf6c240f6902335e3bed3797081566a31f878da | refs/heads/master | 2023-04-25T05:03:19.179642 | 2021-05-12T14:47:27 | 2021-05-12T14:47:27 | 366,106,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | from django.contrib import admin
from .models import Action
# Register your models here.
class ActionAdmin(admin.ModelAdmin):
list_display = ['user','verb','target','created']
list_filter = ['created']
search_fields = ['verb']
| [
"massimiliano.porzio@gmail.com"
] | massimiliano.porzio@gmail.com |
5a536a740bfe28ad87bac7577f8ca41ad15e4ad3 | a913604e4b9db18a270cd86793fc376021dfbf21 | /pot_graph.py | 1472f64b3d489f0461421fd0a87160924c6eae98 | [] | no_license | hlpr98/Paper-Implementation-NTC | 70e8388f3648dc4e92efb31fc502bbe170781fe0 | e34a78500235671c9c3020d64c510c9e33736354 | refs/heads/master | 2020-04-06T14:59:10.458118 | 2018-11-02T07:55:43 | 2018-11-02T07:55:43 | 157,561,644 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | import numpy as np
import matplotlib.pyplot as plt
import csv
# f = open('ans.csv', 'r')
x_axis = [i for i in range(10, 100, 5)]
a = []
b = []
c = []
d = []
e = []
f = []
g = []
with open('100.csv') as csv_file:
csv_reader = csv.reader(csv_file, delimiter=',')
for row in csv_reader:
a.append((float... | [
"16co108.keshava@nitk.edu.in"
] | 16co108.keshava@nitk.edu.in |
b9d0e135072234e5bc41f7d24f5b094c3e911e1e | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/RSGraviton/RSGravitonToGammaGamma_kMpl01_M_2500_TuneCUEP8M1_13TeV_pythia8_cfi.py | ef7485d71801413c97f0e543105aabed9bc8fecc | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 1,194 | py |
import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(13000.0),
crossSection = cms.untracked.double(1.095e-3),... | [
"sheffield@physics.rutgers.edu"
] | sheffield@physics.rutgers.edu |
08eb21f3d1d07986118f7142ec0180371e0d81f6 | 35e6caab09c2011e9c52cfa307ab2ba18c66ed97 | /jenkinsAccess.py | 8a8bc2edf3e8a364f69ba2afb5e8ad98a2e1ab4c | [] | no_license | akarys92/JenkinsRecorder | ea97d7a4958ab791a51e3c1b595fdd29c7e690cc | c8ead88af5d53cf3f4717b8a2b2ee61e425759fe | refs/heads/master | 2021-01-25T09:00:46.457270 | 2017-11-01T05:03:44 | 2017-11-01T05:03:44 | 93,768,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,415 | py | import urllib2
import base64
import ast
class JenkinsAccess:
# make token and username input parameters
def __init__(self, token, username, base_url):
self.base_url = base_url
self.api_string = 'api/xml?'
self.token = token
self.username = username
def getAllJobs(self):
... | [
"alka@microsoft.com"
] | alka@microsoft.com |
0ee2600a042dea599656b12452140b511d692026 | dffb9a8855adecc4bd4d21b9168a4e9bdc75e508 | /binarytree/toolcls.py | 2e1768b0a03994892d0ce52f717d37019e32f92e | [
"MIT"
] | permissive | ResolveWang/algorithm_qa | 95278c4459e38c55225304210770efb61d934fcc | a0cb649acaf8cf9d808272bc15f1951f2c05c828 | refs/heads/master | 2021-07-17T09:32:01.845815 | 2018-08-13T13:54:42 | 2018-08-13T13:54:42 | 100,107,109 | 90 | 29 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | class Node:
def __init__(self, value):
self.value = value
self.left = None
self.right = None | [
"1796246076@qq.com"
] | 1796246076@qq.com |
eefe69a13268caffcbb2ad4c9ffb588027419fa9 | 6e71b686868c22ad5dd092ae4d97faaa9829d9d8 | /ESB/slaveflow/Processors/change_detection/Change_detection_S1 - modded - working.py | 39917190388ca3110aa22dc1388e0fc74f347dcb | [] | no_license | iliasioannou/rhtcs | e5f92ec52db4549272d29461e0d7ac11ec9f843d | a25c33caad28faf8da88eafb011575f164e556de | refs/heads/master | 2021-01-20T18:01:47.889459 | 2016-06-01T14:07:55 | 2016-06-01T14:07:55 | 60,761,336 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 44,978 | py | import os, sys
import fnmatch
import shutil
import subprocess
import logging
from osgeo import gdal, gdal_array, ogr, osr
from imagine import modeler
logging.basicConfig(level=logging.DEBUG,format='[%(levelname)s] %(message)s',)
#############################GENERAL COSTANT INPUTS######################################... | [
"giorgio@planetek.it"
] | giorgio@planetek.it |
569511d3b41d23f306437fbd91164925d7407523 | 207cb3d3dbc516200fdcfd25e01f5c76f432b442 | /guides/guide03/g03e03.py | 3b18c5d4c52a1bcd47530ecd65f3c60e24808d2c | [] | no_license | lucasgarciabertaina/python-exercises | d31a713db61126fba86d81596a66b9f3397b79be | efc006ec06fbd23ed6d073f319eec1e23f0beb59 | refs/heads/main | 2023-07-20T12:32:34.350316 | 2021-09-02T19:41:45 | 2021-09-02T19:41:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 516 | py | """
#1: Almacenar en dos listas paralelas,
nombres y sexos de 8 personas.
#2: Recorrerlas y guardar los nombres de las
mujeres en una nueva lista.
#3. Mostrar los elementos de la lista
resultante.
"""
names = ['Carla', 'Pedro', 'Victoria', 'Raul',
'Candela', 'Camila', 'Lucas', 'Pedro']
genere = ['female', 'mal... | [
"lucasgarciabertaina@gmail.com"
] | lucasgarciabertaina@gmail.com |
37b7607bedae831c1757bd8ce9aaabbd27d0aa50 | 4510fddbfbb394fa9bd3b702490ff80c52b7fdef | /ImageClass.py | 5b8fd33895a8f304510ff82eb581afcb43465961 | [] | no_license | liujch1998/VideoIndexer | ce142977e70b455fd10f2cda954f7525c1b2518b | 34e486c488ad172a97be3e2aa0b467032a3ca265 | refs/heads/master | 2021-03-27T10:51:46.042749 | 2018-07-12T02:57:14 | 2018-07-12T02:57:14 | 111,490,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,719 | py | import os
import sys
import numpy as np
import h5py
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Dropout, Flatten, Dense
from keras import applications
image_size = (128, 128)
neg_cnt = int(sys.argv[1])
pos_cnt = int(sys.argv[2])
sample_cnt = ne... | [
"liujch1998@gmail.com"
] | liujch1998@gmail.com |
3f4a40a366a377a780b0dbafd47e4a7e3a6ffa48 | 62008271d74cf108960250c7847f152d43fa2135 | /micropython/ulog/ulog/mqtt_sink.py | 3c0b46b7eaa798edd7769f20dade62ab5de50230 | [
"BSD-2-Clause"
] | permissive | fadushin/esp8266 | de19e84f50f84f4ef4335da3909be705725de9c9 | 790958fa332592c80a0f81f25cdaa9513d596f64 | refs/heads/master | 2021-01-20T20:14:56.870853 | 2018-01-15T18:27:39 | 2018-01-15T18:27:39 | 64,350,541 | 74 | 34 | BSD-2-Clause | 2018-01-01T19:32:50 | 2016-07-28T00:19:34 | Python | UTF-8 | Python | false | false | 2,794 | py | #
# Copyright (c) dushin.net 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, this list of conditions and the foll... | [
"fred@dushin.net"
] | fred@dushin.net |
8b2e1806b6616348bb8cf291ab7c22552add7027 | 6191851bda0a9f652d4f83bd48eebffdb04c097f | /properties/test_encode_decode.py | 8d84c0f6815143c87d1cfd9476d89786a75b4b2b | [
"Apache-2.0",
"Python-2.0",
"BSD-3-Clause"
] | permissive | rmsare/xarray | 05b43543e34f400a8c3732443ce20c933190623e | c86810b5ab3fc1cd47c1c0ed07e002b797b27eaf | refs/heads/master | 2020-03-25T00:44:07.544939 | 2018-08-01T18:55:18 | 2018-08-01T18:55:18 | 143,202,900 | 0 | 0 | Apache-2.0 | 2018-08-01T20:00:43 | 2018-08-01T20:00:42 | null | UTF-8 | Python | false | false | 1,454 | py | """
Property-based tests for encoding/decoding methods.
These ones pass, just as you'd hope!
"""
from __future__ import absolute_import, division, print_function
from hypothesis import given, settings
import hypothesis.strategies as st
import hypothesis.extra.numpy as npst
import xarray as xr
# Run for a while - a... | [
"fabien.maussion@uibk.ac.at"
] | fabien.maussion@uibk.ac.at |
ef71a4953a8ba9f8e541b4c3570781f44889d29e | 3bc29b8a477ed941dea3ba677da93e5ca70a6757 | /venv/lib/python3.6/enum.py | 8c7203dfbe38d1a97ea09a075205e7bc03c7d5d1 | [] | no_license | Jackstone92/newsmarkr | ce69bf4200edbb5b8e622f237d945f087f38b390 | 9834f7e3e9e6402b3c12d74b7534c4673f70e384 | refs/heads/master | 2022-12-12T03:14:32.828951 | 2018-07-12T12:52:53 | 2018-07-12T12:52:53 | 140,694,986 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48 | py | /Users/jacksimac/anaconda3/lib/python3.6/enum.py | [
"jackstonemedia@gmail.com"
] | jackstonemedia@gmail.com |
276669d178cb5c98663816ef873c8f9ba74630fe | 46bb96c640eaeeaffc81dfaf62ddca084d9e127c | /bugbuzz_service/db/tables/sessions.py | 4c2ca601ff7e457f3d0b048f56db55183668c702 | [
"MIT"
] | permissive | pbehnke/bugbuzz-api | 4d475d53620f839ef6b33c5326ca1bc079936c88 | 5ed6810f65f1edabf65282359eabc3845df26a67 | refs/heads/master | 2021-06-17T06:45:26.633291 | 2017-05-22T18:55:28 | 2017-05-22T18:55:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | from __future__ import unicode_literals
from sqlalchemy import Boolean
from sqlalchemy import Column
from sqlalchemy import Table
from sqlalchemy import Unicode
from sqlalchemy.dialects.postgresql import BYTEA
from . import metadata
from . import now_func
from ...utils import GUIDFactory
from .utc_dt import UTCDateTi... | [
"bornstub@gmail.com"
] | bornstub@gmail.com |
672d99740941e7ca8098f741a78d00afbbd162e7 | 03ed0e9060d5b2c5e280d13efcb47d27c48db3ad | /buggy.py | 8de7ff5a876f234ab4d27b6217a41e7de2feabd4 | [] | no_license | JeremiahTee/python-games-sweigart | 8c81b9731e835eb41db9f9504ff62616cf8fcb48 | 78045c9593e5fc5a24e5647c360f145b93c30af0 | refs/heads/master | 2023-06-26T06:32:37.910115 | 2017-11-16T00:01:58 | 2017-11-16T00:01:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #purpose of this program is to learn how to debug with Pycharm
import random
number1 = random.randint(1,10)
number2 = random.randint(1,10)
print('What is ' + str(number1) + ' + ' + str(number2) + '?')
answer = input()
if int(answer) == number1 + number2: #int casting to compare int with int
print('Correct!')... | [
"jeremiahteee@gmail.com"
] | jeremiahteee@gmail.com |
7bc56a6a6c0e9e70fcf4c6fdd3a47ab6349a4cd5 | e50ece41793c6c14ffe928467f0cf2dfa9d85378 | /scripts/monit_start_service.py | 521ff328e67e0d8fed62e919995a0b871430a6d1 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | kthh07/appscale | 29c75376099afb77d843260a6d66c905c3e70793 | a2fe3790f40db4a0df22c8623f5e075f81821bcb | refs/heads/master | 2022-10-06T16:31:04.222503 | 2016-06-27T22:27:22 | 2016-06-27T22:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,005 | py | #!/usr/bin/env python
import logging
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '../AppDB'))
from cassandra_env import cassandra_interface
sys.path.append(os.path.join(os.path.dirname(__file__), '../lib'))
from constants import APPSCALE_HOME
from zkappscale import zktransaction as z... | [
"tanvimarballi@gmail.com"
] | tanvimarballi@gmail.com |
1d590606fe19929d36e888bdffa9ae47f0d259ad | b732d618103bbd220e40f5d467e7db6fa5966482 | /snowflake_koch.py | 199f619728cce3584ee8836c873dfa29371fd583 | [] | no_license | matherique/ifspcjo-edd | f1bad9ea240186cd1602c630e443c4951e21bf6a | 40873856f832af527575a1be1a7c549dbb594497 | refs/heads/master | 2020-07-25T14:47:22.133414 | 2019-12-13T00:23:01 | 2019-12-13T00:23:01 | 208,327,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | #!/usr/bin/env python3
import turtle
def koch(tartaruga, n, tamanho):
if n == 0:
tartaruga.forward(tamanho)
else:
koch(tartaruga, n - 1, tamanho/3)
tartaruga.left(60)
koch(tartaruga, n - 1, tamanho/3)
tartaruga.right(120)
koch(tartaruga, n - 1, tamanho/3)
tartaruga.left(60)
koch(ta... | [
"matherique@gmail.com"
] | matherique@gmail.com |
480228859cf38239eaf0b30427d4ebd5cd359051 | e0ca4fe7b672f1a1124314adf2fee8bfa4df1548 | /app/app.py | 0712b144de1a54724e0e3990122571cecb2ea073 | [] | no_license | simlouis/TwitterBot | e1bfc7ed96e2aa7cf508e13e9e603e1f4292099e | 3ca6d8db1c92b60c341a0a13235c0b99f64d6fb5 | refs/heads/master | 2023-04-29T02:36:31.122021 | 2021-05-11T00:43:06 | 2021-05-11T00:43:06 | 360,569,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,090 | py | from flask import Flask, render_template, request, redirect, flash, url_for
from flask_tweepy import Tweepy
import tweepy
import matplotlib.pyplot as plt
import sqlite3
from sqlite3 import *
app = Flask(__name__)
app.config.setdefault('TWEEPY_CONSUMER_KEY', 'SERTs8Erl7WuDgtulnQHHfuIW')
app.config.setdefault('TWEEPY_CO... | [
"simonlouis@comcast.net"
] | simonlouis@comcast.net |
d683b64be6bac55ee1c0d9f837bee3af78d7e8e3 | 6ff7d6a0ea81867cf579dcadde3452b175fc884c | /index/urls.py | d9b4070b374e4284eb5ac6a1f6d0ab835968f50e | [] | no_license | ShaMaTeYing/clockin | 83c1d465788634d47f46fe5fcdd68816973b79f5 | fb2d59d5564b0f1058429da00f4698c4d97545b7 | refs/heads/master | 2022-12-12T09:36:51.591503 | 2020-01-14T09:53:34 | 2020-01-14T09:53:34 | 233,798,826 | 0 | 0 | null | 2022-12-08T03:26:25 | 2020-01-14T08:58:58 | Python | UTF-8 | Python | false | false | 109 | py | from django.urls import path
from .views import *
urlpatterns = [
path('index', index, name='index'),
]
| [
"529194793@qq.com"
] | 529194793@qq.com |
95bbb36438f91e80eb8402baac09d48832f444b0 | 39e1fec3de8683624a1b2149674b9caad98135e5 | /panel/forms.py | 75804f212366f3134f6e6f683cde56e237670195 | [] | no_license | singhalvibhor05/notification-panel | dcf7be70666c657948e496dfeb538555b7c9480f | f3e854ac0b18ef51fd5b5fa067d3b1ebcbd9487b | refs/heads/master | 2021-01-05T05:13:17.469610 | 2017-08-07T11:33:01 | 2017-08-07T11:33:01 | 99,514,114 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 456 | py | from django.forms import ModelForm, CheckboxSelectMultiple
from datetimewidget.widgets import DateTimeWidget
from .models import Notifications
class NotificationsForm(ModelForm):
class Meta:
model = Notifications
fields = ['header', 'content', 'image_url', "send_at",'user']
widgets = {'us... | [
"singhalvibhor05@gmail.com"
] | singhalvibhor05@gmail.com |
7ffefa5744babbb98234dd0f0fb5d376373fa7f2 | 095204b8c9f280b109948a7b669bd91e6906959c | /Lesson10/gun.py | e17800b592ba808d0b60c783184c082110e0510f | [] | no_license | guskovgithub/Guskov | edb0cec00e9aa77dc90e3c5eb2c58e7d68c8d747 | 2d5d3bc0b494afa2e3eeebfd758837417ccac16d | refs/heads/master | 2021-01-10T10:58:03.685179 | 2015-12-08T19:18:33 | 2015-12-08T19:18:33 | 43,349,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,235 | py | from random import randrange as rnd, choice
from tkinter import *
import math
#print (dir(math))
import time
root = Tk()
fr = Frame(root)
root.geometry('800x600')
canv = Canvas(root, bg = 'white')
canv.pack(fill=BOTH,expand=1)
"""
Класс ball описывает мяч.
"""
class ball():
def __init__(self,x=40,y=450):
... | [
"gvandreevich@icloud.com"
] | gvandreevich@icloud.com |
79c08b3c7db6b9af030628fc5576a8f8b2f9f56e | 7ed48a94cadb44d85d341eea69fcb3f653a0bef4 | /plotIsing.py | 732f8a5f5c8402999c6c983ba46c0bc07318bd39 | [] | no_license | lululaplap/Ising | 0a5081807660a285aede9ae951a3f99d31663896 | 8bd304b13bdfa8bcd491a0d4ca6979ceb8a4bf31 | refs/heads/master | 2020-04-17T08:34:59.582784 | 2019-05-02T13:13:33 | 2019-05-02T13:13:33 | 166,418,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31 | py | from main import
def main():
| [
"s1516989@cplab103.ph.ed.ac.uk"
] | s1516989@cplab103.ph.ed.ac.uk |
94383ebb2f76b0a23a095a78a15e0712ce32f6c3 | 745197407e81606718c4cdbedb6a81b5e8edf50b | /tests/texttest/TestSelf/Miscellaneous/TrackProcesses/TargetApp/hello.py | 6d91a22c9c767c9d9e35c54069475d6b2eaed3b7 | [] | no_license | dineshkummarc/texttest-3.22 | 5b986c4f6cc11fd553dab173c7f2e90590e7fcf0 | 85c3d3627082cdc5860d9a8468687acb499a7293 | refs/heads/master | 2021-01-23T20:44:35.653866 | 2012-06-25T07:52:13 | 2012-06-25T07:52:13 | 4,779,248 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #!/usr/bin/env python
import subprocess, os
def devnull():
if os.name == "posix":
return "/dev/null"
else:
return "nul"
print 'Hello World, now sleeping!'
proc = subprocess.Popen([ "python", "-c", "import time; time.sleep(10)" ], stdin=open(devnull()), stdout=open(devnull(), "w"), stderr=subp... | [
"dineshkummarc@gmail.com"
] | dineshkummarc@gmail.com |
c8c54f00ebc2d38ed98c921961f2f38104966fa5 | b78a472ade957129dbc43f80c79de144d66ee343 | /Gate Paramaterisations/LNF Network Approach/Experements/lib/LogicalNeuralNetwork.py | 484ad142d689c91c5833bed393f841faf368aa07 | [] | no_license | danielbraithwt/Logical-Neural-Networks | db803497c8d6b91ffebb7b598b784fe58668f24f | 567392e56b6406a3c27ce180239c7092648deeac | refs/heads/master | 2021-01-23T07:26:35.849754 | 2017-11-13T04:51:34 | 2017-11-13T04:51:34 | 86,424,099 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,598 | py | import tensorflow as tf
import random
import numpy as np
def __perms(n):
if not n:
return
p = []
for i in range(0, 2**n):
s = bin(i)[2:]
s = "0" * (n-len(s)) + s
s_prime = np.array(list(map(lambda x: int(x), list(s))))
p.append(s_prime)
return p
def __n_rand... | [
"danielbraithwt@gmail.com"
] | danielbraithwt@gmail.com |
d20b50d2e169b131fdad1dcc09bb1740c3415b36 | 40efd4fa4c6dfec16f4fb43e48c14dea01bba720 | /comparator.py | decb301f79f54cd616e4b40d2be801e21a50fa6a | [] | no_license | Maxim-Kovalenko/my-lyceum-python-code | edc8fe36ef096e29ca64e7d5d2b63cec2ee8116a | b260f274fb30bf0ec328378fb698609159ce127b | refs/heads/master | 2023-01-22T22:16:26.418998 | 2020-12-06T19:13:32 | 2020-12-06T19:13:32 | 250,863,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | numbers = [1, 4, 6, 7, 9, 8, 3, 5, 2, 3, 10, 67, 45, 78, 75]
def shakerSort(a):
#lb, ub границы неотсортированной части массива
k = ub = len(a)-1
lb = 1
while (lb < ub):
# проход сверху вниз
for j in range(ub, lb-1, -1):
if a[j-1] > a[j]:
a[j-1], a[j] = a[j], a[... | [
"noreply@github.com"
] | noreply@github.com |
d2b7c11ba4ce83ccbaeb17a360a72fae5cff555e | 386e14d7be483a054e003aa9aea7a3506815f17e | /djangoshop/eshopapp/migrations/0008_middlwarenotifications.py | 4efc8513969824c21a6efee6c0a7abce6296dbb2 | [] | no_license | freetoyer/djangoshop | 20fa4734b4ba9818ddd0db79e4c9fc97f502ba5a | 7d523ea82bba27f208028707d4757aeedf61a118 | refs/heads/master | 2020-06-19T06:51:22.512149 | 2019-08-14T18:20:52 | 2019-08-14T18:20:52 | 196,597,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-08-10 12:17
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependenc... | [
"andrey_89-89@mail.ru"
] | andrey_89-89@mail.ru |
a451acc95396f371855f4a088be7b7110b5f651c | 10d206b0e67c4a50b7f1a9429c178035e198ecdb | /Python/093 Restore IP Addresses.py | 09d1b2efc3fe8d71296e2ff0e76e5befd508d498 | [] | no_license | Aaron-Bird/leetcode | 666356e555347de42b90df6121609fd1438d9a98 | c4ac2db2ea4bd37bcfeec1910c66407d26dd7902 | refs/heads/master | 2021-06-24T13:55:20.012283 | 2019-05-18T11:44:26 | 2019-05-18T11:44:26 | 110,809,609 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | # Given a string containing only digits, restore it by returning all possible valid IP address combinations.
# Example:
# Input: "25525511135"
# Output: ["255.255.11.135", "255.255.111.35"]
class Solution(object):
def restoreIpAddresses(self, s):
"""
:type s: str
:rtype: List[str]
... | [
"25508292+Aaron-Bird@users.noreply.github.com"
] | 25508292+Aaron-Bird@users.noreply.github.com |
b65db7839ac98aacc9855fe762ba535097641fc1 | ef2d16bb63be7f273983315d82d02b55e3498647 | /hello/demo.py | e488d17a6a506d2748562b37100c6a648ba88bd4 | [] | no_license | e04610112/python-learn | c2a315d9a66beba31e5b4f5305a77415e385dc41 | ae7fda27a04a8a3ef56fb6bcd782c45e4c88d43f | refs/heads/master | 2021-05-05T14:03:25.260309 | 2017-10-24T07:05:23 | 2017-10-24T07:05:23 | 105,120,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# 命令行执行需要赋权限 chmod 755 ./demo.py
print ("hello world")
print "欢迎来到奥运中国!" | [
"yjlin03@mail.nfsq.com.cn"
] | yjlin03@mail.nfsq.com.cn |
f83680af34f505e12da72e69b9939ab731125a16 | af24f5e44068ddc91e05ecdbafac2d01755fd2e9 | /blog/migrations/0007_auto_20200611_1735.py | cacd870ab11a23fa3d4f6d644dca4be202ede7e6 | [] | no_license | IsraJC/my-first-blog | a34b666fe09ae091c54c00e6121a6bd528fd22e1 | 84bc92a6cde1aec527600040cd382cd1853c1574 | refs/heads/master | 2023-08-12T18:42:21.745988 | 2021-10-04T19:50:09 | 2021-10-04T19:50:09 | 269,368,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | # Generated by Django 2.2.13 on 2020-06-11 16:35
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0006_auto_20200611_1733'),
]
operations = [
migrations.AlterField(
model_name='post',
name='image',
... | [
"israchanna@gmail.com"
] | israchanna@gmail.com |
74ded8d410a942dfe2a80bf9f72bcc9501017b0f | d292775591e1a3f709bafbd9d445139ff5eceec2 | /todo/models.py | 383370a91a4f32ea180aa5340a85936302234cc4 | [] | no_license | Salah856/Django-ToDo-List | 4ecbfd1a432183d849bbed8c91c710d250b7ea39 | ee0e063309fe3bb5e2cd246c5c5c36bb9a7bf683 | refs/heads/master | 2022-11-05T07:22:31.738268 | 2020-06-21T16:12:25 | 2020-06-21T16:12:25 | 269,057,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | from django.db import models
from django.contrib.auth.base_user import AbstractBaseUser
from django.contrib.auth.models import PermissionsMixin
class User(AbstractBaseUser, PermissionsMixin):
pass
class Todo(models.Model):
text = models.CharField(max_length=40)
complete = models.BooleanField(defa... | [
"salah_elhossiny856@yahoo.com"
] | salah_elhossiny856@yahoo.com |
24cf8b5e702f5be03cd0c792561c4a1968997401 | c0eb58dc4338b69948aaabe1aabf3ceaf2064784 | /Data-Visualization-Website-local-installable/app/migrations/0005_auto_20170615_1305.py | b6b12e938c46a7e6f2cf4dbb57065c5cae838ec7 | [] | no_license | DerekDiJin/PERSEUS_SPARK_frontend | a2a4fe0ff30ec648aef523312779273dfebd670e | b925a23a75c36ff48b839b02a39962c110498975 | refs/heads/master | 2020-04-01T15:55:03.280986 | 2018-10-16T22:59:26 | 2018-10-16T22:59:26 | 153,357,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 616 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.6 on 2017-06-15 13:05
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('app', '0004_auto_20170615_0749'),
]
operations = [
migrations.RenameField(
... | [
"dijin@VirusTemps-MacBook-Pro.local"
] | dijin@VirusTemps-MacBook-Pro.local |
af9752d8a8d59d417183070a1629e27ef05564df | 4c9a9dd429330b0a9ef80889a3d3ce144aea4401 | /settings/settings.py | 6495cbd993040a6f843ad46eb9f90ad7efb30017 | [] | no_license | 100pecheneK/Events | a5285f6a02c6d8970870939cc33bd3359025db81 | bc57a781493384353feda7265d636d23a059d2d9 | refs/heads/master | 2020-08-28T21:20:27.829509 | 2020-01-31T10:41:48 | 2020-01-31T10:41:48 | 217,822,403 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,346 | py | """
Django settings for settings project.
Generated by 'django-admin startproject' using Django 2.2.6.
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
... | [
"misha@MacBook-Pro-Misha.local"
] | misha@MacBook-Pro-Misha.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.