blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c0e5af073a3f0da90d9ab6f254bc0b2988935599 | 754104eedb36cf8f51d1c12f653f23cf3fad199d | /YumYum/urls.py | ad7418a23316e75ce6de5cc5c55e57a4e4f9ea70 | [] | no_license | dudamarlena/YumYum | 7f8354fc4fe234f3bad7f79b45982d52c02471e2 | 3f5a59ab28cf4d4c78e401adbf92227015f33850 | refs/heads/master | 2020-03-16T23:44:17.797909 | 2018-05-25T16:01:30 | 2018-05-25T16:01:30 | 133,089,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py | """YumYum URL Configuration"""
from django.conf.urls import url
from django.contrib import admin
from recipes.views import RecipeView, RecommendedRecipeView, RecipeDetailView, search_recipe
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^recipes/$', RecipeView.as_view(), name="recipes"),
url(r'^se... | [
"marlena_duda@onet.eu"
] | marlena_duda@onet.eu |
4ff2e4bc1576d94695e1137a9cb57e19919db64f | d949fc9b4fe3fccd7bca2d8500629130a35a0b59 | /lamndock_api/apps/functions/models.py | cc58d5f07fa0e99eb60208be9994f81b7aebf470 | [] | no_license | yoanisgil/lambdock | 435e1aaa56d24a85e6695263c00db989e1cafbc2 | e564bc0351a7cd34fb54b4f78a0142fa3b7b2fa6 | refs/heads/master | 2021-01-16T23:15:42.046096 | 2016-07-04T21:03:37 | 2016-07-04T21:03:37 | 61,848,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | from __future__ import unicode_literals
from django.db import models
class Stack(models.Model):
name = models.CharField(max_length=100)
description = models.CharField(max_length=255)
docker_image = models.CharField(max_length=1000)
def __unicode__(self):
return '{} - {}'.format(self.name, se... | [
"yoanis.gil@valtech.ca"
] | yoanis.gil@valtech.ca |
1f5c4ea84120b30401071891d0365f2ae5dd3b73 | 38106a673fdf95651d09e61d7d9e9a77434e00cd | /importers/banks/bank-of-america/Bank_Statement_Extractor.py | 29f09bc8b9848ade8f2c53e86cebe7ba8e2a9065 | [
"Apache-2.0"
] | permissive | tidbits-ltd/connoisseur | a46e939ada17df35f9735417428d8c3bf74ac8be | 2465fe4674df0646fc98f06f3220c179a95c5201 | refs/heads/master | 2022-12-05T02:43:25.864211 | 2020-09-03T20:16:32 | 2020-09-03T20:16:32 | 289,624,005 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,996 | py | """
So far this script only works with Bank of America.
Notes:
- This program works only when the landing page is like screenshot1
- This program works only when a verification code is requested
- This program works only when the user takes control and enters the verification code
and also selects ... | [
"sajosuraj446@gmail.com"
] | sajosuraj446@gmail.com |
226427211225dcb2f940f960c8d52399ed07391d | 3b4755042ea57add560e7bad578178312d7c7a76 | /env/bin/sqlformat | 06213b987fe9756914ad118341a9cd73b46f2259 | [] | no_license | pranavbathla/graphqlBasics | ca09061497cb49e1f67423f0538f326df127712c | d2b80f2a2be51a84e1d4740bb8d8b1ed04c222b6 | refs/heads/master | 2020-07-12T18:11:28.218883 | 2019-08-28T07:51:48 | 2019-08-28T07:51:48 | 204,877,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 245 | #!/home/pranav/SchoolGraphQL/env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"pranavbathla1@gmail.com"
] | pranavbathla1@gmail.com | |
68394ba817eaabcbb9918db8851e73b9fde41b68 | 486febdf01d6f6eca81cf2cb8f9c7480145e2e82 | /geode/__init__.py | 99782170cdf80f64c79e1d1baf18e3a769b9a99b | [
"MIT"
] | permissive | daimeng/py-geode | 1dd5039c1c97a92d5187f235c9371b833f8a6547 | a4146804e4def71a6b430e5a16f6e0b1a65deefe | refs/heads/master | 2020-04-06T16:29:31.004294 | 2019-04-15T18:05:10 | 2019-04-15T18:05:10 | 157,621,866 | 0 | 0 | MIT | 2019-04-15T18:04:40 | 2018-11-14T22:53:16 | Python | UTF-8 | Python | false | false | 187 | py | from . import models
from . import utils
from . import dist_metrics
from . import google
# conversion
METERS_PER_MILE = 1609.344
__all__ = ['models', 'utils', 'dist_metrics', 'google']
| [
"daimengchen@gmail.com"
] | daimengchen@gmail.com |
0ed7700e62213a8406e105d031cdd3eb4e902c2e | a83cfb2b835e1ababaf23c79a632bf29e9158b2a | /HangMan.py | 8cfe4b31e5edde2aa12d0a7cd0ab896ba8fe798c | [] | no_license | ClayHurford/HomeArcade | fb432b85eed671a1e2ed92ee0ea99a06782d9549 | ce1723a2e6c0f7dd39e987aa761575c26137ebfe | refs/heads/master | 2020-06-18T09:18:21.566920 | 2019-09-05T18:57:21 | 2019-09-05T18:57:21 | 196,249,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,267 | py | import random_words
from easygui import passwordbox
import os
# global pixel art for the game
strikes_0 = """
____________
| |
| |
|
|
|
... | [
"noreply@github.com"
] | noreply@github.com |
273fd9f145e716e3be92436742505363a1f97b3e | a6e812e138640e63ccf25bc795d08cea584031e8 | /Codeforces/381/A.py | a56be37e923308335c6c7e716b4f91442338b30a | [] | no_license | abhigupta4/Competitive-Coding | b80de4cb5d5cf0cf14266b2d05f9434348f51a9e | 5ec0209f62a7ee38cb394d1a00dc8f2582ff09be | refs/heads/master | 2021-01-17T06:54:12.707692 | 2020-12-10T18:00:17 | 2020-12-10T18:00:17 | 49,972,984 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | def ii():
return map(int,raw_input().split())
n,a,b,c = ii()
if n%4 == 0:
print 0
elif n%4 == 1:
print min(c,3*a,b+a)
elif n%4 == 2:
print min(2*a,b,2*c)
else:
print min(a,b+c,3*c) | [
"abhinavgupta6245@gmail.com"
] | abhinavgupta6245@gmail.com |
1f782349391f9b5a8874a516580a48d3fa94526d | 0a6728d8a872e35eb88e04e01d613e1cafac38b7 | /sortCriteria.py | bb57401b103c126b1b8f7f1b2582faa65c255919 | [] | no_license | kojoidrissa/pycascades_2018 | c37cffc37af360b6c99c6704bcc34fd6ce6e8e87 | 883cb01f3d5328c07cf03441ecdda9e698731408 | refs/heads/master | 2021-09-05T05:41:54.192229 | 2018-01-24T14:17:04 | 2018-01-24T14:17:04 | 114,677,426 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | def sort_criteria(header_row):
'''
tuple --> tuple
takes in a tuple (in THIS case, in the form of the header row of an OpenPyXL worksheet object)
returns a tuple of indexes to be used as keys by itemgetter for sorting criteria.
'''
sort_list = []
criteria = ('division', 'cc', 'employee_nam... | [
"kojo.idrissa@gmail.com"
] | kojo.idrissa@gmail.com |
52708a2def8f83030190cfe1a2f1ea40d42fd5c6 | 0b8439acb75f41f1a97fc9e876a17e701d958685 | /uma/login/urls.py | db17d0fcd4aab5a05fc8069e2b11f06154aa7062 | [] | no_license | kim-jaun/mac_django_uma | 756a22aea614bd09ff91ffecf17262d1c44eebaf | 41e4659e1ad1ab167fc8dda522a1827320b48d58 | refs/heads/main | 2023-07-07T00:40:09.468458 | 2021-08-10T10:29:03 | 2021-08-10T10:29:03 | 383,154,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | from django.urls import path
from . import views
app_name = 'login'
urlpatterns = [
path('', views.index, name='index'),
path('<int:question_id>/', views.detail, name='detail'),
path('answer/create/<int:question_id>/', views.answer_create, name='answer_create'),
]
| [
"67224239+kim-jaun@users.noreply.github.com"
] | 67224239+kim-jaun@users.noreply.github.com |
ae7b77baced08878c051998a52c52e932ab8b76b | 1aebc65860ed3e45390c83f57d4345a2fd0c1b0b | /tests/unit/customizations/test_assumerole.py | ad6fdddbaa34bc044f11a3f63b1955468040bc6c | [
"Apache-2.0"
] | permissive | andhit-r/aws-cli | a1f572eb1328e4c5826d94d17a46e1e74399a3c8 | d1737a6031b104efb814e7446fe98640135afadd | refs/heads/develop | 2021-01-24T14:18:37.612517 | 2015-10-23T20:18:54 | 2015-10-23T20:18:54 | 44,942,247 | 0 | 1 | null | 2015-10-26T02:56:02 | 2015-10-26T02:56:02 | null | UTF-8 | Python | false | false | 16,206 | py | # Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You
# may not use this file except in compliance with the License. A copy of
# the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file acc... | [
"js@jamesls.com"
] | js@jamesls.com |
67258e9e5169f7b376d01cce671e000f762520af | 98c0629c0b48a9264f2685e7d4c6dea88e29d79d | /rdklib/util/service.py | a3e44afe8bbfc2c230a01e1ba2a8639c84f5c6d5 | [
"Apache-2.0"
] | permissive | VijayaD/aws-config-rdklib | 3bed742b8c05bab91c3b621d7cbc4d96852db923 | ff454ba6e2874c5b44f04d12f309133ead5c05cc | refs/heads/master | 2021-03-06T18:54:59.022835 | 2020-03-09T21:38:58 | 2020-03-09T21:38:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,720 | py | import json
import botocore
# Helper function used to validate input
def check_defined(reference, reference_name):
if not reference:
raise Exception('Error: ' + reference_name + ' is not defined.')
return reference
# Check whether the resource has been deleted. If it has, then the evaluation is unnece... | [
"chauyu@38f9d34e87fa.ant.amazon.com"
] | chauyu@38f9d34e87fa.ant.amazon.com |
66e88d1bf245fd2f3a6f815c51964e62978bff61 | b6f5b6af0c6d398b29f4e16d88ffe4d7ca698b7a | /maya/python/examples/dictionary_tutorial_script.py | 176464fba034c8de3d1528418fd22979213dde8f | [] | no_license | ozanserim/ozanserim.github.io | ab0846b14a0f6f193c12c18419ac57dfecc195f6 | 58029e503a693b7ba252a3c81e2c5d7768842e3d | refs/heads/master | 2020-05-21T04:23:36.551132 | 2017-01-20T02:09:37 | 2017-01-20T02:09:37 | 52,234,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,213 | py | from maya import cmds
import json
sel = cmds.ls(sl = 1)
meshes =[]
for s in sel :
shape = cmds.listRelatives(s , shapes = 1 )
if shape :
if cmds.nodeType(shape[0]) == "mesh" :
meshes.append(s )
meshData = {}
for m in meshes :
pos = cmds.xform ( m , q =1 , ws = 1 , t = ... | [
"ozan@Ozans-Yosemite.hf"
] | ozan@Ozans-Yosemite.hf |
f6a8b389c86c089c2df2a64a5e12a86169611045 | 66783787ec10db6c30eb35b6c4054298e8e34eff | /template_with_filters.py | c04c4211565b6575bb37f8c62f070474cdda6c02 | [] | no_license | CalinGheorghiu/thagora | 3e0a55864d5d2374e9f4d57e81a922e320f3b5f5 | febd62471c2d5d8b78bf6387fce5f11b3109a1a7 | refs/heads/main | 2023-07-15T17:43:38.338945 | 2021-08-27T09:22:42 | 2021-08-27T09:22:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | import streamlit as st
import pandas as pd
def filters(operator_id,leather_type,pace):
st.multiselect("Operators",operator_id)
st.multiselect("Leather Type",leather_type)
st.selectbox("Pace",pace) | [
"58596544+CalinGheorghiu@users.noreply.github.com"
] | 58596544+CalinGheorghiu@users.noreply.github.com |
03e574fd5b45e7abd5ceb9a9e57d9c1f1c975c40 | 0b84a476a49ad51f10a8c22fa2292a4e3195d97d | /announcements/departments/migrations/0001_initial.py | 8bb6fb900ce4a6b1e6b4c6aa05331fc20b39bba3 | [] | no_license | prashantthumar75/new_project | 49d3721b1fff7870583144c2dcbfdd55e8c4231d | 45cc733af2ff851b786264586f1366a24bc6c475 | refs/heads/main | 2023-02-13T11:02:10.391984 | 2020-12-30T11:23:46 | 2020-12-30T11:23:46 | 325,475,212 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,023 | py | # Generated by Django 3.1.2 on 2020-11-13 04:41
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Department',
fields=[
('id'... | [
"noreply@github.com"
] | noreply@github.com |
9d707755487a66dea36d2f8b6b39e1388880bad7 | 49351d39e2f2d4778969ed794a612e8564bbbc57 | /config/logConfig.py | c60b3793511c20c4d7f0b74f3c03d311f6b5db42 | [] | no_license | 1418500295/py_appium | 443b8188bef546408d73a496e5e7b62788c4f7bf | 4057ee191d8d049e392cd724c116dfc94cc65865 | refs/heads/master | 2022-12-14T11:43:12.847321 | 2020-08-05T11:42:55 | 2020-08-05T11:42:55 | 246,295,024 | 0 | 0 | null | 2022-12-08T03:46:31 | 2020-03-10T12:28:21 | HTML | UTF-8 | Python | false | false | 1,016 | py | import logging
import sys
class LogConfig():
@staticmethod
def get_log():
# 创建一个日志器logger并设置其日志级别为DEBUG
logger = logging.getLogger("test_logger")
logger.setLevel(logging.DEBUG)
# 将结果写入日志文件
handler = logging.FileHandler("../report/app.log", encoding="utf-8")
# 创... | [
"daine0513@gmail.com"
] | daine0513@gmail.com |
4060361d56fabf2289f5fa2ad768cbe5b277c2eb | d053d7f98c36bc0d0378dcbb02d6686ddf37b2da | /yabgp/agent/__init__.py | 99d77ca9c1f41738f6ed80b147d48327fa595a4c | [
"Apache-2.0"
] | permissive | c0ns0le/yabgp | 51f79006735462a59115b775664d1f94a2399c85 | 19c6462f313dab5548179bc6009375bbc039d0f0 | refs/heads/master | 2021-01-17T21:22:52.368843 | 2016-02-22T02:08:34 | 2016-02-22T02:08:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,475 | py | # Copyright 2015 Cisco Systems, Inc.
# All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"xiaoquwl@gmail.com"
] | xiaoquwl@gmail.com |
f3c51e7c1858693872a0c46e5562b1789c1c7b05 | 510de97bf332d4a14537e91d3330f92a98f07b1e | /conf/__init__.py | 5586ff0d85b45ca6110cfb1cdc719942730fe609 | [] | no_license | wangzihan20/csdn_article_show | f63b9109f227c46da93daf91d64b9755a19491c8 | d1cabd6672e83ea785f07624271b6acd4c0f7fe6 | refs/heads/master | 2023-04-02T11:39:43.391594 | 2018-12-05T07:46:36 | 2018-12-05T07:46:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | from .system import *
from .constant import *
from .meta import * | [
"jefung865424525@gmail.com"
] | jefung865424525@gmail.com |
e9d70918c1fdce8aef20f2cd88504986be609c33 | 127138154d685c09d814b515df3249f8af1a90cd | /features.py | 799451a2468e712b4091c3aeaa8f6184173d3943 | [] | no_license | eugenern/chat-metadata-parser | be1eabdd219d1496da9336810341b5c7dcfc4017 | b8effbdeb9ee768a9cb30bfcfaacfbb621030105 | refs/heads/master | 2020-04-07T18:37:59.955670 | 2018-12-13T16:12:56 | 2018-12-13T16:12:56 | 158,617,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,934 | py | """
A collection of types of features that a chat message may contain and
the formats in which they should be described by the parser
"""
#!/usr/bin/env python3
# -------
# imports
# -------
import re
from urllib.request import urlopen
from html.parser import HTMLParser
# -----------------
# class definitions
# ---... | [
"eugenen@utexas.edu"
] | eugenen@utexas.edu |
65f5706a9eb41068275f838934c69e7567bbdbbe | 1656b53e186d100590b538f1686d713b9c7c0497 | /gpiodev/lcd7.py | 81df7a86082cc46d06ad5a2637dc1791cd5b8b8e | [
"Apache-2.0"
] | permissive | kevindiffily/python-gpiodev | deaef8397fcbce44e4478abf0e7df80853ee57ce | 8d495319a21dd2ce9365bd10aa7935e231f747b4 | refs/heads/master | 2022-03-20T19:56:30.885615 | 2019-12-24T20:22:40 | 2019-12-24T20:22:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,445 | py | from gpiodev import GPIOHandle
import asyncio
'''
LCD7 is a device with four 7-segment LED digits to show. 7 segments
are not enough to show arbitraty letters, but it can be used as clocks
or counter.
Though there are 4x7 = 28 LED segments to switch on and off, it uses
only 12 GPIO pins. 4 pins are used to choose th... | [
"alpha@bookwar.info"
] | alpha@bookwar.info |
ccd8bdd1a31d5c29a7fff3463798714134346c55 | 2159ac47af92b61478146fe88bbced5deebee824 | /flaskr/__init__.py | 8978641d0f32631e6bdbba2c525074b03474fd3f | [] | no_license | HenryJiang97/Swagger-Backend | 4d55563ec031d79946aa614d4de746ab8662e8a8 | 9cbd76c838a6864d73875c390f0808ae082c9a85 | refs/heads/master | 2023-05-19T20:42:41.829115 | 2021-06-11T07:52:06 | 2021-06-11T07:52:06 | 372,340,953 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,524 | py | import psycopg2
from psycopg2.extras import Json
from flask import Flask
from flask_cors import CORS
from flask import request
from flask import abort
from openapi_spec_validator import validate_v2_spec
from openapi_spec_validator import validate_v3_spec
from flaskr.config.config import POSTGRESQL_URI, TABLENAME
from f... | [
"hanhuaj@Hanhuas-MacBook-Pro.local"
] | hanhuaj@Hanhuas-MacBook-Pro.local |
b5a0fe987cfcdc137508f9bedd0d8afc1638d5d5 | 65047cc2643f5140d41896645a0e6fef786780f8 | /python/paddle/nn/functional/common.py | fe41cb6e64c34f34add3c0652ab5b30efe958161 | [
"Apache-2.0"
] | permissive | randytli/Paddle | 4bb0761a760a4beef0212d04633bd12d08cb1164 | 75dadd586996c71cf5b088b6141b94705561773f | refs/heads/develop | 2022-12-12T16:11:02.203724 | 2020-08-11T05:20:18 | 2020-08-11T05:20:18 | 265,492,144 | 1 | 0 | Apache-2.0 | 2020-08-11T05:20:19 | 2020-05-20T07:55:01 | C++ | UTF-8 | Python | false | false | 19,384 | py | # Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by app... | [
"noreply@github.com"
] | noreply@github.com |
405e62a7d7772a8670efe73c11d287174070f932 | 653c8b4f46c272435d4a1a0c82be587ddb4c03fd | /models/models.py | a05d4e970e64c395f53e367e156311867aa8357e | [] | no_license | HighlyAuditory/Aug-Soft-Gated | f8809c5dffbd66258b752d71301fe1b4f3424c90 | 6e5e8270d452c907a1917dc5871ca964276d44d8 | refs/heads/master | 2022-03-29T05:27:00.866378 | 2019-12-21T19:28:06 | 2019-12-21T19:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,232 | py | ### Copyright (C) 2017 NVIDIA Corporation. All rights reserved.
### Licensed under the CC BY-NC-SA 4.0 license (https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode).
import torch
import pdb
def create_model(opt, name):
if opt.stage == 1:
from .stage_I_model import Stage_I_Model
mod... | [
"joysiww@gmail.com"
] | joysiww@gmail.com |
a84c0a3b44f92e5f5930521c024a18253600e7ef | 84dca0ae38b4095e362cf05f0a9124a4fb63653c | /main.py | 4c7a49065aaccfcbd698df0dbbfc3f074f71c8a5 | [
"MIT"
] | permissive | saputhebeast/rock-paper-scissor | b546edaf9980d1098c49b7ba780c62b7cf82861f | 16978e7eda1f6b89013a2b18eeb435c92859d87b | refs/heads/main | 2023-04-26T16:11:20.407450 | 2021-05-23T21:30:42 | 2021-05-23T21:30:42 | 369,811,708 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # importing required modules
import packages.connect
import packages.rules
import packages.game
import packages.clear
# defining main function to call the other modules
def main():
# check connectivity with the SQL server
packages.connect.connectivity()
# clearing the existing values in the d... | [
"noreply@github.com"
] | noreply@github.com |
10e2e3f6e064c3055cab62cf039a8a93fe778d45 | 2265cf098f6f53cad67ecd2097b283e5bc5f9135 | /level001.py | 2567e6c53805c538ff12eaea43e885796f2f976e | [] | no_license | wesleyhitson/pythonchallenge | 7f777207bf3a04757535819b28b1a71fed9d9456 | 2794a9ad8a044e8d818a112ca613bd33d3ca4c93 | refs/heads/master | 2021-04-28T20:31:17.773433 | 2018-03-09T03:13:30 | 2018-03-09T03:13:30 | 121,927,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # Quick and dirty
def shift(letters):
l = ""
for letter in letters:
l += chr(ord(letter) + 2)
return l
s = """g fmnc wms bgblr rpylqjyrc gr zw fylb. rfyrq ufyr amknsrcpq ypc dmp. bmgle gr gl zw fylb gq glcddgagclr ylb rfyr'q ufw rfgq rcvr gq qm jmle. sqgle qrpgle.kyicrpylq() gq pcamkkclbcb. lmu yn... | [
"wesleyhitson@users.noreply.github.com"
] | wesleyhitson@users.noreply.github.com |
ec27a29626174e37914d48b357b7324a2522650f | b0c88350eadcbbeab3d9ebb5ea3a2efccc7d95e9 | /classicalml/regression_targetscaling/cveval_regression_robseqprior.py | a8aea8746a7797b9994c97aa645a788a3e9514d0 | [] | no_license | ysuter/brats20-survivalprediction | 853d821c61b91e35f7bf23a1ca1f7295b1ef3ee1 | 388053b789ccf388bc9a29bf94a672d2da973a5c | refs/heads/main | 2023-04-16T15:48:35.486293 | 2021-04-30T17:11:24 | 2021-04-30T17:11:24 | 316,608,244 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,515 | py | #!/home/yannick/anaconda3/envs/py36/bin/python
import json
import numpy as np
import os
import pandas as pd
from skfeature.function.information_theoretical_based import CIFE, JMI, DISR, MIM, CMIM, ICAP, MRMR, MIFS
from skfeature.function.similarity_based import reliefF, fisher_score
from skfeature.function.statistica... | [
"noreply@github.com"
] | noreply@github.com |
88f1cb7bba76528405b6fda468d926c125325717 | 4af620bdc5db93fdfa4e799a6c508ae855ca4ea8 | /utils/custom_transfrom.py | cadb91c754af23bea44ad7fd43a04efe9d647744 | [
"MIT"
] | permissive | wonbeomjang/mobile-hair-segmentation-pytorch | 9f3517543d73822f24bdafb2ceefa560bac82634 | b5a4ce20f2fa7156cde6da750a12119378cfc262 | refs/heads/master | 2023-02-18T16:39:43.143214 | 2023-02-16T08:19:02 | 2023-02-16T08:19:02 | 163,425,814 | 128 | 22 | MIT | 2022-07-11T15:27:54 | 2018-12-28T15:45:25 | Python | UTF-8 | Python | false | false | 476 | py | class UnNormalize(object):
def __init__(self, mean, std):
self.mean = mean
self.std = std
def __call__(self, tensor):
"""
Args:
tensor (Tensor): Tensor image of size (C, H, W) to be normalized.
Returns:
Tensor: Normalized image.
"""
... | [
"jtiger958@gmail.com"
] | jtiger958@gmail.com |
12a2cdfeaa1b1f57b0c8d537ba3e07c65b213a15 | 4e9f4d601d8bcc4251f2bb41b28df2b37363c62c | /YS's Folder/chatbot_app/added_diagnosis/ChatBot_Main/settings.py | 1f2222e6e6508b2005f6ef4d90b114dbf7b467ec | [] | no_license | nus-isy5001-wym/covid19-bot | ab516f22d8e5c8feca3f7bcb5a9267df42dc38d4 | 09e46342822d6edfc4df55d68f7d6416c1fb1a9d | refs/heads/master | 2023-08-29T13:54:47.286798 | 2020-05-05T18:19:03 | 2020-05-05T18:19:03 | 243,014,948 | 0 | 1 | null | 2023-07-23T06:47:44 | 2020-02-25T14:07:06 | CSS | UTF-8 | Python | false | false | 3,470 | py | """
Django settings for ChatBot_Main project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import ... | [
"tyseng1102@gmail.com"
] | tyseng1102@gmail.com |
43a7a79427c0e54b43aa70fb1a07acbca4a72979 | be286ce17dd6e50c23a1d3cf3629f225055b0a2d | /xxh/resnet101.py | 237bd966d0a70b37f96732828f27b6467fbfae42 | [] | no_license | QQJayden/kabuda | fa76c28bc631284d08d26a30f239007b68bc4255 | 3540f7ae5be75504d05e9086f7b14633bc6b80b3 | refs/heads/master | 2020-03-23T06:43:33.251109 | 2018-07-28T14:18:50 | 2018-07-28T14:18:50 | 141,225,665 | 1 | 1 | null | 2018-07-17T05:41:49 | 2018-07-17T03:22:44 | null | UTF-8 | Python | false | false | 947 | py | import mxnet
import pdb
class resnet101_100cls(mxnet.gluon.HybridBlock):
def __init__(self, prob_drop = 0.3, **kwargs):
super(resnet101_100cls, self).__init__(**kwargs)
resnet101_v1 = mxnet.gluon.model_zoo.vision.resnet101_v1(\
pretrained = True)
self.features = resn... | [
"xuxiaohui4@sjtu.edu.cn"
] | xuxiaohui4@sjtu.edu.cn |
3bee3ee39a89adda39b735dc20cd76caccd06e32 | cc40e9e3c2c214b0e82f41b4b1d66ea0f2731c6d | /day06/__init__.py | f0a72b89822a8f1d5c5020871aa6180c94d5a4d1 | [] | no_license | yitsushi/advent-of-code-2018 | 813e0c4c69c9ea3b7d63503f1784769170fb601a | 049fd86116c75b513471b0806ef25a2ee9ad5424 | refs/heads/master | 2020-04-09T08:08:35.601626 | 2018-12-25T15:43:50 | 2018-12-25T15:43:50 | 160,183,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | from collections import Counter
from advent_of_code import BaseSolution, Vector2D
from .world_map import WorldMap
class Solution(BaseSolution):
limit: int
full_map: WorldMap
def setup(self):
(input_file, self.limit) = self.parameters(
(str, int),
('Input file', 'Max Range'... | [
"balazs.nadasdi@cheppers.com"
] | balazs.nadasdi@cheppers.com |
0779321b332351472496adff9cadedc985058f3b | e42813df822ed40d4f4d3004732da7c448cd0083 | /getting_sift_coord.py | ee1f5de6adf41fee644f93b267d97ea6519b58a9 | [] | no_license | JaredZena/Stereocamera_python_opencv | 1470e8d4662dbec8d7ac710920ca489368d3961f | cb6a8116ecba710778ac106bd25f0bb994985815 | refs/heads/master | 2020-04-29T03:52:50.366592 | 2019-08-11T00:45:50 | 2019-08-11T00:45:50 | 175,826,924 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,650 | py | # getting_sift_coord.py
#!/usr/bin/python3
# 2017.10.06 22:36:44 CST
# 2017.10.06 23:18:25 CST
"""
Environment:
OpenCV 3.3 + Python 3.5
Aims:
(1) Detect sift keypoints and compute descriptors.
(2) Use flannmatcher to match descriptors.
(3) Do ratio test and output the matched pairs coordinates, draw some pairs i... | [
"jared.zenahernandez@wur.nl"
] | jared.zenahernandez@wur.nl |
4df1e4e6de2f5628b798a3b49ea42c1efec53c72 | b45988e3fde27e9ebf717e14ddfab4ddf8559e5c | /pygamma_n/util/convert.py | 072684ded564ab855ea5f52a35f863139890f616 | [] | no_license | garrettdreyfus/py-gamma-n | bfb98180b6d6e34c7a2811b4e333fd2bf276ddb8 | 2d33fbc27cc76c55723a9957183ac9d70a28b2a6 | refs/heads/master | 2021-03-03T14:08:48.662630 | 2020-03-31T02:45:10 | 2020-03-31T02:45:10 | 245,965,782 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | import gsw
import h5py
import xarray as xr
import numpy as np
def convertToDictionary(refdata):
## gamma_n goes lon, lat, pres
data = {}
data["lats"] = np.asarray(refdata["lat_ref"])
data["lons"] = np.asarray(refdata["long_ref"])
p_ref = np.empty((91,45,33))
for i in range(p_ref.shape[0]):
... | [
"garrettdreyfus@gmail.comm"
] | garrettdreyfus@gmail.comm |
5eacb8622f507ddfb3d83ff89f5001b3f5fa21e3 | 634367d6a94d9bce231a8c29cf9713ebfc4b1de7 | /covid_dashboard/views/get_district_stats_on_given_date/api_wrapper.py | 83bfdd8ad95f836f4c9f6a6c05a99e3b45ee01c2 | [] | no_license | saikiranravupalli/covid_dashboard | 5a48c97597983ada36a3bf131edf5ca15f1dedec | 954dd02819fb8f6776fa2828e8971bd55efa657c | refs/heads/master | 2022-11-08T10:11:27.836507 | 2020-06-30T09:00:27 | 2020-06-30T09:00:27 | 269,610,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,399 | py | import json
from django.http import HttpResponse
from django_swagger_utils.drf_server.utils.decorator.interface_decorator \
import validate_decorator
from .validator_class import ValidatorClass
from covid_dashboard.interactors\
.get_day_wise_district_details_on_given_date_interactor import \
DistrictSta... | [
"saikiranravupalli@gmail.com"
] | saikiranravupalli@gmail.com |
f9f88fd4f49fb67f6a745582f7176375bc8e1264 | ef62ff135aef2471150900b2eef71ea624256dff | /backend/exam/utils/enum.py | 097a3f9faba4ab615a102284de1738d19a030590 | [
"MIT"
] | permissive | gzxjm2000/python-django-online-exam | 8ad01d660ad41b1b55a3ca8e8d92c4af90242f78 | c1ebf92cc65efc723c0cf9643e5928d6b39d4ca4 | refs/heads/master | 2023-07-16T15:58:10.557629 | 2021-08-25T00:44:53 | 2021-08-25T00:44:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | ADMIN = 1 # 管理员
TEACHER = 2 # 教师
STUDENT = 3 # 学生
RADIO = 1 # 单选题
CHECK = 2 # 多选题
JUDGE = 3 # 判断题 | [
"beixia1989@163.com"
] | beixia1989@163.com |
c5bc15e0286b71ee00366be67240c39f3403f225 | 5bcbd788faf57bc867aa365096ba9f9db51f64d6 | /WebDemo/WebDemo/urls.py | 553acd20e09daa0fbb8c78ddda79fcb9b2d31b9b | [] | no_license | sunren123/Python | 8c2fbf6a1552cd6c3fb80048e2fd6718e9ca85e0 | ee80fc805d2517e1d69d3d1d55edbd370bf8fd9b | refs/heads/master | 2020-04-06T16:27:21.471948 | 2018-12-10T13:07:16 | 2018-12-10T13:13:30 | 157,620,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 169 | py |
from django.conf.urls import url
from Web import views
urlpatterns = [
url(r'^set_cookie$', views.set_cookie),
url(r'^get_cookie$', views.get_cookie),
]
| [
"462227979@qq.com"
] | 462227979@qq.com |
437a4999b7e835825690e30d99c209a83293433b | 4fc032a2b537253b49a24273e1f569492f2a514d | /story/story/asgi.py | f0f37b71534ea00265d7e918519615e5b921c875 | [] | no_license | Mih-M/Story---Django-project | 827f9e112d068e9f5564ce120b3944ecd4112fb3 | ff9b8eff424b1372c672e9aaa1c4eb82967ce126 | refs/heads/main | 2023-03-15T08:03:19.172197 | 2021-03-19T19:27:43 | 2021-03-19T19:27:43 | 315,766,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | """
ASGI config for story 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_SETTING... | [
"helly_2004@abv.bg"
] | helly_2004@abv.bg |
f8a9305be4a214e3bee33a98b66a895b35d72e5d | 729374c26c383157edb9a319845502d4a839905d | /users/forms.py | 5b66ab78cc783a1ef9b8545aa92cfd8432cfbaf2 | [] | no_license | EvgenKham/marketplace | b90caceb872475a6f5e3ed9f98c56f252512ccad | 932dce35be7a6cb1322cbba55b4ad3ea8009e594 | refs/heads/master | 2020-04-26T04:17:24.344814 | 2019-03-12T11:41:44 | 2019-03-12T11:41:44 | 173,296,966 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,758 | py | from django import forms
from django.contrib.auth.models import User
from users.models import Profile
class UserRegisterForm(forms.ModelForm):
password_check = forms.CharField(widget=forms.PasswordInput)
class Meta:
model = User
fields = ['username', 'password', 'password_check', 'email']
... | [
"hamitcevich@gmail.com"
] | hamitcevich@gmail.com |
ffeb209b1565ce73cfac38a60e1c7d9565ef3d59 | cc123915c627d2bc596c53250dc01b47bb20144d | /plot_focal_mechanism_p3.py | f7280fcaf0248fa765c3ac2322a7218ea1642892 | [] | no_license | CornichonCosmique/plot-focal-mechanism | 16df612ec8db576dfa6fd50696b63ceba066a02c | 551b8ef5a6f90a6388aa313f3173ae8dcdd9151e | refs/heads/master | 2023-07-20T07:12:12.498879 | 2023-07-06T10:41:05 | 2023-07-06T10:41:05 | 73,704,407 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,120 | py | # -*- coding:Utf-8 -*-
import tkinter as tk
#import tkFileDialog
from tkinter import filedialog
#import tkMessageBox
from tkinter import messagebox
import os, os.path
import sys
import matplotlib.pyplot as plt
import csv
from obspy.imaging.beachball import beachball
class drawTheseBeachballs(tk.Frame):
def __init__(s... | [
"noreply@github.com"
] | noreply@github.com |
233a0d2700c6628ee75a7348a23758c2d20f353f | b684762806ab13d220a7e9cb0b89663ca32d6bd9 | /easy/weighted_uniform_string.py | 2fd477b3057852aada16258338da61cd4b69cec7 | [
"Apache-2.0"
] | permissive | YANG007SUN/hackerrank_challenge | 950eb40cfbc89c53ceed2a8cd34a28833cf3b4dc | 0c055c9e5129f1625fe86174435a89c141d256d6 | refs/heads/main | 2023-02-24T22:33:54.519864 | 2021-01-18T21:28:11 | 2021-01-18T21:28:11 | 317,369,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py |
# https://www.hackerrank.com/challenges/weighted-uniform-string/problem
# ============================================================
# search value in dict is faster than searching value in list
# ============================================================
def weightedUniformStrings(s, queries):
res = {}
... | [
"yangsun@yangs-MacBook-Pro.local"
] | yangsun@yangs-MacBook-Pro.local |
88fdfd7865c6d9ba713535f1b8f1f9e7e1ba41a4 | 184880a91b1dda18f643a010fe6750347638d4cb | /acceptance_tests/venv/lib/python3.7/site-packages/pip-10.0.1-py3.7.egg/pip/_vendor/distlib/scripts.py | b9c8edaf90e176584a28c75a2d8da32b5aa71de5 | [] | no_license | rexdjw/cs361 | 60880d5d250f74ad3610776b5eeea7e9482ca6c1 | 9470af3cff1e6b673ecdf6f3443a3858c8765f13 | refs/heads/master | 2022-01-06T04:51:25.939354 | 2019-05-11T23:32:56 | 2019-05-11T23:32:56 | 169,284,638 | 0 | 3 | null | 2019-05-11T18:57:38 | 2019-02-05T17:48:02 | Python | UTF-8 | Python | false | false | 17,001 | py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2013-2015 Vinay Sajip.
# Licensed to the Python Software Foundation under a contributor agreement.
# See LICENSE.txt and CONTRIBUTORS.txt.
#
from io import BytesIO
import logging
import os
import re
import struct
import sys
from .compat import sysconfig, detect_en... | [
"weber.rex@gmail.com"
] | weber.rex@gmail.com |
6e9393d3d17cfc7054199e6f3782dfc6383250df | 11052dcb2ee70b601c521ba40685fd8e03c86a45 | /apps/oinkerprofile/models.py | 3fcf6b96b867f697ad2cba296ea083b482cb2fd7 | [] | no_license | naistangz/twitter-clone | 53757959de8f3f063cd1fbbc9bc72c024beee22f | 56f44610a729cd040857786f481c8b7f94397a3d | refs/heads/master | 2023-04-13T14:16:44.357440 | 2021-04-25T08:18:42 | 2021-04-25T08:18:42 | 354,792,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
class OinkerProfile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
follows = models.ManyToManyField(
'self', related_name='followed_by', symmetrical=False)
avatar = mode... | [
"a6anaistang@hotmail.co.uk"
] | a6anaistang@hotmail.co.uk |
66f16da61784958fdb65c0dd15dc6399b8cc16c9 | d8e45e20a67bf685e8bcb9ac43585843c4578f93 | /A_star_eight_puzzle/eight_puzzle_alt2.py | 606814606bcddc4a01e64bf9dbced87d8a582b33 | [] | no_license | charboltron/artificial_intelligence | 428cf17cf3e076570e67bf4fe2ee1aa211f09a36 | da14e270b16f8e4637f2bc5a68dd026c3b840fa7 | refs/heads/master | 2022-04-14T12:52:04.366273 | 2020-03-15T08:46:07 | 2020-03-15T08:46:07 | 234,673,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,987 | py | import sys
import random
import numpy as np
from queue import LifoQueue
# from playsound import playsound as ps
bst_fst_sucStack_h1 = LifoQueue()
bst_fst_sucStack_h2 = LifoQueue()
bst_fst_sucStack_h3 = LifoQueue()
arg_err_msg = 'Sorry, your input puzzle wasn\'t formatted correcty. It should be a permutation of the f... | [
"boltch@pdx.edu"
] | boltch@pdx.edu |
672381aea32fa85dc887866846e5b282e050bb03 | 8c8dc00f2858c1a8a9c5db9350d7755f1c6daef4 | /Regression_Classification_Jingshi/sentistrength.py | 9be20ed33bf01359d474958f1e7b2308134d7b14 | [] | no_license | arian1123/TwitterEmotionIntensity | d6feedc2c917994403a3150116353090fdb857db | b9d77c7a2f1a4842e94d9201769d51257bd1a859 | refs/heads/master | 2021-09-04T07:27:46.495776 | 2018-01-17T02:02:43 | 2018-01-17T02:02:43 | 108,338,513 | 0 | 2 | null | 2017-11-10T14:29:29 | 2017-10-25T23:46:24 | Python | UTF-8 | Python | false | false | 1,843 | py | import numpy as np
from nltk.tokenize import TweetTokenizer
tokenizer = TweetTokenizer()
# Files
booster = open("data/Lexicons/SentiStrength/BoosterWordList.txt").readlines()
emoticon_table = open("data/Lexicons/SentiStrength/EmoticonLookupTable.txt").readlines()
emotion_table = open("data/Lexicons/SentiStrength/Emot... | [
"js4479@georgetown.edu"
] | js4479@georgetown.edu |
1d0c5a63ebb091013f41650238f7244a2189d919 | a9243f735f6bb113b18aa939898a97725c358a6d | /0.15/_downloads/plot_time_frequency_erds.py | ade2c6289d640ea78caded44665a8d296b989398 | [] | permissive | massich/mne-tools.github.io | 9eaf5edccb4c35831400b03278bb8c2321774ef2 | 95650593ba0eca4ff8257ebcbdf05731038d8d4e | refs/heads/master | 2020-04-07T08:55:46.850530 | 2019-09-24T12:26:02 | 2019-09-24T12:26:02 | 158,233,630 | 0 | 0 | BSD-3-Clause | 2018-11-19T14:06:16 | 2018-11-19T14:06:16 | null | UTF-8 | Python | false | false | 5,229 | py | """
===============================
Compute and visualize ERDS maps
===============================
This example calculates and displays ERDS maps of event-related EEG data. ERDS
(sometimes also written as ERD/ERS) is short for event-related
desynchronization (ERD) and event-related synchronization (ERS) [1]_.
Concept... | [
"larson.eric.d@gmail.com"
] | larson.eric.d@gmail.com |
3b0a08ae0e438f35829ce59709fb66a10370fac7 | 4b9784d1d05873169578bb7f91025004e719451c | /LeetCodeAllProblem/LeetCodeAllProblem.py | 362b06e412eb6738620710710cb80f685b94ae66 | [] | no_license | yonghappy/Python--Learn | adb1e8cced5a1c375707efab7e9ef42710eafb78 | a3dfa82208c38e97a593adad5f996f8c1e3f1e67 | refs/heads/master | 2020-03-28T16:58:05.727040 | 2018-09-14T06:37:07 | 2018-09-14T06:37:07 | 148,745,837 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,890 | py | #! /usr/bin/python
# -*- coding:UTF-8 -*-
import xlrd
import xlwt
import pymysql
class myExcel(object):
def __init__(self, excelPath):
self.path = excelPath
self.excel = xlrd.open_workbook(excelPath)
def readExcel(self):
# get sheet names
print(self.excel.sheet_names())
... | [
"yonghappyle@gmail.com"
] | yonghappyle@gmail.com |
bd5e58ca8135e7557fcbf941f878e4565a97dc1f | 3fc33139e5293941af9d39771c379618114aa4f1 | /Algorithms and Data Structures Using Python/Floyd-Warshall.py.py | 26f6dc47f2a526ce84ee46e9d5b48553eb17d526 | [] | no_license | kfraserj/nkforce | 578b18ea034d81524f50fe2bdc0d7301dd21e794 | 6ff5a593b76488f50be71c9d1de9d445cd424c4c | refs/heads/master | 2020-04-19T20:14:52.993618 | 2019-01-17T05:08:31 | 2019-01-17T05:08:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,306 | py | import traceback, turtle, math, copy
#optimize_hyperspace_routes: takes in two arguments:
# star_list is a list of Star objects (nodes), in order of index.
# jump_times is a matrix of edge weights for the graph.
#This function must use the Floyd-Warshall or Johnson's algorithm to compute
# the shortest path from... | [
"nkbartc@gmail.com"
] | nkbartc@gmail.com |
849314e4e7ede44b68f2f1d4e3ef108ff046e014 | 90462a9a2605e2c7655e7a072280a987561c73c8 | /venv/bin/isort | 13341607712068893d9cd5ad82395dbef60a9412 | [] | no_license | Benndora1/Personal-Portfolio | aa91e500f4c25f4842b387ad4b56ffca57a7b75c | 820cf5057b7ec2972a3393b78c9b5275d1a7e17f | refs/heads/master | 2022-08-25T00:22:24.413327 | 2020-05-24T00:40:08 | 2020-05-24T00:40:08 | 265,989,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | #!/home/ndora/Desktop/python-Django/rp-portfolio/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"benndora2@gmail.com"
] | benndora2@gmail.com | |
5625ab49e3d14b8d866e6dabf1c58ced467f0101 | 2af29f0c2676c57191678f1a2f0244c364f81fa1 | /tutorials/02Input/wscript | 29f11fc91df3a455ca523b490d1a500a043be453 | [
"MIT"
] | permissive | kochol/kge | 7c313c0c68242e7d9eee1f4a7dd97fd60038f63e | 9ffee7ab7f56481383d8f152cfa0434e2f9103c1 | refs/heads/master | 2020-04-26T11:28:25.158808 | 2018-06-30T07:26:07 | 2018-06-30T07:26:07 | 4,322,408 | 10 | 1 | null | 2014-05-29T20:47:11 | 2012-05-14T10:11:55 | C | UTF-8 | Python | false | false | 214 | def configure(conf):
pass
def build(bld):
# Bulid
bld.program(
source='main.cpp',
target="../../Debug/02input",
cxxflags=['-fpermissive'],
use=['Debug/kge-0.1'],
)
| [
"183.amir@gmail.com"
] | 183.amir@gmail.com | |
6690bf9a5dacfc7bafcbe1023ee73b5f95bae792 | 9912574419aa12bac4182309bd3ff2a85cc0fe43 | /myenv/lib/python3.7/site-packages/grpc/_grpcio_metadata.py | c99079b672f7923336da9c5b5a3e26a5a963ff2d | [
"MIT"
] | permissive | liv-yaa/ML_BeeHealth | ad01858a0a5651b2bda68e77ff2e60550e1f3eba | 7e0797d6faaef2b071c841e57fffe45d470aef3c | refs/heads/master | 2023-01-23T01:49:16.444685 | 2023-01-11T17:35:04 | 2023-01-11T17:35:04 | 172,980,260 | 1 | 1 | MIT | 2022-12-08T01:42:46 | 2019-02-27T19:53:28 | Python | UTF-8 | Python | false | false | 26 | py | __version__ = """1.24.3""" | [
"olivia.f.smith@gmail.com"
] | olivia.f.smith@gmail.com |
e0396694512061b0874f92b98bfce6d4ce5f1ccd | 1e8b3bb2528487622bccf35c576a6716ffbf7523 | /catwalk/helpers/__init__.py | 3a1e676bbb6bc03f497c5f808e53d46b646c5a13 | [
"CC-BY-4.0",
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | andyr0id/catwalk | 310f5e033af2ee048a23bfa540b730bc61f10e5c | 49bafe146112b519653ff3417a0974afaec124a2 | refs/heads/master | 2023-03-18T00:09:30.048255 | 2020-08-07T08:46:06 | 2020-08-07T08:46:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | ##############################################################################
#
# Copyright 2019 Leap Beyond Emerging Technologies B.V. (unless otherwise stated)
#
# 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... | [
"thomas.bird@leapbeyond.ai"
] | thomas.bird@leapbeyond.ai |
c5dd27af9004567fed4a4c508b43d1acfce35e68 | 8fcae139173f216eba1eaa01fd055e647d13fd4e | /.history/scraper_20191220154310.py | 85e5bdeab8d217043d007104d46a712f7cdf91d4 | [] | no_license | EnriqueGalindo/backend-web-scraper | 68fdea5430a0ffb69cc7fb0e0d9bcce525147e53 | 895d032f4528d88d68719838a45dae4078ebcc82 | refs/heads/master | 2020-11-27T14:02:59.989697 | 2019-12-21T19:47:34 | 2019-12-21T19:47:34 | 229,475,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,308 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Module docstring: One line description of what your program does.
There should be a blank line in between description above, and this
more detailed description. In this section you should put any caveats,
environment variable expectations, gotchas, and other notes abo... | [
"egalindo@protonmail.com"
] | egalindo@protonmail.com |
f14f3be70821efc1c4ce4f7e7b3b5f13397682d6 | 66351b473736f1f5a2632b306253e0ecd5903820 | /ai-parser/parser_api_app/serializers.py | efaed5e1a106755bbf1a710fea87b3ffbdde83ef | [] | no_license | shabashaash/open-parser | 52a9c804d98afc09bb1b2d933669ffe519cd0ca2 | 191a37ac6021cf9684be29b8d975456dfd92a252 | refs/heads/master | 2022-02-21T14:33:22.715710 | 2022-02-19T03:21:01 | 2022-02-19T03:21:01 | 251,087,294 | 0 | 0 | null | 2021-09-22T18:48:35 | 2020-03-29T17:11:14 | Python | UTF-8 | Python | false | false | 1,498 | py | from rest_framework import serializers
from django.contrib.postgres.fields import ArrayField
from .models import Tags,Labels,Zeros,ToParse
class TagsSerializer(serializers.Serializer):
data = serializers.ListField(child=serializers.FloatField())
label = serializers.IntegerField()
used = serializers.BooleanF... | [
"shabanov91@gmail.com"
] | shabanov91@gmail.com |
2aa8632903ec6cdde072b44381610054b405c75b | 53634b0a531e0ced9381e2c1c3eb709c277e6183 | /zad13.py | adea007ccd6fa02f38ed693e8a548fe3ab52e000 | [] | no_license | wiolasw/python | 21fcc0a8fdcba05478f8f363b2110336f9350870 | 52638a863ffdcbfa96eb89460692883d9ace549d | refs/heads/master | 2020-04-11T03:32:46.374247 | 2018-12-12T12:34:35 | 2018-12-12T12:34:35 | 161,481,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | import numpy as np
A = np.random.random_integers(8, size=(8,8))
B = np.random.random_integers(8, size=(8,8))
print(A)
print(B)
wiersze_A = len(A)
kolumny_A = len(A[0])
wiersze_B = len(B)
kolumny_B = len(B[0])
C = np.zeros((8, 8))
print(C)
for i in range(wiersze_A):
for j in range(kolumny_B):
for k in ra... | [
"wiola.swies@interia.pl"
] | wiola.swies@interia.pl |
5f2aa2ece69ffb2306013ac41e8447f511aa7cc2 | 7cfffa4daf213103a78dea698c9aefc40758bdb3 | /common/mail.py | 6d3ba030786222e76ab901ec59aeb4ee1bfe0002 | [] | no_license | youfeng243/wangzhuan | 78168973a329d4f3403564e931936713412af6e0 | 7342a9b2caf99aad570f5fb433136d099deab491 | refs/heads/master | 2023-08-03T15:50:44.649789 | 2020-03-07T02:46:03 | 2020-03-07T02:46:03 | 242,625,161 | 0 | 1 | null | 2023-07-23T06:36:33 | 2020-02-24T01:59:02 | Python | UTF-8 | Python | false | false | 2,377 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2020-03-02 10:46
# @Author : youfeng
# @Site :
# @File : mail.py
# @Software: PyCharm
import json
import smtplib
from email.mime.text import MIMEText
import requests
from common.configer import Configer
def send_email(mail_host, mail_user, mail_pas... | [
"youfeng@fcbox.com"
] | youfeng@fcbox.com |
febb96c94ce8da0983d61e5f72ae3c876d19bac4 | a4e1093cd868cc16cf909b8f7b84832a823a97bf | /utils/criterion.py | 1d10cbdcb99de7980901e1cde9c148fb1d57396b | [] | no_license | hermanprawiro/gan-playground | 8fb7eed54314661d9d1b908fe2cb1695eb1e3881 | bf4c270ad4696d61df0dbe2afb8c9ebafb9c2ba3 | refs/heads/master | 2020-09-06T19:43:22.685332 | 2019-12-24T10:45:12 | 2019-12-24T10:45:12 | 220,529,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | import torch
import torch.nn as nn
class GANLoss(nn.Module):
def __init__(self, gan_mode, target_real_label=1.0, target_fake_label=0.0, target_fake_G_label=1.0):
super().__init__()
self.gan_mode = gan_mode
self.register_buffer('real_label', torch.tensor(target_real_label))
self.reg... | [
"herman.prawiro@gmail.com"
] | herman.prawiro@gmail.com |
8af222e81cf5d6103c2c0982e3c6fa117906717b | f48d8f9f29d0158004c0e58b1a9df66c0bcb6a24 | /shop/migrations/0001_initial.py | 3783b34ff87dc908ff78b639d470606f01e98dcb | [] | no_license | michaelandrew123/python-crud | 3329e2268cc80d6deb2bee92c18148d022831aa5 | 9b7f1afac3050c5cfb809d86269c9f3669f58e8b | refs/heads/master | 2023-02-03T02:06:30.768441 | 2020-12-15T13:53:32 | 2020-12-15T13:53:32 | 321,675,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # Generated by Django 3.1.4 on 2020-12-14 09:12
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Product',
fields=[
('id', models.AutoField(... | [
"michaelandrewsuarez0@gmail.com"
] | michaelandrewsuarez0@gmail.com |
ea4a31f53f7bba7631c687a9d7cf7149be883029 | 662c9b1dd64fc87a17e62ccab8a1b3b3f58604e8 | /Reference Code/lib/modeling/FPN.py | ba8554ea6513bd4cfe81c8da46ef86c41157dbe6 | [
"MIT"
] | permissive | lixiang95/Amodal-Instance-Segmentation-through-KINS-Dataset | 004daf92dc5a16ff0902b19102dec8d7299a1884 | 052a548c585ddc60ff5188cfe2345343903daf73 | refs/heads/master | 2022-04-05T02:43:25.683524 | 2020-02-16T12:09:42 | 2020-02-16T12:09:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,501 | py | import collections
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn import init
from core.config import cfg
import utils.net as net_utils
import modeling.ResNet as ResNet
from modeling.generate_anchors import generate_anchors
from modeling.generate_proposals import G... | [
"qqlu1992@gmail.com"
] | qqlu1992@gmail.com |
8bf2d3ab81deaa04df1c52130d6a98be19514ed5 | 01a9d8a78bbf8f2f13cc2d0908e99aa91630609c | /Tasks/Lesson_12.1/1/Oleg_1.12_1.py | 0dcacfdc93be2938a2548f9cf75aae475d85fc8c | [] | no_license | OlegBezr/1514_python_tkinter_tasks | b1f2ee7581f055e8d50b4660c7f5b92bee05bfff | 98c3824a4a232058461f8e00e98c10e3bd075968 | refs/heads/master | 2021-06-27T02:43:27.438971 | 2021-04-25T13:45:50 | 2021-04-25T13:45:50 | 223,483,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | l = list(input().split())
f = open('list1.txt', 'w')
f.write(' '.join(l))
f.close()
f = open('list1.txt', 'r')
l = list(f.read().split())
f.close()
f = open('list2.txt', 'w')
for i in range(len(l)):
if (i % 2 == 1):
f.write(l[i] + ' ')
f.close()
| [
"obezrukavnikov@gmail.com"
] | obezrukavnikov@gmail.com |
2e45d4a5a623153d4de8ea24a1752d1d0485cd80 | 4b8ea9c95900d63b0e37a6b80fc5454b0644cd12 | /src/import_datasets.py | 8821d4adc8b0c6fb865fad639eefe68e3157994a | [
"CC-BY-4.0"
] | permissive | imics-lab/TSAR | 40a63a41f4c396c0a04a1fe57e9be3278ada217c | 65964cd2e9f4761a64bdc9bd91207771ca6856ae | refs/heads/main | 2023-04-17T21:31:25.210925 | 2022-07-29T15:27:22 | 2022-07-29T15:27:22 | 327,448,462 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,038 | py | import numpy as np
from scipy.io import loadmat
def get_unimib_data(s="acc"):
print("Loading UniMiB set ", s)
X_flat = loadmat("data/UniMiB-SHAR/data/" + s + "_data.mat")[s + "_data"]
y = loadmat("data/UniMiB-SHAR/data/" + s + "_labels.mat")[s + "_labels"][:,0]
if(s=="acc"):
labels = loadmat("d... | [
"gma23@txstate.edu"
] | gma23@txstate.edu |
2104424623f9d0dd7ea8f1674f2b54c89dd6a27c | c6ed13f7a892dbe629e5e726f6d24bfc1fb63932 | /product_attachment_website/__manifest__.py | 9ed8e6141832b5d9f445945bf53b0bb9614d318d | [] | no_license | Bokanovskie/ByWatosOdoo10 | f86c1f57e5836fa96bb2b1afd4ba694202438156 | 1f95799b6ae9b00db3770d189d3c86e27c13543f | refs/heads/master | 2021-06-06T14:34:56.691765 | 2021-04-21T16:48:32 | 2021-04-21T16:48:32 | 143,602,099 | 0 | 0 | null | 2018-09-16T09:36:07 | 2018-08-05T10:07:49 | null | UTF-8 | Python | false | false | 935 | py | # -*- coding: utf-8 -*-
{
'name': "product_attachment_website",
'summary': """
Short (1 phrase/line) summary of the module's purpose, used as
subtitle on modules listing or apps.openerp.com""",
'description': """
Long description of module's purpose
""",
'author': "My Comp... | [
"alexandre.matis@hotmail.fr"
] | alexandre.matis@hotmail.fr |
792da0978064d175e68bc3b676a36b830628213a | 8ef5b7c81f52a8100540279743b0c537a137338f | /itsolution/wsgi.py | 2451e8d5165ba807b41f6a28e9842c666b47991a | [] | no_license | MixailN/it-solution | 9fa7cbc4f064f1f569056158ad120ebf84efd914 | f61c64b68d3621a454fdef0901a64e5565efc320 | refs/heads/master | 2023-04-01T10:35:14.527721 | 2021-04-02T13:41:20 | 2021-04-02T13:41:20 | 354,031,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for itsolution project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SE... | [
"mixail_nabiullin@mail.ru"
] | mixail_nabiullin@mail.ru |
6b4177842effac3d475f7fccacf398685a1c8a5d | b190f8fcff95c76d2c294e14f65e626b5c7dad4a | /IoT/test.py | 9b6e726072406fbf625ebc471bb3be750481f1b7 | [] | no_license | alex-perez/HackathonQualcommCUU | d9ee37a51616acf34d527fa673061bdc4067dc3b | f94af918d834a26edb3ddf3adf91e0bda0894d29 | refs/heads/master | 2021-01-21T05:14:00.990029 | 2017-02-26T17:46:08 | 2017-02-26T17:46:08 | 83,153,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | import random
import sys
import time
from Adafruit_IO import *
ADAFRUIT_IO_KEY = 'c71578bc27d14943ad226e958d3bf25b'
ADAFRUIT_IO_USERNAME = 'homeero'
aio = Client(ADAFRUIT_IO_KEY)
feed = aio.feeds('status')
print(feed)
print feed.last_value
| [
"alom.perez@gmail.com"
] | alom.perez@gmail.com |
e185e0a8d0306c187a69813419c3f2bffe3f8ef2 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /pwAdsffHkxdhSwXKc_16.py | a9d24417389bf368548a6f4fbb949210895a81fd | [] | 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 | 48 | py |
import re
pattern = "(\w+)(?: = )(?!yes)"
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
6bfb3e6cebe8745750a7456252c95186cfab3ee2 | c9f2f85e6eefe96bf5edc172c266055a95f90e66 | /aSafeReturn/forms.py | 94f20d1d898a7fbbbc03a4f18d8712687fd86e28 | [] | no_license | Ewha-Cyber-Boan/safe-return-map | bfcbf47758ced7dab9e022910f04eabc116ae71e | d43e603dbde246ab147c8629dcf0277504193192 | refs/heads/master | 2023-03-13T05:01:02.965464 | 2021-03-04T02:53:33 | 2021-03-04T02:53:33 | 293,231,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | from django import forms
from .models import FromTo
class FromToForm(forms.ModelForm):
class Meta:
model = FromTo
fields = ('start_point', 'end_point') #내가 뭘 쓴걸꺄? | [
"noreply@github.com"
] | noreply@github.com |
ad1476c4e3d727a594748fbd46e8750466f874b9 | f6d7c30a7ed343e5fe4859ceaae1cc1965d904b7 | /htdocs/submissions/ad1476c4e3d727a594748fbd46e8750466f874b9.py | 21655121ccb580a53180397a9efc156aa7c8ae71 | [] | no_license | pycontest/pycontest.github.io | ed365ebafc5be5d610ff9d97001240289de697ad | 606015cad16170014c41e335b1f69dc86250fb24 | refs/heads/master | 2021-01-10T04:47:46.713713 | 2016-02-01T11:03:46 | 2016-02-01T11:03:46 | 50,828,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 124 | py | a=''.join
seven_seg=lambda x:a(a(' ||| _ ___ | |||'[ord('C0WY"KJaQR'[int(l)])/k%7::7]for l in x)+'\n'for k in(49,7,1))
| [
"info@pycontest.net"
] | info@pycontest.net |
15f12889796c5ecb7f30ca28ec747dadf39e17fb | d594383e3c570accaa79c347e6d1b864fbb28cfb | /VolumeMeter/volumemeter.py | 5f33ecc870057125c3838729a1ce9aad88db0de5 | [] | no_license | tiwawan/BlenderAddons | 1a04173a25d5f56831747435aaf1915f645bf26a | 80060b723195d173ef8ad5850dc48a180ad53077 | refs/heads/master | 2021-01-20T11:01:43.035102 | 2017-08-28T19:16:00 | 2017-08-28T19:16:00 | 101,665,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | bl_info = {
"name": "Volume Meter",
"category": "Object",
}
from bpy import *
import random
class VolumeMeter(types.Operator):
"""
Volume Meter
Array active object so that it appears like a sound volume meter.
"""
bl_idname = "object.volume_meter"
bl_label = "Volume Meter"
bl_opti... | [
"suken63@gmail.com"
] | suken63@gmail.com |
9a1cf02bf209ee1cfeb2fcd8be29634a534903e2 | 2082ab16a853e73b1d2d443a65a4baca35d03b73 | /08_conjuntos.py | 4671e31af8d963b35ac2e61ad7ba49e24754f53d | [] | no_license | anbreaker/ejerciciosPythonRed | cc17bc967f2facae77f43a87ae1cd426055ceea0 | 94100981959ae9dc03da0b2cd5ea432e093ebaab | refs/heads/master | 2020-07-31T15:41:26.550094 | 2020-03-01T12:08:01 | 2020-03-01T12:08:01 | 209,410,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | py | # Ejercicio: Eliminar los elementos repetidos de una lista
# Los conjutos se inician con set()
lista = [1, 2, 3, 'hola', 2, 1, 3, 1, 2, 'hola', 3]
conjunto = set(lista)
print('Ver si un valor esta contenido en el conjunto--> ', 1 in conjunto)
# agregando valores
conjunto.add('a')
conjunto.add(5)
conjunto.discard(3)... | [
"antunez19@gmail.com"
] | antunez19@gmail.com |
5a6434d9a3bdeaec69b62fd4db7eeaa128efe908 | f66da3c9293d9f680ab54cf3c562ef5dd661137c | /docs/source/examples/index.py | 731aa4fd9d3096b22bd8ae9a9f1393d90efd68fb | [
"MIT"
] | permissive | dvincentwest/gtimer | c49ef33ecdfeaf55298283cfd24953d372a3f4e5 | 2146dab459e5d959feb291821733d3d3ba7c523c | refs/heads/master | 2022-04-21T22:08:06.103426 | 2016-10-05T07:44:04 | 2016-10-05T07:44:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | import gtimer as gt
import time
@gt.wrap
def some_function():
time.sleep(1)
gt.stamp('some_method')
time.sleep(2)
gt.stamp('another_function')
some_function()
gt.stamp('some_function')
time.sleep(1)
gt.stamp('another_method')
print gt.report()
| [
"adam.stooke@gmail.com"
] | adam.stooke@gmail.com |
71712e1ec15e421cb14307006faeccf69597a47d | e7a2dfdc6450ec9ac71de2c6bd96b0c7342bd48d | /fixture/contact.py | 3bc5b3e9c59397dc46a893253cf8f3bd9257aa57 | [
"Apache-2.0"
] | permissive | serejkansk/python_training | 9f6e285e6427a30ea9d9cbd4fdfe605f5c94f432 | 4ffab2d66b3512154f47c988e4c6bebba49d5e32 | refs/heads/master | 2021-04-26T23:00:07.461769 | 2018-05-04T14:51:32 | 2018-05-04T14:51:32 | 123,911,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,876 | py |
from model.contact import Contact
import re
class ContactHelper:
def __init__(self,app):
self.app = app
def create(self, contact):
wd = self.app.wd
self.open_add_new_page()
self.fill_contact_form(contact)
# submit contact creation
wd.find_element_by_name("subm... | [
"288serega654@mail.ru"
] | 288serega654@mail.ru |
813dd823239631c448f826c9c3dd466a894cae95 | 60c775d3a7e94901145701671a5a75d61fa1608c | /attempt1.py | 0e33902d0cec32cecbf31a64b81bf0ff5d16adf4 | [] | no_license | thesidjway/cs60012-3D-segmentation | eaadbe7361c63a65cd898efd6976407b6cec7d5d | 5d5d3193b7d0024770df4ebd3e8943c1fd6f8ab5 | refs/heads/master | 2020-03-07T13:48:10.619056 | 2018-04-13T13:37:38 | 2018-04-13T13:37:38 | 127,510,345 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,102 | py | import sys
import math
import numpy as np
import scipy.linalg
import scipy.cluster
import scipy.sparse
import scipy.sparse.csgraph
# Controls weight of geodesic to angular distance. Values closer to 0 give
# the angular distance more importance, values closer to 1 give the geodesic
# distance more importance
delta = 0... | [
"siddharthjha@outlook.com"
] | siddharthjha@outlook.com |
cbd267f435273baf1c83b60f52c26299e85dc61e | b34a7f79053e2cf312e34076a2900359f73bbedd | /ex3.py | a53c7950cbaaf448991cefff05e752d82d281983 | [] | no_license | zkevinbai/LPTHW | 942a10b4517bbc60a65cde323ddc7489546ac91c | 66e89eb53d592c1b4f15629892544e8890bd5102 | refs/heads/master | 2022-12-18T14:00:10.956818 | 2020-09-30T07:37:56 | 2020-09-30T07:37:56 | 299,842,805 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | print "I will now count my chickens:"
print "Hens", 25.0 + 30.0 / 6.0
print "Roosters", 100.0 - 25.0 * 3.0 % 4.0
print "Now I will count the eggs:"
print 3.0 + 2.0 + 1.0 - 5.0 + 4.0 % 2.0 - 1.0 / 4.0 + 6.0
print "Is it true that 3 + 2 < 5 - 7?"
print 3.0 + 2.0 < 5.0 - 7.0
print "What is 3 + 2?", 3.0 + 2.0
print "... | [
"lkevin957@gmail.com"
] | lkevin957@gmail.com |
84ef03df3689525d6d42aa8a4d18dfefe0e53294 | 64e26391e66e22ba8affd7515ca0836d5fb92607 | /SConscript | 283eee78ec9a23976cfa93683dec539d97e4b9f5 | [] | no_license | yuzhangiot/smartaudio | 41fbeb8991d81272133f4d783c4629afbe3038e3 | 512c71275f85e4e0b6ec0097a0fa723c214f164b | refs/heads/master | 2021-01-10T00:58:14.730492 | 2016-01-19T11:55:29 | 2016-01-19T11:55:29 | 44,382,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,988 | # Copyright (c) 2013-2014, AllSeen Alliance. All rights reserved.
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROV... | [
"yuzhangiot@gmail.com"
] | yuzhangiot@gmail.com | |
c818c6d15b368b27f9b8db5e10adefad21237701 | 2dfaefda5db6189910d976d16b65693a4c105981 | /WindowsPostServer.py | 2fc6474ef164ff0c5fcdef740309e66d71f70049 | [] | no_license | Beardhammer/Scripts | 71d0820def9756aaff9d85a9ff7b8b11d13e15d6 | 424f72eda060b080ebc1e687fcf15140c3ce299c | refs/heads/master | 2023-07-15T03:09:28.951261 | 2021-08-17T15:43:59 | 2021-08-17T15:43:59 | 241,777,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,422 | py | #!/usr/bin/env python
from http.server import BaseHTTPRequestHandler, HTTPServer
import os
import subprocess
class S(BaseHTTPRequestHandler):
def _set_headers(self):
self.send_response(200)
self.send_header('Content-type', 'text/html')
self.end_headers()
def do_POST(self):
content_length = int(self.header... | [
"noreply@github.com"
] | noreply@github.com |
17f6b3138f1968e2507a1f897c7af44cf61fed90 | 0981ddfcd812cdd66f3509b4a052d30e098d8f44 | /start-content/gerando_mensagens.py | af6f574bbb6c37ef8ad9963c8f71c3fa2e19a8c7 | [] | no_license | ricardofelixmont/Udacity-Fundamentos-IA-ML | 3c49532e0a3bd662d6b5262cab056281f0020689 | dda2afc0e31ab94fef937be31b1b12685f447a71 | refs/heads/master | 2020-04-10T13:44:19.472140 | 2019-04-16T21:24:22 | 2019-04-16T21:24:22 | 161,058,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | names = input('digite os nomes: ').split().title()
assignments = input('Digite os assignments: ').split()
grades = input('Digite as notas: ').split()
message = 'Hi {},This is a reminder that you have {} assignments left to submit before you can graduate. Your current grade is {} and can increase to {} if you submit a... | [
"ricardofelix_mont@outlook.com"
] | ricardofelix_mont@outlook.com |
0f08a7de43e780c241ac24fe25e5d88f5c7bb850 | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/icicle/outsidetextfont/_family.py | 9f2822cabc11769355cd3ba0b30e64667849668e | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 571 | py | import _plotly_utils.basevalidators
class FamilyValidator(_plotly_utils.basevalidators.StringValidator):
def __init__(
self, plotly_name="family", parent_name="icicle.outsidetextfont", **kwargs
):
super(FamilyValidator, self).__init__(
plotly_name=plotly_name,
parent_na... | [
"nicolas@plot.ly"
] | nicolas@plot.ly |
e2e2c312a164468145b010e07965e015adc43eb0 | e5e14d0f4df35aa59c198f361192009268388d46 | /Main.py | 83da5cd746102af8cdb01f8988a6d77f8bcceec8 | [] | no_license | LeithMerrifield/MetroCard | 9a3818747f9df25ff87a0eeacece2900a4c26c66 | fbf126e3dc59643dfb313f71a70706ea9eff1508 | refs/heads/main | 2023-07-28T06:15:41.762324 | 2021-09-06T11:38:12 | 2021-09-06T11:38:12 | 403,501,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | from Location import Location
from MetroLoop import MetroLoop
from Person import Person
import os
locationList = []
for i in range(1, 13):
newStop = Location("Stop {}".format(i), i - 1, 12 - i)
locationList.append(newStop)
mainLoop = MetroLoop("The Frankston Line", locationList)
user1 = Person("Leith")
use... | [
"ldjmerrifield@hotmail.com"
] | ldjmerrifield@hotmail.com |
302ef28d732c7e28242f2801a1df472ab537cbaf | 098b68755ecc344150f29b334d4ef83e9ac9c43f | /Assignment3_Siam/fetch_games.py | 46c13a5dd88b05a1c2190bc5a7faaf5e379febf0 | [] | no_license | nbyouri/LINGI2261-AI | 6595b5714b079ba423184b7ba7a8b62b520a48ac | b075fd47408018f1565f33cdcd0ea99bc858e1dd | refs/heads/master | 2021-03-22T04:28:34.160521 | 2017-12-04T15:08:47 | 2017-12-04T15:08:47 | 105,148,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | #!/usr/local/bin/python3
from lxml.html import parse
RHINO_UP = 'img/20m.gif'
RHINO_RIGHT = 'img/21m.gif'
RHINO_DOWN = 'img/22m.gif'
RHINO_LEFT = 'img/23m.gif'
ELE_UP = 'img/10m.gif'
ELE_RIGHT = 'img/11m.gif'
ELE_DOWN = 'img/12m.gif'
ELE_LEFT = 'img/13m.gif'
ROCK = 'img/minirocher.gif'
EMPTY = 'img/_.gif'
database... | [
"youri@NetBSD.org"
] | youri@NetBSD.org |
f59123215590a17d634fd561594da622d762df34 | 409310799d6f3b8bc93791bd9659f197b0dd8a26 | /02-CRT.py | 0eba32a8ebd0264baf3b35e37b3eac5c09dda540 | [] | no_license | SifanGuo/AppliedEncryption | fe61b9ec55984e53dc6db05e84acfacb1fa156ae | 24c1be6e43a09dc5bac9912dd1068c8cd94823d7 | refs/heads/master | 2020-04-20T17:59:25.156942 | 2019-05-02T03:38:18 | 2019-05-02T03:38:18 | 169,005,455 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,185 | py | import Encryption1
import time
def chinese_remainder(g, p, q, x):
"""Hopefully, I can find the answer."""
# 1st step: g mod p, g mod q
p_remainder = g % p
# print("{} % {} = {}".format(g, p, p_remainder))
q_remainder = g % q
# print("{} % {} = {}".format(g, q, q_remainder))
# 2st step: re... | [
"todguo86@gmail.com"
] | todguo86@gmail.com |
97d1539bed50afcef0d7e0baa3186bd2c9887471 | 50d331aec35c1429e0d9b68822623ee9a45b251f | /IPTVPlayer/hosts/hostfilisertv.py | 14e90dce85575e0ca3901bcf74824d94a03c9321 | [] | no_license | openmb/iptvplayer | cd00c693adcac426214cc45d7ae5c97b9d7cbe91 | bbc3f5b6f445f83639cd1ebb5992dc737bc9023d | refs/heads/master | 2021-01-17T09:58:09.202306 | 2017-03-26T18:19:10 | 2017-03-26T18:19:10 | 83,997,131 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 19,625 | py | # -*- coding: utf-8 -*-
###################################################
# LOCAL import
###################################################
from Plugins.Extensions.IPTVPlayer.components.iptvplayerinit import TranslateTXT as _, SetIPTVPlayerLastHostError
from Plugins.Extensions.IPTVPlayer.components.ihost import CHos... | [
"samsamsam@o2.pl"
] | samsamsam@o2.pl |
420fe9952d25789d462ba42a6cd0d82c5d3005e8 | 8a1686aeeefa80afeb0aa9f45ed72a75883458c4 | /dit/divergences/maximum_correlation.py | 80b8a60874ec9a78929efb6b7f35b7813c08a5da | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | heleibin/dit | 70afd57f31be346e48b9b28c67fd6e019132ac36 | ebd0c11600e559bf34cf12a6b4e451057838e324 | refs/heads/master | 2020-09-27T07:42:15.991500 | 2019-11-23T06:10:11 | 2019-11-23T06:10:11 | 226,466,522 | 1 | 0 | BSD-3-Clause | 2019-12-07T06:26:50 | 2019-12-07T06:26:50 | null | UTF-8 | Python | false | false | 3,451 | py | """
Compute the maximum correlation:
\rho(X:Y) = max_{f, g} E(f(X)g(Y))
"""
import numpy as np
from ..exceptions import ditException
from ..helpers import normalize_rvs
svdvals = lambda m: np.linalg.svd(m, compute_uv=False)
def conditional_maximum_correlation_pmf(pmf):
"""
Compute the conditional maxi... | [
"ryangregoryjames@gmail.com"
] | ryangregoryjames@gmail.com |
d055001749d4dca196410161f61ae69f0079bc69 | 1f65f60cd76be07ac562fffe0a5029267c821743 | /training.py | 2b254f6f1c3612ce3523d69f0a8016ba53919cb8 | [] | no_license | aseemk11/faceid-attendance-rpi | 96820bd5f1b183d73752fd40201003f87bce1d22 | 5ce35b42a4d0c2224083bf9213bccf78c70b379b | refs/heads/master | 2022-12-06T04:04:33.453982 | 2020-08-16T09:21:16 | 2020-08-16T09:21:16 | 287,910,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 743 | py | import os
import cv2
import numpy as np
from PIL import Image
recognizer = cv2.face.LBPHFaceRecognizer_create()
path = 'dataset'
def getImagesWithID(path):
imagePaths = [os.path.join(path, f) for f in os.listdir(path)]
faces = []
IDs = []
for imagePath in imagePaths:
faceImg = Image.open(ima... | [
"kanungoaseem19@gmail.com"
] | kanungoaseem19@gmail.com |
8e577c03c8484472421f80c64155cd096c34ba96 | 2186f7ad7e54f3760f1503870f770d3262c17ab5 | /scripts/SpellChecker.py | 1b822a7fc7c75087e76dc937d70084436c178986 | [] | no_license | HarshViijay/HandwritingRecognition-OCR | 4ffb641257483f4fbf6722cef18c7500ffb7b27f | 2db3ae01995105d7ba63bc43f58b6e0f368db6a6 | refs/heads/main | 2023-02-13T16:01:06.488675 | 2021-01-07T19:16:27 | 2021-01-07T19:16:27 | 326,492,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | from autocorrect import spell
def correct_sentence(line):
lines = line.strip().split(' ')
new_line = ""
similar_word = {}
for l in lines:
new_line += spell(l) + " "
return new_line
| [
"noreply@github.com"
] | noreply@github.com |
51ec22fa4a3789ebde8822eb40cf8fb7046df5fc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02646/s812265777.py | bf9bfeae85ecdf39cf4a7df800b93778ecaceb82 | [] | 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 | 717 | py | A, V = map(int, input().split(" "))
B, W = map(int, input().split(" "))
T = int(input())
if W > V:
print("NO")
else:
if abs(A - B) <= T * (V - W):
print("YES")
else:
print("NO")
# if A - B > 0:
# # 負の方向に逃げる
# if (B + 10**9) / W <= T:
# # print("left reach")
# # T立つよりも先に端に到達してしまう場合
# Bdi... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d414045fd1baebb539135844bc46a8bc8fb336f4 | c17d5626506b1377ce66b7c36313ceacb5969f0e | /walletUI/wallet/urls.py | 957a757f8b8892e85babeffe30946c245e76dadc | [
"MIT"
] | permissive | avinashshenoy97/brownie-points | 343d16485b728bdb6b42e5bef04e9f475555eb4f | 27eb1e9a5ab685e72a5b701c0f76af44d9700960 | refs/heads/master | 2020-03-26T18:04:20.921878 | 2018-11-21T05:00:30 | 2018-11-21T05:00:30 | 145,194,762 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.wallet, name='wallet'),
path('sendCoins',views.sendCoinsView.as_view()),
path('getTransactionDetails',views.transactionStatusView.as_view()),
path('getPublicAddress',views.publicAddressView.as_view()),
path('getBalance'... | [
"anvithshetty97@gmail.com"
] | anvithshetty97@gmail.com |
995ba26d091ef0eec1fee4cb9e0a5bf695949587 | 886fbd993dfda4afc402e49ef6910e631f62a1af | /2018/day16/task2.py | 7e9f8b6ad3f2a434a255a20663c591ca96743be5 | [] | no_license | EliTheCreator/AdventOfCode | 6fb59eeddfad3592bbd6628850063259ce65899b | ee1eb7e26dba4b23eb3152dcfca9a44aff8ecc67 | refs/heads/master | 2022-05-03T13:53:32.837102 | 2022-03-03T21:10:11 | 2022-03-03T21:10:11 | 227,398,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,129 | py | import os
import re
from functools import reduce
def main():
file = open("input", "r")
p1, p2 = file.read().split("\n\n\n")
file.close()
part1 = [[[int(x) for x in re.findall(r"\d+", part)][i:i+4] for i in range(0, 12, 4)]
for part in p1.split("\n\n")]
part2 = [[int(x) for x in re.fin... | [
"elischmi@student.ethz.ch"
] | elischmi@student.ethz.ch |
a25cbe6ae618373ae82473439730baac49b8f306 | 671032537d727e763ba907bf8ed085bb8a28961c | /main.py | 2c6db70e1f39ba6bd15139e3436bec9bac3f8b70 | [] | no_license | wz-dazhi/dou-yin-yin-yue-wang | 4184053448277306ea15a31a5d3d6e120c65c929 | d2b102456301e78d4cedc93ddecc46ccd0e954d2 | refs/heads/main | 2023-04-18T13:52:37.624195 | 2021-04-30T04:26:40 | 2021-04-30T04:26:40 | 362,028,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,718 | py | import configparser
import os
import threading
import time
from multiprocessing import Pool
import requests
from selenium import webdriver
# 抖音最新歌曲
MUSIC_HTML = "douyinzuixingequ"
# 抖音最火最热歌曲
# MUSIC_HTML = "douyinzuihuozuiregequ"
# 抖音中文歌曲
# MUSIC_HTML = "douyinzhongwengequ"
# 抖音DJ舞曲
# MUSIC_HTML = "douyinDJwuqu"
# 抖音... | [
"742820195@qq.com"
] | 742820195@qq.com |
63d6f409962a4311535feac64bcf2dc3313284ce | c908126c119c48b4e717d7bd227f48531a4d138d | /bulletPointAdder.py | e1e284cdc2495da8a0293d5c06ffdbd00e845cd5 | [] | no_license | peterpan1986/python | 96c06adf1ac470d4001191db581640c7726957b0 | 503c3aa7fa5f9fa2497a4240cea0818110f2763a | refs/heads/master | 2021-05-09T07:10:13.898600 | 2018-01-29T08:25:20 | 2018-01-29T08:25:20 | 119,351,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #! python3
# bulletPointAdder.py - Adds Wikipedia bullet points to the start
# of each line of text on the clipboard.
import pyperclip
text=pyperclip.paste()
#Separate lines and add stars.
lines=text.split('\n')
for i in range(len(lines)): #loop through all indexes in the "lines" list
lines[i]='* '+lines[i] # add... | [
"pantx2010@163.com"
] | pantx2010@163.com |
5b8e1c5e7204e30c9a387b1b4b3a13bcbfc31ec3 | 62bb4ba665be92ab6b589b08c433d2f07dce1f37 | /args/base_args.py | 3d6691f05068ea1832dcabeaa96c132c1b14e135 | [] | no_license | cryptowealth-technology/Neural-PDE-Solver | c396bc3e58d5ce16ae5cee46ead3074e799bd8cc | c5284896d4c40ae8f5b496a41c220027ae13580f | refs/heads/master | 2022-07-22T18:22:29.860394 | 2018-11-09T23:34:45 | 2018-11-09T23:34:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,180 | py | import argparse
import os
class BaseArgs:
def __init__(self):
self.is_train, self.split = None, None
self.parser = argparse.ArgumentParser(formatter_class=argparse.ArgumentDefaultsHelpFormatter)
# hardware
self.parser.add_argument('--n_workers', type=int, default=8, help='number of threads')
# ... | [
"juntinghsieh@gmail.com"
] | juntinghsieh@gmail.com |
df1bbffdb1fd0a65bf1e16c82c1716c7a9e84dbb | c698fb03aa2bf034904a0310931b473b6da66fdc | /com/study/algorithm/daily/Wiggle Subsequence.py | c844d5ab6b9bac455a14c6fa53f8c5b6220137bb | [] | no_license | pi408637535/Algorithm | e46df1d07a519ab110e4f97755f461a1b2b7c308 | 75f4056ec6da01f7466a272871a7f7db579166b4 | refs/heads/master | 2021-08-29T19:19:53.368953 | 2021-08-22T16:30:32 | 2021-08-22T16:30:32 | 213,289,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,075 | py | '''
解决本题前,我们先进行一些约定:
1.某个序列被称为「上升摆动序列」,当且仅当该序列是摆动序列,且最后一个元素呈上升趋势。如序列 [1,3,2,4][1,3,2,4] 即为「上升摆动序列」。
2.某个序列被称为「下降摆动序列」,当且仅当该序列是摆动序列,且最后一个元素呈下降趋势。如序列 [4,2,3,1][4,2,3,1] 即为「下降摆动序列」。
3.特别地,对于长度为 11 的序列,它既是「上升摆动序列」,也是「下降摆动序列」。
4.序列中的某个元素被称为「峰」,当且仅当该元素两侧的相邻元素均小于它。如序列 [1,3,2,4][1,3,2,4] 中,33 就是一个「峰」。
5.序列中的某个元素被称为「谷」,当且仅当该元素两... | [
"piguanghua365@163.com"
] | piguanghua365@163.com |
9970e3d3297ee69f5a13f95985a80b0cbdd3fe77 | 520d1376ae99e52688d144a20fbf85053d09b7a8 | /1.py | 9d9c06406476e5f31761960a8992d7adeff29b3e | [] | no_license | kisgitter/learngit | b3b41f9fb058e79d8534c040591323e515cfa8a0 | 4fd1fc12982cbb5bbc4ce0c9559f8f4322d8bb19 | refs/heads/master | 2020-04-20T18:56:27.129373 | 2019-02-11T08:47:01 | 2019-02-11T08:47:01 | 166,193,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | ao
bc
se
dg
vd
ef
df
ea
| [
"dwjwlnc@sina.com.cn"
] | dwjwlnc@sina.com.cn |
4df46f23c7e369d02d8672af00dd27c657d333c3 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/nic_spec.py | b40e87c841b9dc1783c70313cbd1039699834425 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 5,520 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class NicSpec:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
b3b186a87497740c95f80ed1e6a1136ec1fb3f8a | 325feeaa9955713f4ce098c8e788c0ca73ebe8e1 | /FeatureLearningRotNet/architectures/NetworkInNetwork.py | ee76f17507a34d3be2565679b09b175a4ec1dfd0 | [
"MIT"
] | permissive | baina23/Self-Supervised-Representation-Learning | 04b22683d1063298ab1f834f52a24ab4c8a5d3d5 | f8b270a987a426b614740170f075d9f3bf753e47 | refs/heads/main | 2023-04-11T01:52:37.460026 | 2021-04-28T18:02:34 | 2021-04-28T18:02:34 | 353,450,439 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,709 | py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
class BasicBlock(nn.Module):
def __init__(self, in_planes, out_planes, kernel_size):
super(BasicBlock, self).__init__()
padding = (kernel_size-1)/2
self.layers = nn.Sequential()
self.layers.add_module('Co... | [
"noreply@github.com"
] | noreply@github.com |
e1c611fa5dc7c575083fd0a9c5023fc5eb10b062 | 8fdc5dd3f8f4d81e60f29076c1677ca47acde856 | /tests/unit/common/middleware/crypto/test_crypto_utils.py | 807924fb98e7045cdf73bd85242f449e1c7057d3 | [
"Apache-2.0"
] | permissive | open-io/oio-swift | 7522c908ad4fc146dbdfe922c6b440210bf710f0 | be94cf2e4294cc6d37c3f3ee87e31de32dfe406e | refs/heads/master | 2023-06-08T21:44:49.982481 | 2020-01-24T12:47:36 | 2023-06-05T12:57:51 | 32,991,975 | 28 | 26 | Apache-2.0 | 2023-06-05T12:57:52 | 2015-03-27T14:52:43 | Python | UTF-8 | Python | false | false | 1,331 | py | # Copyright (c) 2015-2016 OpenStack Foundation
# Copyright (c) 2018 OpenIO SAS
#
# 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 req... | [
"florent@fridu.net"
] | florent@fridu.net |
8c226fe1619aa3b49c613dac5b3e7e313afda2ef | f6a483a73a5647cf40f9943e96d326e876dba801 | /src/hook.py | 3baa68a46829296c389ec56a28ebbbff41f4ba52 | [] | no_license | hmirin/notion-automator | de402e817890380b8f874a353681cfeca0daf649 | 8323c5d6e8a445b812db290c851a5a3f0855c77e | refs/heads/master | 2020-07-05T11:45:48.699249 | 2019-08-16T01:59:25 | 2019-08-16T01:59:25 | 202,640,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from abc import ABCMeta, abstractmethod
from notion.block import TodoBlock, PageBlock
class Hook(metaclass=ABCMeta):
def __init__(self, func):
self.hook = func
@abstractmethod
def execute(self, something):
return self.hook(something)
class TodoHook(Hook):
def execute(self, todo: To... | [
"panda.1192@gmail.com"
] | panda.1192@gmail.com |
f823dbcd73106795c5bfa1ebb01fdcd07008f6b8 | 330014a69dda6c6dcd19f40365b4ba14733dda00 | /sangyeon/hackerrank/math/polarCoordinates.py | 524b4f42f970816ead30a7c0dad006802ca8bfc2 | [] | no_license | kimsangyeon/synap_python | 7fd148a742c20e30baa7bf37ab6fa16625b410bd | 6ec45746dba0b14c6ed61ae14a99cc56f569a50c | refs/heads/master | 2021-09-05T14:05:01.377360 | 2018-01-14T14:29:55 | 2018-01-14T14:29:55 | 103,936,583 | 0 | 2 | null | 2017-10-29T09:46:27 | 2017-09-18T12:32:18 | Python | UTF-8 | Python | false | false | 74 | py | from cmath import phase
z = complex(input())
print(abs(z))
print(phase(z)) | [
"dho113@naver.com"
] | dho113@naver.com |
93a086198812bdc40ce35c6726c9eea2d43ef410 | 2e1b1042026b17ca8c7e1c9a9b192fe4d62bc941 | /task_06_02.py | b686c32d75e160676bd0978e98457748698ca974 | [] | no_license | Ljuba-Ljuba/Hometasks | b4c10960fd237309b4daa787d1faa302564f1209 | 2a2083c1571153e688492f7b5629964341a0c3ca | refs/heads/master | 2021-07-23T10:51:13.229223 | 2017-11-01T11:25:08 | 2017-11-01T11:25:08 | 105,518,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | """
Требуется реализовать декоратор с параметрами pause, который приостанавливает выполнение функции на указанное количество секунд.
В решении пригодится стандартный модуль time.
Имя файла
task_06_02.py
Имя функции-декоратора
pause
Пример использования
@pause(2)
def func():
print('Фунция выполняется с задержкой!'... | [
"sto1000kvartir@gmail.com"
] | sto1000kvartir@gmail.com |
b18beae3273c85da402f38b9ec0bc6ec5fee5418 | c53b3e120c59557daaa2fa5b7626413105eb5965 | /tendenci/apps/corporate_memberships/templatetags/corporate_memberships_tags.py | 541c5e793ea1ad4b6f702a52f3951f2a8cd441e2 | [] | no_license | chendong0444/ams | 8483334d9b687708d533190b62c1fa4fd4690f2c | f2ac4ecc076b223c262f2cde4fa3b35b4a5cd54e | refs/heads/master | 2021-05-01T03:59:18.682836 | 2018-07-23T06:33:41 | 2018-07-23T06:33:41 | 121,194,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,075 | py | import random
from django.contrib.auth.models import AnonymousUser, User
from django.db import models
from django.template import Node, Library, TemplateSyntaxError, Variable
from django.utils.translation import ugettext_lazy as _
from tendenci.apps.corporate_memberships.models import CorpMembership
from tendenci.app... | [
"chendong@shinezone.com"
] | chendong@shinezone.com |
d893501915448c66c6bda1af06cc5994eb4911be | 3428950daafacec9539a83809cf9752000508f63 | /data_struct/10_combination.py | 136a9f2a426e90a1e6863a66530fc3a6d61f865a | [] | no_license | HyunAm0225/Python_Algorithm | 759b91743abf2605dfd996ecf7791267b0b5979a | 99fb79001d4ee584a9c2d70f45644e9101317764 | refs/heads/master | 2023-05-24T05:29:12.838390 | 2021-06-15T16:36:33 | 2021-06-15T16:36:33 | 274,587,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 304 | py | def combination(s):
if len(s) < 2:
return s
res = []
for i, c in enumerate(s):
res.append(c) # 추가된 부분
for j in combination(s[:i]+s[i+1:]):
res.append(c+j)
return res
if __name__ == "__main__":
data = "abc"
print(combination(data))
| [
"tlfgjawlq@naver.com"
] | tlfgjawlq@naver.com |
f36262f258b98ef5823cbd3b3c8607c91559ec4e | 32e9be6eef7e3ea6d9bd7b1236ffb36de3c1ba2c | /bulkfood4.py | bc06ff194bb8c04fea91236073cc39d699152fd9 | [] | no_license | zhangzhiping-George/flupy | 0d04da49a07bdc5ea400f6c0442e557717e32099 | 5ba230185da739fc25ceed06ef0f79b81dbb62eb | refs/heads/master | 2020-04-04T04:51:41.053172 | 2018-11-14T03:39:36 | 2018-11-14T03:39:36 | 155,729,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | import model4 as model
class LineItem:
weight = model.Quantity()
price = model.Quantity()
def __init__(self, desc, weight, price):
self.desc = desc
self.weight = weight
self.price = price
def subtotal(self):
return self.weight * self.price
truffle = LineItem('White t... | [
"13751058453@163.com"
] | 13751058453@163.com |
86b3f2d69deb2248d91d4be3c74f7213daf6915f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_84/33.py | 57b6d1e3842473c752fac1c09401d02031ba1c9c | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 621 | py | def solve():
r,c = map(int,raw_input().split())
a = [list(raw_input()) for _ in xrange(r)]
for i in xrange(r):
for j in xrange(c):
if a[i][j]!='#': continue
if i==r-1 or j==c-1: return None
if a[i+1][j]!='#': return None
if a[i+1][j+1]!='#': retur... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
350d4e3d74e315ba1a032a5356e4b9317e7c0312 | adf56026d8b046fc2401bf9c75421373585487af | /inventory/models.py | ee2c86c7d8eebff3bb497a643c765c1f0fa03814 | [] | no_license | humblejok/gso_mycustomers | 49bacb7c1468895d0574172d0f8b8aa5bdb816e6 | f70db3530cb6c1f3440ffc8b8ccad81aac92fb37 | refs/heads/master | 2019-01-01T15:51:56.461240 | 2015-08-12T07:53:27 | 2015-08-12T07:53:27 | 34,466,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | from django.db import models
from django.db.models import Q
from container.models import Address, Email, Phone, Container, CoreModel,\
Attributes
| [
"humble.jok@gmail.com"
] | humble.jok@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.