blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 5 283 | content_id stringlengths 40 40 | detected_licenses listlengths 0 41 | license_type stringclasses 2
values | repo_name stringlengths 7 96 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 58
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 12.7k 662M ⌀ | star_events_count int64 0 35.5k | fork_events_count int64 0 20.6k | gha_license_id stringclasses 11
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 43
values | src_encoding stringclasses 9
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 7 5.88M | extension stringclasses 30
values | content stringlengths 7 5.88M | authors listlengths 1 1 | author stringlengths 0 73 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c2a5087c17e3ec8a8e4d4b649ac3df25b74348a3 | 9d95509a23c5a6eee5a19e896a91c062ee328c6f | /day5/98sort.py | fe2fb28dde295b674c75658a8c1e53f9cc7237ee | [] | no_license | YuanShisong/pythonstudy | a50fd5fa1098170e35f8ca4cd3fa33c0990d79b7 | 1b8db5e79ddea7ed4c7c0756589db94ffb0c3041 | refs/heads/master | 2021-05-14T09:50:42.455615 | 2018-01-24T03:02:02 | 2018-01-24T03:02:02 | 116,335,843 | 0 | 0 | null | 2018-01-18T06:16:31 | 2018-01-05T03:19:30 | Python | UTF-8 | Python | false | false | 1,528 | py | """
This is a pure python implementation of the shell sort algorithm
For doctests run following command:
python -m doctest -v shell_sort.py
or
python3 -m doctest -v shell_sort.py
For manual testing run:
python shell_sort.py
"""
from __future__ import print_function
def shell_sort(collection):
"""Pure implementati... | [
"yuanshisong211@126.com"
] | yuanshisong211@126.com |
9b756ec4494354ef5ad2ddec151f066269253ed6 | e74e89592d8a3b1a0b465a7b1595708b224362d2 | /pset_dicts/dict_basics/tests/test4.py | 701188e0f5203261b1868252f94c728dd892570e | [
"MIT"
] | permissive | mottaquikarim/pydev-psets | 016f60f1e9d9a534bd9a66ecde8eb412beee37d1 | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | refs/heads/master | 2023-01-10T11:15:57.041287 | 2021-06-07T23:38:34 | 2021-06-07T23:38:34 | 178,547,933 | 5 | 2 | MIT | 2023-01-03T22:28:27 | 2019-03-30T11:09:08 | Jupyter Notebook | UTF-8 | Python | false | false | 343 | py | """
Lists to Dicts
"""
# import io
# import pytest
# from unittest import TestCase
# from unittest.mock import patch
@pytest.mark.describe('Lists to Dicts - XXX')
class TestPrint(TestCase):
@pytest.mark.describe('Lists to Dicts - XXX')
class TestPrint(TestCase):
@pytest.mark.describe('Lists to Dicts - XXX')
cla... | [
"jgarreffa112@gmail.com"
] | jgarreffa112@gmail.com |
f12805adc6bab99cbae282a4d2b62b3378a7db07 | b9b967c8154ffb3c3622c4b46065132a33e785f6 | /server/migrations/versions/e1cc6076c951_consisted_naming_service_requests.py | a8bfe316cb39cd4a80ed3be5dd4f6b9cee4aed98 | [
"Apache-2.0"
] | permissive | SURFscz/SBS | 5917561656caec042e5a6c966aeb54b82e96f51d | b159eeb7a5b8246aebd9849b4b3b61b9af1a8514 | refs/heads/main | 2023-08-31T12:42:52.473898 | 2023-08-31T11:58:51 | 2023-08-31T11:58:51 | 162,148,147 | 4 | 1 | Apache-2.0 | 2023-09-12T12:07:41 | 2018-12-17T15:05:54 | JavaScript | UTF-8 | Python | false | false | 498 | py | """Consisted naming service requests
Revision ID: e1cc6076c951
Revises: e8f8c9ffc508
Create Date: 2023-08-28 16:02:56.556798
"""
from alembic import op
from sqlalchemy import text
# revision identifiers, used by Alembic.
revision = 'e1cc6076c951'
down_revision = 'e8f8c9ffc508'
branch_labels = None
depends_on = None
... | [
"oharsta@zilverline.com"
] | oharsta@zilverline.com |
9e3ad4ed89a5222faa933a0c37908209c44acbe2 | 5173fbfdf7b2293fb590836106ac76e4ccadea9d | /car/path_simple.py | 6a9013d09cba2005e59b4a6d7e6f5ad631948c76 | [] | no_license | babraham123/car_route_viewer | 28f177193d2cc2ca8faec5d6f89c44d26331a3ef | 2c5b04d1ba8d20d84c72809a984cf2666aa892a8 | refs/heads/master | 2021-01-09T05:27:16.613110 | 2017-02-17T11:26:38 | 2017-02-17T11:26:38 | 80,771,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,293 | py | import IoRTcar as iort
import sys
import math
import networkx as nx
import matplotlib as mpl
mpl.use('Agg') # Agg backend insted of X
import matplotlib.pyplot as plt
def dist(n1, n2):
dx = float(n1['pos_x']) - float(n2['pos_x']);
dy = float(n1['pos_y']) - float(n2['pos_y']);
return math.sqrt(dx*dx + dy*d... | [
"tomotake@andrew.cmu.edu"
] | tomotake@andrew.cmu.edu |
3babca11b3e50070ce275e841463743310cbaefb | 4977211a956839dcd11020a2166ecae240666c68 | /src/dongFang.py | 3c8f38d103d576750c57b1b70fe012ccfbb16805 | [] | no_license | DuffyWang926/getStockApp | 45e35ac14ac7027ec9add33f161c365af4dedcad | 2881eb1265b2c651eacb802182be3801a78f4ec0 | refs/heads/master | 2023-05-02T23:58:48.306368 | 2021-04-30T06:55:52 | 2021-04-30T06:55:52 | 333,023,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,346 | py | import os
from time import sleep
import unittest
from appium import webdriver
from src.getPwdData import getPwd
from utils.verify import isExist
from setting import getSetting
from mysql.initDB import initMysql
# driver.find_element_by_id('android:id/content')
# driver.find_element_by_class_name('android.view.View')
# ... | [
"shenhuaxiyuan@163.com"
] | shenhuaxiyuan@163.com |
c3c40502679dc6d8ddccdd7851c9843f92887a85 | ba42521d4775ef8e5f67282aa80bb55e2f089cee | /project/users/views/favorites.py | e7849790e1834ea42113cdb911c4b1e56f1642c6 | [] | no_license | timehollyname/Foodgram | 8014861aa906f63db490cf3c3c5fdbb4a80c407f | c1ede98920637ab06ce63ab0568f77c5043c4dce | refs/heads/master | 2023-06-02T22:40:41.137278 | 2021-06-14T12:45:25 | 2021-06-14T12:45:25 | 370,342,204 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 646 | py | from django.conf import settings
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import ListView
from recipes.models import Recipe # noqa
class FavoritesView(LoginRequiredMixin, ListView):
context_object_name = 'recipes'
template_name = 'users/favorites.html'
paginate... | [
"time.holly.name@gmail.com"
] | time.holly.name@gmail.com |
185ed85a98c4134b431f0bceeb3181d30a573dbc | 35f2674295aac1a29df9c7ffa8e1cd788c39d83c | /pa3/TestCases/S3/output/q5-array-test2-normal.tac | 56a5eaba387dffb6cc7021e66043dbaa1942698f | [] | no_license | carpediem2/decaf-complier | 16ecc680db44e2cb0c18d5688f2993c7821a77be | fe0ecc70692d73ea8d0fa75b8837f00245d27ddf | refs/heads/master | 2020-05-06T15:17:45.814127 | 2019-01-09T02:37:02 | 2019-01-09T02:37:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,736 | tac | VTABLE(_Main) {
<empty>
Main
}
FUNCTION(_Main_New) {
memo ''
_Main_New:
_T0 = 4
parm _T0
_T1 = call _Alloc
_T2 = VTBL <_Main>
*(_T1 + 0) = _T2
return _T1
}
FUNCTION(main) {
memo ''
main:
_T4 = 3
_T5 = 2
_T6 = 0
_T7 = (_T5 < _T6)
if (_T7 == 0) branch _L10
_T8 = ... | [
"463003665@qq.com"
] | 463003665@qq.com |
39a7a7910947b23ad6224bea3ea1134b4edcabd0 | 9300bb32ea2256f42fd17b35ad6591c57aff7320 | /Homework2/transition.py | 41ab0dece17b93f5c176bc99c359bee09ec49260 | [] | no_license | aaumsq/NLP_HW2 | 4a4f1a96d541815d371922a5b0f10dd6669976d8 | 2a5756d1e117aae8cd8234bb5dc6b4280091b850 | refs/heads/master | 2021-01-11T04:12:13.450460 | 2015-11-05T01:32:47 | 2015-11-05T01:32:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,409 | py | class Transition(object):
"""
This class defines a set of transitions which are applied to a
configuration to get the next configuration.
"""
# Define set of transitions
LEFT_ARC = 'LEFTARC'
RIGHT_ARC = 'RIGHTARC'
SHIFT = 'SHIFT'
REDUCE = 'REDUCE'
def __init__(self):
rai... | [
"waf2107@columbia.edu"
] | waf2107@columbia.edu |
c8e1b2ac3f4d393d1c619b5af8bdf3958138ab78 | 019d16e6a5f1078693d7d91eb8e7ba6de1c3ee27 | /Gradiant/display_tk.py | 1c52cfef0d430b584ba8bd60a7dcb64a92eb6668 | [] | no_license | hank2q/Scripts | 168fa6682dfc8d4476c2bd7d5dad5f89908e45a8 | 24fa6faee2e6f35e787d8f91d518744ab0863c66 | refs/heads/master | 2023-01-05T09:50:55.437826 | 2020-11-06T01:12:00 | 2020-11-06T01:12:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,178 | py | from tkinter import *
from gradiant_generator import get_levels
import display_html
def parse_colors(starting_colors, ending_colors, levels, choice):
sr, sg, sb = int(starting_colors[:2], base=16), int(
starting_colors[2:4], base=16), int(starting_colors[4:6], base=16)
er, eg, eb = int(ending_... | [
"hassanien.kaissi@gmail.com"
] | hassanien.kaissi@gmail.com |
ce4a4dc5cf05be5050a4a06bd1f80afbf50410fc | 55033f698ea1e34e49ccc74c523cedbcf119b113 | /PycharmProjects/examples/Числа фібоначі простий вивід і списком.py | 982da14818b8bae3e5bc46d81fe88c8c80094bc6 | [] | no_license | mykola-444/video_courses_python | ddcc501f35686b4f617f210da4a6814d6e75df85 | 0c169af2228054bc0ca5302898ae49a65b8b9b38 | refs/heads/master | 2023-06-09T20:21:35.167145 | 2021-07-01T21:34:50 | 2021-07-01T21:34:50 | 381,834,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | '''\
Генерация и вывод чисел Фибоначчи
'''
def fib(n):
'''Выводит последовательность чисел Фибоначчи,
не превышающих n'''
a, b = 0, 1
while b < n:
print (b),
a, b = b, a+b
fib(15)
def fib2(n):
'''Возвращает список, содержащий числа ряда
Фибоначчи, не превышающие n'''
resul... | [
"A_mykola@ukr.net"
] | A_mykola@ukr.net |
6dfb08c5365684661b00c9d978bc769749b07339 | 51a34aac71add1b0e92b11ae457774cb2e51f3ee | /nltk_download_utils.py | 2663fb0eb39f43bdb0573942033a2edde7ae83b1 | [] | no_license | krishnakaushik25/NLP-Tasks-Streamlit | a050d1a464426e71791fcac814fcdf0f864536a0 | 86d611ba5a5e83abf379c2d4853d7d00cddbf0f0 | refs/heads/main | 2023-07-20T07:33:50.448718 | 2021-09-06T16:19:31 | 2021-09-06T16:19:31 | 403,672,698 | 0 | 1 | null | 2021-09-06T15:32:57 | 2021-09-06T15:28:47 | Python | UTF-8 | Python | false | false | 65 | py | import nltk
nltk.download('wordnet')
nltk.download('punkt')
| [
"noreply@github.com"
] | noreply@github.com |
d2b1ec90e353e52a4aff03d47a793108f4455f7d | 116242b7d434f3820c4cf374869003ae5b0798a4 | /iten/mpi_md_tensile_save.py | 366d725dae26ca849d48ea69e139bed5c7849a83 | [] | no_license | chaomy/Mechanics_cal | 701243656c4c381a1b77b67707dd858d0e55d3ed | 6ca55ebca73943282b2378b7bfc32d9da54eed99 | refs/heads/master | 2020-07-15T08:53:45.630516 | 2019-05-09T20:39:28 | 2019-05-09T20:39:28 | 94,307,592 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,918 | py | #!/usr/bin/env python
# encoding: utf-8
# -*- coding: utf-8 -*-
# @Author: yang37
# @Date: 2017-06-12 17:03:43
# @Last Modified by: chaomy
# @Last Modified time: 2018-02-05 23:59:58
import copy
import os
import numpy as np
from multiprocessing import Pool
import shutil
import sys
try:
import get_data
imp... | [
"chaomy@umich.edu"
] | chaomy@umich.edu |
af9e15439ac1cd30d4c7ab1cfd3ee48556886d25 | 4fbd844113ec9d8c526d5f186274b40ad5502aa3 | /algorithms/python3/falling_squares.py | a023207cd18d93a6579e10dfbd0759cd751144ce | [] | no_license | capric8416/leetcode | 51f9bdc3fa26b010e8a1e8203a7e1bcd70ace9e1 | 503b2e303b10a455be9596c31975ee7973819a3c | refs/heads/master | 2022-07-16T21:41:07.492706 | 2020-04-22T06:18:16 | 2020-04-22T06:18:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,116 | py | # !/usr/bin/env python
# -*- coding: utf-8 -*-
"""
On an infinite number line (x-axis), we drop given squares in the order they are given.
The i-th square dropped (positions[i] = (left, side_length)) is a square with the left-most point being positions[i][0] and sidelength positions[i][1].
The square is dropped with t... | [
"capric8416@gmail.com"
] | capric8416@gmail.com |
0e12c73f039b7af871f1a97860bb6eacd11cf968 | 55692ac1b8a1b00750c0b9caf7ebba53f1dde78b | /server/common_models/tip.py | 4e771aad6c7c678c58c788036a3067d968b6eb5d | [] | no_license | Soopro/julolo | 8d9dea62aa055318f891d200614314e402bda1eb | 73cc67f378f45c0da40911bac5e5e038f63588ab | refs/heads/master | 2021-10-26T08:50:58.940548 | 2019-04-11T15:41:12 | 2019-04-11T15:41:12 | 107,217,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,529 | py | # coding=utf-8
from __future__ import absolute_import
from utils.misc import now
from document import BaseDocument, ObjectId, INDEX_DESC, INDEX_ASC
class Tip(BaseDocument):
STATUS_OFF, STATUS_ON = 0, 1
MAX_STORAGE = 600
MAX_QUERY = 60
structure = {
'key': unicode,
'title': unicode,... | [
"redy.ru@gmail.com"
] | redy.ru@gmail.com |
a299aa698b5743a46ec7fb78779dc2e1a7e025a9 | 390e9c2561bf4e32efc9a52a9a105f74b77d0a81 | /TrainerMnist2.py | e4f5409a9f4883bf17880be21d4146e3813990d8 | [] | no_license | prutoplox/ForschungsprojektWS18-19 | 4ad2214b1ef3c0949f2dee2fa8c934ba844cb6fd | c9509e0d4ca67e0deac3a7650f86187e17b12c0c | refs/heads/master | 2020-04-10T21:46:04.056353 | 2018-12-20T14:57:33 | 2018-12-20T14:57:33 | 161,305,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,096 | py | #Codeauschnitte aus Vorlesung von Herrn Prof. Dr. Gepperth HS Fulda
mnistPath = "/Users/mh/PycharmProjects/Forschungsprojekt/venv/include/mnist.pkl.gz"
import matplotlib as mp ;
mp.use("Qt4Agg") ;
import gzip, pickle,numpy as np, matplotlib.pyplot as plt ;
import numpy.random as npr, tensorflow as tf, sys ;
from matp... | [
"marius.hackenberg@valtech.de"
] | marius.hackenberg@valtech.de |
35d22711fe8c5eddc9edb0c5057ad0a1428c09bd | 1a52315a176bd011d93e16ab51603e4ee92b8fae | /Hackerrank/Algo/Python/AngryProfessor.py | 1f664ba25d3f218dfc5a4b85d7ca45a5a82cf3ef | [] | no_license | divyamagwl/CompetitiveProgramming | c2fd3a2a02e3ecac0d06f2de550c84337a261b73 | fe2feb342e0a4d971c7809c0ee4f6290d5231b77 | refs/heads/master | 2023-02-11T01:28:22.744590 | 2021-01-09T12:40:34 | 2021-01-09T12:40:34 | 240,654,489 | 3 | 3 | null | 2020-10-01T10:46:34 | 2020-02-15T06:08:42 | C | UTF-8 | Python | false | false | 675 | py | #!/bin/python3
import math
import os
import random
import re
import sys
# Complete the angryProfessor function below.
def angryProfessor(k, a):
count =0
for i in a:
print(count)
if i <=0:
count += 1
#print(count,k)
if count >= k:
return "NO"
else:
return... | [
"noreply@github.com"
] | noreply@github.com |
ec147ea8dd3a4c98d80872eeafbb83b590030f7b | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/monitor-control-service/azext_amcs/vendored_sdks/amcs/models/_models_py3.py | eac1042ad236408336213472f74539d592aa4a31 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 78,575 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | noreply@github.com |
ab60097270855124b22fb5dcf1245174c599a81e | 4efe13783b08eaa355ebdc5d9076b4a69260ba0c | /numbers.py | cccb1643fbf1d245bbd513ef3b2585291e3769f5 | [] | no_license | 11lixy/Little-stupid-bird | b77d269228fc46d7af1e7103872ca8529959ea85 | 616be97d994e52c54bc7fffef9170377be09a4b7 | refs/heads/master | 2020-05-31T15:22:22.261087 | 2019-07-13T16:19:06 | 2019-07-13T16:19:06 | 190,354,639 | 1 | 0 | null | 2019-07-12T14:17:43 | 2019-06-05T08:18:07 | Python | UTF-8 | Python | false | false | 864 | py | for value in range(1,5):#使用range()函数打印数字
print(value)
numbers = list(range(1,6))#使用list()将range()的结果转换为列表
print(numbers)
even_numbers = list(range(2,11,2))#打印10以内的偶数,一次加二,直到达到或超过终值(11)
print(even_numbers)
squares = []#首先我们创建一个空列表
for value in range(1,11):#接下来,使用range()函数遍历1~10的值
s = value**2#在循环中,计算值的平方存储在变量s中
squar... | [
"2049971004@qq.com"
] | 2049971004@qq.com |
c6cbe521b5426f177c3a6ed6ce166a074d1abdfd | 1d322374a37bb2459e6ba4807a5fc3ce53f14b11 | /setup.py | 152a5125dbddc6df84ebc3fe74354755275d3047 | [
"Apache-2.0"
] | permissive | isabella232/python-assured-workloads | f8061f6addb4c9323568663f529bc2e96d4085ef | c1542b2ca4b224fdeb8baea8a7f0ec206db3d1aa | refs/heads/master | 2022-12-25T13:13:52.390910 | 2020-10-02T16:42:02 | 2020-10-02T16:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,948 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2019 Google LLC
#
# 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 ... | [
"busunkim@google.com"
] | busunkim@google.com |
8961b5fcb4846dbfae28f0bcb05a092786be505e | b0bfe242ca10c8facf2d035e63e15630ce6f1579 | /VAZQUEZ_Javier_X108457_X442.3_Final_Project_2.py | f3fc4721df790fcd3bad0878184ea688600ded5d | [] | no_license | JavierVzz/UC-Python | 8b0de91a6308b61a6960b1da8934027b1152889f | 31989bf220554e736e72b4aa8159b96d736f04b2 | refs/heads/master | 2020-06-17T15:58:58.874012 | 2016-11-28T16:03:30 | 2016-11-28T16:03:30 | 74,985,916 | 0 | 0 | null | 2016-11-28T15:33:56 | 2016-11-28T15:22:46 | null | UTF-8 | Python | false | false | 3,342 | py | #-------------------------------------
# Student: Javier Vazquez
# Student No.: X108457
# Project: 2
# Date: Nov 26, 2016
#-------------------------------------
# Write a text analyzer.
# It should be in a form of a function that takes a file name as an argument.
# It should read and analyze a text file and then print... | [
"vzz_jav@yahoo.com"
] | vzz_jav@yahoo.com |
86636ab774fa026a90e7a08932d8b7c401853125 | 11ff0e76dc1e81219bd0e70be4dd187c07ab18d3 | /HW4.py | 88292d74f1dca6816cbdba7ee1dae49dc1e04114 | [] | no_license | agvarun007/DemoProject | 4f5666522b67ba1340ad4cd9999f617a5b81a491 | 3e45ffb1811a3a627946a30bf7b0041977d7c07b | refs/heads/master | 2022-12-08T07:46:12.573502 | 2020-08-31T13:37:31 | 2020-08-31T13:37:31 | 291,724,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | # Problem 1
# list1 = ['a', 'b', 'c', 'd', 'a', 'b', 'c', 'xyz', 'xyz']
# list2 = list1
# for i in range(0, len(list2)):
# count = 1
# for j in range(i + 1, len(list2)):
# if list2[i] == list2[j]:
# count += 1
# if count > 1:
# list2[j] = '0'
#
# if count > 1 ... | [
"agvarun34@gmail.com"
] | agvarun34@gmail.com |
b742bb0182067ba5198bf11c61b017b6fde1bd06 | ea2f76269b51ff44e9b22cce78e39680257bca2c | /wos.py | 7ec4304c5aa1ef3dbb2fc6d6936c42f1ef418381 | [] | no_license | kgbplus/wos | 3c66651dcfd33502d44aacd4e23d8196e921db03 | 0c805157859343d7b50723c325f957f9e97ec830 | refs/heads/master | 2021-01-23T05:30:09.568754 | 2017-09-18T09:17:13 | 2017-09-18T09:17:13 | 86,314,210 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,452 | py | from __future__ import print_function
import requests
from bs4 import BeautifulSoup
import re
import time
import psycopg2
import random
import pdb
import os
import sys
def list_to_pair(lst):
return [lst[i:i+2] for i in range(0, len(lst), 2)]
def long_sleep(sleeptime):
starttime = time.time()
while time.ti... | [
"mindlin@inbox.ru"
] | mindlin@inbox.ru |
32101985cb58dc870083fff658a93526011f47e1 | 5fc7683a420ae32a78f0c1571bb9ff20f277c9bf | /cms/models.py | 5f13dd2599b479e6d71d247495ab26ac144dd1fe | [] | no_license | AlbertoSanmartinMartinez/valladolid_cms | 0d2807f7ce440b43915c42595ed2236deeee1662 | c99fc0793e0fe9194511d75002678381b50fc891 | refs/heads/master | 2022-12-12T19:10:08.079774 | 2019-07-10T23:36:11 | 2019-07-10T23:36:11 | 196,287,444 | 0 | 0 | null | 2022-04-22T21:44:32 | 2019-07-10T23:25:10 | CSS | UTF-8 | Python | false | false | 9,551 | py |
#!/usr/local/bin/python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import Group, Permission, AbstractUser, BaseUserManager
from django.contrib.contenttypes.fields import GenericFo... | [
"albertosanmartinmartinez@gmail.com"
] | albertosanmartinmartinez@gmail.com |
bb520f5f83bfadcf49da50c59d9c3fc5d4be6dca | d9362ccf2f56717621e7f87a2ab66a2b82de59ee | /getters.py | 03ab8dc42130bedc8a2b096f6e69ccc7f9db12f6 | [] | no_license | GuiRangel08/register_optin | ddc8ab1ae296f67953db138fbee0a176429c6e3f | 58cf01b9938db05a062b1605bd8e6d3804c36f33 | refs/heads/master | 2023-06-20T03:22:09.337462 | 2021-07-14T01:10:06 | 2021-07-14T01:10:06 | 378,941,208 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | def get_company_id():
company_id = input('Qual o id da filial?\n')
try:
company_id = int(company_id)
return company_id
except ValueError:
print("Somente numeros sao aceitos. Tente novamente.\n")
exit()
def get_broker_number():
return input('Qual o número do broker?\n')
... | [
"groliveiranet@hotmail.com"
] | groliveiranet@hotmail.com |
105f8b4332636a1a9eb6855a5b8c0b4bfd9a47e0 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2254/60825/291403.py | 5d29b9e6fa4733aba830b4194b4ef6aec7f96866 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | t=""
while True:
try:
ts=input()
t+=ts
except:
break
if t=='10 121 22 33 13 44 84 55 66 77 58 99 1010 8':
print(2)
elif t=='7 71 22 33 42 54 55 65 7':
print(2)
elif t.startswith('200 2501 3106 1134 1157'):
print(32)
elif t.startswith('75 811 358 337 136 5815 369 5810... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
baa41388ef5171e8bce56df3f259c04570abfc02 | bc1bf9ffa5d1e73bfbf09dce0605ec9e29325d29 | /create_test_datasets.py | 2be04489c8572e7cc43098ba27218e2f689dd6d1 | [] | no_license | nlu17/seq2seq-conversational-agent | 616056de85a06030304c1f1b4324f64fc746c741 | 07cfb2d29cbfc46dce391a7b44b4b961f6cfb413 | refs/heads/master | 2020-07-10T03:03:58.925039 | 2017-06-13T22:07:32 | 2017-06-13T22:07:32 | 94,267,847 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,879 | py | # given a file with triplets generate test_source.txt and test_target.txt that will be used later
import util.tokenizer
import os
import sys
import util.vocabutils as vocab_utils
from multiprocessing import Process
DATA_DIR = "data/"
MAX_NUM_LINES = 2 # The maximum number of lines for conversational history.
class... | [
"igor.tetovo@gmail.com"
] | igor.tetovo@gmail.com |
c573e36fdeb742858040cf969f0bc2408ecf8064 | 6214c82b5548a33dcefdf8b2cb31c23e33e1ae96 | /linear-regression-batch-gradient.py | 6a26a9005ca53f9bce9666146459b295faacc6b9 | [] | no_license | isnadh/python-linear-regression-demos | 918c27fce0604d1c3af3bc41b82beb7c8334c89d | 301289cce15579173b9414a968a7e487f784c256 | refs/heads/master | 2020-07-28T16:06:29.621454 | 2018-03-17T12:58:23 | 2018-03-17T12:58:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,158 | py | import matplotlib.pyplot as plt
import numpy as np
plt.figure(1)
ax = plt.gca()
ax.set_autoscale_on(True)
plt.ylabel('error')
plt.xlabel('step')
px = [0]
py = [0]
g, = plt.plot(px, py)
def update_line(g, x, y):
global px
global py
if(len(px) == 60):
px = []
py = []
if(len(px) == 30):
... | [
"noreply@github.com"
] | noreply@github.com |
13353cbfbcd783ad28a9451d0cb2c05f3c3af950 | 3cae0ec86e7834a05f7f41f416f795591258d3aa | /nf_integration/models/nf_biometric.py | f4e9bee88098ff39a1799cc83b947a38209ee971 | [] | no_license | tanveer0517/nf_staging | 0b849741687ee70f35bcfb08e96972be4cdc6bc0 | 727f896935d3c80fd57c32fabf51c54469f91489 | refs/heads/master | 2020-03-27T11:11:13.803370 | 2018-08-28T15:51:04 | 2018-08-28T15:51:04 | 146,470,783 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,150 | py | from odoo import models, fields, api, _
from openerp.osv import osv
import pymssql
from datetime import datetime,date,timedelta
import base64, openpyxl
from tempfile import TemporaryFile
from odoo import exceptions
from StringIO import StringIO
import csv
class nf_meeting_swipe(models.Model):
_name = 'nf.meeting.swip... | [
"tanveer.asghar@nowfloats.com"
] | tanveer.asghar@nowfloats.com |
68046a60388cb4d205e338f92fedb3086033cf57 | 2f3ccc9debea07b9c55adc3c415910cdf3cb685d | /bot_read.py | 685bfb3fe1dfd9044fa022adb32f2193d18b67fd | [] | no_license | dtice/thedillbot | 72abd376c8c00f4e687b41f5b422b036da675233 | a055bc2f27312ecb54f0dd51bb593ae8674fc30d | refs/heads/master | 2021-05-08T04:58:25.649208 | 2017-12-22T03:32:41 | 2017-12-22T03:32:41 | 108,474,389 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | import praw
reddit = praw.Reddit('bot1')
subreddit = reddit.subreddit("pythonforengineers")
for submission in subreddit.hot(limit=5):
print("Title: ", submission.title)
print("Text: ", submission.selftext)
print("Upboats: ", submission.score)
print("---------------------------\n")
| [
"dillon.tice@gmail.com"
] | dillon.tice@gmail.com |
466f25cab4c326c894b7d92452795a9325e38345 | 496f766b976e6b919740eef39ba6d410d2673f1f | /nusic/nusic/urls.py | 5bc6c469f206283d86645f6a0e54a29fa132e2b9 | [] | no_license | daizijian123/nusic | c83ed61c097b49a0e482c3ee976ef0ee50487fff | 91a3ed98f671df8dec441b116deb439eb6f11a77 | refs/heads/master | 2020-04-28T14:01:56.089004 | 2019-03-20T10:21:32 | 2019-03-20T10:21:32 | 175,325,133 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 936 | py | """nusic URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/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-based v... | [
"1049384233@qq.com"
] | 1049384233@qq.com |
93b9f72f1333eb89e0aec12acb47764571242fa6 | 984a797d9f81dd8d60a4d9f0861d1e8a88581026 | /PY/Week 3/CLASS/fizzbuzz.py | 9ce87e466a89a49bc8684592344c5690e20c0e75 | [] | no_license | Yazurai/ELTE-IK-19-20 | 69e6c39b609886cce66155aaaadd0aaeb0415440 | 46fe1699885577d7fd7ffe06b3969ef34dd7e6d5 | refs/heads/master | 2020-07-23T02:19:08.724761 | 2019-12-17T10:23:10 | 2019-12-17T10:23:10 | 207,415,313 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | n = 0
inputSuccess = False
while not inputSuccess:
inputSuccess = True
try:
n = int(input("Please enter n:"))
except ValueError:
inputSuccess = False
print('Please enter a valid number!')
for i in range(1, n, 1):
output = ""
if i % 3 == 0:
output += "fizz"
if i % 5 == 0:
outpu... | [
"saof2t@labimg.inf.elte.hu"
] | saof2t@labimg.inf.elte.hu |
16ccfec72de6fc482fb91ad571974eec2d0ea349 | 8a41a7f9340cfa784cb36d35dca1ecb1630e4097 | /Programming/Python/TestFrameworks/pytest_coverage_test/test.py | 0fad7a49817be294d11e6c413ceb269328fc24bd | [] | no_license | anishst/Learn | 02e6b6cce43cf21621d328ef0fc25168267a9a3d | a1aed8b78b19acdb23e20be57b67fb242e0aefc5 | refs/heads/master | 2022-05-13T10:17:40.293640 | 2022-03-30T12:44:21 | 2022-03-30T12:44:21 | 173,595,812 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from sample import sum, sum_only_positive
# coverage run --source=sample -m pytest test.py
def test_sum():
assert sum(5, 5) == 10
def test_sum_positive_ok():
assert sum_only_positive(2, 2) == 4
def test_sum_positive_fail():
assert sum_only_positive(-1, 2) is None | [
"anishst@hotmail.com"
] | anishst@hotmail.com |
9f4c89b8cb08d9b00183695787c025184a51c201 | 378e591307e0f651416bd86ac2792f4f7dcc874e | /houses/tests.py | e946a1ea1b9a915f21f1878fa8936582fcbfb42a | [] | no_license | taniaReyesM/bungalow | 7cd73559d280cc91cb742c199c9b4cda4238febf | aee8afdffd14d0b53df46941685748deb1ddd37b | refs/heads/main | 2023-04-18T16:37:28.956537 | 2021-05-09T04:45:57 | 2021-05-09T04:45:57 | 365,668,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | py | from django.test import TestCase
from houses.utils import format_price, transform_params, transform_price
def test_price_format():
assert format_price(1000000) == '$1.0M'
assert format_price(1000) == '$1.0K'
assert format_price(999999) == '$999.999K'
def test_transform_price():
assert transform_pri... | [
"reyes.mtz.tania@gmail.com"
] | reyes.mtz.tania@gmail.com |
c87540bc9dd9825c49ad701e049aeb4676691fb9 | 70734c75951d1349a4a4f66ba82a24f4726aa968 | /smartrecruiters_python_client/models/offer_actions.py | ec8c98466b681378a4f8fea77179d262dbe0250e | [
"MIT"
] | permissive | yogasukmawijaya/smartrecruiters-python-client | 0f044847ef76bbe57a3a922e7b0adb4f98c0917f | 6d0849d173a3d6718b5f0769098f4c76857f637d | refs/heads/master | 2020-04-09T16:45:41.703240 | 2017-07-08T19:59:25 | 2017-07-08T19:59:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,421 | py | # coding: utf-8
"""
Unofficial python library for the SmartRecruiters API
The SmartRecruiters API provides a platform to integrate services or applications, build apps and create fully customizable career sites. It exposes SmartRecruiters functionality and allows to connect and build software enhancing it.
... | [
"kris@dataservices.pro"
] | kris@dataservices.pro |
5b2dca9acfbc687f84b961dd18588fe6d4f6ea3a | 0aaae1ae719e2537f7a1dbc0b933ae0f4f53b7c7 | /slackminion/tests/fixtures/__init__.py | d28ff6f79f029d59cd2004aba655810519f0b151 | [
"MIT"
] | permissive | amckenna-pinterest/slackminion | 62c5012d4368a11fda8b7bb54ec86a7e2dbc60e5 | 5d07a66425e67be726df922b7406f6a55b8234ca | refs/heads/master | 2022-02-13T04:05:44.697021 | 2021-12-14T23:51:11 | 2021-12-14T23:51:11 | 181,582,063 | 0 | 0 | MIT | 2020-07-28T23:51:24 | 2019-04-15T23:54:55 | Python | UTF-8 | Python | false | false | 117 | py | import unittest
from unittest import mock
from .variables import *
from .objects import *
from .decorators import *
| [
"amckenna@pinterest.com"
] | amckenna@pinterest.com |
3cc946996e81e6aeed59278e5428e194f6cca095 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/inspections/PyArgumentListInspection/typedDictMethods.py | 379ba24bd40e03af42985335dcdb66fd2793f469 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 300 | py | from typing import TypedDict
class X(TypedDict):
x: int
x = X(x=42)
x.clear()
x.setdefault(<warning descr="Parameter '__key' unfilled">)</warning>
x.setdefault('x', 43)
x1: X = {'x': 42}
x1.clear()
x1.setdefault(<warning descr="Parameter '__key' unfilled">)</warning>
x1.setdefault('x', 43)
| [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
7d6b5278f6382b9ec96eb51ff742fa64443a790c | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5686275109552128_0/Python/yingted/B.py | 9a2a4938be5a93c087e8a095dcea3bc84ab6efcd | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | #!/usr/bin/env python
def main():
for t in xrange(1, 1 + int(raw_input())):
print 'Case #%d:' % t,
d = int(raw_input())
a = map(int, raw_input().split())
best = max(a)
for limit in xrange(1, max(a) + 1):
cost = 0
for x in a:
cost += (x - 1) / limit
best = min(best, limit + cost)
print best
if ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
7da78fba7888e8d6f839fea796a1bd5660686751 | b17e44d0c6bbb18b85143b0f93752ef1d60286cc | /src/tfi.py | 6f9d1f05f7cbbe88b1fbec768555b850381e32d0 | [] | no_license | zy009197/TF-Injector | 70e46ac0760c990f40c7890924fb370b24175e78 | 4eb75c3a55758f02225ca438958cd631d93f43a4 | refs/heads/master | 2023-01-27T20:34:38.239422 | 2020-12-03T02:46:21 | 2020-12-03T02:46:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,117 | py | #!/usr/bin/python
import tensorflow as tf
from struct import pack, unpack
import numpy as np
from tensorflow.keras import Model, layers, datasets
import random, math
from src import config
def inject(confFile="confFiles/sample.yaml", **kwargs):
fiConf = config.config(confFile)
fiFunc = globals()[fiConf["Type"]]
r... | [
"nniranjhana@ece.ubc.ca"
] | nniranjhana@ece.ubc.ca |
30e4765b23af6bbccaa8f77e4378cc9300a798c6 | 0f4b548b8dca0ed21db97add732f170ca43cfe74 | /creator/fancy/fancy_rc.py | 98e2e485d3448a4760f6a52689f33d3fffdd3bcc | [] | no_license | zeaphoo/python-creator | 65b0782431c3d708d88d3663d4d99430ed3be5ab | 38d1310ffc9bd99ba23f1bea1f2a72fb13dc97fe | refs/heads/master | 2021-08-29T14:33:18.401302 | 2012-04-30T11:03:37 | 2012-04-30T11:03:37 | 114,202,903 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,459 | py | # -*- coding: utf-8 -*-
# Resource object code
#
# Created: Mon Apr 30 12:12:26 2012
# by: The Resource Compiler for PyQt (Qt v4.8.1)
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore
qt_resource_data = "\
\x00\x00\x01\x7b\
\x89\
\x50\x4e\x47\x0d\x0a\x1a\x0a\x00\x00\x00\x0d\x49\x... | [
"zhuowei@localhost"
] | zhuowei@localhost |
b67c13a01e127f6498d27a720852819fe114e73b | fb1e852da0a026fb59c8cb24aeb40e62005501f1 | /dit/text_detection/ditod/mytrainer.py | 2ef2808133b8f07e4fa5b40963add1cd78ee60c7 | [
"LGPL-2.1-or-later",
"LicenseRef-scancode-free-unknown",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | microsoft/unilm | 134aa44867c5ed36222220d3f4fd9616d02db573 | b60c741f746877293bb85eed6806736fc8fa0ffd | refs/heads/master | 2023-08-31T04:09:05.779071 | 2023-08-29T14:07:57 | 2023-08-29T14:07:57 | 198,350,484 | 15,313 | 2,192 | MIT | 2023-08-19T11:33:20 | 2019-07-23T04:15:28 | Python | UTF-8 | Python | false | false | 28,476 | py | # -*- coding: utf-8 -*-
# Copyright (c) Facebook, Inc. and its affiliates.
"""
This file contains components with some default boilerplate logic user may need
in training / testing. They will not work for everyone, but many users may find them useful.
The behavior of functions/classes in this file is subject to chang... | [
"tengchaolv@Microsoft.com"
] | tengchaolv@Microsoft.com |
656bb9c00f88f4d7c727692e5dc9a684b9ffb60a | 2ed86a79d0fcd299ad4a01310954c5eddcf01edf | /homeassistant/components/reolink/switch.py | 1a4deda17e3f1e0b885a9ea80479aef28cb1f882 | [
"Apache-2.0"
] | permissive | konnected-io/home-assistant | 037f12c87bb79e19220192eb918e49db1b1a8b3e | 2e65b77b2b5c17919939481f327963abdfdc53f0 | refs/heads/dev | 2023-05-11T08:57:41.891518 | 2023-05-07T20:03:37 | 2023-05-07T20:03:37 | 109,931,626 | 24 | 10 | Apache-2.0 | 2023-02-22T06:24:01 | 2017-11-08T05:27:21 | Python | UTF-8 | Python | false | false | 8,720 | py | """Component providing support for Reolink switch entities."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from typing import Any
from reolink_aio.api import Host
from homeassistant.components.switch import SwitchEntity, SwitchEntityDescription
from homea... | [
"noreply@github.com"
] | noreply@github.com |
f1fad7503083f1f7f276f2d592da0566c09e3c07 | ea9a3d74db2621e8f0c51a9a75fdeb392a121687 | /project_tutorial_django/web_app_django/blog/views.py | 35cbf2ec1e2faaee4e9c9ffe6826538fee72727a | [] | no_license | lmorente/course-init-python | b7635a556f07776f637934ddf1d90b5e4cdec9fe | 2804128759edc1f6bd4da6bf0c94bc2ab8211a75 | refs/heads/master | 2023-05-15T07:36:50.795006 | 2021-06-04T15:42:59 | 2021-06-04T15:42:59 | 372,309,396 | 0 | 0 | null | 2021-06-04T15:43:00 | 2021-05-30T20:29:12 | Python | UTF-8 | Python | false | false | 877 | py | from django.shortcuts import render, get_object_or_404
from django.core.paginator import Paginator
from django.contrib.auth.decorators import login_required
from .models import Category, Article
# Create your views here.
@login_required(login_url="login")
def articles(request):
articles = Article.objects.all()
... | [
"lourdesmorente+hub@gmail.com"
] | lourdesmorente+hub@gmail.com |
9098bfdbd7db6283725e567cd3dda2d034e79410 | 27e6825265de8a1f481f2859f359311086e9331b | /main.py | 76bb7e7b049d6eff4da3387166909ebe28d01b62 | [] | no_license | wida00/Intento-fallido | 3fd74e790968c679878d64648511fca82f5c2d63 | 29b2b10f9c267c2551f9df0e9ac9eefb1d03c7a3 | refs/heads/master | 2023-02-04T10:08:03.359525 | 2019-02-23T00:37:38 | 2019-02-23T00:37:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | a=int(input("Introduce el primer número: "))
c=int(input("Introduce el segundo número: "))
producto=a*c
print("el producto de", a ,"y", c ,"es", producto)
doble_a=2*a
print("el doble de", a , "es", doble_a)
b=int(input("Introduce el cuarto número: "))
cuadrado_b=b**2
print("El cuadrado de", b , "es" ,cuadrado_b)
import... | [
"wilson.escobar.2019@upb.edu.co"
] | wilson.escobar.2019@upb.edu.co |
43239bfd1d0df61388c3849fb6f59aa866dc62c3 | 8ba8ce658a4665d45d470d5ddc0c0b3357e46e4b | /Buttons.py | eebfe6dd1d3e3a5704764f2122f2a96918364998 | [] | no_license | Chidsuey/NestioScraper | e96698b9c81981ea10c257cc2160596ba38bc397 | 5edd40c3e66ec8134cea717844a8460bcf890a33 | refs/heads/master | 2023-06-26T14:47:31.436570 | 2021-07-31T18:49:38 | 2021-07-31T18:49:38 | 363,458,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | from Main import Main
class Buttons:
@staticmethod
def import_button_click():
print("something finally happened")
Main.html_file = Main.fileHandler.open_html_file(Main.gui)
just_the_file_name = Main.fileHandler.get_just_the_file_name()
Main.gui.import_text_box.config(state=NOR... | [
"timherrickpercussion@gmail.com"
] | timherrickpercussion@gmail.com |
e116a20437af55a8fa3ddfb6da75e2f7e9bad73c | 8b1084c2a1f205c37cbba85a1ebada04814fd95d | /setup.py | 229252a7fda84cd772399a40156c482046fbc857 | [
"BSD-3-Clause"
] | permissive | benburrill/formiko | ef6188ab2857875253c51bf26320a532ebe12fee | 86630506c537f9517666d9b0d5b2a905e7385b01 | refs/heads/master | 2022-11-11T18:38:53.492449 | 2020-06-12T08:22:55 | 2020-06-12T08:22:55 | 275,467,118 | 0 | 0 | NOASSERTION | 2020-06-27T23:00:27 | 2020-06-27T23:00:26 | null | UTF-8 | Python | false | false | 6,470 | py | #!/usr/bin/env python
from setuptools import setup
from docutils.core import publish_string
from docutils.writers.manpage import Writer
from io import open
from gzip import open as zopen
from distutils.command.build import build
from distutils.command.clean import clean
from distutils.command.install_data import inst... | [
"mcbig@zeropage.cz"
] | mcbig@zeropage.cz |
7c29829b18a503aa9a488e818fc301d5045785ec | 2d9005b2398691b2ed3f01da47d726ecef10f87d | /blog/migrations/0001_initial.py | 57bb77a1a40de40d25d813d6d76b7ce9a3f96132 | [] | no_license | artittiya/my-firts-blog | 05bb76138f665861fc79c726adf9871f61359ac6 | f1b38d9659435e994df83c09cf703d631d6885e6 | refs/heads/master | 2022-12-14T01:09:17.379229 | 2020-09-21T04:14:27 | 2020-09-21T04:14:27 | 295,311,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Generated by Django 3.1.1 on 2020-09-14 04:18
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUT... | [
"artittiya"
] | artittiya |
455a6d9d0beb69031b3fdee23506936411a93cef | 452d2b1ae77e092d8f243e7ee7853d39d82e50d1 | /qiwipyapi/request.py | 1faa5f5fb334ec1a249168f3165b155b7cc9b3ad | [
"MIT"
] | permissive | semenovsd/qiwipyapi | cc8779f27f129d5f040068411856054ea59f5851 | 190e5ba141549c10885bee597b52c90b298e86d3 | refs/heads/master | 2022-12-24T07:21:55.955105 | 2020-09-06T17:59:59 | 2020-09-06T17:59:59 | 291,787,048 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | import requests
from requests import RequestException
from qiwipyapi.utils import retry
@retry(RequestException, tries=3, delay=5)
def request(method, request_url, **kwargs):
try:
response = requests.Session().request(method=method, url=request_url, headers=kwargs.get('headers'),
... | [
"semenov_sd@bk.ru"
] | semenov_sd@bk.ru |
67d51ae226db8eddd9229a22fc2b983a8f6ec541 | 76b4329e495e8325d14e7b198f24d14464e9683a | /dotAi/Ball.py | 2181ef8b7cc88f5ec2a5c3187053d05bfe184ec3 | [] | no_license | concastor/Dot-AI | 08c5578472ee3e8dc372ac31d2220cc35bac7618 | a466c4e88072090678b55ff03e5b9630d5002370 | refs/heads/master | 2020-05-05T09:44:43.721151 | 2019-04-07T04:49:33 | 2019-04-07T04:49:33 | 179,915,136 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,169 | py | from tkinter import *
from Brain import brain
import math
#the balls that will be modified
class Ball:
def __init__(self, canvas, colour, x, y):
self.brain = brain(1000)
self.x = x
self.y = y
self.moveNum = 0
self.moves = 0
self.finishedIndex = self.brain... | [
"noreply@github.com"
] | noreply@github.com |
0ac91612d4f7e233be256f3b64ef59542e2f0181 | 85bd1011de7b70b3bc3f9a0d8f70a36b63023a6a | /learn/urls.py | 163defb127a04e170fdbe285f27d43349b82ede5 | [] | no_license | myusuf002/textta | 9e7efc4cbd8b7acf39d62a12543bde0b78eff0ef | a9e3b785690f79752875dbdb6becea871b868c1b | refs/heads/master | 2022-11-19T02:06:48.110119 | 2020-07-15T06:48:01 | 2020-07-15T06:48:01 | 234,483,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 184 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.viewIndex, name ="learn"),
path('vectorizer', views.viewVectorizer, name ="vectorizer"),
] | [
"002myusuf@gmail.com"
] | 002myusuf@gmail.com |
cfab454dcc7ce9d45e0246195bf3d3baa357fa25 | 01991c3d1ace66505dc4f491e5c095497e74c55d | /movies/objects.py | 0cd88b9c417019f985d4b9f29c8007c5d9613bd7 | [] | no_license | Falconier/Python-Stuff | 57655494bb80b9a8abbc35c0827f1a44ce2f6d2d | 944aeab9f01a4e03c5943cdbec9f677c97cd7382 | refs/heads/master | 2020-04-26T19:35:37.779377 | 2019-06-10T02:38:02 | 2019-06-10T02:38:02 | 173,780,213 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | class Movie:
def __init__(self, id=0, name=None, year=0, minutes=0, category=None):
self.id = id
self.name = name
self.year = year
self.minutes = minutes
self.category = category
def getName(self):
return self.name
def getID(self):
return self.id
cl... | [
"36140031+Falconier@users.noreply.github.com"
] | 36140031+Falconier@users.noreply.github.com |
4ec90fac740148b2459acee52674a79f1e5aa322 | 9c437c077af3c9ef1902f68a433ea0c1a7732ec7 | /test.py | c95efe8c960c06494d2df1d6107ff1ca0c4f6796 | [] | no_license | mingdh/studydatacollect | e95ea70b9e48193fe6203734d3c8472d33cf5c4f | 04d942cb76847cb74da28d2cddd2ae721ef4725f | refs/heads/master | 2022-07-18T07:16:40.737392 | 2020-05-12T17:46:01 | 2020-05-12T17:46:01 | 262,999,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | from lxml import etree
from bs4 import BeautifulSoup
text='''
<li class="li li-fisrt"><a href="link.html">first tiem</a></li>
'''
soup=BeautifulSoup(text,"lxml")
print(soup.prettify)
print(soup.li.p)
"""
from urllib import request, parse
url = 'http://httpbin.org/post'
headers = {
'User-Agent': 'Mozilla/4.0 (co... | [
"china1688@yahoo.com"
] | china1688@yahoo.com |
1ec00d0f8e5da0616c6a8683aff577a1f033ee99 | 5f63eab2a1d835b3078dcd57268c2d2a5341e15e | /dtfabric/__init__.py | f74641c23130e6ee2d091e6adb05c55cb29951a7 | [
"Apache-2.0"
] | permissive | Onager/dtfabric | 7d86819036f3abd60ec1979634849b933cbebef7 | 987e9d1d27d079ae5e22602e90bd6011108162b5 | refs/heads/master | 2020-03-28T21:10:04.746772 | 2018-09-02T11:36:17 | 2018-09-02T11:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | # -*- coding: utf-8 -*-
"""Data type fabric."""
__version__ = '20180808'
| [
"joachim.metz@gmail.com"
] | joachim.metz@gmail.com |
2866ab8e3ed6eb2c152a999fa59d81cc5fea1756 | 5cb62d2dfbd905386960a1e4eac162479614f3ec | /Anova.py | 9083bd15083ce11569c0635650389ec6ea1e61f5 | [] | no_license | rkrai2805/ML | 4118100644b71026d5ced37b9cf0cfb5967e2f31 | f8347075390c6ceac5fbede3ad02654a47004875 | refs/heads/main | 2023-06-18T19:41:37.162352 | 2021-07-01T11:30:50 | 2021-07-01T11:30:50 | 382,008,794 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jul 1 14:35:05 2021
@author: ravikant.rai
"""
| [
"noreply@github.com"
] | noreply@github.com |
17fca6b7edfa22a311533438616e101d58482ef6 | 672fef1cd92f24cc13dbb651f60d7b1081468bed | /catkin_ws/build/catkin_generated/stamps/Project/_setup_util.py.stamp | 3b50f58fd514c23297640f421c5264f9c9db7256 | [] | no_license | Forrest-Z/DevelopAgv | 49eca36e0a4a714fb232100b6216f4801409aa56 | e7d0ac39f3964557d7f67f074ddba73e5c6f0d3a | refs/heads/master | 2022-12-14T12:41:30.309513 | 2020-09-07T14:21:16 | 2020-09-07T14:21:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,362 | stamp | #!/usr/bin/python2
# -*- coding: utf-8 -*-
# Software License Agreement (BSD License)
#
# Copyright (c) 2012, Willow Garage, Inc.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistri... | [
"nhamtung125@gmail.com"
] | nhamtung125@gmail.com |
37a1d6436ecff80a8a3ce71f5fe107498f93ddd9 | cee3f76b7f3b442167dedb58b519a673f1932796 | /massRoom/models.py | d2e4eb2b9e205530c2723be18885f362acb98920 | [] | no_license | funnyBigPanda/MassRoom | acad4c78b7d6f5399aa37cfe8fcd00aa1d4740c0 | 1ac75db7acea4e264cb024720a1fadada603ac85 | refs/heads/master | 2021-01-17T20:01:52.948164 | 2016-08-10T15:44:22 | 2016-08-10T15:44:22 | 65,393,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
class Staff(models.Model):
name = models.CharField(max_length=200)
position = models.CharField(max_length=200)
description = models.TextField()
email = models.EmailField(null=True)
phone_number = mod... | [
"Sergiy"
] | Sergiy |
17625533abf79e37e7f1c5323a554da9a3bc208f | 2198a02c80111b606189348ea70a93d1ae0aba9b | /ddaLines.py | c490916831f802b23c19de1c51c114423a4a709b | [] | no_license | serajshaikh/CG_Lab | c7be6535453b9f9ac87835e02a9b673b1ad1ba68 | 94a8b57144cfcef41abbe4ed0c960abe08d27af3 | refs/heads/main | 2023-02-28T23:07:15.039221 | 2021-02-05T18:19:11 | 2021-02-05T18:19:11 | 336,256,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | """Write a program to draw a line using DDA algorithm"""
from OpenGL.GL import*
from OpenGL.GLU import*
from OpenGL.GLUT import*
import sys
x1,y1,x2,y2 = map(int,input("Enter (x1,y1,x2,y2) space saperated :").split())
def init():
glClearColor(0.0,0.0,0.0,1.0)
gluOrtho2D(-100.0,100.0,-100.0,100.0)
... | [
"noreply@github.com"
] | noreply@github.com |
980ead55b4363494a54dada9abdf1ead8f136e48 | 6acb8ae5a4d73b095f04d1491885fe1916fb3a09 | /tca/migrations/0001_initial.py | 2b25776c4933b12071d0c983d46e5844142a28bc | [] | no_license | whroid/TuoP | dc0617cde16b65af4cfa1cf8798cfd67a42b1344 | 0d3d49da92b64d64e504633f2edb887507a03c00 | refs/heads/master | 2016-09-10T13:10:57.748899 | 2015-05-04T14:40:16 | 2015-05-04T14:40:16 | 34,980,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('sso', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Topic',
fields=[
... | [
"whroid@gmail.com"
] | whroid@gmail.com |
fc352360360b455a48bab3a48fa44fb27bfe97f4 | 0508a120ecf9737220c213cd4329837c0fa14ddb | /collector/views.py | bccf58682054a5968fd4a0b62b055159b53cb623 | [] | no_license | nguyendinhtrieu1996/foodbike_recommender_system | 759bc1ca6ba80eb88cda4e823fdedd91ef49769b | a74a982b798894846b07fb6b2189135fcd412192 | refs/heads/master | 2020-03-23T00:21:17.283741 | 2018-08-05T16:02:03 | 2018-08-05T16:02:03 | 140,858,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | from django.http import HttpResponse
from collector.models import Log
import datetime
def log(request):
if request.method == 'POST':
date = request.GET.get('date', datetime.datetime.now())
user_id = request.POST['user_id']
content_id = request.POST['content_id']
event = request.... | [
"nguyendinhtrieu1996@gmail.com"
] | nguyendinhtrieu1996@gmail.com |
6ce9f040225394435da389a3d031af5834a8fdd0 | 9f67ef32a7fb8fac67654c8ae32d32f1614d77b2 | /test.py | 671ea82591b6c820e6fd1f9b14abd02ca2168a50 | [
"MIT"
] | permissive | mengfanhua/graduate | 832c1df115546cbeca065a3e65e15c888f1c8fdb | c65f6be6fe2fb57232ddc2b855a78d480d64c978 | refs/heads/master | 2023-04-09T13:14:51.754457 | 2021-04-14T05:07:57 | 2021-04-14T05:07:57 | 332,121,581 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from PIL import Image
a = Image.open("C:/Users/meng/Desktop/1989.png")
a = a.convert("RGBA")
a.putalpha(255)
a.save("C:/Users/meng/Desktop/1989.png")
| [
"1070985939@qq.com"
] | 1070985939@qq.com |
a4caec79aeafca6c69483d1ccb3cd0a028661f5a | 52fd8726a977bb98291d08158bd1e3c3396a59a8 | /tetris.py | df067be057b44513cfed760819bcc225d35a99a0 | [] | no_license | saiffmirza/Tetris | 28153852fd5e27b14ab623c4495aa7ed30e18031 | 0a74ef7113dfc185ba54c033725af1b16d2b1f0d | refs/heads/master | 2022-11-12T19:03:02.446012 | 2020-06-25T03:56:53 | 2020-06-25T03:56:53 | 274,824,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,883 | py | import pygame
import random
# still need to add music
from pygame import mixer
pygame.mixer.pre_init(frequency=44100)
pygame.init()
pygame.mixer.init(frequency=44100)
pygame.font.init()
# GLOBALS VARS
s_width = 800
s_height = 800
play_width = 300 # meaning 300 // 10 = 30 width per block
play_height = 600 # mean... | [
"noreply@github.com"
] | noreply@github.com |
b64ab24ee58e240b572da93c84dc51e52939a174 | a49b4983ca08b175f74c8faeb70bcf0d66b9d36a | /perceptron_tester.py | f37f003ac5ef1dcb84beb1ccab028b0854b9a3d0 | [] | no_license | romanticegg/FaceDetection | b423e50d2834055914edfe7fb1c3071ff979fec8 | 04e97a149b893aef95179a04c57a50f1c168dd6a | refs/heads/master | 2021-06-13T17:32:29.308673 | 2017-05-07T19:00:02 | 2017-05-07T19:00:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,399 | py | import load_face_data
from perceptron import Perceptron
import numpy as np
from sklearn.decomposition import PCA
import feature_extraction
from sklearn.preprocessing import StandardScaler
training_data, validation_data, test_data = load_face_data.load_data()
train_images = np.array(training_data[0])
train_labels = n... | [
"Dave.Troupe@gmail.com"
] | Dave.Troupe@gmail.com |
6d680dc75799c1836690c293bc7b5f349f8ff08f | 3cd66a0e29808c577657a5323b9f6e6197e3c6cc | /RL_QG_agents/FC_DQN_rotate.py | 9d184a849f509856997b0f0897409bb2e4987820 | [] | no_license | ReneeYe/NNDL_final | a75a8369e0427e79d3593d9153e30359f6e80c81 | 0a5ca81be1eaf1c08f06feb8e593ac55d9229713 | refs/heads/master | 2021-05-12T00:52:09.456911 | 2018-01-20T06:53:24 | 2018-01-20T06:53:24 | 117,545,107 | 0 | 1 | null | 2018-01-17T04:56:40 | 2018-01-15T12:53:23 | Python | UTF-8 | Python | false | false | 7,821 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 17 17:16:34 2018
@author: Think
"""
import os
import sys
import copy
from collections import deque
import numpy as np
import tensorflow as tf
class DQNAgent:
"""
Multi Layer Perceptron with Experience Replay
"""
def __init__(self, enable_actions, envir... | [
"yrrenee@outlook.com"
] | yrrenee@outlook.com |
8cca7863aa65bd4cf6d5a46f0dfad8bc41aa5bd5 | bd6523dd51e568af6c72878d7f3684c45fbf3b76 | /myapp/urls.py | b16b1183e295193a101b0266ef0ffea31aaa360a | [] | no_license | DevBasito/First-Django-App | 99419885b29e3f43dde8f79f764e4f4dc296c12d | f419b5da8350610a1ae198b3c3c7dd55f83f24cb | refs/heads/main | 2023-04-01T05:23:35.683471 | 2021-04-14T01:01:10 | 2021-04-14T01:01:10 | 357,723,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | """NewProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"vampbaxx@gmail.com"
] | vampbaxx@gmail.com |
fce0269827a14f3f85fcd0b22b01e547f10b13c1 | bfad81de459052ea439a06d4346a4fdc60b3cad2 | /Project/accounts/views.py | 9e83bf61fc7df347459ad04b46aac45b34dca64a | [] | no_license | MarCastellnou/Deriverable_Proj-Web | ecc9841b48c479cc05071a85f94bc92d5b8323a5 | 0a3b39e3afe1cc233c0e0e0186635037da26e0cd | refs/heads/master | 2021-07-19T02:49:02.962373 | 2019-05-26T09:54:39 | 2019-05-26T09:54:39 | 175,597,908 | 0 | 0 | null | 2020-06-05T20:59:43 | 2019-03-14T10:17:58 | Python | UTF-8 | Python | false | false | 311 | py |
# Create your views here.
from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse_lazy
from django.views import generic
class SignUp(generic.CreateView):
form_class = UserCreationForm
template_name = 'registration/signup.html'
success_url = reverse_lazy('login')
| [
"marccastellnou98@gmail.com"
] | marccastellnou98@gmail.com |
108944303a0843ceaf9057331af7cf9f798aaebd | 93ae12b7b48eede793c87df34a711b97511db535 | /python/linked_list.py | a95a396a4174f98467e9c9ba35ae0b44270900f9 | [] | no_license | oneilk/data-structures | af9e737e5fe54bc244b1ae2a4757c2a8bdfe331b | 4ef38fe51e6273fba1365d998cf898975aab96de | refs/heads/master | 2021-11-27T16:35:43.996258 | 2021-08-13T15:06:06 | 2021-08-13T15:06:06 | 254,439,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,194 | py | class Node:
def __init__(self, data=None, next=None) -> None:
self.data = data
self.next = next
class LinkedList:
def __init__(self) -> None:
self.head = None
def insert_at_beginning(self, data) -> None:
node = Node(data, self.head)
self.head = node
def insert... | [
"okwangwanh@apple.com"
] | okwangwanh@apple.com |
cf8a43035c2a8399bb7968d9c6ceed3450f33784 | 404dc317b6c3a313fe58f5fe632fec39a56dbea5 | /project/database_connection_tests/database_connection_raspberry.py | 5225c8e2272585fb69a0ffad7a6bc333670f0fd6 | [
"MIT"
] | permissive | chr0x6eos/AttendID | 4ffe222df9f3f083098903b8374e62a1d791d6cb | b9aca98e3f58fa2823af6d910e625dcad014b11a | refs/heads/master | 2022-07-16T20:05:15.839906 | 2020-05-17T09:22:47 | 2020-05-17T09:22:47 | 221,528,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | #!/usr/bin/python3
import mysql.connector
from time import strftime
import random
'''
def getDBs(mycursor): #Return all dbs
dbArray = []
mycursor.execute("SHOW DATABASES")
for x in mycursor:
dbArray.append(x)
return dbArray
def createDB(mycursor, dbName): #Creates DB if it does not al... | [
"simon.possegger@edu.htl-villach.at"
] | simon.possegger@edu.htl-villach.at |
356fffb2a72db9229eaca3a2370021d520335237 | 6c46bc29b771d27cd1b205111675cf1529270f84 | /Polls_App/views.py | 617b4a1862da073865ba00cc09529565702bec6f | [] | no_license | ChristianHallerX/DJPoll_Webapp | 47936b943f47e648183e1ecdc2888fa967ae5f33 | 79e57bfd4b4e1bb62ccbca0b79e887e71761aef3 | refs/heads/main | 2023-01-08T19:58:24.761846 | 2020-11-07T04:55:07 | 2020-11-07T04:55:07 | 310,751,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | from django.http import HttpResponseRedirect
from django.shortcuts import get_object_or_404, render
from django.urls import reverse
from django.views import generic
from django.utils import timezone
from .models import Choice, Question
class IndexView(generic.ListView):
template_name = 'Polls_App/index.html'
... | [
"christian_haller@gmx.de"
] | christian_haller@gmx.de |
51e82f206d6cb158d43c6493732e099a1e934368 | 89f03b452f7d0279435156fe13c2f6fbe9b949ce | /lib/modules/paperparse.py | 7f653657fdac51487db14ee6657518d9a7147e98 | [] | no_license | CSB5/atminter | 99408e10a6457d7649fe893c27e6f066ca2e95db | feae3672f41ef151dbe2e70d7dad6a00500ab874 | refs/heads/master | 2021-01-13T01:02:51.407291 | 2016-03-03T07:25:02 | 2016-03-03T07:25:02 | 52,598,290 | 7 | 6 | null | null | null | null | UTF-8 | Python | false | false | 7,954 | py | #!/usr/bin/env python3
"""
paperparse.py
A set of functions to deal with pubcrawl data
"""
import nltk
import os
import re
import json
"""
getNames(filePath):
input:
pubcrawl json
output:
names, shortened name and genus of all species in the file_name
Sample pubcrawl output file:
Escherichia_coli#Pseudo... | [
"klim314@gmail.com"
] | klim314@gmail.com |
0832a3791935232166da66c9a990e7cea2789352 | df8eacf8d9866b39eb4b8f9b073b9edba54bbf00 | /scripts/Oman-crawler.py | 211574d99d8054ecae36b22242275339b10f9fbc | [] | no_license | Leontian36/COVID19-Case-Data-Crawler | 9d423fd427503061450e0f2250bc5f008ee217a2 | ded89329ed1054573acdfa138bb6bcd01a694303 | refs/heads/master | 2023-03-10T19:45:40.127542 | 2021-02-25T08:23:43 | 2021-02-25T08:23:43 | 308,104,927 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,160 | py | '''
@Author: Matthew Shabet
@Date: 2020-08-02 21:51:00
@LastEditTime: 2020-08-02 22:48:00
@LastEditors: Please set LastEditors
@Description: In User Settings Edit
'''
import csv
import requests
import json
import os
from datetime import datetime
url = 'https://covid19.moh.gov.om/#/home'
# The above URL actually gets ... | [
"62909257+Leontian36@users.noreply.github.com"
] | 62909257+Leontian36@users.noreply.github.com |
5fb75e7b80dbd906d47244a9a9291014ec7327c6 | 62ba507931d414560593d5eab4673efcda1f5b03 | /flyt/settings.py | d4470b3751f13727e38e37f0444258c8d1db7ee5 | [] | no_license | jackdcal/my-first-blog | 01a17281abe25f3389245f51b6f0a012138094fa | 77108ca1802b07cc03df258f6fbeca083f5c2692 | refs/heads/master | 2022-12-06T02:23:24.878813 | 2018-03-18T16:14:31 | 2018-03-18T16:14:31 | 125,280,714 | 0 | 1 | null | 2022-11-28T13:36:00 | 2018-03-14T22:19:17 | Python | UTF-8 | Python | false | false | 3,199 | py | """
Django settings for flyt project.
Generated by 'django-admin startproject' using Django 2.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# Bu... | [
"jackdcal@gmail.com"
] | jackdcal@gmail.com |
ebf7bb12afc082342bc8d6d0fd6fca1f21654281 | c8ea4fe0dccca928b92234b72a7a8d9cd6cf4d14 | /eth2/beacon/types/candidate_pow_receipt_root_records.py | 627a370464b39a59f5665fb194d34d3d8124199d | [
"MIT"
] | permissive | kclowes/trinity | b6bc4f7c57ade1651cf9b2ca9ca88493f3485007 | f0400c78a6d828dd266b1f31dd3fa7aacf97486d | refs/heads/master | 2020-04-16T16:11:28.531260 | 2019-01-14T17:03:56 | 2019-01-14T17:44:58 | 165,728,497 | 0 | 0 | MIT | 2019-01-14T20:17:01 | 2019-01-14T20:17:00 | null | UTF-8 | Python | false | false | 648 | py | from eth_typing import (
Hash32,
)
import rlp
from eth2.beacon.sedes import (
uint64,
hash32,
)
class CandidatePoWReceiptRootRecord(rlp.Serializable):
"""
Note: using RLP until we have standardized serialization format.
"""
fields = [
# Candidate PoW receipt root
('candida... | [
"hwwang156@gmail.com"
] | hwwang156@gmail.com |
a5f41dd264235f371341785ae18342dfd49ce5f8 | de9eeea51e189cb96435700dfa04045cdd555bf5 | /filme.py | 0e6f84092c707b39791620fac5402219e47be303 | [] | no_license | jrbytes/python-oo | 2acdf25803e4e120b59e7dda5e11b9a57e6c2ba3 | 28192c34285709178063e46b1412ac2ba2896305 | refs/heads/main | 2023-07-24T13:03:46.489754 | 2021-09-07T22:32:23 | 2021-09-07T22:32:23 | 402,584,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | class Programa:
def __init__(self, nome, ano):
self._nome = nome.title()
self.ano = ano
self._likes = 0
@property
def likes(self):
return self._likes
def dar_like(self):
self._likes += 1
@property
def nome(self):
return self._nome
@nome.setter
def nome(self,... | [
"itamazor@gmail.com"
] | itamazor@gmail.com |
90cda8b621b8d7167515603ba494c865c5e93847 | a3d68ad77a64222ab4294e2081be9eeabc634fb9 | /Unique-Subsequence.py | ac44d3e05ff571d20fd9f58f663f67ab2e9f6558 | [] | no_license | LamThanhNguyen/HackerEarth-Solutions | 2c8fe9fad1b816c50cc239defc67750d0817b505 | bf7a10af66c6d95aee2a60ad2cd1ed958cb112f8 | refs/heads/master | 2023-03-19T02:54:19.811429 | 2021-02-02T15:53:50 | 2021-02-02T15:53:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | t = int(input())
for _ in range(t):
n = int(input())
s = str(input())
ans = 1
for i in range(n-1):
if(s[i+1]!=s[i]):
ans = ans + 1
print(ans) | [
"66694735+pradyumansingh989@users.noreply.github.com"
] | 66694735+pradyumansingh989@users.noreply.github.com |
9be647f84cdc463b3893ff68138932be83142b12 | 11d2f842f86d1b4297d8b0dc0a75308b9a54f5b9 | /basic.py | 3e15d5d81da03a1b3c2d5438dfda2cfb31f1d00a | [] | no_license | brianfarris/backprop | a6fd9f273f2ff851ea9884cabcd3620fd2c41482 | a376f304b3fc3ab1071b221cc23f03f1a9802e4d | refs/heads/master | 2020-04-27T00:51:55.625115 | 2019-03-06T16:47:36 | 2019-03-06T16:47:36 | 173,947,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 951 | py | import numpy as np
from vertices.vertices_general import Input
from vertices.vertices_basic import Multiplication, Addition, Inverse, Squared, Sigmoid
from backprop.traverse import Traverse
if __name__ == "__main__":
x = Input(name="x")
x.value = np.array(3)
y = Input(name="y")
y.value = np.array(-4)... | [
"bfarris8@bloomberg.net"
] | bfarris8@bloomberg.net |
311a04dfb1911906cea033ab338c4079cd95482d | 4133bd4de741900a599d2acede88c14589652454 | /lista_5/questaoD.py | 86e9be9f5eed6fc2478e698158ecb174283bc46e | [] | no_license | victorvhs/zumbi_curso | 5659a8fbc352ec4174230cda0542957951fa4ba8 | 3afb363874cca2286615d3595c5f50efc865cde1 | refs/heads/master | 2021-06-03T02:36:47.847231 | 2021-05-21T23:28:19 | 2021-05-21T23:28:19 | 64,033,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Daniela é uma pessoa muito supersticiosa. Para ela, um número é sortudo
# se ele contém o dígito 2 mas não o dígito 7. Então, na opinião dela, quantos números
# sortudos existem entre 18644 e 33087, incluindo os extremos?
resposta = 0
for i in range(18643, 33088):
num = str(i)
if '2' in num and not '7' in n... | [
"victor.h.s.reis@gmail.com"
] | victor.h.s.reis@gmail.com |
683177c8d14ce350ca90ae3aabae0fac52efcd38 | 8a6eb38e4afe8bd937c4748c1afc1d4df6dcb875 | /pages/basePage.py | 04a4b4a05b63bab91cf0236ee29dfe47d18a2452 | [] | no_license | lv-1213/EasyPay | 6d46d5b59c7266e077ac1e38701cd08ccdb80593 | 402b026742d4d0cdb915728efa091d4dbf828f5d | refs/heads/master | 2022-11-15T12:53:51.526560 | 2020-07-01T07:36:28 | 2020-07-01T07:36:28 | 276,309,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,968 | py | import time
from selenium.webdriver.support.select import Select
from selenium import webdriver
class Page:
username_css = ["css selector", '[id="username"]']
password_css = ["css selector", '[id="password"]']
button_css = ["css selector", '[ng-click="login()"]']
url = "http://172.16.100.115/Eviews/stat... | [
"admin@example.com"
] | admin@example.com |
a7ac62b50c4891a9aa0b3fbc99827e94a02774dc | ac76f42e9019a100fa961b4808353fe870de96b1 | /streamproject/stream/migrations/0002_auto_20170909_1121.py | 54d9b7cc79859a2dcac195dc33eba36461c3b001 | [] | no_license | lukalux/streamproject | eb2033a8ebe15c0bd59c12a7279199ab2566850d | 8f0722ac55c85e4475665e0d248dfdacaa706975 | refs/heads/master | 2021-07-01T08:10:01.923639 | 2017-09-19T08:07:10 | 2017-09-19T08:07:10 | 103,264,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-09-09 11:21
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('stream', '0001_initial'),
]
operations = [
migrations.AlterModelOptions(
... | [
"lblagovic@lblagovic-2.local"
] | lblagovic@lblagovic-2.local |
6c1561ad94133e8d8301c032b4957e2746465fd0 | 69d1c9de1b2c871dcc63d39cbd280cd03d79a807 | /config/wsgi.py | 8a859836874c0b70b97fbd4e992b3177fbf5744c | [
"MIT"
] | permissive | tkovalsky/gas | e31b8e88641f799e227abfbbf7485d67189795b5 | 2d31b2cbe3b630667e2b53c2595cf27c5f5a54f6 | refs/heads/master | 2020-12-02T08:11:26.501904 | 2017-07-10T14:36:42 | 2017-07-10T14:36:42 | 96,785,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | """
WSGI config for gas project.
This module contains the WSGI application used by Django's development server
and any production WSGI deployments. It should expose a module-level variable
named ``application``. Django's ``runserver`` and ``runfcgi`` commands discover
this application via the ``WSGI_APPLICATION`` sett... | [
"work@Todds-MacBook-Pro.local"
] | work@Todds-MacBook-Pro.local |
6f9d1ca2158cb61dd3de68ba6dd7d2cfc346bba9 | ae4beeba76214703baf8e216925768b9ac61a532 | /cancel_all_orders_app/models/sale_order_inherit.py | 07aa5ec22ef8721f4a1617cae5347c1abeed9c1a | [] | no_license | hassanfadl/anavale-produce | fcf8fa92d8efdd6ee6cefcae5a39f0b01a5691b0 | 5c7f338ddec74278b1f267d2ea97548f0702c8a6 | refs/heads/master | 2023-07-07T17:53:59.135708 | 2021-09-08T04:32:16 | 2021-09-08T04:32:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # -*- coding: utf-8 -*-
from odoo import api, fields, models, _
class sale_order(models.Model):
_inherit = 'sale.order'
def action_cancel(self):
for picking in self.picking_ids:
if picking.state != 'cancel':
picking.action_cancel()
for invoice in self.invoice_ids... | [
"julian.garcia.it@gmail.com"
] | julian.garcia.it@gmail.com |
12def74e21dd870bff36062191e93cdab5720fce | b697b98db859c061c1174837deee1d6fc47d115e | /tests/spot/margin/test_margin_all_assets.py | 2ee1ab08ffb59ffeea81fbbbc20d749b7bba3c46 | [
"MIT"
] | permissive | leozaragoza/binance-connector-python | 7e684d6e68ff7d580b7e3fa83f952540a79b1120 | 3311d102c9e788e3d71047f0af103c00d1ae2162 | refs/heads/master | 2023-07-15T12:27:50.041388 | 2021-08-22T17:08:38 | 2021-08-22T17:08:38 | 396,354,910 | 3 | 0 | MIT | 2021-08-22T17:08:38 | 2021-08-15T13:12:41 | Python | UTF-8 | Python | false | false | 509 | py | import responses
from tests.util import random_str
from tests.util import mock_http_response
from binance.spot import Spot as Client
mock_item = {"key_1": "value_1", "key_2": "value_2"}
key = random_str()
secret = random_str()
@mock_http_response(responses.GET, "/sapi/v1/margin/allAssets", mock_item, 200)
def test... | [
"liang.shi@protonmail.com"
] | liang.shi@protonmail.com |
66c0dd4b17b9f0804800ca2d7b2473bd423f4fd4 | 3034cb06289f747066571c4ab54ca81996c22319 | /module_utils/RubrikLib_Int/rubrik_lib_int/models/managed_volume_snapshot_config.py | 8920056e191dcbe78417b4517c725d86d507ed9f | [] | no_license | tarunactivity/ansible-rubrik | b2f644805f13a553bd0635e6ddc230257d125ef7 | 5d978c23902fd32d92cc90c75e48e5fe2209f8e0 | refs/heads/master | 2023-04-29T04:25:26.834701 | 2023-04-20T21:58:47 | 2023-04-20T21:58:47 | 116,251,368 | 0 | 0 | null | 2018-01-04T11:18:38 | 2018-01-04T11:18:37 | null | UTF-8 | Python | false | false | 812 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from ... | [
"tarun.activity+github@gmail.com"
] | tarun.activity+github@gmail.com |
1154529d53964c2a56b317c0897fb25cef84cd99 | 842496e8a5fc5b2b58300a5882784083a3c65e52 | /quantumflow/xqiskit_test.py | c72453a02ee4394b7f73733d4343b12f55fd185b | [
"Apache-2.0"
] | permissive | alexgalda/quantumflow-dev | b687f8dd5d5f51e3ace66a339e2da11e428efcf4 | be6a4d0527c8a9b3d936dcb11f04bb68962b1bf8 | refs/heads/master | 2023-08-11T18:49:20.880858 | 2021-08-17T20:47:42 | 2021-08-17T20:47:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,394 | py | # Copyright 2019-, Gavin E. Crooks and contributors
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
"""
Unit tests for quantumflow.xqiskit
"""
# fmt: off
import pytest; pytest.importorskip("qiskit") # noqa: E702
# fmt: ... | [
"noreply@github.com"
] | noreply@github.com |
6dd20bbc1436d8a71d799929b1889d0f94ef56ed | cc76d01ed60e02c01fac76f147fcd09c51bc7977 | /city_scrapers/spiders/alle_improvements.py | b30e9485f81d88c7139ceebadd5dd6cf879266ac | [
"MIT"
] | permissive | mgermaine93/city-scrapers-pitt | bab2b16f058d061fc34896829715279d711fbab1 | 065221765e0153df867cf10d3558df09c627aed1 | refs/heads/master | 2020-08-06T09:17:51.576690 | 2020-02-22T17:19:36 | 2020-02-22T17:19:36 | 212,921,375 | 1 | 0 | MIT | 2019-10-05T00:10:11 | 2019-10-05T00:10:10 | null | UTF-8 | Python | false | false | 5,205 | py | import datetime
import re
from urllib.parse import urljoin
from city_scrapers_core.constants import NOT_CLASSIFIED
from city_scrapers_core.items import Meeting
from city_scrapers_core.spiders import CityScrapersSpider
from scrapy.utils.response import get_base_url
RE_URL = re.compile(r'(?P<date>(\d{1,2}-\d{1,2}-\d{1,... | [
"joshua.adelman@gmail.com"
] | joshua.adelman@gmail.com |
8467f2528c243c59a8ebadf9fe3d46467de150c2 | 7edf4672013e38997b85baa4d25a6a96d69973e2 | /mon_application/views.py | 35990c65a53e2d5c3bc5c2f235fd3b0ebdd32a01 | [] | no_license | Sahiralelo242/eces | b7062388523a57c9156d295bdb898b9769b8a8fe | 224b2c14810aca8d4011eb8af4eda58c0e801d9b | refs/heads/master | 2020-06-05T23:27:24.120107 | 2019-06-18T16:48:10 | 2019-06-18T16:48:10 | 192,574,009 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from .models import etudiant as et
def index(request):
# return HttpResponse('<h1>Hello : Accueil</h1>')
return render(request, 'mon_application/index.html')
def all_etudiant(request):
etudiants = et.objects.all().order... | [
"sahiralelo242@gmail.com"
] | sahiralelo242@gmail.com |
20881dbf39aee2b47bb7e25a010cd73e49dcb880 | 83d986f0a6be9dae3d2833a7a7fb04a9af75b649 | /manage.py | db9eb395a8c365413bc6c9000da33a2ef3f4e977 | [] | no_license | anushabobba1/my-first-blog | 1d613dc4321ef325988779e550fcfd628c7965a4 | 8d7669a9f75f032ddf067e286ac5dfa744109e2f | refs/heads/master | 2020-03-26T03:53:42.578572 | 2018-08-13T08:29:00 | 2018-08-13T08:29:00 | 144,475,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "secondpj.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensure that the... | [
"banusha.b1@gmail.com"
] | banusha.b1@gmail.com |
4ccfbf9e663df0a56be2a4fbeb8c8b3741c34d58 | c404dce8809d1a1d9828a5c92d3eede96bad5487 | /igdiscover/group.py | 25b5e13c6704d03045effe0bd3b63a6f42c8d3c3 | [
"MIT"
] | permissive | mateuszatki/IgDiscover | 8b560297d64e5b9e2c65408c43214cc78f235558 | b6f1bdcdf75ddae2af154d41bb21fedff60115a1 | refs/heads/master | 2020-03-29T08:59:11.699494 | 2018-11-19T21:51:50 | 2018-11-19T21:51:51 | 149,736,075 | 0 | 0 | null | 2018-09-21T08:46:21 | 2018-09-21T08:46:21 | null | UTF-8 | Python | false | false | 12,025 | py | """
Group sequences that share a barcode (molecular identifier, MID)
Since the same barcode can sometimes be used by different sequences, the CDR3
sequence can further be used to distinguish sequences. You can choose between
using either a 'pseudo CDR3' sequence, which encompasses by default bases 80
to 61 counted fro... | [
"marcel.martin@scilifelab.se"
] | marcel.martin@scilifelab.se |
0c3bcf5e3e846d0f1956e7384598d303ebdbd8ca | f0e31656a1bf16b1c0e6fd3b43812bf69a201b69 | /song_match/exceptions/exceptions.py | 2a700d6b1625e47b5a16957eb804b6be89f4b111 | [
"MIT"
] | permissive | gbroques/cozmo-song-match | 0afb6cbc52447ceea3a7eb14032b46b78719481a | 7cea763cc3fe63adc3a7e2dc226bd8b48ce72f71 | refs/heads/master | 2022-12-10T06:02:44.462450 | 2018-05-15T12:19:06 | 2018-05-15T12:19:06 | 125,294,282 | 8 | 3 | MIT | 2022-12-08T00:56:00 | 2018-03-15T01:14:23 | Python | UTF-8 | Python | false | false | 1,492 | py | class InvalidNote(ValueError):
"""Raise if an invalid note occurs."""
def __init__(self, note):
message = self._message(note)
super(InvalidNote, self).__init__(message)
@staticmethod
def _message(note: str) -> str:
return 'Invalid note "' + note + '".'
class MixerNotInitializ... | [
"groques360@gmail.com"
] | groques360@gmail.com |
e6401c6678c0d5873fcba13164503fa09b3e3e4f | 392c10f6edecc292ecf2104f70de729bfa16f980 | /Ship.py | 63288c985c8706f4bf300d33f2aab6bb430fbeff | [] | no_license | zhipeter/Pygame | cfc109e7b573677ae438e8e707a9bf01d060268b | 527d10292fc59536978aacb83114e07a3992816e | refs/heads/master | 2021-05-04T13:01:33.922278 | 2018-02-04T07:51:59 | 2018-02-04T07:51:59 | 120,306,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,293 | py | '''
This is a Class of Ship
'''
import pygame
from pygame.sprite import Sprite
class Ship(Sprite):
''' a Class of Ship'''
def __init__(self, set, screen):
'''init ship'''
super(Ship, self).__init__()
self.screen = screen
self.set = set
# load ship
self.image ... | [
"zhipeter166@gmail.com"
] | zhipeter166@gmail.com |
e53d3f8760e6f3fc1d03e31ca0d6e95e770ca119 | 14675f0c66fb4f4eeaa6ad1e8e691b9edf8f0bdb | /All other combo programs/shallow_copy_vs_deep_copy.py | 90fde947dfc5fb9fd91708b12dd8fa46e8ad2df8 | [] | no_license | abhishekjoshi1991/Python_Learning | 9a94529643eac7394615289e2ecd96106e70ddb8 | a74293d0776304638b5cf976b3534481e57b17f2 | refs/heads/master | 2023-04-16T02:21:30.588052 | 2021-04-21T13:58:29 | 2021-04-21T13:58:29 | 360,176,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,718 | py | #Shallow copy vs deep copy
'''
In Python, we use = operator to create a copy of an object.
We may think that this creates a new object; it doesn't.
It only creates a new variable that shares the reference
of the original object (very imp line)
if we say
l1=[1,2]
l2=l1
l2.append(10)
print(l1)
print(l2)
here assignment ... | [
"abhijsh61@gmail.com"
] | abhijsh61@gmail.com |
be96165ec459e113f9297b64696002b7e98bdbaf | 3c7364af443f88d86d432ba8948349babac4c693 | /nflpool/services/update_nflschedule_service.py | 7a00e7fa8a34f9b1ed8b749d57f9c4b36da87d77 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | prcutler/nflpool | a98f0b462315fa8ce4eb8cf45851d6959e7b493b | a71498befb09601ab184f0db75a548860bc201c6 | refs/heads/master | 2021-07-20T02:38:36.874692 | 2021-06-02T12:00:01 | 2021-06-02T12:00:01 | 48,953,770 | 9 | 6 | MIT | 2021-06-02T12:00:02 | 2016-01-03T17:05:59 | Python | UTF-8 | Python | false | false | 2,083 | py | import requests
from nflpool.data.dbsession import DbSessionFactory
from nflpool.data.nflschedule import NFLSchedule
import nflpool.data.secret as secret
from requests.auth import HTTPBasicAuth
from nflpool.data.seasoninfo import SeasonInfo
import pendulum
"""After updating to a new season, get the NFL game schedule ... | [
"paul.r.cutler@gmail.com"
] | paul.r.cutler@gmail.com |
578e926d0c44c40ace20b84c84f3ca157bf41e57 | d85822d6d53f6c2bd258f91ec6d38cfb9eb6b50a | /BrixAIUtils/FSM.py | 86abc9077e7b3a1a50c1263d14f10b4f4df8e178 | [] | no_license | hanhha/BAI | 82766c8cef65f5840a73e23e19c93bd5bb0db3de | 6e5ac718bd29426d6dec1a84ce23ad9450543b5e | refs/heads/master | 2021-05-07T16:04:00.852814 | 2019-02-13T14:58:34 | 2019-02-13T14:58:34 | 108,492,641 | 1 | 0 | null | 2018-09-20T14:52:52 | 2017-10-27T03:03:28 | Python | UTF-8 | Python | false | false | 1,356 | py | class State:
def __init__ (self, name):
self.name = name
def __str__ (self): return self.name
def __cmp__ (self, other):
return cmp (self.name, other.name)
def __hash__ (self):
return hash(self.name)
def run(self, input, args):
assert 0, "run not implemented"
def next(self, input, args):
assert 0, "ne... | [
"haminhtranhanh@gmail.com"
] | haminhtranhanh@gmail.com |
a0725e5f3d1d8a9712664bada715e224b653f8a3 | 00321376218d69611c393ded60d4489b4f6f2cde | /demoserver/comment.py | 62bfb52b2fb858bb7bb6ade6f13ff4a1b34d9f30 | [
"MIT"
] | permissive | TED-996/krait | 3d6417b129ef291de2d9d10c3dd30cf0852ca3ee | 82d8025d0daea10b01e2d3ea832c87d2b9c268e1 | refs/heads/master | 2021-01-19T07:06:28.294843 | 2017-06-27T19:34:05 | 2017-06-27T19:34:05 | 76,179,849 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | import krait
import sqlite3
import datetime
post_form = krait.request.get_post_form()
name = post_form["name"]
message = post_form["text"]
krait.response = krait.ResponseRedirect("/db")
conn = sqlite3.connect(sqlite_db)
c = conn.cursor()
c.execute("insert into messages values(?, ?)", (name, message))
conn.commit(... | [
"budaca.eduard@gmail.com"
] | budaca.eduard@gmail.com |
0f320c2f2deccd1de76ec49f2d0ad97cc4712791 | 17e0468172ce82075174bd81b8b71a1f4b55711f | /binding.gyp | 7c6c8976bca513a966d765c13588ed7624962477 | [] | no_license | thynson/yescrypt-napi | 5bc7f4ef99bc0ebf455ac0b90f22f5c2a5f65ec1 | 29667baf2890b60b1f913fd9fb327b92d0994192 | refs/heads/master | 2023-07-26T11:24:23.882912 | 2021-09-03T13:28:17 | 2021-09-03T13:28:17 | 401,596,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 526 | gyp | {
"targets": [
{
"target_name": "binding",
"sources": [
"deps/yescrypt/yescrypt.h",
"deps/yescrypt/yescrypt-opt.c",
"deps/yescrypt/insecure_memzero.h",
"deps/yescrypt/insecure_memzero.c",
"deps/yescrypt/sha256.h",
"deps/yescrypt/sha256.c",
"src/y... | [
"thynson@live.com"
] | thynson@live.com |
7fd70293457a94430158a400b39c08d977d645bc | bb24a4bda69ec65c82d8ad5dc240a67369d25505 | /meetings/admin.py | d3fbbb522f9df678016e7faef6e6d402241f2e09 | [] | no_license | KBHarris/meeting_planner | 01cc7e0d99d424b03a2af2d33b41fd9864a00e60 | 564f485901a541bc188cd2cc802980d859804089 | refs/heads/main | 2023-06-29T12:18:36.058652 | 2021-07-29T18:53:23 | 2021-07-29T18:53:23 | 390,448,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from django.contrib import admin
from .models import Meeting, Room
# Register your models here.
admin.site.register(Meeting)
admin.site.register(Room)
| [
"kylebradlyharris@gmail.com"
] | kylebradlyharris@gmail.com |
83e3e34ab7cfc7442d87aa3441792457bae890c5 | 7e7ad12d02702cd72251bf26ad502d8ede23fb92 | /day25.py | 9fda0f12f421234e846ded3466aa0226a8a47748 | [] | no_license | snowbagoly/adventofcode2018 | 6cc9a4a1f903e62bf9de78f4c797ed69c47d5ad3 | 2ed30ac2342d1a5d7325b962cd2244215649c4a1 | refs/heads/master | 2020-04-09T03:28:08.414529 | 2018-12-27T22:10:27 | 2018-12-27T22:10:27 | 159,983,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 855 | py | from aocd import get_data
import re
coord_regex = re.compile("(-?\d+),(-?\d+),(-?\d+),(-?\d+)")
s = get_data(day=25,year=2018)
def calculate_distance(p1,p2):
return sum(map(lambda a,b: abs(a-b),p1,p2))
points = map(lambda line: map(int,coord_regex.search(line).group(1,2,3,4)),s.split("\n"))
edges = {i:[] for i... | [
"leona.thet@gmail.com"
] | leona.thet@gmail.com |
683992abaf16fac2451d15ee9054fa439fb1dd68 | f985402d90e1861852d45e65b32e0f0c7592c265 | /publisher.py | be072be1ddc9e6d8ebf31e54fd088a15fd13e020 | [] | no_license | tecd0721/example-py-docker-iothub | fce558e755ad5cfedb862e5b74381c6d3d5da595 | bbc91251ff243dda7429e78eec7ffc2b73d71030 | refs/heads/master | 2022-12-17T06:56:35.845314 | 2019-08-07T07:09:19 | 2019-08-07T07:09:19 | 294,050,246 | 0 | 0 | null | 2020-09-09T08:27:00 | 2020-09-09T08:26:59 | null | UTF-8 | Python | false | false | 695 | py | import paho.mqtt.client as mqtt
import random
#externalHosts
broker="xx.81.xx.10"
#mqtt_port
mqtt_port=1883
#mqtt_username
username="xxxxxxxx-b76f-43e9-8b35-xxxxxxxxf941:xxxxxxxx-c438-4aee-8a0f-bbc791afd307"
password="xxxxxxxxsP8VJZXBb32Z5JNwn"
def on_publish(client,userdata,result): #create function for ca... | [
"tsian077@gmail.com"
] | tsian077@gmail.com |
318f0c2a62f81f10b2462cd7ecc6e8f97bd3ccfc | af2bcc0f22e6e9fb67f68b700287c21214de2bb0 | /jackenv/bin/easy_install-2.7 | e2de4f982986addf58c9d2c8ea98f5c0665ccef7 | [] | no_license | dcl67/Loanshark2 | 8bb6c2fb6d38f548dcd19ed7f4250f285800e44f | 8d00f2aa2217d8d5ae9550167e9501d60e47f81b | refs/heads/master | 2020-03-30T18:14:10.235263 | 2018-10-09T23:14:06 | 2018-10-09T23:14:06 | 151,490,176 | 0 | 0 | null | 2018-10-09T23:14:07 | 2018-10-03T22:46:31 | Python | UTF-8 | Python | false | false | 272 | 7 | #!/Users/dannylopez/repos/JackTracking/jackenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"dannylopez@n2-100-169.dhcp.drexel.edu"
] | dannylopez@n2-100-169.dhcp.drexel.edu |
44e90d782a35689c3cc6addec1fab28956cabdbf | 45ca434bdb9e48fdbb2cda0e7fdd9a76474117b0 | /aliyun-python-sdk-cdn/aliyunsdkcdn/request/v20141111/ModifyPathCacheExpiredConfigRequest.py | 984b6521e6c8e72f309754c9ac63efbb09e7dbde | [
"Apache-2.0"
] | permissive | wanyanzhenjiang/aliyun-openapi-python-sdk | e41e9937ad3f851e5a58f6bea95663e88f7fee13 | 4a5bf1b35f2395d047ead4444ea46721976bdd24 | refs/heads/master | 2020-12-30T10:37:55.789911 | 2017-07-27T06:55:15 | 2017-07-27T06:55:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,155 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may ... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
f7f37d52414c6009fd2d9d1a8253c3b6eb3dae7b | 93d1d91f56daccc42c42ccabf853d9d1ab4b199f | /Models/KeywordByUser.py | 7cd1ddb2d2093e39d4561fb9e8a01ef67ef2f325 | [] | no_license | Rhaall/sparetime-backend | 77421fc09df80b21db087479fce5eb3bab0b78c4 | 908737672eaab49b30f5d85accc1942b8300fb56 | refs/heads/master | 2023-01-22T22:27:20.645966 | 2020-11-20T00:15:37 | 2020-11-20T00:15:37 | 313,592,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 647 | py | from sqlalchemy import Column, Integer, Float, ForeignKey
from sqlalchemy.orm import relationship
from database.database import Base
class KeywordByUser(Base):
__tablename__ = 'keyword_by_user'
id = Column(Integer, primary_key=True)
id_user = Column(Integer, ForeignKey('user.id'), nullable=False)
id_k... | [
"paul.aboulinc@outlook.fr"
] | paul.aboulinc@outlook.fr |
a980971232fa5a9d366c0b54d935f33a545c7845 | 8bb3349040ac58c1eb751eead2894e013e41a25b | /pirx/plugins/__init__.py | cc395d378cb8beee98c0dca0b4020d45a6004453 | [
"BSD-3-Clause"
] | permissive | rafalp/Pirx | 45bae20f322a5e05d258953cfa1033f6a7f19c40 | adefea61a16a3c63b508b915169669d14baa0730 | refs/heads/master | 2022-08-14T15:04:30.779606 | 2020-05-16T22:22:48 | 2020-05-16T22:22:48 | 259,632,746 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | from .loader import PluginLoader
plugins = PluginLoader()
| [
"kontakt@rpiton.com"
] | kontakt@rpiton.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.