blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15f8cd0d04070fe3d412a6539a5235a6a8ef6c98 | da19363deecd93a73246aaea877ee6607daa6897 | /xlsxwriter/test/worksheet/test_write_filter.py | bfe6d60fc98f85a51ac98245e67242f2736abce1 | [] | no_license | UNPSJB/FarmaciaCrisol | 119d2d22417c503d906409a47b9d5abfca1fc119 | b2b1223c067a8f8f19019237cbf0e36a27a118a6 | refs/heads/master | 2021-01-15T22:29:11.943996 | 2016-02-05T14:30:28 | 2016-02-05T14:30:28 | 22,967,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
import unittest
from ...compatibility import StringIO
from ...worksheet import Worksheet
class TestWriteFilter(unittest.TestCase):
... | [
"lealuque.tw@gmail.com"
] | lealuque.tw@gmail.com |
9db96c6dbb62656d25dbde9c5f8ba667c8585fa8 | 3817a595bdf246996c1f3846860cea9a9154f1cc | /AltviaDogs/apps.py | 6e7c68cfaf6935515b6abbaa873e7c0dd3d098b0 | [] | no_license | shedwyn/AltviaDogs | 99e83f217d891c5060d0b9a8f0997ea4ea2c5dc2 | 150078897d38c84ac3c492635ea777476e84b0d9 | refs/heads/master | 2021-01-24T00:32:32.176410 | 2018-08-24T20:01:47 | 2018-08-24T20:01:47 | 122,768,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | """
Designed and built by Erin 'Ernie' L. Fough.
June 2018 (start)
contact: shedwyn@gmail.com
want to know when this was last updated? See README.md.
"""
from django.apps import AppConfig
class AltviaDogsConfig(AppConfig):
"""Establish Link to Dog Manager (AltviaDogs) Application."""
name = 'AltviaDogs'
| [
"shedwyn@gmail.com"
] | shedwyn@gmail.com |
23bcdebc6312f35fb67216dff2380ccbe74890ab | 68215f224dd76f8bf299c66c80cb4a0de1a05a20 | /PythonTutorial/Advance/MetaClass/meta_class_example2.py | 2e013f02ffac5c75fa0acaf6a410b099a0bd7425 | [] | no_license | jhappye/Python-Study | 3935e1d9ffead3afb1b39823a4114006094a6542 | 40a421980e9f56a97f6f7b9eb00bbf983ee12c5b | refs/heads/master | 2023-08-30T17:36:26.313896 | 2021-11-16T09:53:39 | 2021-11-16T09:53:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | # 常规方法创建
class Foo:
pass
# 常规方法创建
class Bar(Foo):
attr = 100
x = Foo()
print(x)
# 动态创建,和上面等价
Bar = type('Bar', (Foo,), dict(attr=100))
x = Bar()
print(x)
print(type(x))
| [
"516495459@qq.com"
] | 516495459@qq.com |
76a14a2500ada13704b7d69ed40d39c206497011 | 680db028bdfd570688e66009dd41a424b2395a6e | /Camelcase.py | 51a76dd0a42b6afcae6e169004a153a3dac0257b | [] | no_license | vitcmaestro/player | 46fcf3138a7ba98a3aadae60aebdd68efdd16c55 | 8b9b132ec5f3dfe22521daf6122431451db8d880 | refs/heads/master | 2020-04-15T16:43:53.944347 | 2019-01-20T05:00:31 | 2019-01-20T05:00:31 | 164,848,284 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | str1 = input("")
str2 =""
for i in range(len(str1)):
if(i==0):
str2 +=str1[i].upper()
elif(str1[i-1].isspace()):
str2 +=str1[i].upper()
else:
str2 +=str1[i]
print(str2)
| [
"noreply@github.com"
] | vitcmaestro.noreply@github.com |
149488d35576cf1a5937c6f95ae55ab3c88828d9 | 837d683ccf6aa08b0ad6d95f6af47fcc12b72da3 | /pedersen_vss.py | 586d0dff4ce73808e4596e669d77272e83f15f10 | [] | no_license | froyobin/secretsharing | deef2cdb9be72ff51be339bfaae4822e351b8cf1 | 737f2aa074e0cb6f082916bd11afc658732777e1 | refs/heads/master | 2021-01-11T21:32:12.720629 | 2017-01-20T00:46:31 | 2017-01-20T00:46:31 | 78,798,569 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,479 | py | import argparse
import shamir_secret_sharing
from Crypto.Util import number
#To make it simple, we give the f(X)=5+3x+8x^2 as params. It is easy to do
# the test and write the code.
p = int(
"FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF... | [
"froyo.bin@gmail.com"
] | froyo.bin@gmail.com |
32e1da53f66f709ec826c5e6e98b69f964055011 | 644bcdabf35261e07c2abed75986d70f736cb414 | /python-project/Defis/Euler_44_Test.py | 059d736f3c4546ec361ff33f1fc9b32183c5bd48 | [] | no_license | matcianfa/playground-X1rXTswJ | f967ab2c2cf3905becafb6d77e89a31414d014de | 67859b496e407200afb2b1d2b32bba5ed0fcc3f0 | refs/heads/master | 2023-04-03T11:56:15.878757 | 2023-03-24T15:52:37 | 2023-03-24T15:52:37 | 122,226,979 | 5 | 20 | null | null | null | null | UTF-8 | Python | false | false | 1,110 | py | #Ne pas oublier de changer le module à importer
module="Defis/Euler_44"
import sys
import io
#On récupère les données de l'utilisateur
sauvegarde_stdout=sys.stdout
sys.stdout=io.StringIO()
from Euler_44 import *
count1 = sys.stdout.getvalue()[:-1]
sys.stdout=sauvegarde_stdout
from ma_bao import *
#La réponse
reponse... | [
"noreply@github.com"
] | matcianfa.noreply@github.com |
07e8af6fb34efbf28fd13da8b7998358fa68674c | f9c2e53c48839fe5583f6da48e800eba793f83c8 | /custom_components/hacs/repositories/integration.py | 8470873279f13b52e25cd0fb77a631d30b168ab2 | [] | no_license | Bobo2012/homeassistant-config | d6a5ebdd8de978d14a5d060ad77975280efdf95e | ee2567182e3ef250ee2a2e1a403fbc6f27057861 | refs/heads/master | 2020-08-21T20:04:53.531610 | 2019-10-18T22:59:54 | 2019-10-18T22:59:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,501 | py | """Class for integrations in HACS."""
import json
from aiogithubapi import AIOGitHubException
from homeassistant.loader import async_get_custom_components
from .repository import HacsRepository, register_repository_class
@register_repository_class
class HacsIntegration(HacsRepository):
"""Integrations in HACS."""... | [
"arsaboo@gmx.com"
] | arsaboo@gmx.com |
d95810328bbed890c7daf776a9675beedc3d8cd2 | 473568bf080e3637ee118b374f77e9f561286c6c | /SudoPlacementCourse/LeadersInAnArray.py | b2b997ace46a797ad0dd241ff7cd5667a35adba3 | [] | no_license | VineetPrasadVerma/GeeksForGeeks | c2f7fc94b0a07ba146025ca8a786581dbf7154c8 | fdb4e4a7e742c4d67015977e3fbd5d35b213534f | refs/heads/master | 2020-06-02T11:23:11.421399 | 2020-01-07T16:51:18 | 2020-01-07T16:51:18 | 191,138,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | # n = int(input())
#
# for k in range(n):
# final_ans_list = []
# size_of_array = int(input())
# list_of_elements = input()
#
# int_list_of_elements = [int(i) for i in list_of_elements.split()]
#
# for i in range(len(int_list_of_elements)):
# if i == len(int_list_of_elements) - 1:
# ... | [
"vineetpd1996@gmail.com"
] | vineetpd1996@gmail.com |
8294fce530b848259f949592831c9de1c760dbad | 14a913fce4b538b22f28409645cd6abe3455808f | /bigquery/cloud-client/natality_tutorial.py | 5bfa8f1d27a9736075f271b77657e9342df6d688 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | iamLoi/Python-Random-Number-Generator | 8da7dbd37cb13a01232c8ed49b9df35a99c63d73 | 7579e8b15130802aaf519979e475c6c75c403eda | refs/heads/master | 2022-08-29T19:05:32.649931 | 2019-09-14T14:48:58 | 2019-09-14T14:48:58 | 208,454,877 | 2 | 1 | Apache-2.0 | 2022-08-05T21:57:49 | 2019-09-14T14:51:05 | Python | UTF-8 | Python | false | false | 2,926 | py | #!/usr/bin/env python
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required... | [
"noreply@github.com"
] | iamLoi.noreply@github.com |
0618850a5db7746378ebd7c6d18fc84b9305a5e3 | 05324b134108e0e0fde392e0ae0fc22bfa1fb75f | /df_user/islogin.py | d2149c4633a4871adc7f90b232f8ccc8e25afcec | [] | no_license | 2339379789/zhang_ttshop | 2c8d546b9ed3710fd1f48d6075ea01955247d34f | 44f9eb998182f4aa027d5d313b4957410b54a39d | refs/heads/master | 2020-03-06T15:40:54.261769 | 2018-03-27T09:23:52 | 2018-03-27T09:23:52 | 126,960,140 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | from django.http import HttpResponseRedirect
def islogin(func):
def login_fun(request, *args, **kwargs):
if request.session.get('user_id'):
return func(request, *args, **kwargs)
else:
red = HttpResponseRedirect('/user/login')
red.set_cookie('url', reque... | [
"2339379789@qq.com.com"
] | 2339379789@qq.com.com |
fcdd844f805ea4a7bd79824935397e4ae355b4f3 | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/4052/354004052.py | c318eb1028c5e6c2d9a7772e6ec4c9f7cf7069da | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 453 | py | from bots.botsconfig import *
from records004052 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'AY',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'M10', MIN: 1, MAX: 1},
{ID: 'P4', MIN: 1, MAX: 20, LEVEL... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
c3b06571705e3d42ea421dbcc6cb94538267f247 | 078533ce919371451564646e3c311c8dd6fca7ea | /app/settings/prod.py | 1425b25dbaa062e89c3c39a5947da1224923cd03 | [] | no_license | cr8ivecodesmith/djdraft | cf5415a967dc7fc6f4f8d191def9c2b687c0d744 | 364ded3ea43acc874de367cd679c4bddfb64d837 | refs/heads/master | 2020-04-05T23:07:20.690873 | 2016-10-06T05:11:29 | 2016-10-06T05:11:29 | 23,010,461 | 2 | 1 | null | 2016-10-03T13:42:04 | 2014-08-16T04:17:23 | Python | UTF-8 | Python | false | false | 1,558 | py | from .base import *
DEBUG = False
ALLOWED_HOSTS = [
'{{ project_name }}.dev',
]
###### APP CONFIGURATION
# See: https://docs.djangoproject.com/en/dev/ref/settings/#installed-apps
INSTALLED_APPS += [
]
###### DATABASE CONFIGURATION
# https://docs.djangoproject.com/en/dev/ref/settings/#databases
DATABASES = {... | [
"matt@lebrun.org"
] | matt@lebrun.org |
0af0e6aeb4bf93bb5c2c00acba6daf1feb4788c2 | 0566cf76b456518875edecece15e763a36a4795f | /scrapers/tv_showsonline_com.py | 6208f8a041fec633df9bb9e2989a3db26e001ce2 | [] | no_license | theclonedude/Scraping_BeautifulSoup_phantomjs | 684b1f7a993e0d2555daa7a5455cf19bd29b0b1b | faf653feae46c21a72d13b2123cdebdb2f7c05d8 | refs/heads/master | 2023-03-16T19:36:14.867361 | 2018-06-14T14:21:02 | 2018-06-14T14:21:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,148 | py |
from sandcrawler.scraper import ScraperBase
from sandcrawler.scraper import SimpleScraperBase
class TvShowsOnline(SimpleScraperBase):
BASE_URL = 'http://www.7stream.pro/'
OTHER_URLS = ['http://tv-showsonline.com', ]
def setup(self):
self.register_scraper_type(ScraperBase.SCRAPER_TYPE_OSP)
... | [
"stryokka@gmail.com"
] | stryokka@gmail.com |
585c1f38e68fa896e9f1b91523d7cde15f833d05 | 544fe02a27cc4d987724b1bf45c2ba2994676521 | /Q6.3_brain_teasers.py | c42fb93923fdbb832381c85a4fbe252f28b128c3 | [
"Unlicense"
] | permissive | latika18/learning | 1e7a6dbdea399b845970317dc62089911a13df1c | a57c9aacc0157bf7c318f46c1e7c4971d1d55aea | refs/heads/master | 2021-06-16T19:20:28.146547 | 2019-09-03T06:43:28 | 2019-09-03T06:43:28 | 115,537,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | #You have a five quart jug and a three quart jug, and an unlimited supply of water (but no measuring cups).
How would you come up with exactly four quarts of water?
#NOTE: The jugs are oddly shaped, such that filling up exactly ‘half’ of the jug would be impossible.
_
___________________________________________________... | [
"noreply@github.com"
] | latika18.noreply@github.com |
e2e7d5b9b92f7a0b1b6801b43db9c95bca9229f0 | 1d159ff6d4d72b1a2399916ec1e28ef885b59323 | /solutions/module_3/01_guess_my_number.py | 4b9c9b119b0c1c64362318c3850d074b0c21f484 | [] | no_license | Zerl1990/python_essentials | 4e329b6e36b36ff340d505b26608d2b244ad2d09 | ce257c25072debed9717960591e39c586edd7110 | refs/heads/master | 2023-02-28T17:42:17.465769 | 2021-02-02T23:39:41 | 2021-02-02T23:39:41 | 297,385,479 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 884 | py | import random
print((
"+=========================================+\n"
"| Guess my number! |\n"
"| Please, select a numbers between [0-100]|\n"
"| Let's start you have 10 opportunities |\n"
"+=========================================+\n"
))
my_number = random.randint(0, 100... | [
"luis.m.rivas@oracle.com"
] | luis.m.rivas@oracle.com |
3972d6d7840538ecae880e9e1fda6b25c54b8bb0 | db12b990924703cd74748d8585cd9c11fafa6746 | /h2o-py/tests/testdir_apis/H2O_Module/pyunit_h2oas_list.py | 3e7ec87a09dad726385a034be07e5ed147db3d49 | [
"Apache-2.0"
] | permissive | h2oai/h2o-3 | 919019a8f297eec676011a9cfd2cc2d97891ce14 | d817ab90c8c47f6787604a0b9639b66234158228 | refs/heads/master | 2023-08-17T18:50:17.732191 | 2023-08-17T16:44:42 | 2023-08-17T16:44:42 | 17,371,412 | 6,872 | 2,345 | Apache-2.0 | 2023-09-14T18:05:40 | 2014-03-03T16:08:07 | Jupyter Notebook | UTF-8 | Python | false | false | 727 | py | import sys
sys.path.insert(1,"../../../")
from tests import pyunit_utils
import h2o
from h2o.utils.typechecks import assert_is_type
def h2oas_list():
"""
Python API test: h2o.as_list(data, use_pandas=True, header=True)
Copied from pyunit_frame_as_list.py
"""
iris = h2o.import_file(path=pyunit_utils... | [
"noreply@github.com"
] | h2oai.noreply@github.com |
c79d336c33025ee87041b0924dfe4af9287a02f3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03087/s875530520.py | c6f926255e87de91fe2fee869e4c531b1ffd87e1 | [] | 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 | 313 | py | N, Q = map(int, input().split())
S = str(input())
li = []
cnt = 0
for i in range(N-1):
if S[i]=='A' and S[i+1]=='C':
cnt += 1
li.append(cnt)
else:
li.append(cnt)
for i in range(Q):
l, r = map(int, input().split())
if l > 1:
ans = li[r-2] - li[l-2]
else:
ans = li[r-2]
print(ans)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
16d806ed7bb7721136f1534dbe98b1aaa13ec985 | b15c47a45207e854fb002d69f7e33f8943a5e2b3 | /cluster/preprocess/pre_node_merge_text2seq.py | c25a02debf845bcb7cf7835b41e46d424efd847a | [
"Apache-2.0"
] | permissive | yurimkoo/tensormsa | e1af71c00a6b2ec3b3ed35d5adad7bafc34c6fbe | 6ad2fbc7384e4dbe7e3e63bdb44c8ce0387f4b7f | refs/heads/master | 2021-07-22T13:41:45.110348 | 2017-11-02T07:13:31 | 2017-11-02T07:13:31 | 109,469,204 | 1 | 0 | null | 2017-11-04T05:19:51 | 2017-11-04T05:19:50 | null | UTF-8 | Python | false | false | 2,165 | py | from cluster.preprocess.pre_node import PreProcessNode
from master.workflow.preprocess.workflow_pre_merge import WorkFlowPreMerge as WFPreMerge
class PreNodeMergeText2Seq(PreProcessNode):
"""
"""
def run(self, conf_data):
return True
def _init_node_parm(self, key):
"""
:ret... | [
"tmddno1@naver.com"
] | tmddno1@naver.com |
ae3450610d3f4a3c4469aa2562e125c8a4c0108f | 475e2fe71fecddfdc9e4610603b2d94005038e94 | /Facebook/moveZeroes.py | f41fef3843fc872dc295c4699bbbe39783028f77 | [] | no_license | sidhumeher/PyPractice | 770473c699aab9e25ad1f8b7b7cd8ad05991d254 | 2938c14c2e285af8f02e2cfc7b400ee4f8d4bfe0 | refs/heads/master | 2021-06-28T20:44:50.328453 | 2020-12-15T00:51:39 | 2020-12-15T00:51:39 | 204,987,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 572 | py | '''
Created on Oct 8, 2020
@author: sidteegela
'''
'''
Input: [0,1,0,3,12]
Output: [1,3,12,0,0]
Input: [0,0]
Output: [0,0]
'''
'''
A two-pointer approach could be helpful here. The idea would be to have one pointer
for iterating the array and another pointer that just works on the non-zero elements
of the array.
... | [
"sidhumeher@yahoo.co.in"
] | sidhumeher@yahoo.co.in |
2ff02576828483feb35dafe118dc773c7fb9f7a0 | da19363deecd93a73246aaea877ee6607daa6897 | /xlsxwriter/test/comparison/test_page_breaks05.py | fb2c64036f0be6ae53d7ae0229ca42202a630f17 | [] | no_license | UNPSJB/FarmaciaCrisol | 119d2d22417c503d906409a47b9d5abfca1fc119 | b2b1223c067a8f8f19019237cbf0e36a27a118a6 | refs/heads/master | 2021-01-15T22:29:11.943996 | 2016-02-05T14:30:28 | 2016-02-05T14:30:28 | 22,967,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | ###############################################################################
#
# Tests for XlsxWriter.
#
# Copyright (c), 2013-2015, John McNamara, jmcnamara@cpan.org
#
from ..excel_comparsion_test import ExcelComparisonTest
from ...workbook import Workbook
class TestCompareXLSXFiles(ExcelComparisonTes... | [
"lealuque.tw@gmail.com"
] | lealuque.tw@gmail.com |
2ae73fa529d6a5d8123828c55ea1d50f63660ebd | 4a43cded9d76bd05ca87f037de19ff921a60e151 | /13day/07-线程多任务.py | 4669c5331f43b6623bc152dc6442a8ad57e8eec5 | [] | no_license | lishuang1994/-1807 | f7d54c3c93d41539747fc77529d56e73a931676f | 23ee6d351a2797d3f5ba7907954d1a93d2745c10 | refs/heads/master | 2020-03-25T10:09:39.333264 | 2018-08-22T10:53:49 | 2018-08-22T10:53:49 | 143,685,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 196 | py | import time
from threading import Thread
def saysorry():
print("亲爱的,跪安了")
time.sleep(1)
for i in range(5):
#t = Threadinng(target=saysorry)
#t.start()
saysorry()
| [
"840948928@qq.com"
] | 840948928@qq.com |
e34d413a8c1c98d6d21b693a46353b5a9c8d1190 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2819/60731/291725.py | 8bfd0a4aca43e95e2c7b094a9d0e61a6a52acd4a | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | n=int(input())
data=list(map(int,input().split()))
numof1=data.count(1)
numof2=data.count(2)
numof3=data.count(3)
numof4=data.count(4)
ans=0
ans+=numof4
num1=int(numof1/4)
ans+=num1
numof1-=4*num1
num2=int(numof2/2)
ans+=num2
numof2-=2*num2
if (num2+numof3)>=numof1:
ans+=(numof2+numof3)
else:
ans+=numof1
print(... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
55782bca4fc53bfb30a3d26d1336c6538a21a16a | 6b8c3974d3ce5f7841e51dcb406666c0c5d92155 | /heat/heat_integrationtests/common/clients.py | c7a7f60e6cf45d26c6119542ab40388bb7cfed8a | [
"Apache-2.0"
] | permissive | swjang/cloudexchange | bbbf78a2e7444c1070a55378092c17e8ecb27059 | c06ed54f38daeff23166fb0940b27df74c70fc3e | refs/heads/master | 2020-12-29T03:18:43.076887 | 2015-09-21T07:13:22 | 2015-09-21T07:13:22 | 42,845,532 | 1 | 1 | null | 2015-09-21T07:13:22 | 2015-09-21T05:19:35 | C++ | UTF-8 | Python | false | false | 5,888 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | [
"kiku4@kinx.net"
] | kiku4@kinx.net |
7b56fc22aa32b03fb0cfa39a1d0b49bca82553d5 | 59d5a801dd8361fe2b68f0cdfc1a0c06bbe9d275 | /Competition/fast-flux域名检测/backup/v1/feature_engineering.py | 70c7ab417fa009bb50ad40233fda391a9e85cdb7 | [] | no_license | HanKin2015/Machine_to_DeepingLearning | 2ff377aa68655ca246eb19bea20fec232cec5d77 | 58fa8d06ef8a8eb0762e7cbd32a09552882c5412 | refs/heads/master | 2023-01-25T01:16:41.440064 | 2023-01-18T08:23:49 | 2023-01-18T08:23:49 | 134,238,811 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,016 | py | # -*- coding: utf-8 -*-
"""
文 件 名: feature_engineering.py
文件描述: 特征工程
作 者: HanKin
创建日期: 2022.10.18
修改日期:2022.10.18
Copyright (c) 2022 HanKin. All rights reserved.
"""
from common import *
def exception_value_processing_by_delete(dataset, feature, lower_threshold, upper_threshold):
"""异常值处理(删除)
... | [
"1058198502@qq.com"
] | 1058198502@qq.com |
e3c587cf4a2d905939a4c7e8750bc6d0ff07f00c | 4c718d78039ca97e1a9b18897642e8bc5cd394d9 | /Python code of quizzes/Lesson 6/TagTypes.py | e4bdc42307b8303b26cd8b79cf4aa17d2960ee3f | [] | no_license | aish27/data-wrangle-openstreetmaps-data | 81a3fa4a1a06ea8972f6e98af77e9e71350a65bc | 9e5eedf49ca67b480bb969ebe4db77df62bf238d | refs/heads/master | 2020-12-02T19:26:04.726496 | 2015-06-12T17:38:37 | 2015-06-12T17:38:37 | 37,049,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | #Determines the problematic tag types that exist in a dataset and their numbers.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import xml.etree.cElementTree as ET
import pprint
import re
lower = re.compile(r'^([a-z]|_)*$')
lower_colon = re.compile(r'^([a-z]|_)*:([a-z]|_)*$')
problemchars = re.compile(r'[=\+/&... | [
"root@ip-10-47-174-141.ec2.internal"
] | root@ip-10-47-174-141.ec2.internal |
a0c7ffbc2b8b323aaf0df3752796182fa2ad9aa5 | 0d0cf0165ca108e8d94056c2bae5ad07fe9f9377 | /12_Dimensionality_Reduction_in_Python/2_Feature_selection_I_selecting_for_feature_information/visualizingTheCorrelationMatrix.py | 219bc39cbbc113f94d69e038232a34aa880c624e | [] | no_license | MACHEIKH/Datacamp_Machine_Learning_For_Everyone | 550ec4038ebdb69993e16fe22d5136f00101b692 | 9fe8947f490da221430e6dccce6e2165a42470f3 | refs/heads/main | 2023-01-22T06:26:15.996504 | 2020-11-24T11:21:53 | 2020-11-24T11:21:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # Visualizing the correlation matrix
# Reading the correlation matrix of ansur_df in its raw, numeric format doesn't allow us to get a quick overview. Let's improve this by removing redundant values and visualizing the matrix using seaborn.
# Seaborn has been pre-loaded as sns, matplotlib.pyplot as plt, NumPy as np an... | [
"noreply@github.com"
] | MACHEIKH.noreply@github.com |
f765a53567eb4d535fe4f1d1fd0c6899ff8f27de | 4edbeb3e2d3263897810a358d8c95854a468c3ca | /python3/psutil/count1.py | 2930af68edad4e73b64927a1ebaa37e2c82cd7d6 | [
"MIT"
] | permissive | jtraver/dev | f505d15d45b67a59d11306cc7252114c265f388b | 2197e3443c7619b856470558b737d85fe1f77a5a | refs/heads/master | 2023-08-06T02:17:58.601861 | 2023-08-01T16:58:44 | 2023-08-01T16:58:44 | 14,509,952 | 0 | 1 | MIT | 2020-10-14T18:32:48 | 2013-11-19T00:51:19 | Python | UTF-8 | Python | false | false | 233 | py | #!/usr/bin/env python3
#!/usr/bin/python
import time
import sys
def main():
# for count in xrange(10000000):
for count in range(10):
print("%s" % str(count))
sys.stdout.flush()
time.sleep(1)
main()
| [
"john@aeropsike.com"
] | john@aeropsike.com |
22333f24e36f7de94f303b98576d2fb4166f585b | e91fe9c77c39ab855383839820867d5dda27cfdd | /posts/api/pagination.py | feb17a52e7d48c1ab4073025106caa309455469e | [] | no_license | chutchais/Blog-API | 6a69580c1f97ecce01e500de56e730864f1e519a | 8402d638832703aa4ede7e7e05ac47a902320cd9 | refs/heads/master | 2021-01-12T03:19:36.874801 | 2017-01-12T14:48:42 | 2017-01-12T14:48:42 | 78,195,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from rest_framework.pagination import (
LimitOffsetPagination,
PageNumberPagination,
)
class PostLimitOffsetPagination(LimitOffsetPagination):
default_limit =2
max_limit=10
class PostPageNumberPagination(PageNumberPagination):
page_size=2
| [
"chutchai.s@gmail.com"
] | chutchai.s@gmail.com |
b878c8557764a724f1d3aeb71971de4a8a664095 | 2fac796fa58c67fb5a4a95a6e7f28cbef169318b | /python/connecting-graph-ii.py | 8dd9c83c7a70a19f748db2b7a41f9c71f45adecf | [] | no_license | jwyx3/practices | f3fe087432e79c8e34f3af3a78dd10278b66dd38 | 6fec95b9b4d735727160905e754a698513bfb7d8 | refs/heads/master | 2021-03-12T20:41:59.816448 | 2019-04-14T06:47:30 | 2019-04-14T06:47:30 | 18,814,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | class ConnectingGraph2:
# @param {int} n
def __init__(self, n):
self.father = [0 for i in xrange(n + 1)]
self.counter = [1 for i in xrange(n + 1)]
def find(self, a):
if self.father[a] == 0:
return a
self.father[a] = self.find(self.father[a])
return self.... | [
"jwyx88003@gmail.com"
] | jwyx88003@gmail.com |
10f6230475b7cd896a058d46d101b08a3ccd9aa9 | 1885e952aa4a89f8b417b4c2e70b91bf1df887ff | /ABC163/D.py | 618f915abc6ca69fb1b9175433ddb970de9c633a | [] | no_license | takumiw/AtCoder | 01ed45b4d537a42e1120b1769fe4eff86a8e4406 | 23b9c89f07db8dd5b5345d7b40a4bae6762b2119 | refs/heads/master | 2021-07-10T12:01:32.401438 | 2020-06-27T14:07:17 | 2020-06-27T14:07:17 | 158,206,535 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 355 | py | import sys
readline = sys.stdin.buffer.readline
MOD = 10 ** 9 + 7
def main():
N, K = map(int, readline().rstrip().split())
ans = 0
m = (N * (N + 1)) // 2
for k in range(K, N+2):
mi = ((k-1) * k) // 2
ma = m - ((N-k) * (N-k+1)) // 2
ans += (ma - mi + 1)
print(ans % MOD)
if... | [
"w.tak.1229@gmail.com"
] | w.tak.1229@gmail.com |
5ae57a50894ee06d799ee88acb9132651d570cb8 | 78f54f911d47019da0deeeb6579c7e9e65bb8d21 | /src/scheduler/models/dao/common/Log.py | 1171ab5340bfce2bfeec5a4abb90b01fc98e85fa | [
"MIT"
] | permissive | jedicontributors/pythondataintegrator | 02f8ae1a50cf5ddd85341da738c24aa6a320c442 | 3e877b367ab9b20185476128ec053db41087879f | refs/heads/main | 2023-06-15T07:37:13.313988 | 2021-07-03T15:46:43 | 2021-07-03T15:46:43 | 354,021,102 | 0 | 0 | MIT | 2021-07-03T15:46:44 | 2021-04-02T13:03:12 | Python | UTF-8 | Python | false | false | 913 | py | from sqlalchemy import Column, String, Integer, DateTime
from IocManager import IocManager
from models.dao.Entity import Entity
class Log(Entity, IocManager.Base):
__tablename__ = "Log"
__table_args__ = {"schema": "Common"}
TypeId = Column(Integer, index=True, unique=False, nullable=False)
Content = C... | [
"ahmetcagriakca@gmail.com"
] | ahmetcagriakca@gmail.com |
084706420a235cb05902a3d6090d79a5ce7dd498 | 3ce592352627591346ea33ea0c2665ad879414e2 | /References/opengl/computer.graphics.through.opengl/02_basic_drawing/moveSphere.py | eda2a48c42e3589ed85713e89d5a27c85fe955ba | [
"MIT"
] | permissive | royqh1979/python_libs_usage | 113df732ef106f4a5faae1343493756fd703c8c0 | 57546d5648d8a6b7aca7d7ff9481aa7cd4d8f511 | refs/heads/master | 2021-04-16T18:14:43.835482 | 2021-01-11T03:55:25 | 2021-01-11T03:55:25 | 249,374,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,672 | py | """
// moveSphere.py
//
// This program allows the user to move a sphere to demonstrate
// distortion at the edges of the viewing frustum.
//
// Interaction:
// Press the arrow keys to move the sphere.
// Press the space bar to rotate the sphere..
// Press r to reset.
//
"""
from PyQt5 import QtWidgets, QtCore, QtGui,... | [
"royqh1979@gmail.com"
] | royqh1979@gmail.com |
e0287539bd801f859c461d1ae1d70b8055288938 | 5759c0ed3219c06437ce5b39ef9ad92b5e191fed | /py/0428_serialize_and_deserialize_n_ary_tree.py | 1df779c0ca32628d1c3067e97cc5b065abbbda52 | [] | no_license | mengnan1994/Surrender-to-Reality | ba69df7c36112ad19f19157a9f368eae6340630f | 66232728ce49149188f863271ec2c57e426abb43 | refs/heads/master | 2022-02-25T01:34:49.526517 | 2019-09-22T17:21:28 | 2019-09-22T17:21:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,773 | py | """
Serialization is the process of converting a data structure or object into a sequence of bits so that it can be stored in a file or memory buffer,
or transmitted across a network connection link to be reconstructed later in the same or another computer environment.
Design an algorithm to serialize and deseria... | [
"hurricane.cui@gmail.com"
] | hurricane.cui@gmail.com |
18f43854543ea9c9c8c46129f56e665c7042d7d6 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/468/usersdata/304/111685/submittedfiles/Av2_Parte3.py | 8f2fd9356f208463f08f81498b9a718876b02d30 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # -*- coding: utf-8 -*-
m = int(input('Quantas listas: '))
n = int(input('Qntd elemento listas: '))
for i in range (0,m,1):
lista=[]
for j in range (0,n,1):
lista.append(int(input('Elemento: ')))
media = sum(lista)/len(lista)
soma = 0
for i in range (0,(n-1),1):
soma += ((i - media))
dp... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
feb64c06c982a14449c43ee53cc8a6183106fe90 | 093b7b3ce929fa1383d5c1571271807f171aec23 | /rocket/entities/api/endpoint.py | 971b53d78b7948b93078e3f8e4b2b12806ebba05 | [] | no_license | takaaki-mizuno/smart-rocket-cli | fa728a13bc80781aea182922f7a0ee2c546518b1 | 1b4a522c54e94857803f9be246f0c480e50dae3d | refs/heads/master | 2020-03-21T02:06:54.115723 | 2018-06-25T22:43:32 | 2018-06-25T22:43:32 | 137,980,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 934 | py | from .parameter import Parameter
from .response import Reference
class Endpoint:
def __init__(self, path, method, definition, spec):
self.path = path
self.method = method
self.definition = definition
self.spec = spec
self.parameters = []
self.response = None
... | [
"takaaki.mizuno@gmail.com"
] | takaaki.mizuno@gmail.com |
8d5c12675fbee82c4d20320e48951b0b9f1842e2 | f716ec8240b775170283cb6d43da50d0ff3561b7 | /testkraken/testing_functions/check_output.py | 9eeb9c524b75d5c5bbe91ba9471dee63bc318ab0 | [] | no_license | jdkent/testkraken | 63493df89a5ae427dab9da14fc794de96cda6cef | 3b5d83f0eeaad7969902cfa867e6b4a1d4d7e691 | refs/heads/master | 2020-06-01T11:39:57.286709 | 2019-06-07T09:55:16 | 2019-06-07T09:55:16 | 190,766,540 | 0 | 0 | null | 2019-06-07T15:24:49 | 2019-06-07T15:24:49 | null | UTF-8 | Python | false | false | 3,766 | py | #/usr/bin/env python
from __future__ import division
import json
import os, inspect
from glob import glob
import pandas as pd
import numpy as np
import pdb
def creating_dataframe(files_list):
""" reads every json file from the files_list and creates one data frame """
outputmap = {0: 'voxels', 1: 'volume'}
... | [
"djarecka@gmail.com"
] | djarecka@gmail.com |
533ca7f861f7a6a34ff0265d601d017f0f9835f7 | b6d82335dfe93f86977e4cbafe592eff32536712 | /src/aws_hashicorp_packer_reaper/schema.py | f028da830fb0a93c2da236b6aabc65f3a6ed1a36 | [
"Apache-2.0"
] | permissive | felixubierar/aws-hashicorp-packer-reaper | 2bb9709b3c95c53d519fa5d009cbafc48232b1b4 | 9b29f6896f43a01f47d2a894059e4afa191a8ff2 | refs/heads/master | 2023-05-19T17:01:23.872830 | 2021-06-14T08:57:50 | 2021-06-14T08:57:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,835 | py | import durations
from aws_hashicorp_packer_reaper.logger import log
from jsonschema.exceptions import ValidationError
from jsonschema import validators, Draft7Validator, FormatChecker, validators
schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"properties": {
"mo... | [
"mark.van.holsteijn@gmail.com"
] | mark.van.holsteijn@gmail.com |
3d6fae9b8527d4f8823a630b37b8fecb7d2d8207 | b9f21bc90eed396dde950c30a1b482be0fb8ba30 | /AtCoder/ABC/114-B_1.py | 85c142e193b383c2ee95f438be3c37a3edec97b1 | [] | no_license | nanigasi-san/nanigasi | 127a21db1b31759908fd74cebabe240e5abf8267 | 5e3c3e78344dd9558cafe439beb272b9a80d0f3a | refs/heads/master | 2020-04-03T18:57:40.132489 | 2019-06-19T15:03:38 | 2019-06-19T15:03:38 | 155,504,101 | 1 | 0 | null | 2019-02-20T09:40:05 | 2018-10-31T05:33:11 | Python | UTF-8 | Python | false | false | 155 | py | S = list(input())
list = []
for _ in range(len(S)-2):
Sx = S[_]+S[_+1]+S[_+2]
sa = int(Sx)-753
list.append(abs(sa))
list.sort()
print(list[0])
| [
"nanigasi.py@gmail.com"
] | nanigasi.py@gmail.com |
a4f92fc07660a377a8f5ca8b05dec21c348b7a8e | 2caa47f0bdb2f03469a847c3ba39496de315d992 | /Contest/ABC086/c/main.py | 1e87c7d1f6b031f11c2f42d5104c63354529a69a | [
"CC0-1.0"
] | permissive | mpses/AtCoder | 9023e44885dc67c4131762281193c24b69d3b6da | 9c101fcc0a1394754fcf2385af54b05c30a5ae2a | refs/heads/master | 2023-03-23T17:00:11.646508 | 2021-03-20T12:21:19 | 2021-03-20T12:21:19 | 287,489,233 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | #!/usr/bin/env python3
n, *a = map(int, open(0).read().split())
a = [0]*3 + a
for i in range(n):
i *= 3
t, x, y = map(lambda j:abs(a[i+3+j]-a[i+j]), [0,1,2])
d = x+y
if d>t or d%2-t%2: print("No"); exit()
print("Yes") | [
"nsorangepv@gmail.com"
] | nsorangepv@gmail.com |
671f43d908baa3c118b7e3e44c09aee84552f4d5 | ff58ba25d940ed34d9684efab04adef85d1e1c0f | /ENV/lib/python2.6/site-packages/gunicorn/app/pasterapp.py | 388478181468378e0cb86f5300a8946ea4738159 | [] | no_license | afsmith/Kneto-Sello | e9046a81ff83652531adc55aab3f90f77af5b5be | a1b12daf8a04ef485ddcaa2944b2d87878a8cdd0 | refs/heads/master | 2021-03-27T17:31:23.830989 | 2013-06-04T07:29:58 | 2013-06-04T07:29:58 | 6,720,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,270 | py | # -*- coding: utf-8 -
#
# This file is part of gunicorn released under the MIT license.
# See the NOTICE for more information.
import logging
import os
import pkg_resources
import sys
import ConfigParser
from paste.deploy import loadapp, loadwsgi
SERVER = loadwsgi.SERVER
from gunicorn.app.base import Application
fr... | [
"andrew.smith@kneto.fi"
] | andrew.smith@kneto.fi |
1382dcbea411dd5c7a5227efcd1b1545775e46c7 | 8ecf97e0f12037ccd0b63f265fddd3bf84229d7a | /keras/inception_autoencoder_predict.py | 966fa0964b70a98e8e0ee7e382925390c8b2781a | [] | no_license | ArifSohaib/video_collission_detection | 158af02ce55d8e7f39b532417010b882106bdb2f | 79ac145f4a3d0386ffac4f4fc2cc6efda056e53f | refs/heads/master | 2021-09-11T01:36:09.085256 | 2018-04-05T19:44:40 | 2018-04-05T19:44:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,739 | py | from inception_autoencoder import build_autoencoder
import numpy as np
import pickle
import matplotlib.pyplot as plt
from sklearn import preprocessing
def main():
impact_data = np.loadtxt('../data/features/impacts_period1.npy')
full_data = np.loadtxt('../data/features/period1_full.npy')
min_max_scaler = p... | [
"arif_sohaib@outlook.com"
] | arif_sohaib@outlook.com |
490e204bc88e69d4ea255b9c9b4e172ee01ae582 | eb26f2a53339cc9880c193225919bd37078113aa | /flask/mysite/app.py | 1ce6098bfcafb1745e57a8640c7e316044ddd05d | [] | no_license | nnyong/TIL-c9 | c2590ea94c13221a45f274beb22a0f03b09bf6d4 | 2e2803ee60467ffbad7d9a704b0029476ebead0b | refs/heads/master | 2020-04-17T17:17:53.798516 | 2019-05-02T03:08:56 | 2019-05-02T03:08:56 | 166,777,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,614 | py | import os, csv
from flask import Flask, render_template, request
app=Flask(__name__)
@app.route('/')
def index():
return 'Hello World!'
@app.route('/greeting/<string:name>')
def greeting(name):
return f'반갑습니다! {name}님!'
@app.route('/cube/<int:num>')
def cube(num):
result=num**3
return str(res... | [
"jo.youthful@gmail.com"
] | jo.youthful@gmail.com |
e9ec52b3a17bacb2dda1181371225ad96a07f778 | 90e4fe85b70221ae82f99ca6930da980ef8f674a | /Anul_1/Semestru_1/FundamentalsOfProg/Seminar/s08p1_I6/src/store/ui/console.py | e9bdf474e451dc086c98f9ea7956991ddff0ca45 | [] | no_license | stefangeorgescu970/university-assignments | 108235e047b963efb6cd1b952f6b96849e1dc3d3 | 9253cc084b74a62035c96a4a2accfbba43812c16 | refs/heads/master | 2022-12-10T14:49:20.299356 | 2020-04-28T14:05:41 | 2020-04-28T14:05:41 | 259,648,446 | 0 | 0 | null | 2022-12-07T20:33:05 | 2020-04-28T13:43:02 | C++ | UTF-8 | Python | false | false | 2,116 | py | """
@author: radu
"""
import traceback
from store.domain.dto import OrderDTO
from store.domain.validators import StoreException
from util.common import MyUtil
class Console(object):
def __init__(self, product_controller, order_controller, statistics_controller):
self.__product_controller = product_cont... | [
"stefan.georgescu.970@gmail.com"
] | stefan.georgescu.970@gmail.com |
b65f85e32d7186281a2604cc160bd674c86d13a5 | 7aecab27c231c5207f26a1682543b0d6c5093c06 | /server/dancedeets/util/korean_dates.py | c6c4fe2fe48b14f79ae353c0f2e1153c24e04d9e | [] | no_license | mikelambert/dancedeets-monorepo | 685ed9a0258ea2f9439ae4ed47ebf68bb5f89256 | 4eff1034b9afd3417d168750ea3acfaecd20adc6 | refs/heads/master | 2022-08-10T07:16:32.427913 | 2018-04-15T22:05:58 | 2018-04-15T22:05:58 | 75,126,334 | 24 | 2 | null | 2022-07-29T22:28:45 | 2016-11-29T22:04:44 | Python | UTF-8 | Python | false | false | 2,382 | py | # -*-*- encoding: utf-8 -*-*-
import datetime
import re
DAWN = 6 # sun rises at 6am-ish
_DATETIME_SPAN_SEPARATOR = ur'(?:~|/|부터)' # '부터' = 'from'
_D_DATE = ur'(?P<day>\d+)[일\(]'
_MD_DATE = ur'(?:(?P<month>\d+)월\s*)?' + _D_DATE
_YMD_DATE = ur'(?:(?P<year>\d+)[년녀]\s*)?' + _MD_DATE
# WEEKDAY = r'(?:\(.\)| ..일)?'
_... | [
"mlambert@gmail.com"
] | mlambert@gmail.com |
220ac4e18bfaea6b2a5fc122ae8bcc38836508db | fafb89a3552e4dbb47d134966462ef5f3f37f576 | /KEMP/v0.6_ovelap_ok/fdtd3d/cpu/test/pbc_multi_plot.py | 218f06c00053697b3fa19d4b987ec597ccaa7b61 | [] | no_license | EMinsight/fdtd_accelerate | 78fa1546df5264550d12fba3cf964838b560711d | a566c60753932eeb646c4a3dea7ed25c7b059256 | refs/heads/master | 2021-12-14T03:26:52.070069 | 2012-07-25T08:25:21 | 2012-07-25T08:25:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,528 | py | import numpy as np
import sys, os
sys.path.append( os.path.expanduser('~') )
from kemp.fdtd3d.cpu import QueueTask, Fields, Core, Pbc, IncidentDirect
tmax = 150
tfunc = lambda tstep: np.sin(0.05 * tstep)
# plot
import matplotlib.pyplot as plt
import matplotlib as mpl
mpl.rc('image', interpolation='nearest', origin=... | [
"kh.kim@kiaps.org"
] | kh.kim@kiaps.org |
b04305f109a7f6222d39d666b9d65f277cae3196 | ce972e94fcdf19d6809d94c2a73595233d1f741d | /catkin_ws/build/tf/cmake/tf-genmsg-context.py | 552ade3ed0568d977725f0742c6cd2ff5e746bcd | [] | no_license | WilliamZipanHe/reward_shaping_ttr | cfa0e26579f31837c61af3e09621b4dad7eaaba2 | df56cc0153147bb067bc3a0eee0e1e4e1044407f | refs/heads/master | 2022-02-23T05:02:00.120626 | 2019-08-07T21:52:50 | 2019-08-07T21:52:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 830 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/local-scratch/xlv/catkin_ws/src/geometry/tf/msg/tfMessage.msg"
services_str = "/local-scratch/xlv/catkin_ws/src/geometry/tf/srv/FrameGraph.srv"
pkg_name = "tf"
dependencies_str = "geometry_msgs;sensor_msgs;std_msgs"
langs = "gencpp;geneus;genlisp;gen... | [
"xlv@cs-mars-01.cmpt.sfu.ca"
] | xlv@cs-mars-01.cmpt.sfu.ca |
c1f2cdad0c15be0461cfad4fc0ce8cad5a672d6f | eca90951b53822740812e40572e209728f71c261 | /models.py | a109ee157f955568d9590b918a0010e3fee55a02 | [] | no_license | tungvx/reporting | b7117879be773fccd90dbdb36a9e1220edc1d202 | 98f54c821aad761c0ab0ab83a8faad232ece1b41 | refs/heads/master | 2021-01-16T18:20:46.613907 | 2012-03-25T13:42:06 | 2012-03-25T13:42:06 | 3,491,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,661 | py | # -*- coding: utf-8 -*-
import datetime
from django.db import models
from django import forms
class Upload(models.Model): #Upload files table in databases
filename = models.CharField(max_length=255)
upload_time = models.DateTimeField('time uploaded')
description = models.Cha... | [
"toilatung90@gmail.com"
] | toilatung90@gmail.com |
ba265bb9d96f3ceeec3b311c1c36ce36f9c18206 | f50114692187a054bf2627695c6380d5ac79a20c | /q0028.py | 26642f410f3a67d77ed2d7e0af65fad57a49ecc3 | [] | no_license | petitepirate/interviewQuestions | c0cb8775932f90ff5c8e4ef80be468ef4155052f | 209322c1f1ddbe8111dc2c5e9c35aaf787e0196a | refs/heads/master | 2023-07-17T12:15:22.847440 | 2021-06-14T02:32:39 | 2021-06-14T02:32:39 | 286,884,022 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,685 | py | # This problem was asked by Palantir.
# Write an algorithm to justify text. Given a sequence of words and an integer line length
# k, return a list of strings which represents each line, fully justified.
# More specifically, you should have as many words as possible in each line. There should
# be at least one ... | [
"msmeganmcmanus@gmail.com"
] | msmeganmcmanus@gmail.com |
ede19815e880082d79936d9cd70e6f8e3e80d2d2 | 0ceb9ffeb2c087b8ae75c1a1179387fe36379f17 | /test_users.py | 31f33f5ba427527d4314a2b07fc4c576bc50f3d0 | [] | no_license | chetat/eveno | 47a3a99ebe4c5ea10252e1a21c45129e61b3e2ba | dbc138cde6e48039614cea52d3dc7bcad869a1dd | refs/heads/master | 2022-12-09T13:51:46.923622 | 2021-03-09T10:21:25 | 2021-03-09T10:21:25 | 224,212,711 | 0 | 0 | null | 2022-09-16T18:20:10 | 2019-11-26T14:34:12 | Python | UTF-8 | Python | false | false | 1,623 | py | import os
import json
from app import create_app, sqlalchemy as db
from sqlalchemy import create_engine, text
from flask_sqlalchemy import SQLAlchemy
from app.config import TestingConfig
from models import initialize_db
import unittest
class UsersTestCase(unittest.TestCase):
"""This class represents the Event App... | [
"yekuwilfred@gmail.com"
] | yekuwilfred@gmail.com |
0cc046943de4f6e8e84509edc6055886e1602b1e | 024a515e8741ecc88b4cc20c067a5ef7785375f2 | /preproc_dataset.py | 0241efc2f5bb8f421152bf5b2a64df8c226e9aa6 | [
"MIT"
] | permissive | PCJohn/maml | e3752a842557210e955f68479e0a056766647d54 | 17362ed5f9d85863ead5774c3e08e163c260bd16 | refs/heads/master | 2020-03-28T11:37:42.014350 | 2018-10-01T17:08:12 | 2018-10-01T17:08:12 | 148,232,484 | 0 | 0 | null | 2018-09-10T23:35:04 | 2018-09-10T23:35:03 | null | UTF-8 | Python | false | false | 1,756 | py | import os
import numpy as np
from PIL import Image
dataset = 'miniimagenet'
train_count = 10 # train samples per class
val_count = 590 # val samples per class
mnist_dir = '/home/prithvi/dsets/MNIST/trainingSet/'
omniglot_dir = '/home/prithvi/dsets/Omniglot/train'
miniimagenet_dir = '/home/prithvi/dsets/miniimagenet/t... | [
"prithvichakra@gmail.com"
] | prithvichakra@gmail.com |
976fe04075eb0ae35fbceb4cf4f95288fd19f182 | 9a0ada115978e9600ad7f1eab65fcc8825f637cf | /work_in_progress/kezhi_paper/classification/intermedia_classification_WT_new.py | 23736c730b2fe6d41790fd9dfaa294059b6a9fd6 | [] | no_license | ver228/work-in-progress | c1971f8d72b9685f688a10e4c5a1b150fa0812da | ef5baecc324da4550f81edb0513d38f039ee3429 | refs/heads/master | 2018-12-16T22:18:55.457290 | 2018-09-14T09:27:49 | 2018-09-14T09:27:49 | 56,165,301 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,223 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 06 16:16:01 2017
@author: kezhili
"""
import numpy as np
import tables
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import cross_val_score
no_neuron = 1040 # step size in the mesh
no_fea = 30
fea_no = 30
names = ["Near... | [
"ver228@gmail.com"
] | ver228@gmail.com |
694c9e252cceb994dcb65e0a0c42be5b6500d395 | 10e89eb922a5c122079a55234169e5b0e7af0819 | /histore/cli/base.py | 06f81c1b370a21633cbbc13230aeb3a0d81faa09 | [
"BSD-3-Clause"
] | permissive | Sandy4321/histore | 5753dd0008d1ae3400506181f22789aa9fdb43ba | d600052514a1c5f672137f76a6e1388184b17cd4 | refs/heads/master | 2023-04-15T07:57:49.762415 | 2021-04-28T11:12:31 | 2021-04-28T11:12:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | # This file is part of the History Store (histore).
#
# Copyright (C) 2018-2021 New York University.
#
# The History Store (histore) is released under the Revised BSD License. See
# file LICENSE for full license details.
"""Command line interface to interact with a manager for archives on the local
file system.
"""
i... | [
"heiko.muller@gmail.com"
] | heiko.muller@gmail.com |
7b4029c8b2039d20fcfa67a38e0af84120540d04 | 21e35e3889cd0064474343a3b84aa289a01f8fac | /third_example_flask_app/classes.py | 89d5863ab289c20518eb2bebec2bf9439ba3ca5f | [] | no_license | EricSchles/learn_python | b8fbc2b38647efb8e7176ac0d20708ffe1691007 | 8a5eb76aa333253a6c01f76d36dacad6bcf931ea | refs/heads/master | 2021-01-13T16:45:53.606240 | 2017-01-31T21:10:53 | 2017-01-31T21:10:53 | 77,006,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 368 | py | class Integer:
def __init__(self,number):
self.number = number
def add(self,other_integer):
self.number += other_integer
def subtract(self,other_integer):
self.number -= other_integer
def __str__(self):
return repr(self.number)
if __name__ == '__main__':
number =... | [
"ericschles@gmail.com"
] | ericschles@gmail.com |
6c81ceed055c2d375b64725926e5208cb180263e | 4e96f383d4703ad8ee58869ed91a0c8432c8a051 | /Cura/Cura/plugins/VersionUpgrade/VersionUpgrade25to26/__init__.py | c74b3218b6ee2cb2b18f90149702826398f3ef7d | [
"GPL-3.0-only",
"LGPL-3.0-only"
] | permissive | flight7788/3d-printing-with-moveo-1 | b2dba26010c4fa31815bc1d2d0966161a8600081 | 7fcb9c6b5da9245d54ac917de8c2a7f5148e42b0 | refs/heads/Feature_Marlin_with_AlanBoy | 2022-08-30T18:36:44.785058 | 2020-05-30T07:52:58 | 2020-05-30T07:52:58 | 212,583,912 | 0 | 0 | MIT | 2020-05-16T07:39:47 | 2019-10-03T13:13:01 | C | UTF-8 | Python | false | false | 2,027 | py | # Copyright (c) 2018 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.
from typing import Any, Dict, TYPE_CHECKING
from . import VersionUpgrade25to26
if TYPE_CHECKING:
from UM.Application import Application
upgrade = VersionUpgrade25to26.VersionUpgrade25to26()
def getMetaData() -> Dict... | [
"t106360212@ntut.org.tw"
] | t106360212@ntut.org.tw |
6d9ced454145fc2b7691e9934b6e754a3ceb726d | 18536f8145457a193b976eec44ee92535f588e54 | /tests/functional/s3api/test_select_object_content.py | 87750a30e5124bb75e76a8d9613cd5c8052055b8 | [
"Apache-2.0"
] | permissive | jamsheedsaeed/awsapp | 07e4ec6b9e07f679106db8e61f104ee9065e6af0 | 5498a3652b1d471a8695e14ca9739140e88a4b29 | refs/heads/master | 2023-01-01T23:44:16.181967 | 2020-06-19T06:56:48 | 2020-06-19T06:56:48 | 273,418,893 | 0 | 0 | NOASSERTION | 2022-12-26T20:16:39 | 2020-06-19T06:16:31 | Python | UTF-8 | Python | false | false | 4,758 | py | #!/usr/bin/env python
# Copyright 2018 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 ... | [
"jamsheedsaeed786@gmail.com"
] | jamsheedsaeed786@gmail.com |
d9fe6f00109d7ea449564f348bea0fbcf2feca43 | 001184c168b93118f0429b11bab55fe108928b5d | /Week 3- Programming Assignments/Orientation2.py | 533af81246e273eec244ce942ae5e3e9300f2085 | [] | no_license | harrypotter0/ml-robot | caee1f9695427b8a83f64a41420f89b948fdb801 | 06e6672ba47fd73d4077ff5a6f48bdfafaea6597 | refs/heads/master | 2021-09-14T04:28:31.987037 | 2018-05-08T14:30:04 | 2018-05-08T14:30:04 | 115,803,231 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,177 | py | # In this exercise, write a program that will
# run your previous code twice.
# Please only modify the indicated area below!
from math import *
import random
landmarks = [[20.0, 20.0], [80.0, 80.0], [20.0, 80.0], [80.0, 20.0]]
world_size = 100.0
class robot:
def __init__(self):
self.x = random.random() ... | [
"9654263057akashkandpal@gmail.com"
] | 9654263057akashkandpal@gmail.com |
d91241e28a7781f4e1b8d3e0aaae4e0162f0622f | a3eccc652f83815318bdb033a33573c5b1e073e9 | /nac/crm/views/add_lead.py | 7d6cf4cdf3c36cb198817a0d24a038fb42afd38d | [] | no_license | jsvelu/coms-dev--old | 8139fa511e2985b4d71550f1c59402069d09edf3 | de300ad6ef947d29380972a6efe809f4ef05d7e1 | refs/heads/main | 2023-07-17T20:44:36.101738 | 2021-09-04T21:56:38 | 2021-09-04T21:56:38 | 403,158,834 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,615 | py | from authtools.views import resolve_url_lazy
from django.urls import reverse_lazy
from django.views.generic.edit import FormView
from rules.contrib.views import PermissionRequiredMixin
from crm.forms.lead import LeadForm
from customers.models import Customer
from dealerships.models import Dealership
class AddLeadVie... | [
"velu@qrsolutions.in"
] | velu@qrsolutions.in |
77388ef09898130d90f9cc56214733cdd9160d06 | 4b60c34ba37e7c0611257e7934791fb43d01e254 | /src/Lib/pysparseSuperLU.py | 2524ee2635966f53d120c079893e98ac0bbfb303 | [] | no_license | regmi/pysparse | 0913ff69b5d07b58c20deb5b6f44caeaa8498d64 | ebc2ad045382c69e6bb41217c9431e51736ac4a0 | refs/heads/master | 2021-01-01T16:20:10.075871 | 2010-04-09T22:56:51 | 2010-04-09T22:56:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,502 | py | """
A framework for solving sparse linear systems of equations using an LU
factorization, by means of the supernodal sparse LU factorization package
SuperLU ([DEGLL99]_, [DGL99]_, [LD03]_).
This package is appropriate for factorizing sparse square unsymmetric or
rectangular matrices.
See [SLU]_ for more information.
... | [
"regmisk@gmail.com"
] | regmisk@gmail.com |
5e3f127541774244db776a2ad4ca2f70cd1d14b9 | dfdbc9118742bc09d7c7fe6fe42f53b7d1d7977a | /spacegame_ii/parralax.py | 3ef67de9c8ce5c05576be44f185131d62e7cf4e6 | [] | no_license | 602p/spacegame | d1c3a34233ed7c7128d5cbe4c470c168a84700ac | 1350beeb6df2b65a0c041f512fa944cbae4dba2b | refs/heads/master | 2021-01-10T19:28:19.220218 | 2015-04-27T20:37:14 | 2015-04-27T20:37:14 | 27,309,904 | 0 | 0 | null | 2015-04-20T15:12:11 | 2014-11-29T17:39:59 | Python | UTF-8 | Python | false | false | 1,454 | py | from __future__ import division
import pygame, random
import logging
module_logger=logging.getLogger("sg.parralax")
debug, info, warning, error, critical = module_logger.debug, module_logger.info, module_logger.warning, module_logger.error, module_logger.critical
class StarfieldLayer:
def __init__(self, density, col... | [
"louis@goessling.com"
] | louis@goessling.com |
fe3657f499c9f10b71a26ef58326f2f95d5634cb | 6c4486ab599fd5dea9006e41cdb89db54b47b77c | /tests/products/NGP_OBLIC_Create_Ballpark.py | 92f3d21ced7693e315f188073ea8a95c59c80077 | [] | no_license | kenito2050/Python-Page-Object-Framework-Example | 28ba61cdc1498374be4fc088a1348e0acb754dc2 | 2a3a3e6c74dc7ec7c9acce41030e9487925b9b0c | refs/heads/master | 2020-04-02T15:52:24.286208 | 2018-10-25T01:46:24 | 2018-10-25T01:46:24 | 154,587,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,830 | py | from xml.etree import ElementTree as ET
import xlrd
import time
from pages.producer_center.ballpark.ballpark_Indication import BallPark_Indication
from pages.producer_center.ballpark.ballpark_PAF import BallPark_PAF
from pages.producer_center.ballpark.ballpark_download_send import BallPark_Download_Send
from pages.prod... | [
"kvillarruel@nasinsurance.com"
] | kvillarruel@nasinsurance.com |
ce8bc8e8c5475a8d2ed27e43305f5fd02ca3d509 | da481ac79daaa68df0219e92b0d80a1a7aed1bf6 | /python/example/run_all_tests.py | 747477c1ca24629cf95203798b913aa2369a40a8 | [] | no_license | PeterZhouSZ/diff_pd | 5ebad8f8d361a3ac4b8c7fb25c923b85e01c8a31 | 45bf74bc1b601d0aba7cc5becc3d2582136b5c0b | refs/heads/master | 2023-07-06T10:56:59.660391 | 2021-08-13T04:21:07 | 2021-08-13T04:21:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | import sys
sys.path.append('../')
from importlib import import_module
from py_diff_pd.common.common import print_ok, print_error
if __name__ == '__main__':
# If you want to add a new test, simply add its name here --- you can find their names from README.md.
tests = [
# Utilities.
'render_quad... | [
"taodu@csail.mit.edu"
] | taodu@csail.mit.edu |
2958eecfff5d168b9defe4a24e536c251c58de46 | db331fb24e5b95131413c8d5cebc880674dd30f7 | /foundation/migrations/0009_title_img2.py | d49553924ebcef455145509d19762fb843f2a4e0 | [] | no_license | kmvit/personalsite | 78fb18f428e3c95219d9145cb22bdefdf8896bf9 | 5da20e853055affdad4e6d21f36bae6cfe7507b7 | refs/heads/master | 2021-06-18T13:34:03.800622 | 2017-04-07T12:40:24 | 2017-04-07T12:40:24 | 27,366,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('foundation', '0008_auto_20141201_2156'),
]
operations = [
migrations.AddField(
model_name='title',
n... | [
"kmv-it@yandex.ru"
] | kmv-it@yandex.ru |
79b729366e1e6dd4733ec4c9c4f4199ddbfb9d6a | 7b91755b1c777248050f3cadf23ed34d1f10adef | /Section3/14.py | 86af53d07f05b5c224b8112a78a39b964bf71c05 | [] | no_license | JAntonioMarin/PythonBootcamp | ef2976be0204df44e0c56a521628c73a5d274008 | 6e4af15b725913d3fda60599792e17d7d43d61d2 | refs/heads/master | 2021-01-06T16:52:57.537678 | 2020-03-26T17:36:50 | 2020-03-26T17:36:50 | 241,406,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | print('hello')
print("world")
print('this is also a string')
print(" I'm going on a run ")
print('hello \nworld')
print('hello \tworld')
print(len('hello'))
print(len('I am'))
# Coding Exercise 2: Quic Print Check
print("Hello World")
| [
"avalanch.psp@gmail.com"
] | avalanch.psp@gmail.com |
9591b223d52310912c74667e3148d1398f10c830 | 124fe233f9cc86898756b3c0fc2988c69001f670 | /tests/test_stat.py | 212f9eec83cf924d08398be7ee3032045c77594c | [
"MIT"
] | permissive | jon-rd/jc | 0c4e043ccc40fdf7a0771d48cec4d86321fc4588 | 1e18dd30a824b0463f0cad86e0da7094c47d34f9 | refs/heads/master | 2023-04-16T01:39:16.961164 | 2021-03-05T19:50:37 | 2021-03-05T19:50:37 | 351,145,638 | 0 | 0 | MIT | 2021-04-14T14:13:28 | 2021-03-24T16:14:42 | null | UTF-8 | Python | false | false | 2,659 | py | import os
import json
import unittest
import jc.parsers.stat
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
class MyTests(unittest.TestCase):
def setUp(self):
# input
with open(os.path.join(THIS_DIR, os.pardir, 'tests/fixtures/centos-7.7/stat.out'), 'r', encoding='utf-8') as f:
... | [
"kellyjonbrazil@gmail.com"
] | kellyjonbrazil@gmail.com |
3e8474ef201455aa5739a31fe47a4749d1b82850 | e6f4e3afd16a7ee5c7a8fb61f7ed697ce88ef4c4 | /Pro2/abcpp/abcpp/treeplot.py | c8a4ebaadf40cfd0ca32ddbb58e1a29142193621 | [] | no_license | xl0418/Code | 01b58d05f7fae1a5fcfec15894ce0ed8c833fd1a | 75235b913730714d538d6d822a99297da54d3841 | refs/heads/master | 2021-06-03T21:10:31.578731 | 2020-11-17T07:50:48 | 2020-11-17T07:50:48 | 136,896,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,549 | py | import sys, os
import platform
if platform.system() == 'Windows':
sys.path.append('C:/Liang/abcpp_master8/abcpp')
elif platform.system() == 'Darwin':
sys.path.append('/Users/dudupig/Documents/GitHub/Code/Pro2/Python_p2')
from dvtraitsim_py import DVSim
from dvtraitsim_shared import DVTreeData, DVParam
import n... | [
"xl0418@gmail.com"
] | xl0418@gmail.com |
a823d40e45f948799c58daf72f5a9314e5da1b4c | 25e481ef7fba79285f4c8a7fa2e81c8b2b7f9cce | /saleor/core/permissions.py | 093869518cad2dc41e345780942a66464273b61a | [
"BSD-2-Clause"
] | permissive | arslanahmd/Ghar-Tameer | 59e60def48a14f9452dfefe2edf30e362878191d | 72401b2fc0079e6d52e844afd8fcf57122ad319f | refs/heads/master | 2023-01-31T04:08:26.288332 | 2018-06-07T18:02:01 | 2018-06-07T18:02:01 | 136,231,127 | 0 | 0 | NOASSERTION | 2023-01-11T22:21:42 | 2018-06-05T20:28:11 | Python | UTF-8 | Python | false | false | 957 | py | from django.contrib.auth.models import Permission
MODELS_PERMISSIONS = [
'order.view_order',
'order.edit_order',
'product.view_category',
'product.edit_category',
'product.view_product',
'product.edit_product',
'product.view_properties',
'product.edit_properties',
'product.view_sto... | [
"arslanahmad085@gmail.com"
] | arslanahmad085@gmail.com |
9a9f2f15e46689e698a6cf1af6e148036e507196 | 0444e53f4908454e2e8ab9f70877ec76be9f872c | /reportng/migrations/0025_auto_20161204_2336.py | 76552396407602970196277f9a8d5e618d06029d | [
"MIT"
] | permissive | dedayoa/keepintouch | c946612d6b69a20a92617354fef2ce6407382be5 | 2551fc21bb1f6055ab0fc2ec040c6ba874c2838f | refs/heads/master | 2020-03-22T12:53:44.488570 | 2018-08-17T13:00:51 | 2018-08-17T13:00:51 | 140,069,262 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.10 on 2016-12-04 22:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reportng', '0024_auto_20161204_2123'),
]
operations = [
migrations.AlterFie... | [
"dedayoa@gmail.com"
] | dedayoa@gmail.com |
f6200c41fbfc26030afb9f8196b7c6948fbc18be | ecf0d106831b9e08578845674a457a166b6e0a14 | /OOP/inheritance_EXERCISE/restaurant/project/food/dessert.py | 6f120937221db42a44dd44819bf082a0f5df016c | [] | no_license | ivo-bass/SoftUni-Solutions | 015dad72cff917bb74caeeed5e23b4c5fdeeca75 | 75612d4bdb6f41b749e88f8d9c512d0e00712011 | refs/heads/master | 2023-05-09T23:21:40.922503 | 2021-05-27T19:42:03 | 2021-05-27T19:42:03 | 311,329,921 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | from project.food.food import Food
class Dessert(Food):
def __init__(self, name: str, price: float, grams: float, calories: float):
super().__init__(name, price, grams)
self.__calories = calories
@property
def calories(self):
return self.__calories
| [
"ivailo.ignatoff@gmail.com"
] | ivailo.ignatoff@gmail.com |
b0dd547c60357b7f4540d9f1064f30da3da49bfb | 3b89c0a97ac6b58b6923a213bc8471e11ad4fe69 | /python/CodingExercises/Median.py | 9fca643773716391f6ec77c8b200529cd534e8b8 | [] | no_license | ksayee/programming_assignments | b187adca502ecf7ff7b51dc849d5d79ceb90d4a6 | 13bc1c44e1eef17fc36724f20b060c3339c280ea | refs/heads/master | 2021-06-30T07:19:34.192277 | 2021-06-23T05:11:32 | 2021-06-23T05:11:32 | 50,700,556 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # Find median of an Array of numbers
def Median(ary):
ary.sort()
print(ary)
if len(ary)%2!=0:
mid=int(len(ary)/2)
return ary[mid]
else:
idx1=int(len(ary)/2)-1
idx2=int(len(ary)/2)
return (ary[idx1]+ary[idx2])/2
def main():
ary=[5, 89, 20, 64, 20, 45]
... | [
"kartiksayee@gmail.com"
] | kartiksayee@gmail.com |
66598ec0257be4760b1dc38c8228fa5050235c13 | 6929a33a7259dad9b45192ca088a492085ed2953 | /solutions/0062-unique-paths/unique-paths.py | 1ac2c0fb3f2cb34e18806ccd977c68cdb4bb37c1 | [] | no_license | moqi112358/leetcode | 70366d29c474d19c43180fd4c282cc02c890af03 | fab9433ff7f66d00023e3af271cf309b2d481722 | refs/heads/master | 2022-12-10T01:46:14.799231 | 2021-01-14T05:00:09 | 2021-01-14T05:00:09 | 218,163,960 | 3 | 0 | null | 2022-07-06T20:26:38 | 2019-10-28T23:26:47 | Python | UTF-8 | Python | false | false | 1,747 | py | # A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
#
# The robot can only move either down or right at any point in time. The robot is trying to reach the bottom-right corner of the grid (marked 'Finish' in the diagram below).
#
# How many possible unique paths are there?... | [
"983028670@qq.com"
] | 983028670@qq.com |
8c987f3e7fcca91265fa510ed17ea01cb6f62bab | b2487a96bb865cfa0d1906c4e66a4aea9b613ce0 | /pynfb/setup.py | fa813e333cb6ac1dadf94028ece66e8e86523568 | [] | no_license | gurasog/nfb | 1ccbbc7d507525cff65f5d5c756afd98ad86a7c6 | 9ff2c736c5d764f48d921bad3942c4db93390a5d | refs/heads/master | 2022-12-14T23:06:56.523586 | 2020-09-07T07:36:01 | 2020-09-07T07:36:01 | 273,970,746 | 0 | 0 | null | 2020-06-21T19:30:38 | 2020-06-21T19:30:37 | null | UTF-8 | Python | false | false | 164 | py | from cx_Freeze import setup, Executable
setup(
name = "pynfb",
version = "0.1",
description = "Python NFB",
executables = [Executable("main.py")]
) | [
"smtnm@ya.ru"
] | smtnm@ya.ru |
65ba12265ec9faffe3d18ec718e81ba5893e0a1e | d659810b24ebc6ae29a4d7fbb3b82294c860633a | /aliyun-python-sdk-unimkt/aliyunsdkunimkt/request/v20181212/ScanCodeNotificationRequest.py | 5835e1a20aefefe670ace4df8bd671a5268d659a | [
"Apache-2.0"
] | permissive | leafcoder/aliyun-openapi-python-sdk | 3dd874e620715173b6ccf7c34646d5cb8268da45 | 26b441ab37a5cda804de475fd5284bab699443f1 | refs/heads/master | 2023-07-31T23:22:35.642837 | 2021-09-17T07:49:51 | 2021-09-17T07:49:51 | 407,727,896 | 0 | 0 | NOASSERTION | 2021-09-18T01:56:10 | 2021-09-18T01:56:09 | null | UTF-8 | Python | false | false | 5,343 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
2bebb31050c1eea8eec0d868ef0ad1ce49749f7d | 38bee274b237e508175be4c37bf357621ed50195 | /pde/pdes/allen_cahn.py | f1a80a46cb539fbec959f00de2c5a1ab654a3641 | [
"MIT"
] | permissive | anna-11/py-pde | 26f0110266fdb21803e665447b1204bedb401d78 | 5b596af5f224e3ec2a7fbea8f87fab3896c19642 | refs/heads/master | 2023-06-17T09:13:34.026794 | 2021-07-09T12:10:36 | 2021-07-09T12:10:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,296 | py | """
A Allen-Cahn equation
.. codeauthor:: David Zwicker <david.zwicker@ds.mpg.de>
"""
from typing import Callable # @UnusedImport
import numpy as np
from ..fields import ScalarField
from ..grids.boundaries.axes import BoundariesData
from ..tools.docstrings import fill_in_docstring
from ..tools.numba import jit, n... | [
"david.zwicker@ds.mpg.de"
] | david.zwicker@ds.mpg.de |
c2568db3ed9af7c59ba95dc30e283b4abd83d2a1 | e9adf4bb294b22add02c997f750e36b6fea23cdc | /nw/nw_logic/nw_rules_bank.py | 432c3a0479a0241af1dc0f9ec9c891ae0851037a | [
"BSD-3-Clause"
] | permissive | bairoliyaprem/python-rules | 5aa70dbf6d9efde0d95dda4b6397e36788c22cfa | ca7ab0addf60179ea61fddad6cd65c77a6792de1 | refs/heads/master | 2022-12-17T22:15:47.745660 | 2020-09-29T00:39:03 | 2020-09-29T00:39:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,863 | py | import sqlalchemy
from sqlalchemy_utils import get_mapper
from python_rules.exec_row_logic.logic_row import LogicRow
from python_rules.rule import Rule
from python_rules.rule_bank.rule_bank import RuleBank
from nw.nw_logic import models
from nw.nw_logic.models import Customer, OrderDetail, Product, Order, Employee
d... | [
"valjhuber@gmail.com"
] | valjhuber@gmail.com |
7ca0ee05969af630f9b2b5a8871790f4991b5c08 | d55f3f715c00bcbd60badb3a31696a1a629600e2 | /students/maks/9/site2/page/management/commands/hello.py | 014dfc85a65d4e56ef7b7b974c84bd8f9de0f150 | [] | no_license | zdimon/wezom-python-course | ea0adaa54444f6deaca81ce54ee8334297f2cd1a | 5b87892102e4eb77a4c12924d2d71716b9cce721 | refs/heads/master | 2023-01-29T02:22:54.220880 | 2020-12-05T11:27:48 | 2020-12-05T11:27:48 | 302,864,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | from django.core.management.base import BaseCommand, CommandError
from page.models import Page
class Command(BaseCommand):
def handle(self, *args, **options):
print('Hello command!!!')
Page.objects.all().delete()
page1 = Page()
page1.title = 'Index page'
... | [
"you@example.com"
] | you@example.com |
4df98b423cb6c082c08b54fdbf134f6143af4b37 | cb6f314d0c8f1a943718caa46b47bbe5ef9908f5 | /test/drawings/draw_hmab.py | 21c985c2897367265b4cd012a1bfb34b55a9bbce | [
"MIT"
] | permissive | yunx-z/soln-ml | d702d5afef7d9204c89bdcba44e26f89a68b8923 | f97c991c2ad287e8d295d3058b4a9b1fd50d847b | refs/heads/master | 2022-12-26T18:00:51.457311 | 2020-09-13T08:31:58 | 2020-09-13T08:31:58 | 296,199,472 | 0 | 0 | MIT | 2020-09-17T02:37:20 | 2020-09-17T02:37:20 | null | UTF-8 | Python | false | false | 1,574 | py | import os
import sys
import time
import pickle
import argparse
import numpy as np
import autosklearn.classification
sys.path.append(os.getcwd())
parser = argparse.ArgumentParser()
dataset_set = 'diabetes,spectf,credit,ionosphere,lymphography,pc4,' \
'messidor_features,winequality_red,winequality_white,sp... | [
"1225646303@qq.com"
] | 1225646303@qq.com |
dce5217f537b1368245960c5d19597735d145b4a | b6fc54cff7037f5e4ef26cb4a645d5ea5a6fecdf | /001146StepikPyBegin/Stepik001146PyBeginсh07p01st01T01_for_20200420.py | e9b62e163ccebe48ce59797d086fef7a96ccb3fa | [
"Apache-2.0"
] | permissive | SafonovMikhail/python_000577 | 5483eaf2f7c73bc619ce1f5de67d8d689d2e7dd4 | f2dccac82a37df430c4eb7425b5d084d83520409 | refs/heads/master | 2022-12-08T10:53:57.202746 | 2022-12-07T09:09:51 | 2022-12-07T09:09:51 | 204,713,341 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 203 | py | # реализация множественного ввода
for i in range(5):
num1 = int(input())
print("Квадрат числа равен:", num1 ** 2)
print("Цикл завершен")
| [
"ms33@inbox.ru"
] | ms33@inbox.ru |
884a0b600ab0d1c224f04dbc9a3f59c3b47ca4f1 | fcd965c9333ee328ec51bc41f5bc0300cc06dc33 | /Coding Patterns/Fast & Slow Pointers/Palindrome LinkedList.py | 8e1dc912eb07d240edfe2d100acd686917699403 | [] | no_license | henrylin2008/Coding_Problems | 699bb345481c14dc3faa8bab439776c7070a1cb0 | 281067e872f73a27f76ae10ab0f1564916bddd28 | refs/heads/master | 2023-01-11T11:55:47.936163 | 2022-12-24T07:50:17 | 2022-12-24T07:50:17 | 170,151,972 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,389 | py | # Problem Challenge 1: Palindrome LinkedList (medium)
# https://designgurus.org/path-player?courseid=grokking-the-coding-interview&unit=grokking-the-coding-interview_1628743582805_17Unit
# Problem Statement
#
# Given the head of a Singly LinkedList, write a method to check if the LinkedList is a palindrome or not.
#
#... | [
"henrylin2008@yahoo.com"
] | henrylin2008@yahoo.com |
dcb3980fb3389f1967bc679b30b0ca7aa6b476c9 | 08d316151302f7ba4ae841c15b7adfe4e348ddf1 | /reviewboard/hostingsvcs/tests/test_fogbugz.py | 97cccab17520fd5b84e7a49e97c38afd16cd410c | [
"MIT"
] | permissive | LloydFinch/reviewboard | aa8cd21fac359d49b3dfc5a68c42b857c0c04bd8 | 563c1e8d4dfd860f372281dc0f380a0809f6ae15 | refs/heads/master | 2020-08-10T20:02:32.204351 | 2019-10-02T20:46:08 | 2019-10-02T20:46:08 | 214,411,166 | 2 | 0 | MIT | 2019-10-11T10:44:55 | 2019-10-11T10:44:54 | null | UTF-8 | Python | false | false | 952 | py | """Unit tests for the FogBugz hosting service."""
from __future__ import unicode_literals
from reviewboard.hostingsvcs.testing import HostingServiceTestCase
class FogBugzTests(HostingServiceTestCase):
"""Unit tests for the FogBugz hosting service."""
service_name = 'fogbugz'
fixtures = ['test_scmtools'... | [
"christian@beanbaginc.com"
] | christian@beanbaginc.com |
a3ed4c22c27ef24b07b4ce76b60d632ea251f1f0 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/212/usersdata/265/87081/submittedfiles/av1_3.py | 1d4a47463f8274d69023d764799f71ec143c55a0 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | # -*- coding: utf-8 -*-
import math
a = int(input('digite o valor de a: '))
b = int(input('digite o valor de b: '))
c = int(input('digite o valor de c: '))
i=2
j=2
k=2
while i<=a:
if a%i==0:
divisor_a=i
i=1+i
print(i)
while j<=b:
if b%j==0:
divisor_b=j
j=1+j
print(j)
while k<=c:
if c... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1849bac316628694ea87ff00774d2816a84a04ce | 6e4e395988c641856aa13aa3b68db838f0d47cc0 | /Trying out DB-API.py | 7a7c01c86e3f781089783e9aaf81459aec431027 | [
"MIT"
] | permissive | fatih-iver/Intro-to-Relational-Databases | 2669d060fd2f9c8884e936e541373eecfbe8634e | 28528132378436d6dd1f1bdec96d1e7e285b4e4d | refs/heads/master | 2020-03-16T11:26:54.090473 | 2018-05-09T21:32:38 | 2018-05-09T21:32:38 | 132,648,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | # To see how the various functions in the DB-API work, take a look at this code,
# then the results that it prints when you press "Test Run".
#
# Then modify this code so that the student records are fetched in sorted order
# by student's name.
#
import sqlite3
# Fetch some student records from the database.... | [
"noreply@github.com"
] | fatih-iver.noreply@github.com |
fa1d83149490bbaaf6e2373771de847c30a4191b | 10326daa458342fd992f4bd2f9c63c9469ae5a11 | /.graal-git-repo | 419b5f2ded2ecc3adce67832c5ddb0e5577ca1db | [
"MIT",
"CC-BY-SA-4.0"
] | permissive | charig/black-diamonds | b08c1d9dab528a9c9c935414e6af4faf2d5773fb | 0fd46caeec41f57b621143be1e4bd22d5a9a7348 | refs/heads/master | 2020-04-12T20:04:36.490970 | 2018-09-22T13:39:03 | 2018-09-22T13:39:03 | 162,725,323 | 0 | 0 | MIT | 2018-12-21T14:47:34 | 2018-12-21T14:47:34 | null | UTF-8 | Python | false | false | 2,522 | #!/usr/bin/python
# This is a self-updating script encoding the Graal+Truffle and mx repos and
# revision used for testing on CI. We don't use submodules to avoid a hard
# dependency that might bloat the repository of users of BlackDiamonds
#
# To checkout the repos, at the specified version for this version of the cod... | [
"git@stefan-marr.de"
] | git@stefan-marr.de | |
967c4163dd3b2b4b3fccef187338d4d020e0e693 | 7c63a96fad4257f4959ffeba0868059fc96566fb | /py/m_lutz-programming_python-4_ed/code/ch_01/step_06/01-cgi_basics/cgi-bin/cgi101.py | 73cd3dab161b31965720666610c168715c174345 | [
"MIT"
] | permissive | ordinary-developer/education | b426148f5690f48e0ed4853adfc3740bd038b72c | 526e5cf86f90eab68063bb7c75744226f2c54b8d | refs/heads/master | 2023-08-31T14:42:37.237690 | 2023-08-30T18:15:18 | 2023-08-30T18:15:18 | 91,232,306 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | #!/usr/local/bin/python3
import cgi
form = cgi.FieldStorage()
print('Content-type: text/html\n')
print('<title>Reply Page</title>')
if not 'user' in form:
print('<h1>Who are you?</h1>')
else:
print('<h1>Hello <i>%s</i>!</h1>' % cgi.escape(form['user'].value))
| [
"merely.ordinary.developer@gmail.com"
] | merely.ordinary.developer@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.