blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
28521a9496b6f5935ee132f946e0fc9b52269d45 | 459719d3624276a9498c6841ca31bf18775a35b6 | /python_activities/3_loops/2_word_guess_game_for.py | e389ccd626b5de30c028b36f284e95ee22f61fbd | [] | no_license | mathstronauts/IGNITE_TechExplore_2021_2022 | 2b9a82d142c9f0aebb892357cd91b179df2e29f7 | 6b0ecef68536090dd44faf19f7f8fc3218f2a0ee | refs/heads/main | 2023-09-02T11:26:33.816530 | 2021-11-02T21:19:14 | 2021-11-02T21:19:14 | 407,662,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 974 | py | """
* Copyright (C) Mathstronauts. All rights reserved.
* This information is confidential and proprietary to Mathstronauts and may not be used, modified, copied or distributed.
"""
# Word guessing game - For Loop
import mathstropy
random_word = mathstropy.randomword() # random word generator function
cha... | [
"noreply@github.com"
] | mathstronauts.noreply@github.com |
ac9515ff9b631cb889b688b5d9e6dcfb443c2a38 | b02106d46580c2436d26da899afedf004b9083e7 | /scripts/featureToComposite.py | dcbf9c828fde80853e2dd34b76a3eb30d4245756 | [] | no_license | Jeltje/TCGA-GAF-source | 2925a3940483da6902a6a4d4b5957e06cf369fd7 | 03c6214cbb9b93d57169f61ff8cf614575831e99 | refs/heads/master | 2020-12-25T12:47:24.754190 | 2013-10-11T00:15:53 | 2013-10-11T00:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,394 | py | #!/usr/bin/env python
import argparse
import Gaf
import sys
parser = argparse.ArgumentParser()
parser.add_argument('featureGaf', type=str,
help="GAF containing features mapped against the genome")
parser.add_argument('compositeGaf', type=str,
help="GAF containing composi... | [
"cline@soe.ucsc.edu"
] | cline@soe.ucsc.edu |
c802f4d37891bf3049d8f9eed61d4fd153d56d9d | 83d28603f7980c2c5895521cff73fb1fb30f0c64 | /pages/admin_invoices_page.py | c4b49191433f88edd542d95f9fec7ca677984afa | [] | no_license | hypno-spira/vkrb_tests_probnik | d81b2b0c8acb78a2ee94a1bb2b9b244d17166e86 | fc34292611cdc436ea4fca8e7ac825bbd5ea71d3 | refs/heads/master | 2023-05-06T07:14:04.526483 | 2021-05-29T09:19:10 | 2021-05-29T09:19:10 | 362,542,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,842 | py | from .base_page import BasePage
from .locators import AuthorizationPageLocators
from .locators import OnlineOrderPageLocators
from .locators import AdminCabinetAuthLocators
from .locators import AdminInvoicesPageLocators
import time
import re
class AdminInvoicesPage(BasePage):
def sign_in(self, email, password):
... | [
"64416493+hypno-spira@users.noreply.github.com"
] | 64416493+hypno-spira@users.noreply.github.com |
cc8fad7291a1179609390eca196635079213c903 | dce588147b099c97c20b97f856ca7c2db82a1282 | /demo/oauth2_test.py | afe90bb364e77bc139516c752f3a5cc688095f9f | [] | no_license | DieuMerciKIMPOLO/implementation | 91fa4216c5b03c19a88b6447b7b1b62e7067db27 | 42ed2b6ced86c038a02b141a983fa7e4644ee37a | refs/heads/master | 2021-05-09T05:56:40.606926 | 2018-02-04T15:46:49 | 2018-02-04T15:46:49 | 119,322,242 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,947 | py | #https://github.com/RichardKnop/django-oauth2-server
#01 password
#https://github.com/evonove/django-oauth-toolkit/blob/master/docs/rest-framework/getting_started.rst
client_id='pzpZDp6pqXZJiXMvqQpcBSnoNTXvisnAg9pC3Ws0'
client_secret='QzuWkLkH4Kef8rXtpwnNLvniLPFsC22LtJ5RXMJRBExcImT5mDGu2vfNylYBHR9lLeWPzbufg6SnYuwuTdKxl... | [
"dieumerci.k.nkokolo@aims-senegal.org"
] | dieumerci.k.nkokolo@aims-senegal.org |
66e4da1f9d9312ba7022d667ab27446bb2579f35 | f32b885903e6e5106581c27abd7e71003d458ea0 | /examples/11.instance_motion_blur.py | e58e90e1f59222e2d9d8f8f8aa70400699ffbc74 | [
"Apache-2.0"
] | permissive | jonathangranskog/ViSII | 7c51abfe12036628a0fb2ddd09fefa5b3596bfc3 | 84467b7cd14d87035bad7ff46fa87c0a0bef1ce3 | refs/heads/master | 2022-11-17T18:50:46.807105 | 2020-07-21T04:01:09 | 2020-07-21T04:01:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,705 | py | import visii
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--spp',
default=100,
type=int,
help = "number of sample per pixel, higher the more costly")
parser.add_argument('--width',
default=1280,
... | [
"natemorrical@gmail.com"
] | natemorrical@gmail.com |
6ce2e5527681d74d95f3836d7b83db44985c073f | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/resolve/AugmentedAfterAugmented.py | af870d6359d0bd6f1ecb6491cd6243ee652c1cc7 | [
"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 | 53 | py | foo = 1
foo += 1
while True:
foo += 2
# <ref>
| [
"andrey.vlasovskikh@jetbrains.com"
] | andrey.vlasovskikh@jetbrains.com |
1f677f7a187ea16719fbed4cded7333283491d2c | 0e28cf67181063cce45a7cf25821928d6ecef52d | /ctgpayroll/Lib/site-packages/urllib3/util/connection.py | dbca9ab7dbec927e10ec69b22ebabf82fa0ea520 | [] | no_license | wanggs4/ctgpayroll | 09a2b2e15c3d3e54a06c11bedb0804981b0900bb | c9865371a495b63d025f1940e468525dfd50ffd9 | refs/heads/master | 2023-07-17T15:49:14.994938 | 2021-08-27T03:46:04 | 2021-08-27T03:46:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,642 | py | from __future__ import absolute_import
import socket
from .wait import NoWayToWaitForSocketError, wait_for_read
from ..contrib import _appengine_environ
def is_connection_dropped(conn): # Platform-specific
"""
Returns True if the connection is dropped and should be closed.
:param conn:
:class:`h... | [
"1404429103@qq.com"
] | 1404429103@qq.com |
8e858adedb2bd3195fa4dfb7bb2b4c6af2189603 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03910/s110121278.py | 4c9ecfd6bfbe6621fcbe2a07ea7568326440d590 | [] | 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 | 153 | py | N = int(input())
s = 0
j = 1
for i in range(1, N+1):
s += i
if s >= N:
j = i
break
k = s - N
for i in range(1, j+1):
if i == k: continue
print(i) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
65914441fd5b2fff518e40dce9430baf93e9f0a9 | 09790593dd44a1ad31b387bbe4adea927697d3ef | /python/figury.py | f471df894e7725d6db3eec42a859e729c3f61c87 | [] | no_license | kuba332211/gitrepo | 0baa6179725fee3f200c619f0b436e89906a76a1 | b80b1931337b886bd6cff343b0feae4ce3055dbb | refs/heads/master | 2020-03-28T01:02:56.559496 | 2019-10-11T06:36:16 | 2019-10-11T06:36:16 | 147,471,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# figury.py
def prostokat1(a, b, znak):
for i in range(a):
for j in range(b):
print(znak, end='')
print()
pass
def prostokat2(a, b, znak, znak2):
for i in range(a):
for j in range(b):
if j == 0 or j =... | [
"kuba1122339@gmail.com"
] | kuba1122339@gmail.com |
3cbc7be5a3f682a1d50ff5bbb5cdae725212271a | 3a74eff48e94e2ef67a9508b4e9ee3a8d8efe0f4 | /venv/bin/wheel | b6be00acbfc62378e7bffee70f22f9e4338349a9 | [] | no_license | ibnShawari/SevenElec | 58b4c76eb80e47c95ed0b6d4a95ca7983ba81f78 | 27abbb1b612266f3ad5639ab80fd45c1288b6030 | refs/heads/master | 2020-06-24T22:12:51.208302 | 2019-07-27T02:49:35 | 2019-07-27T02:49:35 | 199,106,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | #!/Users/jinxin/PycharmProjects/SevenElec/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from wheel.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"1263755669@qq.com"
] | 1263755669@qq.com | |
7dd1a68a7c4cdac7d0296a2f5d1f42f43aefe4d6 | 204b8feadd3796fbe35aba28dc56756c5f4081df | /avatar/bintools/gdb/mi_parser.py | 22952fec1df98b99e3bce28081f9b61308e62e40 | [
"BSD-2-Clause",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | cojocar/avatar-python | b7a475c32f8c5e9b0dbbbd0245d70a7b30abfc8b | f2e0b8d739c3b7478c66feebbaf97e36a507dc7f | refs/heads/master | 2020-12-02T16:29:43.903990 | 2014-01-06T15:44:52 | 2014-01-06T15:44:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,668 | py | from re import compile, search
from bintools.gdb.parse_stream import ParseStream, ParseError
ESCAPE_CHARS = {'n':'\n', '\\':'\\', '"':'"', 't':'\t'}
def parse_cstring(s):
"""
const ==>
c-string
"""
s.expect_char('"')
sb = []
while s.check_limit():
c = s.char()
if c == '... | [
"lucab@debian.org"
] | lucab@debian.org |
b9f3f531e9f85887c2aef2a65ac31e93ef3f673c | d2864f910097bcdd82d772f20b7061304a5cde9e | /Hello_World/Hello_World/products/forms.py | b88c43f6c0b56c173def41fc91bd2264ec77d044 | [] | no_license | Priyankawu/PythonProjects | 117e6125f25708bb78c337c14aac25c3bb13e094 | 3cf834378a8a22cdc0904a4526842eee8ebba5db | refs/heads/main | 2023-03-02T23:28:15.389776 | 2021-02-09T04:12:55 | 2021-02-09T04:12:55 | 335,443,038 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | from django.forms import ModelForm
from .models import Product
class ProductForm(ModelForm):
class Meta:
model = Product
fields = '__all__' # grab all field from Product class
| [
"priyankawu@yahoo.com"
] | priyankawu@yahoo.com |
dc00c4f9226a317598fd9fd719ec433468ad23bd | a9337331f15c63eefdfeb22a8a3b61a42af800c5 | /askreduce/settings.py | dc6cd311325f98ae41b570864a243f16b1c610bb | [] | no_license | ajschumacher/askreduce | 0983bfa03190d48ff7c599bfc86eb4500b829637 | c97e9589700c30269b1f3b242e4b15150042751b | refs/heads/master | 2020-05-07T13:23:21.386988 | 2015-02-14T05:53:16 | 2015-02-14T05:53:16 | 30,126,298 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,738 | py | """
Django settings for askreduce project.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.7/ref/settings/
"""
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
... | [
"ajschumacher@gmail.com"
] | ajschumacher@gmail.com |
a8476f006784afdcd64298dbe5195fd3da3546b3 | 9043d0fd824ed075963c8ca6b5ad8c9c3050c1d1 | /Databricks/StreamProcessing/Mobile Event Stream ETL.py | 43cf860cd644bc161024b9d881dc90b0e3d2b8ee | [
"MIT"
] | permissive | erisky/learning-msai | 99514784f571c20cddfa0f3bcac248cb6b2cf891 | fe8e61098d4ee665c199d7c74c2c0cb3615ac464 | refs/heads/master | 2020-04-01T12:18:17.516413 | 2018-09-14T04:19:46 | 2018-09-14T04:19:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,249 | py | # Databricks notebook source
# MAGIC %md
# MAGIC #Streaming Mobile Game Events
# MAGIC
# MAGIC This demo will simulate an end-to-end ETL pipeline for mobile game events
# MAGIC
# MAGIC #####Steps
# MAGIC - Event Generator that sends events to Azure Event Hubs
# MAGIC - Perform necessary transformations to extract rea... | [
"ericsk@gmail.com"
] | ericsk@gmail.com |
46c330be5429ab7a3b0347efc44ffb9f02a3931f | b1ac2a94392263457165abb53a5b207e569d784d | /flaskr/auth.py | 94aa3bd9bbb506d2139d8aec95f8524e6b09d1bc | [] | no_license | osboamb/flask-pallets-projects | ce5a75efe124b8658c374a15328d51b449b9a724 | e3c98ae4ded79cba8e2d48b4bc750dc6f70cd99f | refs/heads/master | 2023-02-22T00:56:21.501691 | 2021-01-27T17:57:33 | 2021-01-27T17:57:33 | 333,511,664 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,607 | py | import functools
from flask import (
Blueprint, flash, g, redirect, render_template, request, session, url_for
)
from werkzeug.security import check_password_hash, generate_password_hash
from .db import get_db
bp = Blueprint('auth', __name__, url_prefix='/auth')
#Registration for first time users
@bp.route('/re... | [
"OsborneAP@cardiff.ac.uk"
] | OsborneAP@cardiff.ac.uk |
7dfd00b9ce9c9d7394c445879e5b2cfdfa82b837 | 4f3faf6584cee298153f3ad2de2eaf3ae0143bd3 | /tests/mc/obj2json.py | 525f6c5efccc244d59fc0613f827849386299409 | [
"Apache-2.0"
] | permissive | PeterZhouSZ/MiyukiRenderer | 09c6ced20440ed13ec97a37f79dda4f6c99acccb | 9e651e30a04460dc9fd0f0bcb132f84d75d1c2d0 | refs/heads/master | 2020-07-21T13:54:17.597346 | 2019-09-06T17:24:22 | 2019-09-06T17:24:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,059 | py | import sys
import json
from typing import List, Dict, Tuple
from math import *
import os
def parse_ns(s: str) -> float:
s = s[len('Ns '):]
Ns = float(s)
return sqrt(2 / (2 + Ns))
def parse_basic_float(s: str, head: str) -> float:
s = s[len(head):]
return float(s)
def parse_basic_float3(s: str,... | [
"38184032+xt271828@users.noreply.github.com"
] | 38184032+xt271828@users.noreply.github.com |
2eca7b5eb0e8791ae710c58fa9f5a24f768438e8 | 8a714d065482b1f32e3938b0c6659196b339276c | /average.py | b94358a2d143dd9b1b3191af865cfcbd5beecc61 | [] | no_license | Jzgao04/Year9DesignCS-PythonPM | 8376f1315bbdbf295d5456136153b904dea78db7 | ba009c8be9a78cb54437d63f3a0c126efff453bc | refs/heads/master | 2021-06-27T15:43:04.135978 | 2019-06-11T02:44:38 | 2019-06-11T02:44:38 | 148,352,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | intTotal = 0
for i in range(0,10):
x = int(input())
intTotal = intTotal + x
print("Average", (intTotal/10))
intNum = int(input())
intFact = 0
for i in range(1, intNum + 1):
if intNum % i == 0:
intFact = intFact + 1
print(intFact) | [
"jason.gao@OO-What-Are-Those.local"
] | jason.gao@OO-What-Are-Those.local |
7b082e9916627c42d239d447f94165bca3b7a262 | d471bbf3a74ec56914669a1383443e5d3a66e570 | /test_fixture.py | e27dbdbd0857032a267de29049226dc786c058b9 | [] | no_license | SudipSinghKhati/testing | e8d8f96ac29184f7d69e1d5292bb7942c51aa0bc | ad2da1775bf0c8e955547d41ba14c8358181f159 | refs/heads/master | 2023-08-14T20:37:32.726520 | 2021-09-28T02:32:09 | 2021-09-28T02:32:09 | 411,111,101 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | import pytest
'''
test using fixtures
Fixtures are functions, which will run before each test function to which it is applied.
Fixtures are used to feed some data to the tests such as database connections,
URLs to test and some sort of input data. Therefore, instead of running the same code
for every test, we can... | [
"sudipkhati2043@gmail.com"
] | sudipkhati2043@gmail.com |
0a6fea085a008cb91966ffa3f361a4e17d3b89c6 | ad2e47b28bd03714c962b460bc05a545a9c02b42 | /ebisim/xs.py | 56b47b39c9f8c44fa0bbba9209055d2e411de245 | [] | no_license | Ioniels/EBISSimulation | 9fb7abd5cb409a030599a057b1aa360ece00f9b6 | 73627437cb600f1d4a3179647c256b719262222d | refs/heads/master | 2020-04-28T16:46:56.696159 | 2019-03-06T15:20:04 | 2019-03-06T15:20:04 | 175,423,820 | 1 | 0 | null | 2019-03-13T13:13:05 | 2019-03-13T13:13:05 | null | UTF-8 | Python | false | false | 15,977 | py | """
Module containing the classes providing access to the relevant cross section for ionisation and
recombination
"""
from functools import lru_cache
import math
import numpy as np
import pandas as pd
import numba
from . import utils
from . import elements
from .physconst import RY_EV, ALPHA, PI, COMPT_E_RED
XS_CACH... | [
"32222819+HPLegion@users.noreply.github.com"
] | 32222819+HPLegion@users.noreply.github.com |
eb19ac1ed773d07f6ae887971be020434e1107ad | 649f44e3a00e167b7a2b95d0c10fc9574c4c2dc5 | /cx_setup.py | b0df83ca146b9b0e604b5fe2b743441a61670e5c | [] | no_license | RedFalsh/EPD_Config | b1a786d1a7f77ee4cfc2eb9b66f3466fca69f8c5 | 0418a9b4ed7069572b87638b60774d4913b44629 | refs/heads/master | 2021-06-10T09:34:35.145375 | 2016-11-28T03:26:42 | 2016-11-28T03:26:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 990 | py | # -*- coding: utf-8 -*-
# A simple setup script to create an executable using matplotlib.
#
# matplotlib_eg.py is a very simple matplotlib application that demonstrates
# its use.
#
# Run the build process by running the command 'python setup.py build'
#
# If everything works well you should find a subdirecto... | [
"noreply@github.com"
] | RedFalsh.noreply@github.com |
ee9f6788f3a5a73d0a3198614229a3db9893fe6c | dfe3306458094735f96f53bc20b09b4ff85f3261 | /get_monthly_insolvency.py | bfbec191b291ec8702e7756378fa394ed145bc8b | [] | no_license | xavierlopeze/Librebor-insolvencias | 4d6a4d050a706a27850f28d41cb53e673dde5941 | b0481363980ff482d5ddd46cec480718190243b7 | refs/heads/main | 2023-05-10T10:01:39.632482 | 2021-06-10T12:03:57 | 2021-06-10T12:03:57 | 367,947,569 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,778 | py | import pandas as pd
import ast
import altair as alt
from vega_datasets import data
filename = "data/insolvencias_2021.04.20"
export_file = "img/insolvencias_monthly_2021.04.20"
print("Reading " + filename + ".csv")
#Read the file
df = pd.read_csv(filename + '.csv', low_memory = False)
#Get the date and sort
df["day"... | [
"xavier.lopeze@gmail.com"
] | xavier.lopeze@gmail.com |
ed197626ee4fe647250bb45b57b7e06f427c7bcd | c8f752d74dfdf8451031cb30e1ccadd96f14cbf8 | /orar/migrations/0007_auto_20170522_2059.py | f6618b68f6328ea08d2046ec3c630f5b378886f5 | [] | no_license | cjorji/orar-fmi | 02cd25f90c7b6b02ee1b3af4642f11cd47227251 | d5c8e0a8a0d6e72d5307c39a989f0f6b3d939688 | refs/heads/master | 2021-01-22T10:46:46.349346 | 2017-05-30T05:15:16 | 2017-05-30T05:15:16 | 92,656,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,083 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-05-22 20:59
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('orar', '0006_auto_20170522_2045'),
]
operations = ... | [
"alexandru_coban32w@yahoo.com"
] | alexandru_coban32w@yahoo.com |
45d3fdb6e971195c85cdc547f3ea2212460c8a22 | 0e7c7d86bd190507eced04baa2deb5237be738fd | /orm.py | 9dbe45ca8437a436985a5e59e04acd31f0e3ca0c | [] | no_license | bililioo/ilweibo | d3bf08dd7c457c4feea224aded3c7d3ada9e6a1f | 985589031991e01e521ab9cb670b1150d9c666e4 | refs/heads/master | 2020-03-17T09:31:30.742235 | 2018-09-01T03:25:09 | 2018-09-01T03:25:09 | 133,476,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,065 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Ben'
import asyncio, logging
import aiomysql
def log(sql, args=()):
logging.info('SQL: %s' % sql)
async def create_pool(loop, **kw):
logging.info('create database connection pool...')
global __pool
__pool = await aiomysql.create_pool(
... | [
"schumacher23@qq.com"
] | schumacher23@qq.com |
92eef247a84e2406ff9284878f2967488e510127 | b27b0bcd22973d029688ea3f10c9abfe651800a4 | /ci2017/ci_2017_2.py | 932b23c51d72ab3b26dc3f9cfc002a50e9359dd5 | [] | no_license | KouheiFurukawa/atcoder-back-number | 8f6b7c6704bc6fb32bb8ca9ccc9971650c0fdf8f | 2fe11830614bf2ce64ee7947734043fe47800277 | refs/heads/master | 2020-06-03T13:45:54.531015 | 2020-05-17T05:53:39 | 2020-05-17T05:53:39 | 191,591,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 432 | py | from sys import stdin
data = stdin.readline().rstrip().split()
processed_data = []
row = []
for d in data:
if ',' in d:
row.append(int(d[:d.index(',')]))
processed_data.append(row)
row = [int(d[d.index(',') + 1:])]
elif '.' in d:
row.append(int(d.replace('.', '')))
proc... | [
"furukawabashi42@gmail.com"
] | furukawabashi42@gmail.com |
c285469a0fac2c6a51dac43ba7fb363a8c97eb25 | a9152bcd40b6c0a062db32650e8a45a9a19c9c46 | /main.py | 0ff91a03dabcbfa8b5194579673ef7ddf58a5a6e | [] | no_license | TIMESTICKING/sensors_serial | 8817b5cf82f30ba2ed6ea99d4d404287b69dc1f4 | b0966b8636d6df1efa31511404a2a664fc2a92a3 | refs/heads/master | 2023-09-03T07:44:19.663306 | 2021-11-22T11:15:10 | 2021-11-22T11:15:10 | 422,821,459 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | # -*- coding: utf-8 -*-
# @Time : 2021/10/30 22:37
# @Author : Jiabao Li
# @FileName: main.py
# @Software: PyCharm
from drivers.Laser import *
from drivers.Sonic import *
from drivers.Radar import *
from drivers.Serial import *
if __name__ == '__main__':
'''
毫米波雷达
读取距离
'''
finder = find_port_r... | [
"731908970@qq.com"
] | 731908970@qq.com |
ce79f524b42af305869c5b3ad5155917f405c457 | e0f5dc369aac142060ee9c05a7657fa98bd94a4d | /stock/migrations/0008_auto_20201027_1742.py | 94caae37bf30ead4e08753502aaf47d6a011f7bf | [] | no_license | ajaykumar1110/MobileCart | 9615a65cdcc1b2fdef0b49fb251991a2af3cd362 | ff17e5d5cf9a395e41cc2d7ebc3313ea31c54067 | refs/heads/main | 2023-01-07T02:59:47.062604 | 2020-10-28T13:59:49 | 2020-10-28T13:59:49 | 308,032,785 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # Generated by Django 3.1.1 on 2020-10-27 12:12
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
('stock', '0007_auto_20201027_1615'),
]
operations = [
migrations.AddField(
model_name='stock',
... | [
"36915199+ajaykumar1110@users.noreply.github.com"
] | 36915199+ajaykumar1110@users.noreply.github.com |
5804587789dcdd33d89a4e3c670a7e7a4d9ddcf3 | a892ab25e2847af5d17617942e59f183045371bb | /main.py | 34dacad2463e8adb463d5a7f92ea2e3f29092790 | [] | no_license | AlexCuencaM/Python-tkinter | 4ccb38078e548df9cfc8656aad7cec7dc2a5a788 | 70d78eb4bf3d6236edba0e209ebe307651b5c343 | refs/heads/main | 2023-01-03T08:02:48.323747 | 2020-10-30T15:43:07 | 2020-10-30T15:43:07 | 306,468,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | #!./myvenv/bin/python
from tkinter import *
from Tema import Tema
from Table import *
from Window import Window
if __name__ == "__main__":
root = Tk()
tema = Tema()
root.wm_title("App de Coliflor")
root.geometry("500x500")
app = Window(tema,root)
root.mainloop() | [
"maxpowerxd8y9@gmail.com"
] | maxpowerxd8y9@gmail.com |
6adc117fbecb878e659be7ef8fe69003caf90078 | 9ac91b5fca46997a484fe0dd9a9d23e01dae5c7c | /OOP/OOP3.py | 1d6abae38d36497d7429d8e9b897e612cd43503d | [] | no_license | HomeNerd/OrneklerPython7 | b03e649a3f1c9c23730a3eeb723b0df4890273f7 | 711e26917244d89cdf492df0489d02b630732215 | refs/heads/master | 2020-06-08T15:26:37.974583 | 2019-08-08T12:58:24 | 2019-08-08T12:58:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 123 | py | class KatHarita:
en_sayi = 10
boy_sayi = 10
magazametre = 50
yolmetre = 50
print(dir(KatHarita))
| [
"ibrahim.ediz@gazi.edu.tr"
] | ibrahim.ediz@gazi.edu.tr |
5524a89c414ebfad24d77eccac341804cc8900a8 | 537e37a98b7a64476f06ddf64d40645a7d1e7510 | /src/models/table.py | 4519fad71be4181f3066789353f5480330321a57 | [
"MIT"
] | permissive | danielvcm/to-do-api | 5fb24513209eabb9c419f66a0058b2e0b286a5ba | ca560dec3672222c98cd287961ebcd41f2792a7b | refs/heads/master | 2022-12-16T21:21:17.807561 | 2020-09-21T03:15:43 | 2020-09-21T03:15:43 | 296,492,651 | 0 | 0 | MIT | 2020-09-21T03:15:44 | 2020-09-18T02:27:25 | Python | UTF-8 | Python | false | false | 1,141 | py | from ..databases.to_do_database import ToDoDatabase
class Table:
def __init__(self,id=None):
self.id = id
self.schema = 'to_do'
self.database = ToDoDatabase()
def execute(self, statement, values = None, operation = 'read'):
cursor = self.database.get_cursor(operation)
... | [
"danielvcmiranda@gmail.com"
] | danielvcmiranda@gmail.com |
8efb07840955947ddd5e8dfce489dab5d87067ac | 98723f78c016889d9151ff5e2889a35bba8108cd | /contacts/forms/Contact.py | cbd2b6324011f09adb4a9cae77c71e000715cebe | [] | no_license | sethuraman-k-r/django-contacts-app | c04d2062a0f3241a90a9423ac31f918a09c42ba5 | 9eb02a96dc95ef29d7c43150e0648ba37b6b3266 | refs/heads/master | 2020-09-11T21:23:21.446298 | 2019-12-15T08:19:49 | 2019-12-15T08:19:49 | 222,194,835 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,475 | py | from django import forms
from ..models import MobileInfo, Relationship, DateInfo
class UserInfo(forms.Form):
firstname = forms.CharField(label="firstname", max_length=50, required=True)
lastname = forms.CharField(label="lastname", max_length=50, required=True)
surname = forms.CharField(label="surname", ma... | [
"ramansethu605@gmail.com"
] | ramansethu605@gmail.com |
56dbc1981e7b52b4fe83a8d7b986c99a7103708d | b099dc04b909271cbb6c30c11dcea2db1bbef96e | /wwtp_app/wwtp/jeu/model.py | 5a94f6d471821acd33abcc1dc0d80a511e1452c8 | [] | no_license | JacqueminC/WWTP | 32500a09802e1f06f9e1783c26ccd67a739a3805 | 5766fd6c73b9d99fab9eab6ef97ebba420a79e31 | refs/heads/master | 2023-07-17T15:39:01.289160 | 2021-08-28T10:07:01 | 2021-08-28T10:07:01 | 356,796,525 | 0 | 0 | null | 2021-08-28T10:07:02 | 2021-04-11T07:20:36 | Python | UTF-8 | Python | false | false | 106 | py | class Jeu:
def __init__(self, nom, version):
self.nom = nom
self.version = version
| [
"cedjacq@outlook.com"
] | cedjacq@outlook.com |
9132e1ad54fca3fe47ba425f3bbb3e1377737f65 | 6b6bf72694e5aa6425f11c956e4a5371b2c73e09 | /populate/main.py | bcccf70630692e0c3d23db7eb0615a5c25787907 | [] | no_license | danielspeixoto/elasticsearch-workshop | 5d9dccebb80bf58b786f167ff8eb6de8a0282a8c | 9872831361ea349453b8e202eb02880c43cbc238 | refs/heads/master | 2020-04-02T01:18:28.858625 | 2018-10-25T22:24:28 | 2018-10-25T22:24:28 | 153,848,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from helpers.Index import Index, connect
from helpers.XMLRepository import XMLRepository
connection = connect("localhost", "9200")
index = Index(connection, "meu-index")
dados = XMLRepository("./datasets/bitcoin/")
index.bulk_insert(dados.data())
| [
"danielspeixoto@outlook.com"
] | danielspeixoto@outlook.com |
15aa14bd147b72e801f55c46ff70efe32d7ef80e | d6074aac6e9e5f2fa5355c3c9ddaebe892c4151d | /setup.py | 8813b411347ea2ca52a5f6274befae3a458b8877 | [
"BSD-2-Clause"
] | permissive | pombredanne/pydeps | f5aae8b825cf86db8308adad808b4bbf8cee52a2 | 95833f42f86f9c5c23ef14b675828d0ddc4df73e | refs/heads/master | 2021-01-18T07:52:41.522028 | 2016-05-19T13:53:14 | 2016-05-19T13:53:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 913 | py |
import setuptools
from distutils.core import setup
setup(
name='pydeps',
version='1.2.7',
packages=['pydeps'],
install_requires=[
'enum34'
],
long_description=open('README.rst').read(),
entry_points={
'console_scripts': [
'pydeps = pydeps.pydeps:pydeps',
... | [
"bp@datakortet.no"
] | bp@datakortet.no |
10103e3ce17a1843505618c2c3c6c0c49ea5b1c2 | 36163a05070a9cd0daab7c8b18b49053e0365bed | /src/python/WMCore/TaskQueue/TQComp/Apis/TQStateApi.py | cd257a2580c452ccf40cd98fd09fb388cf4f34cd | [] | no_license | sryufnal/WMCore | 472b465d1e9cff8af62b4f4a4587fd3927f82786 | 9575691bd7383e4de8bcdf83714ec71b3fec6aa7 | refs/heads/master | 2021-01-16T00:27:39.208561 | 2011-09-09T20:36:15 | 2011-09-09T20:36:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,529 | py | #!/usr/bin/env python
"""
API to query the TQ queue about its state.
It inherits the ability to connect to the TQ database
from TQComp.Apis.TQApi.
"""
__all__ = []
#import logging
import threading
import time
from inspect import stack
from TQComp.Apis.TQApi import TQApi
from TQComp.Apis.TQApiData import TASK_FIE... | [
"metson@4525493e-7705-40b1-a816-d608a930855b"
] | metson@4525493e-7705-40b1-a816-d608a930855b |
90deb32ff2d651f50511bc9a8d67302c36fdd7b7 | 485990043d0bc3883195d43b7a4c02502483b726 | /6310545566_Phawit_ex4/pinwheel.py | 35e0128cd0b184c176cdcff710bbc795aac899d9 | [
"MIT"
] | permissive | HelloYeew/helloyeew-computer-programming-i | 0bc6d88fd41091109ae089769a7afc0a47bf2a3c | cf8315bdc4b8e20ba410e0745778595805f51afb | refs/heads/main | 2023-02-23T00:12:40.913505 | 2021-01-26T04:09:48 | 2021-01-26T04:09:48 | 314,625,973 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | import turtle
import random
turtle.speed(25)
turtle.setheading(0)
def pinwheel(num_branch, size, backup):
turtle.pendown()
for i in range (num_branch):
turtle.forward(size)
turtle.backward(backup)
turtle.right(360/num_branch)
turtle.penup()
turtle.penup()
for i in range (10):
... | [
"gameforphawit@outlook.com"
] | gameforphawit@outlook.com |
cdd36f191ae11e5e6c4ba6292d8ecb7528e6fbdf | ccd807634e0fa1ba137d663ab4f1ba1736701dbc | /models.py | 9a18c1aeef6bcb8477ce6e614dacb350055aeccb | [] | no_license | bboatright013/RickandMortyAdlibs | fff1256057118e7314723a06a189d0638e17c976 | 3caaae0621aac0a96651d9565f43fdf0a0a1cd83 | refs/heads/master | 2022-12-02T22:22:13.461706 | 2020-08-19T17:18:13 | 2020-08-19T17:18:13 | 288,062,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,279 | py | """SQLAlchemy models for Rick and Morty."""
from datetime import datetime
from flask_bcrypt import Bcrypt
from flask_sqlalchemy import SQLAlchemy
bcrypt = Bcrypt()
db = SQLAlchemy()
class User(db.Model):
"""User in the system."""
__tablename__ = 'users'
id = db.Column(db.Integer,primary_key=True)
e... | [
"bboatright013@gmail.com"
] | bboatright013@gmail.com |
303a4c7e7f7416f80289995082a893f85bbe7bfe | 0ae5b860ba261b588fe69b4ab27510871c9c88ac | /mysite3/mysite/settings.py | 7dec742ed809fe5a7cc8241510c53e116ebbe907 | [] | no_license | youzhibicheng/ThinkingDjango | cddd4292cff2d6256a372bae667cbb866b5645e9 | f2f4232f72266a4eecae1c5d2fe24dbc9dd9e0ac | refs/heads/master | 2021-01-10T01:10:20.929726 | 2016-03-09T01:21:50 | 2016-03-09T01:21:50 | 53,291,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,327 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.9.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
# ... | [
"youzhibicheng@163.com"
] | youzhibicheng@163.com |
fa1fa3378a017fe7890883215c6f4ed40f43828a | a2b696ba8edd5e6b8aa1a4c4aea19cc56e6beb66 | /api/serializers.py | d4db895abe2ac6146ca319be0a8d40433d07655a | [] | no_license | kyrios213/drf-django | 7163eeaba2f32cd0f1cfa5871718c1892a7dc83a | d61438bbb919e7ab845da14bf04cfd85d108de73 | refs/heads/main | 2023-06-05T03:19:33.440410 | 2021-06-21T03:23:46 | 2021-06-21T03:23:46 | 378,791,890 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | from rest_framework import serializers, viewsets
from django.contrib.auth import get_user_model
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = get_user_model()
fields = ['id', 'email', 'password']
extra_kwargs = {'password': {'write_only': True, 'min_length': 8}}
... | [
"kyrios213@gmail.com"
] | kyrios213@gmail.com |
456a262bfd7565082ddcf11a76ff48664de185bb | 25a269bd9842e80877a5ec482e7d26422e2555d2 | /DataGoCrawler_Tourism.py | 8ab5f0a5fe56e83ca7f1a125d10337ff3712125b | [] | no_license | IMRYOUNG/Crawl_Data.go.kr | b5eb0ec63bdbb8e42de7cad8db54bb55e1bb0227 | 715cfcce89200473bd60a833cb2aa1910b1ffad6 | refs/heads/master | 2021-01-07T21:25:02.103843 | 2020-02-20T07:51:48 | 2020-02-20T07:51:48 | 241,823,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,192 | py | import os
import sys
import urllib.request
import datetime
import time
import json
import matplotlib.pyplot as plt
import matplotlib
from matplotlib import font_manager, rc
def get_request_url(url) :
req = urllib.request.Request(url)
try:
response = urllib.request.urlopen(req)
i... | [
"noreply@github.com"
] | IMRYOUNG.noreply@github.com |
1ded2999966d01cb7228a2a4f5bc86303d668757 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /aYTLW5jmRoXhnnzwj_3.py | 9f67e5f61283ae4dd389aefbe398689d6bd08e13 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 61 | py |
query = " select name from employees where salary > 45000"
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
c90605a922692464ae62ce2ac71320e0566d62bf | 90990e4aaecc235845795e94bfcd238b7c3b753d | /cache/.mako.tmp/page.tmpl.py | bdfd427222b82874a4464867f587f6c012038f06 | [] | no_license | QXCai/Nikola_Blog | ddb7969b86408758f233e716e1fa2f2fb69143f4 | 2b17dbd0616bcdd7d26df31aeb95416ae1e6f2c8 | refs/heads/master | 2021-09-01T13:53:34.024146 | 2017-12-27T09:27:06 | 2017-12-27T09:27:06 | 115,492,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,402 | py | # -*- coding:ascii -*-
from mako import runtime, filters, cache
UNDEFINED = runtime.UNDEFINED
STOP_RENDERING = runtime.STOP_RENDERING
__M_dict_builtin = dict
__M_locals_builtin = locals
_magic_number = 10
_modified_time = 1514366537.8449442
_enable_loop = True
_template_filename = 'c:/anaconda3/envs/cai_env_nikola/lib/... | [
"caiqx@mail.bnu.edu.cn"
] | caiqx@mail.bnu.edu.cn |
7cb57f1aee5711236c63768e429265d71ba59e80 | 21b461b71b4c63f7aac341bd12ba35d211c7956e | /codes/03_func/Graph_Permutation_isomorphic/01_test_permutation.py | 587c4d9c282ed70920f61d81d9c4546575e05260 | [] | no_license | Ziaeemehr/workshop_scripting | cebdcb552720f31fd6524fd43f257ca46baf70e2 | ed5f232f6737bc9f750d704455442f239d4f0561 | refs/heads/main | 2023-08-22T23:00:36.121267 | 2023-07-19T10:53:41 | 2023-07-19T10:53:41 | 153,342,386 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | """
A_G = P A_H P.T
P is permutation matrix
P.T is the transpose matrix of T
"""
import numpy as np
import networkx as nx
def permutation(alpha, n):
P = np.zeros((n, n), dtype=int)
for i in range(n):
P[i][alpha[i]] = 1
return P
A_G = np.array([[0, 1, 0, 0, 0],
[1, 0, 1, 0, 1],... | [
"a.ziaeemehr@gmail.com"
] | a.ziaeemehr@gmail.com |
7a0a0fb5b5ae23984c122bb0d86223869eec7a64 | 80de4d754a3b74e171def6fa26371592e61c81f8 | /moneygrabber/wsgi.py | 0cd0005e29e48adbcf0ff714d1c70208e8d2e59e | [] | no_license | sergioe21/moneygrabber | 00df44383fd4e9d7f58726ed31a7b7835ee8ff7a | a207bc71adabd43b41f1d15550673a32b869a815 | refs/heads/master | 2021-01-10T04:56:20.732236 | 2016-02-03T03:37:03 | 2016-02-03T03:37:03 | 50,970,695 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | """
WSGI config for moneygrabber 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.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_... | [
"sergioesteban.21@gmail.com"
] | sergioesteban.21@gmail.com |
e71176efe4e48cceb75a998e731085601334d44e | 2742f4f0188ad468af6e3c6fb0dcd2f46ad27608 | /scripts/a_get_pics_from_web_page.py | 6e10758312772848996fc69fb15d8d006dc71c2d | [
"MIT"
] | permissive | zhaoxingrong/nsfw_data_scrapper | 49bf3696afb92628968ecb9547e21a21eb5473e7 | d7326f237444ef5b12916d01375529f81a64a98f | refs/heads/master | 2020-07-08T17:49:22.479162 | 2019-05-16T04:06:00 | 2019-05-16T04:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,568 | py | import os
import urllib.request
import socket
import json
from urllib.error import URLError, HTTPError
import hashlib
import requests
from concurrent.futures import ThreadPoolExecutor
import threading
class GetPicsFromWebPage(object):
def printE(self, s):
print('\033[31m ' + s + ' \033[0m')
def print... | [
"960889@qq.com"
] | 960889@qq.com |
afb40df1d8865d67ceff7b980f2d0e72f8353f59 | f6faf6e8b95a174afdaf748915d1ec3c5ab589a1 | /paper/paper/urls.py | 33a57dc8c72f15f2ac14bddfc73e6712c5810d65 | [] | no_license | manhcuongdoan/newspaper | 39c1f6c66cfe644ddafa88b8fa68208c87118b5b | 6f76640ad3b4f6355feed8b97fcb12d230f6fdf9 | refs/heads/master | 2020-09-20T17:58:42.662331 | 2019-11-28T03:40:22 | 2019-11-28T03:40:22 | 224,553,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | """paper 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-based v... | [
"doanmanhcuong1234567@gmail.com"
] | doanmanhcuong1234567@gmail.com |
34cda67bc47e4e236923495d21b3410260bc6065 | 7760be277bb65211b716c1cb9155921ae660b61e | /BasicPythonPractice/SumTwo.py | 50dfeda0f04c9ffa091a59e53150f44efae32fb7 | [] | no_license | sanjanabalakrishna/Python-Scripts | 5d66f19b2ff0fbbd13f282a62ab87d4bb7a814ce | 0a9b94758af248372b1438dff6470391a324e6e7 | refs/heads/master | 2020-07-22T08:42:22.384472 | 2019-10-20T17:11:08 | 2019-10-20T17:11:08 | 207,136,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #Given an array of integers, return indices of the two numbers such that they add up to a specific target.
#You may assume that each input would have exactly one solution, and you may not use the same element twice.
class Solution:
def SumTwo(self, nums, target):
di = {n:i for i,n in enumerate(nums)} #Crea... | [
"noreply@github.com"
] | sanjanabalakrishna.noreply@github.com |
39e41c1c94836369b1512c5bcebb5ed0f9d84c42 | 7df9fa10b99a87d9827075a697000d880ea26e60 | /chapter06/CliffWalking.py | 7fffab63a0ef6e5b5a733933277afe3190d83590 | [] | no_license | jiankangren/RLAI | 6722fe0007e22b24cb6aa7654685aed21db646ee | 40023034647481465bef37c7bdd8e9c337f97140 | refs/heads/master | 2020-04-12T09:47:00.076640 | 2017-09-01T06:13:10 | 2017-09-01T06:13:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,631 | py | import numpy as np
import matplotlib.pyplot as plt
class Cliff:
def __init__(self):
self.ROWS = 4
self.COLS = 12
self.ACTIONS = list(range(4))
self.UP, self.DOWN, self.LEFT, self.RIGHT = self.ACTIONS
self.state_action_values = np.zeros((self.ROWS, self.COLS,len(self.ACTIONS)... | [
"zz028113@foxmail.com"
] | zz028113@foxmail.com |
38bbf0422041425be9f4f1aac557fcfbfe23a739 | 694d57c3e512ce916269411b51adef23532420cd | /leetcode_review2/74search_a_2D_matrix.py | 866fe5944bf1f8a5a7c20dee6738ef99ba24a70b | [] | no_license | clovery410/mycode | 5541c3a99962d7949832a0859f18819f118edfba | e12025e754547d18d5bb50a9dbe5e725fd03fd9c | refs/heads/master | 2021-05-16T02:46:47.996748 | 2017-05-10T23:43:50 | 2017-05-10T23:43:50 | 39,235,141 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | class Solution(object):
def searchMatrix(self, matrix, target):
m, n = len(matrix), len(matrix[0]) if len(matrix) > 0 else 0
cur_i, cur_j = 0, n-1
while cur_i < m and cur_j >= 0:
if target == matrix[cur_i][cur_j]:
return True
if target < matrix[cur_i][... | [
"seasoul410@gmail.com"
] | seasoul410@gmail.com |
7a144841bd9fe8ec5e8663356c33fac86b2dbf31 | acb082b215e6d214a5065f76c0454dcf1fb2a533 | /src/cobra/core/auth/access.py | e3881977e6cf7cd7420cdef66f2da916e6890e6d | [
"Apache-2.0"
] | permissive | lyoniionly/django-cobra | 130b25cd897cc94b6a8da722e9a83ecea3b00c49 | 2427e5cf74b7739115b1224da3306986b3ee345c | refs/heads/master | 2016-09-06T10:23:10.607025 | 2016-02-22T14:16:49 | 2016-02-22T14:16:49 | 29,646,851 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,147 | py | from __future__ import absolute_import
from cobra.core.loading import get_model
__all__ = ['from_user', 'from_member', 'DEFAULT', 'SCOPES']
OrganizationMember = get_model('organization', 'OrganizationMember')
SCOPES = set([
'org:read',
'org:write',
'org:delete',
'team:read',
'team:write',
'... | [
"beihua_445566@126.com"
] | beihua_445566@126.com |
ec6dd090d2a23eccbcf07fbb431474eb9e1690c0 | 52cb4eb1e3ae28362fdc4c6b072a25e9b03d797e | /bennuportal/settings.py | dfd879f57342c91dbaea6103351779c38d499d29 | [] | no_license | sergiofbsilva/py-bennu-portal | e0769934f52d484b874125b8b8e8cbed48f192b8 | b6fe1a11643a8bbd9ed4eb8ceb16644cd00c2df7 | refs/heads/master | 2020-05-30T06:05:15.950876 | 2013-02-22T18:02:40 | 2013-02-22T18:02:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,760 | py | # Django settings for bennuportal project.
import os
PROJECT_ROOT = os.path.abspath(os.path.dirname(__file__))
HOST = "http://ashtray.ist.utl.pt:8001"
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
AUTO_CATALOG = True
MANAGERS = ADMINS
DATABASES = {
'default'... | [
"sergiofbsilva@gmail.com"
] | sergiofbsilva@gmail.com |
a9175d2297efa30f84e70270e6666fba0acba21d | 1350c85a52373b8c04d4094015b7963b63c82f44 | /data/constants.py | 934d09337babc95e2db7ef48934286abe17dd922 | [] | no_license | dheeraj510/SideScroller | fc3a8a2f2ba37a30743b3d1c0a666e4d6248f540 | 75fed9cb7bce768164b9656160e3f61ae1f3cd01 | refs/heads/master | 2020-12-28T21:40:05.792152 | 2013-12-22T23:36:16 | 2013-12-22T23:36:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,132 | py | __author__ = 'justinarmstrong'
## COLORS ##
# R G B
GRAY = (100, 100, 100)
NAVYBLUE = ( 60, 60, 100)
WHITE = (255, 255, 255)
RED = (255, 0, 0)
GREEN = ( 0, 255, 0)
FOREST_GREEN = ( 31, 162, 35)
BLUE = ( 0, 0, 255)
YELLOW = (255, 255, 0)
O... | [
"justinmeister@gmail.com"
] | justinmeister@gmail.com |
ccf2bb436946bea30ec9aa47f3d1a051dd25658c | 307faa13334aaaf6b4a90b01094bc0996dce9685 | /mysite/pdfmerge/apps.py | 02f60f5cf629f1a95bbe5ee41f24c5b0209d7e53 | [] | no_license | xiaobojiang/pdf-merger | 808b0987525affd2d068588b2016913a32b73db0 | 35efc71f7c43771a534f8b9336caeef87cf07e58 | refs/heads/master | 2023-07-08T20:02:41.321279 | 2021-08-04T07:42:07 | 2021-08-04T07:42:07 | 210,569,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class PdfmergeConfig(AppConfig):
name = 'pdfmerge'
| [
"xiaobo.j.jiang@signify.com"
] | xiaobo.j.jiang@signify.com |
4a5273f54dbffa666386ee3a1d2fb5a84918f8cc | a7f09b003a27fe9b64ae725ac07c733b778826b7 | /extract_frames.py | 3c22114dde54daebbacb70da74a347c83dc9a83d | [] | no_license | whq-hqw/pytorch-openpose | 5e5da04f2ecb3aada7232757fcdfe231f950884b | 0ecfd7db36dd11229bf7a99d6a664748c1839939 | refs/heads/master | 2022-02-25T23:54:24.077871 | 2019-11-22T10:27:45 | 2019-11-22T10:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | import os, glob
root = os.path.expanduser("~/Pictures/dataset/reid/20191119_FaceAlignment/FA_4")
for i, video in enumerate(sorted(glob.glob(root + "/*_raw.mp4"))):
name = video[video.rfind("/")+1:-8]
angle = name[name.find("_")+1:name.rfind("_")]
output_dir = os.path.join(root, name)
output_dir = os.p... | [
"David910207"
] | David910207 |
d98857b2ec97d9148a5e4870aa8a824545078607 | 645d1e9b73f382da28e2d0f6494b05fa5e278bf2 | /answers/getMaximumGenerated.py | 939c379a84cdbd6f00305c2466296c25f7b3d8ef | [] | no_license | xxbeam/leetcode-python | 63efcba4f0fc1c09ceebca725778dacd9dfd27fd | 5f1282abb64651c4b67ce0b262456920827fe7dc | refs/heads/master | 2023-07-17T23:33:08.783011 | 2021-09-10T01:47:46 | 2021-09-10T01:47:46 | 345,580,038 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # 1646. 获取生成数组中的最大值
class Solution:
def getMaximumGenerated(self, n: int) -> int:
if n < 2:
return n
arr = [0] * (n+1)
arr[1] = 1
res = 1
for i in range(2, n+1):
arr[i] = arr[i // 2] + i % 2 * arr[i // 2 + 1]
res = max(res, arr[i])
... | [
"xiongxin@songxiaocai.com"
] | xiongxin@songxiaocai.com |
dac1bc57d4810d79ba595198ba0bcc92da8f3a2c | 73ccb07f34d726e21e327c6becebca7c6e89f0d4 | /Papeleria/migrations/0002_auto_20200321_1401.py | 3aa961fd8a1cacfe79565c1880d8ed67da714195 | [] | no_license | EDG-161/Reingenieria | 131d1120737ab34a119727ce3b3480001d04d4b0 | e901423933c4ec6569d085a3f25ba47fe996780d | refs/heads/master | 2022-04-09T09:29:14.198663 | 2020-03-22T21:07:58 | 2020-03-22T21:07:58 | 249,272,707 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,035 | py | # Generated by Django 2.2.11 on 2020-03-21 20:01
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('Papeleria', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"44904881+EDG-161@users.noreply.github.com"
] | 44904881+EDG-161@users.noreply.github.com |
59620cdbfa9167aeb555cca708e1f7ede5412081 | 7d31324f874130bc5059314048193f474f2a820a | /gui.py | 6a41ea6e86f10145d7f19d02e451b0a0f571e17f | [] | no_license | deshudiosh/PyTSF | 2ae13c9724b6e290016aad6329db5c175bd319fa | 6c3a8b6b35a4fc602f10aa10aff72d9bc887ccdb | refs/heads/master | 2021-01-20T01:36:11.138441 | 2017-10-27T18:57:31 | 2017-10-27T18:57:31 | 89,306,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | import remi.gui as gui
from remi import start, App
class PyTsfGui(App):
def __init__(self, *args):
super(PyTsfGui, self).__init__(*args)
def main(self):
# margin 0px auto allows to center the app to the screen
container = gui.VBox(width=400, margin='0px auto')
container.style[... | [
"deshudiosh@gmail.com"
] | deshudiosh@gmail.com |
b76b50f294cf1d7560a3699d3704b41173c7ea8c | c956401119e44e41f3873b4734c857eda957e2cd | /metrics/lr_smape.py | 8a71c4a237fb069f751070fdc252cea4f1b598f7 | [] | no_license | zhekunz2/c4pp | 6f689bce42215507d749b8b2be96c7f68ed8c49c | 9f8054addb48d9440662d8c8f494359846423ffd | refs/heads/master | 2020-09-24T06:17:29.866975 | 2019-12-03T17:41:25 | 2019-12-03T17:41:25 | 225,678,894 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 880 | py | #!/usr/bin/env python
import os
import json
import sys
import numpy as np
try:
smape_thres=float(sys.argv[1])
weight=float(sys.argv[2])
bias=float(sys.argv[3])
data_dir=sys.argv[4]
with open(os.path.join(data_dir, 'data.json')) as json_data:
d = json.load(json_data)
datas = [x for x... | [
"zhekunz2@Zhekuns-MacBook-Pro.local"
] | zhekunz2@Zhekuns-MacBook-Pro.local |
e0d376cdb3b6cbbbbeea5b2ea6c2a81b88fbf34c | 422c9cc1c5ef7eba24610e66d6a74ec2e16bf39e | /install_isolated/lib/python2.7/dist-packages/turtle_actionlib/msg/_ShapeFeedback.py | 332cdc621b2cf527210a07a88ad56ccb86dca474 | [] | no_license | twighk/ROS-Pi3 | 222c735d3252d6fce43b427cdea3132f93025002 | 9f2912c44ae996040f143c1e77e6c714162fc7d2 | refs/heads/master | 2021-01-01T05:16:20.278770 | 2016-05-08T19:24:15 | 2016-05-08T19:24:15 | 58,306,257 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,927 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from turtle_actionlib/ShapeFeedback.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class ShapeFeedback(genpy.Message):
_md5sum = "d41d8cd98f00b204e9800998ecf8427e"
_... | [
"twighk@outlook.com"
] | twighk@outlook.com |
35b4164f4d7e6cfd0543275dde4177828faa3596 | 5f97322d583c5bdb4c8cb36e0c7686bdc4f63a81 | /articles/models.py | 15e70a6fe0add0af269e80b68bfc41c8c763275e | [] | no_license | thakurt/community_blog | 89f2d91720affc2a2f8556746c266fa7eea1b53f | 47101985051ee402967610082bfcfd466268c69a | refs/heads/master | 2022-11-15T12:48:10.885619 | 2020-06-30T19:00:26 | 2020-06-30T19:00:26 | 276,184,249 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py |
from django.db import models
from django.conf import settings
from django.db import models
from django.urls import reverse
from django.contrib.auth import get_user_model
from ckeditor.fields import RichTextField
from ckeditor_uploader.fields import RichTextUploadingField
# Create your models here.
class Article(mod... | [
"thakursandip321@gmail.com"
] | thakursandip321@gmail.com |
81e8a2a4d09fad8fccf00c9a480b25872312cc7f | 231968d8a96a6961361f2b49291d261104bf7f90 | /gateways/message_gateway.py | 25557cb5f900600c3ac45dfc6ea1e1c6910a3373 | [] | no_license | YDrall/tame-of-thrones | 93ba5edb3ef3834f0093330b58f5318e5d78958f | 8f413e44f79e9a1d4289299fa9dfcb8442aa7ab9 | refs/heads/master | 2020-03-27T21:10:23.747132 | 2018-09-03T13:04:42 | 2018-09-03T13:04:42 | 147,120,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 491 | py | from decoders.secret_decoder import decode_secret
class MessagesGateway:
def __init__(self, ruler_gateway):
self.ruler_gateway = ruler_gateway
def send_message(self, from_kingdom, to_kingdom, message):
# print("sending message..{} {} {}".format(
# from_kingdom, to_kingdom, messag... | [
"yogeshdrall7874@gmail.com"
] | yogeshdrall7874@gmail.com |
9d215411759826f8db074847eb79e35ba1db6e34 | 346bfe67365db67c3ecaceded5b02f0f31947b17 | /datacamp_notlar/data_science/12-lambda/lambda_fonk_3.py | a16e7709eb0bfd990a0e5727e338878c4ee8ff24 | [] | no_license | serdarselcuk/pythonStudy | d9475459d86ec0c785f81a9d16195d2532aa903d | c542bd2cf646503eda0ae014ef5f06acbfa67894 | refs/heads/master | 2020-11-24T04:35:37.012257 | 2019-12-14T04:42:55 | 2019-12-14T04:42:55 | 227,967,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # Create a list of strings: fellowship
fellowship = ['frodo', 'samwise', 'merry', 'pippin', 'aragorn', 'boromir', 'legolas', 'gimli', 'gandalf']
# Use filter() to apply a lambda function over fellowship: result
result = filter(lambda a : len(a)>6, fellowship)
# Convert result to a list: result_list
result_list = list... | [
"serdarselcukus@outlook.com"
] | serdarselcukus@outlook.com |
fea358efc88c867326638a81257ad34f96377419 | 888f87b1455d34ef5687c97f72c0f57eab7a5be7 | /03-operations/aritmethics.py | 6c08a1c910768caa83a6fec0d69d926d92be85a9 | [] | no_license | josue0ghost/Python-Exercises | dd4fff287341af55fac4b9e0f453cd9628099625 | 11037ecbc77b4f516ed1ffa8be89621d2f630c22 | refs/heads/main | 2023-07-02T19:11:25.918071 | 2021-08-10T08:31:53 | 2021-08-10T08:31:53 | 356,730,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | number1 = 77
number2 = 52
rest = number1 - number2
sum = number1 + number2
div = number1 / number2
mult = number1 * number2
mod = number1 % number2
| [
"josue0ghost@gmail.com"
] | josue0ghost@gmail.com |
5b87719886d1cc633afcce54f5f1ef6866f61e4c | 08699fd7b96d48de7c3f70ce83dc2ea59ec20af7 | /atcoder/abc154/a.py | 05a9f0a095738adf20fd46e13e407be11ea966a2 | [] | no_license | KazutoYunoki/programing-contest | 0b89f92145a3e9ef09f6522cabe200259960a981 | b8123f8902a157678bd8fe860f0b1da9f2b1883d | refs/heads/master | 2022-11-05T01:25:35.900951 | 2020-06-22T10:01:57 | 2020-06-22T10:01:57 | 267,318,061 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | def main():
S, T = input().split()
A, B = map(int, input().split())
U = input()
if U == S:
A = A - 1
else:
B = B - 1
print(str(A) + " " + str(B))
if __name__ == "__main__":
main()
| [
"kazuto233@gmail.com"
] | kazuto233@gmail.com |
9000f0815483d59ab0f65ccab6aaf9894d974134 | 4321dd552ed03f7e03fef9e94433484ec33bf624 | /problems/fromboj/test_example/happy.py | 1898af933b7d2a666aa19aa979ad82ecc8134991 | [] | no_license | HyunSeokJeon/coding_plus_algorithm | aa89c0375e1d4af205296fb8dcc337f856942301 | 1b2a5c96839e251d53cc49bf3fb746754cdb2e5f | refs/heads/main | 2023-04-11T17:02:41.862078 | 2021-05-19T04:49:57 | 2021-05-19T04:49:57 | 347,835,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | #행복
a = int(input())
b = list(map(int,input().split()))
mx = max(b)
mn = min(b)
print(mx-mn)
| [
"sjunhs@gmail.com"
] | sjunhs@gmail.com |
8675568d830081739ba25916b161722f78eb6df8 | f7de7c4daed4fa52256c03590dceb5f5e1d09f2a | /dlnn/util/__init__.py | 37f39fef790c00c670ec5729e2acf024a75a5d91 | [] | no_license | Daneswara/sume | 918b3469dc941492e88c1014a2afbbeb8bdd68a6 | 1900ab97fd857b0dcab0ab9846f33b32d6be629c | refs/heads/master | 2022-12-09T14:24:12.701951 | 2019-01-14T13:16:45 | 2019-01-14T13:16:45 | 138,486,380 | 0 | 1 | null | 2022-11-21T21:20:50 | 2018-06-24T13:58:45 | CSS | UTF-8 | Python | false | false | 130 | py | import keras
def to_categorical(y, num_classes=None):
return keras.utils.to_categorical(y, num_classes=num_classes) * 2 - 1
| [
"id.muhammad.syafiq@gmail.com"
] | id.muhammad.syafiq@gmail.com |
2bc3743b880efe5c8a8739a55179572019820af5 | c31e46965ea47cdb0c61a6b525aecea45dbf4d0b | /gram/views.py | b442f39e96c2ad10dff14a8042bb03981ca1e2de | [] | no_license | marysinaida/-Instagram | 687563c7b9a44adcdd09217ed02ff5c2c24623d2 | cb0768ad24b7650db6b7fbfd9d445232b154cece | refs/heads/master | 2022-12-06T07:02:55.786066 | 2020-01-08T06:57:47 | 2020-01-08T06:57:47 | 228,771,439 | 0 | 0 | null | 2022-11-22T05:13:53 | 2019-12-18T06:16:03 | Python | UTF-8 | Python | false | false | 2,960 | py | from django.shortcuts import render,get_object_or_404
from django.utils import timezone
from .forms import PostForm
from .models import Post,Profile
from django.contrib.auth.models import User
from django.views.generic import (ListView,CreateView,DetailView)
from django.http import HttpResponse
from django.contrib.aut... | [
"marydorcassinaida54@gmail.com"
] | marydorcassinaida54@gmail.com |
7036e36ad6e119dac97c2175715c6b24857595cf | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AnttechOceanbaseVerificationcodeVerifyResponse.py | 2808330b22ff50c4c507563278735baa72cdba13 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 479 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AnttechOceanbaseVerificationcodeVerifyResponse(AlipayResponse):
def __init__(self):
super(AnttechOceanbaseVerificationcodeVerifyResponse, self).__init__()
def parse_res... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
f5ce1777ab374e84ce712bc76278c99bd4ad99e3 | c2d7472ad27d06e50071c1b9b6d9dc58173e88b8 | /vgg_linear_weight.py | d061cc6cae23b6fff4399000aac4861b43c4c8b9 | [] | no_license | jasonmhwu/vggfmri | 941bc6d8890598042fa8b7568886e60f0a216d45 | 240cb12892f3d02f47428ed31e4c1172523e7f20 | refs/heads/master | 2021-01-10T10:36:21.446134 | 2016-01-31T14:41:38 | 2016-01-31T14:41:38 | 50,778,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,163 | py | from __future__ import absolute_import
from __future__ import print_function
from joblib import Parallel, delayed
import multiprocessing
import numpy as np
import scipy.io, scipy.misc, h5py
import matplotlib.pyplot as plt
import time
import sys
import pdb
from sklearn.metrics import r2_score
from sklearn.linear_model i... | [
"b00901114@ntu.edu.tw"
] | b00901114@ntu.edu.tw |
ff9833f97a0e42a03c7067b3ac08557c42a41fc9 | f49651826f50dea433ec22a20c9ef1e99b1c4033 | /voronoi/contrib/__init__.py | 662c39c0a3cf0e53e8b1db92351ea8e6c35c24ee | [
"MIT"
] | permissive | tangchaous/voronoi | 1b307380ec481876b639a56c26a54a23d2b5d724 | b048606341ec8d614fb123573a5e02eabbd2fe83 | refs/heads/master | 2023-03-31T10:35:30.770615 | 2021-03-24T23:34:04 | 2021-03-24T23:34:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | from voronoi.contrib.bounding_circle import BoundingCircle
| [
"jmapvhoof@gmail.com"
] | jmapvhoof@gmail.com |
258e3bc17596939fef5f5019ea6b0ffe123d50ca | a512b8893b0d2de827d6292e810f3a98b41e132c | /Week3/Day4/Solutions/Python/prog4.py | d6cc6209f9f236ad8243f6ba1b9ee1e54bfd07d1 | [] | no_license | Audarya07/Daily-Flash-Codes | d771079fd0d470e2d3e05679f17f32fb64b4f426 | cf96ca2b1676b038e243fac67be778381492ffeb | refs/heads/master | 2022-11-06T15:37:47.180729 | 2020-06-25T16:20:55 | 2020-06-25T16:20:55 | 274,960,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 109 | py | x = 7
for i in range(4):
for j in range(i+1):
print(x,end=" ")
x-=1
x+=1
print()
| [
"audiuttarwar2000@gmail.com"
] | audiuttarwar2000@gmail.com |
e31f390c685de55d179575ab7033649ae3118048 | c8fb99bc9f6b7244f6aa08eb0db4655595bb5018 | /admin.py | d4de70b1091e4e7fb2e9c2eb5b9884ea6eb1e2eb | [] | no_license | eisebs/PJD | 1d940af910b8682494d2566d3ed112db2739ab40 | 375dadcb0f9e7db93e9c1aae7da1eebbd8762b89 | refs/heads/master | 2016-08-07T08:20:43.031213 | 2010-08-12T16:30:53 | 2010-08-12T16:30:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,825 | py | import pickle
import socket
import socketserver
import time
import hashlib
import struct
from jobqueue import *
from systemborg import *
class AdminResponse:
def __init__(self, msg, number):
self.msg = msg
self.number = number
class AdminDownlink:
_ip = "";
_port = 0;
... | [
"eisebs@gmx.de"
] | eisebs@gmx.de |
f34819ba60137180278163a868fa2703cdb65fc8 | 198e29c34635ef5324980ffc442c13885b418bf1 | /maryam.py | 1be2c0bb45fe1fccd39e3f6d6529ed734bd1014a | [] | no_license | Maryam27953/Maryam | 88ee92727ae824a6c5e24f82e5fdb06ed9454cef | 7b7421692b71fb0ea32fcaaef7a05cdad35c7895 | refs/heads/main | 2023-04-15T15:58:05.212623 | 2021-04-19T20:18:05 | 2021-04-19T20:18:05 | 359,584,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,346 | py | #!/usr/bin/python2
#coding=utf-8
import os,sys,time,datetime,random,hashlib,re,threading,json,getpass,urllib,cookielib
from multiprocessing.pool import ThreadPool
try:
import requests
except ImportError:
os.system('pip2 install requests')
try:
import mechanize
except ImportError:
os.system('pip2 instal... | [
"noreply@github.com"
] | Maryam27953.noreply@github.com |
5aee6e6f87e775f43cd82d35f722044872f50e4e | 39624de1d364ea40b822f2cb1d4523b94a60c955 | /.config/i3/i3blocks/routerstats | a256352496771d39b02b7d4e1f6b1b7fcb730576 | [] | no_license | tobe/dotfiles | 80f3e21927389d0494d25fbd5c2c1813956377a2 | 9098023c7f6e2503d3d8aa2f1b61e51d08769a34 | refs/heads/master | 2023-02-03T17:33:24.508373 | 2017-03-19T09:17:25 | 2017-03-19T09:17:25 | 14,859,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from bs4 import BeautifulSoup
import requests
from requests.auth import HTTPBasicAuth
import re
import os
def main():
response = requests.get('http://192.168.0.1/RgConnect.asp', auth=HTTPBasicAuth('', 'admin'))
#downstrema snr: <td align="right">\s?(\d{1,2}\.\d) d... | [
"infy@cybershade.org"
] | infy@cybershade.org | |
daf6a1ca247b7dacf4de32f1aa734b0757030a73 | 391e1c8b435a644d874c100c3d17208cadf01201 | /第四章/4.5 tup_op.py | 92f5740052e5a73ff3be1c33ce4d2c387210b672 | [] | no_license | yonima/python-source-code-of-my-book | 415293510983dc80bd5bc1bb4607d633f9bf0d57 | cc6f47ea1d978b0fdc1411fe0f7d2151bd21e278 | refs/heads/master | 2023-06-08T21:49:40.019437 | 2021-06-11T16:20:11 | 2021-06-11T16:20:11 | 264,702,284 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,642 | py | # -*- coding: utf-8 -*-
"""
元组知识点:
什么是元组?
如何修改元组的值?两个方法
元组内置方法
"""
'''
什么是元组?创建元组的几种方法
'''
# 1、直接使用,
tup1 = 1, 2, 3
print('直接使用, : ',tup1)
print(type(tup1))
# list -- 列表 str ---字符串 tuple -- 元组
# 2、使用()
tup2 = (1, 2, 3)
print('\n使用() : ',tup2)
print(type(tup2))
# 3、创建一个元素的元组
print()
tup3 = ( 1 )
print(type(tu... | [
"noreply@github.com"
] | yonima.noreply@github.com |
8aed0943ec1f00bc442e4506e154da3125d3d313 | 78d3ae00b3984148aadab28620ba8e2911cb1b56 | /pta_practice/PTA1040.py | 48428ac57fdb8c57bd0d0ab898f46377e2ff4570 | [] | no_license | dongyingdepingguo/PTA | 8d338a32026b211e9fe9eca72f01a073d876c410 | 7fa3e01e06de85a7f41c190a4cad23c4145ccb17 | refs/heads/master | 2020-05-26T19:05:14.052356 | 2019-05-24T03:01:22 | 2019-05-24T03:01:22 | 188,343,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 862 | py | # !/usr/bin/env python
# _*_ coding: utf-8 _*_
"""
1040 有几个PAT (25 分)
字符串 APPAPT 中包含了两个单词 PAT,其中第一个 PAT 是第 2 位(P),第 4 位(A),第 6 位(T);
第二个 PAT 是第 3 位(P),第 4 位(A),第 6 位(T)。
现给定字符串,问一共可以形成多少个 PAT?
输入格式:
输入只有一行,包含一个字符串,长度不超过10**5,只包含 P、A、T 三种字母。
输出格式:
在一行中输出给定字符串中包含多少个 PAT。由于结果可能比较大,只输出对 1000000007 取余数的结果。
输入样例:
APPA... | [
"2867432325@qq.com"
] | 2867432325@qq.com |
36da4a1a8ee737c91a2e4cfd313a97f8c36a836a | 56482e0b2ce6517fff41d0f78e0c0ed000d977a1 | /fmcapi/api_objects/helper_functions.py | 73723b685d3181277032d2a1b3b56c4c54e1fb90 | [
"BSD-3-Clause"
] | permissive | banzigaga/fmcapi | ab4d7aaaf4be4f2b0686d07b6272f8b9531577da | fd924de96e200ca8e0d5088b27a5abaf6f915bc6 | refs/heads/master | 2020-12-11T14:45:07.896571 | 2019-12-12T20:02:07 | 2019-12-12T20:02:07 | 233,876,405 | 1 | 0 | BSD-3-Clause | 2020-01-14T15:46:26 | 2020-01-14T15:46:26 | null | UTF-8 | Python | false | false | 4,316 | py | """Misc methods/functions that are used by the fmcapi package's modules."""
import re
import ipaddress
import json
import logging
logging.debug(f"In the {__name__} module.")
def syntax_correcter(value, permitted_syntax="""[.\w\d_\-]""", replacer="_"):
"""
Check 'value' for invalid characters (identified by ... | [
"dmickels@cisco.com"
] | dmickels@cisco.com |
2ed6dd687a11c09ff280d525f79c7ec671dff99a | 40508271be5452e559b4218af0ef1c09ec78448b | /Wrangling/web_scrapers/sclabs/downloader/downloader/spiders/downloader.py | b7462f652f790cc80d5e6546ec2bd9a014f4503c | [
"MIT"
] | permissive | Build-Week-MedCabinet/DS_Model_Engineering | 728275cb6d519c5e99f4009d5087cffa035b8ebf | 98f3f9f8e947b69bbaf5ee16a2c6047fb0b5259c | refs/heads/master | 2020-08-21T07:47:55.395660 | 2019-10-25T00:51:47 | 2019-10-25T00:51:47 | 216,112,929 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 14,678 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import scrapy, os, urllib.parse, re, datetime, scrapy.spidermiddlewares.httperror, db, scrapy_splash
# 'png': 1,
# 'width': 600,
# 'render_all': 1,
# 'http_method': 'GET'
MAX_NO_CONSECUTIVE_TERPENES = 100
SAVE_FOLDER = '../database_dump'
DATABASE_PATH = '../../.... | [
"vincenta..brandon@gmail.com"
] | vincenta..brandon@gmail.com |
dce5d7772db36545a54c2cbf2b1473b26d38fe19 | 688dfc9966e067cc0929fdd202c1123490aad219 | /volunnet/migrations/0005_delete_activity.py | e5b61fa6cb260413b2368a6bf3a6e3e396170c10 | [] | no_license | ISQA-Classes/3900-001projectT4 | 82aea87ceffec7388ccf5229da3a15c6151811ad | 01401e8c4c1bfb6a9d5e741f9d758819e8473db4 | refs/heads/master | 2020-04-17T15:43:23.151491 | 2019-04-25T04:31:52 | 2019-04-25T04:31:52 | 166,710,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 298 | py | # Generated by Django 2.0.5 on 2019-03-10 19:34
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('volunnet', '0004_auto_20190228_1316'),
]
operations = [
migrations.DeleteModel(
name='Activity',
),
]
| [
"blai@unomaha.edu"
] | blai@unomaha.edu |
967dbf7399fdf25fbf3bb6a1521a55565983b079 | b6e065c0f53e4d2a8ef8f66fd67012b111b35444 | /backend/src/errors/messages.py | fe30025293c194150614dc40710ed2e9eff65cdc | [] | no_license | MohammedMadbouliWorkspace/CoffeeShop | db03a56d1f603d4913d8ed97ca0e2d31b3231478 | fc4749a863d8714a35b65e4492f694336f5c69f6 | refs/heads/master | 2022-12-17T05:02:55.729453 | 2020-08-13T01:08:36 | 2020-08-13T01:08:36 | 295,195,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,801 | py | from . import ErrorTemplate
# Default error template
e = ErrorTemplate(
{
"message": "%s"
}
)
# Default error descriptions for common HTTP errors
DEF_UNPROCESSABLE = e.g("The operation has failed.")
DEF_BAD_REQUEST = e.g("The request is malformed or needs some modifications.")
DEF_NOT_FOUND = e.g("The... | [
"mohammedessammadbouli@gmail.com"
] | mohammedessammadbouli@gmail.com |
a05737051e2ebced20325a07ab1ecffbdeff7d92 | b5407596bb666bee88dd559b1c8c49302e8d1598 | /conv-mmdgm/cmmva_mnist_imputation.py | 55df5a32a1c2dd42337eab8aa46945df652e0fe5 | [
"MIT"
] | permissive | zdltheone/mmdgm | 2739ccab5618b98d2cd9f93b7ee497893cb27634 | 9422bdc88b913c09506944d3529f6f955b95687c | refs/heads/master | 2021-01-12T22:18:55.729836 | 2015-09-29T05:08:46 | 2015-09-29T05:08:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,330 | py | """
SVM
"""
import cPickle
import gzip
import os
import sys
import time
import numpy as np
import theano
import theano.tensor as T
import util.datapy as datapy
from layer import Pegasos
from optimization import optimizer
def svm_cva(dir, predir, start=0, end=500, learning_rate=3e-4, n_epochs=10000,
... | [
"610841656@qq.com"
] | 610841656@qq.com |
ca482b4f1f57cfad75b936c220d8d2f4d27aa7ae | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/2/f6a.py | b76a37dd4ff530a849fa7cefd2685a4fec605875 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
414725d239942d1d8df227364d38a9ab65155418 | f4ae4f98f8ae4f2a687bbed4851ffe50c5a3dd2d | /DoodleApp/Doodlers/models.py | a4d3d145faab166a5ba1d0600f951b84aab398e1 | [] | no_license | wondachue/Doodlers | 174a85a8c577880bd19cb9bcb62440bba1164625 | d523e1a5943f5a8ae126513fa4ce6f060b094204 | refs/heads/master | 2021-01-10T01:54:54.569344 | 2015-09-27T03:56:51 | 2015-09-27T03:56:51 | 43,219,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | from django.db import models
from django.contrib.auth.models import (
BaseUserManager, AbstractBaseUser
)
from django.utils import timezone
import datetime
class Doodle(models.Model):
title = models.CharField(max_length=75)
pub_date = models.DateTimeField('date published')
#image = models.ImageField(upload_to='i... | [
"megddwyer@gmail.com"
] | megddwyer@gmail.com |
cb5c4ccba717cd9c2920942e071419e95cf3aa0d | 2d276785c3663d4798be462115291c4706dbd255 | /Python从菜鸟到高手/chapter2/demo2.03.py | 5e0bf41280f733cc7bad2b80a3e3d347a440b9a8 | [] | no_license | bupthl/Python | 81c92433bd955663e6cda5fe7cab5ea3d067c3de | bdb33aeeb179a43100b9ef7129a925c63a133fd3 | refs/heads/master | 2022-02-21T11:02:40.195265 | 2019-08-16T05:49:18 | 2019-08-16T05:49:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | '''
--------《Python从菜鸟到高手》源代码------------
欧瑞科技版权所有
作者:李宁
如有任何技术问题,请加QQ技术讨论群:264268059
或关注“极客起源”订阅号或“欧瑞科技”服务号或扫码关注订阅号和服务号,二维码在源代码根目录
如果QQ群已满,请访问https://geekori.com,在右侧查看最新的QQ群,同时可以扫码关注公众号
“欧瑞学院”是欧瑞科技旗下在线IT教育学院,包含大量IT前沿视频课程,
请访问http://geekori.com/edu或关注前面提到的订阅号和服务号,进入移动版的欧瑞学院
“极客题库”是欧瑞科技旗下在线题库,请扫描源代码根目录中的小程序码安装“极客... | [
"registercn@outlook.com"
] | registercn@outlook.com |
3787fe900f3783b90fab30bc18789eb7730dc11f | 52ddbf21991415c3a567881f128b8ef477f54d10 | /jupyter/DataAnalysis/lec03/main.py | bc69fe0b07d34fd388ab8e880bafb948ed8a1892 | [] | no_license | happy5205205/PythonProjects | 265074198c3e6d09af25a50b601bd78fa8d367e1 | a78845ef30cfc0c680dded336ce9e85e3970b771 | refs/heads/master | 2021-07-15T21:48:24.472616 | 2021-06-25T03:41:44 | 2021-06-25T03:41:44 | 160,160,103 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,230 | py | # _*_ coding:utf-8 _*_
'''
作者:张鹏
时间:2019-05-27
功能:练习画图
'''
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# 解决matplotlib显示中文问题
plt.rcParams['font.sans-serif'] = ['SimHei'] # 指定默认字体
plt.rcParams['axes.unicode_minus'] = False # 解决保存图像是负号'-'显示为方块的问题
def plot_uni_type(pokemon_d... | [
"152929899@qq.com"
] | 152929899@qq.com |
88062e32f1608c3e37cb8a9f464df0f6ef886d0f | dbd43f3f19bdc812806a6b28c6b887294748057b | /S12/data/transformations.py | 2e7998598779aa5890d769738a4f628ccba650de | [] | no_license | namanphy/EVA5 | 8a85bdb26d3441c5f992736f4f95de9ea2d6825a | 5f778d9bdcc08f1f27afbae2f14659692890169d | refs/heads/main | 2023-05-07T21:15:42.392625 | 2021-05-29T07:21:25 | 2021-05-29T07:21:25 | 311,646,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,170 | py | import numpy as np
import albumentations as A
from albumentations.pytorch.transforms import ToTensorV2
class Transformations:
"""
Albumentations transformations class.
"""
def __init__(self, train=False, mean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5), padding=(0, 0), crop=(0, 0),
rotation... | [
"namanphy@gmail.com"
] | namanphy@gmail.com |
4e7584632881221a2e30656ddd76d8d492a7f895 | 8b4aa6911d8860aff4f9996ec4dd3e0d33e0c184 | /pyminer/midstate.py | b6a4cc7faa529ec2c77d613827439a8ac76eddfb | [
"Unlicense"
] | permissive | Johnson-Fan/Avalon-nano | 2145e5323f155038718d90d51694bb2e99a4460f | cf8875d11fcdcc408922201b958a6a79625e909b | refs/heads/master | 2021-01-22T00:37:08.023803 | 2016-09-01T07:50:54 | 2016-09-01T07:50:54 | 46,549,365 | 1 | 0 | null | 2015-11-20T08:27:38 | 2015-11-20T08:27:38 | null | UTF-8 | Python | false | false | 3,949 | py | # Copyright (C) 2011 by jedi95 <jedi95@gmail.com> and
# CFSworks <CFSworks@gmail.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including wi... | [
"Fengling.Qin@gmail.com"
] | Fengling.Qin@gmail.com |
f5c468beecaa5a2685e310d47134afa02ab63714 | 386d5d4f8f102e701d02b326cd066f520e3dff9f | /ProjectApplication/project_core/migrations/0166_organisation_long_name_english.py | 3e520cccaf379fa51b06988bbdeee96f5063231b | [
"MIT"
] | permissive | Swiss-Polar-Institute/project-application | ae2561c3ae2c1d5412d165d959ce2e5886135e0a | 7dc4a9f7e0f8d28c89977b85f99bc5e35ea77d43 | refs/heads/master | 2023-08-31T04:01:23.492272 | 2023-08-25T14:33:02 | 2023-08-25T14:33:02 | 206,330,401 | 7 | 5 | MIT | 2023-09-13T08:03:53 | 2019-09-04T13:49:39 | Python | UTF-8 | Python | false | false | 496 | py | # Generated by Django 3.2.3 on 2021-05-24 14:47
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('project_core', '0165_callcareerstage_enabled'),
]
operations = [
migrations.AddField(
model_name='organisation',
nam... | [
"jenny_t152@yahoo.co.uk"
] | jenny_t152@yahoo.co.uk |
37b28ffd0fe2ae2dbbfdb7fa03f0c4e2a147f4f4 | fc9e52fef1b2aae99228057f17bf3c9905339349 | /Ch05/EXTRAS/plotSDerror.py | 9eb85a09f014e72cde88577b680eccb776e06971 | [] | no_license | apollos/ML_practice | 0e5f349c31c0653049836eab4186e4a03d109c11 | 411e7acdfc619e3081c5319d1e851bedd771934d | refs/heads/master | 2021-01-10T13:52:44.390855 | 2017-05-04T14:59:32 | 2017-05-04T14:59:32 | 52,074,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | '''
Created on Oct 6, 2015
@author: Song Yu
'''
from numpy import *
import matplotlib
import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle
import logRegres
def stocGradAscent0(dataMatrix, classLabels):
m,n = shape(dataMatrix)
alpha = 0.5
weights = ones(n) #initialize to... | [
"apollos521@gmail.com"
] | apollos521@gmail.com |
09499b5a40b99525ef5398364dfabc50873929aa | d69995905dcd2522e53082c32c10f582b6779cba | /apps/testsuites/utils.py | 046c1755163e1f7524679acbd2cd94c4a979ed31 | [] | no_license | liqi629/learn_nm_drf | 010b35ab4254267a601a13f29e2ea3adb3be615e | ad0eef6fe2b338d613974850977de51b9d82ccc6 | refs/heads/master | 2023-02-10T14:33:33.521450 | 2021-01-13T09:14:23 | 2021-01-13T09:14:23 | 324,942,039 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 854 | py |
import re
from datetime import datetime
from apps.testcases.models import Testcases
def modify_output(results):
datas_list = []
for item in results:
mtch = re.search(r'(.*)T(.*)\..*?',item['create_time'])
item['create_time'] = mtch.group(1) +' '+mtch.group(2)
mtch = re.search(r'... | [
"liqi_629@163.com"
] | liqi_629@163.com |
ab7a1d2a35d4e1be32f293d6e0a140043592d1f5 | 2235e7d1db6b05cc68bf9dffb44e74d60333bf67 | /wbot/core/wrapper.py | c25667bac818c35e9ae92d8f9fffd889a4065ea1 | [] | no_license | AZLisme/wbot | 37acbce5639c5f369bba520e5ce06b9ce5e1cb96 | f110bf0b64c82b56fa96a4f88934f32d205d5012 | refs/heads/master | 2021-01-22T19:54:24.118171 | 2017-07-17T15:38:30 | 2017-07-17T15:38:30 | 85,257,575 | 0 | 0 | null | 2017-03-17T01:26:40 | 2017-03-17T01:26:40 | null | UTF-8 | Python | false | false | 12,557 | py | # -*- encoding: utf-8 -*-
import itchat
from wbot.core.base import BaseBot
from wbot.core.types import MessageType, SenderType
class ItChatWrapper(object):
"""对Itchat的调用装饰器接口做一层封装,转发到Bot的消息路由中, 并封装其他的静态API"""
bot = None
def __init__(self, bot: BaseBot):
self.bot = bot
def _handle_group(self... | [
"helloazl@icloud.com"
] | helloazl@icloud.com |
892535f4e9c9849c3d4b09d95fed3dc6f3a97ad3 | aa8842b388742efeac3a5aef588ab0f54c5d163d | /TOKEN MAKER/Tokens.py | 59ad04453c59f5c8236de89d4b3cce110af1f5da | [] | no_license | WikiBotFoundation/scriptip-open-source | fcad3d0474ef83609f6b4e94b555f6a888d9805c | e282e264bcbcf8c5bac7d94a83f538b194010272 | refs/heads/main | 2023-03-03T09:49:09.191232 | 2021-02-19T09:26:29 | 2021-02-19T09:26:29 | 334,510,415 | 1 | 0 | null | 2021-01-31T10:37:21 | 2021-01-30T21:01:04 | Python | UTF-8 | Python | false | false | 2,216 | py | <init token>
print % script_ $local$_c
print % (data.py($local$_c.script();
print % py(cs).local
$_TOKEN_$
ProgramConsole.py(script.($local.data
print % val(Hello World)
print % val(Hello World)
print % test val(Hello World)
... | [
"noreply@github.com"
] | WikiBotFoundation.noreply@github.com |
2efd8dc6381a4197c5c0ddbf947f7ba409bb868f | 53d2c5c3d5610d5693ab2abd4e59c53e7e77bd15 | /Deck.py | 64553314f92a3a439cef666cb723db44611d5011 | [] | no_license | lukasmvv/Cards | d4032d9a4ce4540c159e42bf0095f18f843511af | 85424e49274a0e4284226ed3c698199c17706b9d | refs/heads/master | 2020-04-20T21:44:53.464225 | 2019-02-04T17:28:25 | 2019-02-04T17:28:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,536 | py | from random import randint
from Card import Card
class Deck():
"""Class for a deck of cards"""
def __init__(self, jokers=False):
self.jokers = jokers
self.deck = self.create_deck()
def create_deck(self):
"""Creates a deck of 52 (or 54) Cards"""
deck = []
# Sui... | [
"8628878+lukasmvv@users.noreply.github.com"
] | 8628878+lukasmvv@users.noreply.github.com |
5c21442b3f2abb77d1088ab94d4ce71087f663d5 | a2155f125865aa056e399bc1a5bd2017ad176857 | /peleenet.py | ca39badeb6696edbdb5e962a5c92a1dd78cec5f5 | [] | no_license | williu66/pytorch_pelee | 9b080753e9e779ad3863ecd5540f5fd0a32e1877 | 6a95f8a2d6dc6ec154a6ade7b807e31460cec403 | refs/heads/master | 2021-03-18T23:30:34.583063 | 2019-02-21T09:17:47 | 2019-02-21T09:17:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,914 | py | import torch
import torch.nn as nn
import math
import torch.nn.functional as F
class Conv_bn_relu(nn.Module):
def __init__(self, inp, oup, kernel_size=3, stride=1, pad=1, use_relu=True):
super(Conv_bn_relu, self).__init__()
self.use_relu = use_relu
if self.use_relu:
self.convs ... | [
"wangxianruii@163.com"
] | wangxianruii@163.com |
640989b126a9eb140bcfe2715b327b1e1abe4487 | a4bfe098ee6b098a873258f65c462d6fa67d661f | /code/trunk/event_horizon/social/migrations/0005_auto__add_campaignfacebookpage__add_advertiserfacebookpage.py | 842de3245b73c8e39cf851fa65773be76d879b88 | [] | no_license | WMcCann/EventHorizon | a3d599230c0d2c4474e2859019e836cba920a6fc | 199b7ced6afa1ddb08a31a12395794f7bc61c739 | refs/heads/master | 2016-09-06T08:08:14.084454 | 2015-04-08T19:08:08 | 2015-04-08T19:08:08 | 33,568,323 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 17,465 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'CampaignFacebookPage'
db.create_table(u'social_campaignfacebookpage', (
... | [
"paulo.silva@wmccann.com"
] | paulo.silva@wmccann.com |
a3995c39e5511f2ea1e2b8750fc13294033b39ed | e9b8d5e60f97ca7bf0eb19ed5358485cd3293ce3 | /main.py | 7452dde2d8f6c3dd086b33526489bd31cd0676d1 | [] | no_license | Basil-Slinko/Web-scrapping | 6286373616337c4a443ad15fe16a01f38261dd23 | e8d2fbc4617ea32acaea95b3937b05f2e874b2f3 | refs/heads/main | 2023-08-14T08:17:03.050424 | 2021-09-26T09:08:05 | 2021-09-26T09:08:05 | 408,118,168 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,755 | py | import requests
from bs4 import BeautifulSoup
def find_articles(key_words):
request = requests.get('https://habr.com/ru/all/')
soup = BeautifulSoup(request.text, 'html.parser')
posts = soup.find_all('article', class_='tm-articles-list__item')
for post in posts:
post_text = post.find... | [
"noreply@github.com"
] | Basil-Slinko.noreply@github.com |
6da51161e259f992424199eee2b63e1c012c4353 | dc0dbab2053e84f22a6dc138620420d819d4807f | /main.py | 5617268b63a4e644f1bebcc0249a9ff566844f0b | [] | no_license | multicam/tgds-python-client | b51d03160d2fa6e192f7a85a4201b7c3796756eb | a1e1f17f338aee203ba8fd5d2a8bb90ef5b67209 | refs/heads/master | 2023-07-03T06:42:56.154564 | 2021-08-09T05:41:24 | 2021-08-09T05:41:24 | 389,432,108 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 166 | py | from scrape_training_gov import scrape_cuv_40720
# from google_news import run_google_news
if __name__ == '__main__':
scrape_cuv_40720()
# run_google_news()
| [
"jmgiorgi@gmail.com"
] | jmgiorgi@gmail.com |
26523c4e362f033a64402149db1156139b7ddef3 | 8fcc27160f8700be46296568260fa0017a0b3004 | /client/carbonui/control/browser/browserutil.py | f1123476fb25f4a4385f9b0fdc156e55cad377b4 | [] | no_license | connoryang/dec-eve-serenity | 5d867f4eedfa896a4ef60f92556356cafd632c96 | b670aec7c8b4514fc47cd52e186d7ccf3aabb69e | refs/heads/master | 2021-01-22T06:33:16.303760 | 2016-03-16T15:15:32 | 2016-03-16T15:15:32 | 56,389,750 | 1 | 0 | null | 2016-04-16T15:05:24 | 2016-04-16T15:05:24 | null | UTF-8 | Python | false | false | 44,014 | py | #Embedded file name: e:\jenkins\workspace\client_SERENITY\branches\release\SERENITY\packages\carbonui\control\browser\browserutil.py
from carbonui.primitives.frame import FrameCoreOverride as Frame
import blue
import urllib2
import urllib
import urlparse
from carbonui.primitives.container import Container
from c... | [
"masaho.shiro@gmail.com"
] | masaho.shiro@gmail.com |
b97c3dc9d2a32e924bbfed353f4ee199196cf350 | 943d30c727fed5cb4afb4d95bb27e77aeea29507 | /app.py | 185beeeff920b7feb6c8cd0a628b41cae66e02b4 | [] | no_license | hrithikesh/Covid_HelpDesk | 235598d88535a6c347eda88cd07ba01a97e4c6f3 | b4998344ee0cbd3760a2aa572d6ed64a1e7e66d4 | refs/heads/main | 2023-06-16T21:18:14.316114 | 2021-07-15T02:53:38 | 2021-07-15T02:53:38 | 386,141,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,602 | py | from flask import Flask, render_template, request
from twilio.rest import Client
import requests
account_sid = 'AC27fd6c05cf7a90c6786544aa3fc098cfa'
auth_token = '5ee06bd7796c512330946afeb5f50430'
client = Client(account_sid,auth_token)
app = Flask(_name_, static_url_path='/static')
@app.route('/')
def registration_for... | [
"noreply@github.com"
] | hrithikesh.noreply@github.com |
90f5d0ecdb0f132e76809d77dca276ad9a766253 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/eventhub/azure-eventhub-checkpointstoretable/azure/eventhub/extensions/checkpointstoretable/_vendor/data/tables/aio/_base_client_async.py | 06b3136394d128cf3c39652676f430c56596b3be | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 6,981 | py | # -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from typi... | [
"noreply@github.com"
] | Azure.noreply@github.com |
24b9004fd99ae7afe75efd49893c8630f7c5abaf | ae178b259cc8987621289cb8b7a07ac4d664ee31 | /cbdLocks/asgi.py | 3907c3af0d007a2fffc413a507b4a93fc6b8267e | [] | no_license | tak291/CbdApp | 5c9d3179edf3370c214a56416e582ad3901de0e7 | 3690cc46c5433828dc3504e0d176b77ad9c95956 | refs/heads/main | 2023-02-16T18:22:18.657275 | 2021-01-16T14:49:04 | 2021-01-16T14:49:04 | 329,508,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for cbdLocks project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"joseporras291@gmail.com"
] | joseporras291@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.