blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
22fa6485d0a1af9f14e3e0e5565398513f2e2f5b | 638e02285ae60287bf32f562480756ae14836727 | /pytracer/integrator/surface/__init__.py | 95ae4b4273e4b6abc5efca23b5226bbd136316ba | [
"MIT"
] | permissive | zjiayao/pyTracer | c85c90d9320c910ccb1ca590df61555260f10d5d | c2b4ef299ecbdca1c519059488f7cd2438943ee4 | refs/heads/stable | 2023-07-27T09:13:45.455266 | 2020-05-04T05:44:29 | 2020-05-04T05:44:29 | 98,175,937 | 11 | 3 | MIT | 2023-07-06T21:15:54 | 2017-07-24T09:54:12 | Python | UTF-8 | Python | false | false | 481 | py | """
__init__.py
pytracer.integrator.surface package
Model surface integrators.
Created by Jiayao on Aug 9, 2017
"""
from __future__ import absolute_import
from pytracer.integrator.surface.surface import *
from pytracer.integrator.surface.direct import *
from pytracer.integrator.surface.whitted import *
from pytracer... | [
"zjohnson@connect.hku.hk"
] | zjohnson@connect.hku.hk |
4cfb8d223ea9deac4dd277447dafc8b16e2134f6 | 6be7e704293126b781d9498eebabed776b416495 | /LicenseAnalysis/Customization/apps.py | 14cba8e31f941fd25610957edd5b3ca7153794a5 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | 13269252368/LicenseAnalysis | d6de83c27b216ed90f049d54fc719a39ee3d2c53 | c34e02378e294d4ac0e27ee06b2dc47687e281e0 | refs/heads/master | 2022-03-30T09:11:42.556625 | 2019-03-23T03:36:55 | 2019-03-23T03:36:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | from django.apps import AppConfig
class CustomizationConfig(AppConfig):
name = 'Customization'
| [
"15051857858@qq.com"
] | 15051857858@qq.com |
2375f031e40a31c4eadc37b25c1a2e45e111c9bd | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/sdssj9-10_104054.47+112023.7/sdB_sdssj9-10_104054.47+112023.7_coadd.py | 4de1d11e6ffb1bc19dfcb19efea75a26b321efa2 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[160.226958,11.339917], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_sdssj9-10_104054.47+112023.7/sdB_sdssj9-10_104054.47+112023.7_movie_count.fits", cntcoaddfile="/data2/fleming/... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
c0c28a81cd864c47e81a5589f67dc159c3c4086b | 151dc9e2f00b202a5085189ac5e5df06eed1b77a | /bot/migrations/0002_food_ingredients.py | 6a59f2980a0f2a0dc788dbb431c459bb5c62c5f5 | [] | no_license | ochui/foodbot | 074d818308ee72c895857641333a71aebe6f36c0 | c4dcda9a94a270ca26a58383d3719ed312b06907 | refs/heads/master | 2023-08-25T10:06:22.793546 | 2021-11-02T23:22:03 | 2021-11-02T23:22:03 | 420,014,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 3.2.8 on 2021-10-22 09:24
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bot', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='food',
name='ingredients',
fiel... | [
"ochuiprincewill411@gmail.com"
] | ochuiprincewill411@gmail.com |
19b97e4a35978cd3dc86e762ddfb9c218ecbfced | 1c1be208a34ce7315d35ca3026d0256b5b2bee62 | /budjet/asgi.py | de31c3e9f4388b553ae67e22e3c468610fb3893b | [] | no_license | Jaice561/budjet | 1e7531c97b4fb4257e9a071dfb3fbda4234c6dc5 | bbed76f2ebec247c810cf834b04717dd0447ea21 | refs/heads/master | 2022-11-27T01:24:36.499827 | 2020-07-31T19:39:31 | 2020-07-31T19:39:31 | 278,495,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
ASGI config for budjet 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.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"Jameson_exil@yahoo.com"
] | Jameson_exil@yahoo.com |
b20cca2f789ab300cd9b934c10c63f35a53cfddb | af1dd15d144ad2d92890f6f881b420bfcc16b4b6 | /MachineLearningPractice/NN_number_recongnition.py | fa67838a090a4cc06f9f3741ea34c275cac785c8 | [] | no_license | bikongyouran/python_practice | 6cbc29609eacf7808f6a7fe1dca2245c5a4e14e5 | 85a79b726b20dd3b8b158435f507f6fceecc8e60 | refs/heads/master | 2021-01-19T02:59:52.207955 | 2017-09-18T11:59:28 | 2017-09-18T11:59:28 | 55,496,319 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 893 | py | import numpy as np
from sklearn.datasets import load_digits
from sklearn.metrics import confusion_matrix, classification_report
from sklearn.preprocessing import LabelBinarizer
from NeuralNetwork import NeuralNetwork
from sklearn.cross_validation import train_test_split
digits = load_digits()
X = digits.data
y = digi... | [
"jasonlin16@gmail.com"
] | jasonlin16@gmail.com |
e9f37c3156efeb43bebdbf7855a383a24a824225 | 12f664c15956f35804f95b0731f1a6f3e2f50973 | /venv/bin/rst2man.py | cae7d6d54aaff2ba366594d7002646f62d0a746a | [] | no_license | gojeboy/test-package | e8b70a0bed52d7c2d4be6fb59d7ca0c54bb623ae | fb59e9a3cf81c6e46021046603d1401913b70162 | refs/heads/master | 2022-04-25T16:57:48.265583 | 2020-05-05T06:29:14 | 2020-05-05T06:29:14 | 261,378,439 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | #!/Users/njabulonsibande/code/python/test-package/venv/bin/python3.7
# Author:
# Contact: grubert@users.sf.net
# Copyright: This module has been placed in the public domain.
"""
man.py
======
This module provides a simple command line interface that uses the
man page writer to output from ReStructuredText source.
""... | [
"njabsoul@gmail.com"
] | njabsoul@gmail.com |
e8bdca4538396f78b4584ef36014193d5ac8f739 | 94b3acf5dd4c9b75f6514c902b0a7a988cc6173f | /python2/sugon/Log_server/Log/lib/sam_common.py | 3818c0a4dae9752ce51864a8b23d4bce37ad5030 | [] | no_license | SamtechTianjin/python_projects | 96b007c22d6ef394bbcb33dc9fd194c680afb4c8 | 8774593e7322865f81e17ef58c3b9985a21360a0 | refs/heads/master | 2020-03-28T11:46:05.593352 | 2019-01-03T09:12:54 | 2019-01-03T09:12:54 | 148,245,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,197 | py | # -*- coding:utf-8 -*-
import re
import time
import datetime
import paramiko
import commands
def get_currnet_time(timestamp_format="%Y-%m-%d %H:%M:%S"):
# return time.strftime(timestamp_format, time.localtime())
return datetime.datetime.now().strftime(timestamp_format)
def get_time_interval(start, end, time... | [
"43158803+SamtechTianjin@users.noreply.github.com"
] | 43158803+SamtechTianjin@users.noreply.github.com |
c25cff56589a1e1f2c62d2087dfec64c2a01db6a | f450d2c0b2428a36c70242fca2ccc6a29ccf62e4 | /2014/SecuInside/cry200/solve.py | 09f8542217aa2f6c845f8cd7361a357383a37184 | [
"MIT"
] | permissive | ShySec/CTFs | ac8184e41d094ec6a0e0f09d7f94dc4cc4b3b39c | 047ef09e765575301076a91aaabd6860fbedbee7 | refs/heads/master | 2016-09-06T14:10:50.013124 | 2014-12-16T02:24:52 | 2014-12-16T02:24:52 | 18,819,768 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,424 | py | import time
import socket
import struct
import sys
import binascii
from PKI import PKI, PubKey, PrivKey
import pillow_reader
g_guestkey = '\xe1\xe7\xac\xa9\x19\x63\x0c\xf0'
l = 901924255379731264845598773404614424050302179361201900551370492885404232269980949480552626564987145191771090315436870704972059963780906410481... | [
"github@shysecurity.com"
] | github@shysecurity.com |
9c6789b6fac89f19c77ceca260c7686109f6b4ae | 05f01624b826952ddd26ae7c5b484842b87806ef | /INSTALL/twitter/generate.py | d69ec054e6b26a501f525a62653cc1dd8bc76ccb | [
"Apache-2.0"
] | permissive | Yikez978/rpot | 3f369b4a24f423b3bcf094c5e3925dc22aff900e | 8d370f042fc331e866677f77b9338a9ac1bbdd0e | refs/heads/master | 2021-09-01T15:42:01.132860 | 2017-12-27T19:10:04 | 2017-12-27T19:10:04 | 115,581,752 | 1 | 0 | null | 2017-12-28T03:38:48 | 2017-12-28T03:38:48 | null | UTF-8 | Python | false | false | 2,131 | py | from tweepy import *
import sys
if len(sys.argv) != 7:
print('%s <consumer_key> <consumer_secret> <oauth_token> <oauth_token_secret> <owner_screen_name> <list_name>' % sys.argv[0])
sys.exit(1)
consumer_key = sys.argv[1]
consumer_secret = sys.argv[2]
oauth_token = sys.argv[3]
oauth_token_secret = sys.argv[4]
... | [
"super.alice.002@gmail.com"
] | super.alice.002@gmail.com |
aea0b3b8d2b31773e38f6af83fe9186f463d5ac1 | 3ba3a0e970644fb9a8f55bf47900fcc8bd940c71 | /euler071.py | aac88ffdf57532a80251c4bb92903a1d9d4a79d9 | [] | no_license | jacekkubacki/projectEulerInPython | be6f3e9cf814a5513d682685fc28a816aa0b3890 | a372e2f48507f3741b504eea892de49d7d630c85 | refs/heads/master | 2021-01-17T13:08:20.648105 | 2020-07-19T20:25:11 | 2020-07-19T20:25:11 | 22,376,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,238 | py | #!/usr/bin/env python3
# Ordered fractions
# Problem 71
#
# Consider the fraction, n/d, where n and d are positive integers.
# If n<d and HCF(n,d)=1, it is called a reduced proper fraction.
#
# If we list the set of reduced proper fractions for d <= 8 in ascending order of size, we get:
#
# 1/8, 1/7, 1/6, 1/5, 1/4, 2/... | [
"jacekkubacki@users.noreply.github.com"
] | jacekkubacki@users.noreply.github.com |
0b7dabeb92c54e7be6261bffe7fb7ca7b2cb7082 | 3866a3653614e1ed65103fb154ce9dfe8a8e89e2 | /backendTest/backendTest/wsgi.py | 1527eae55337403b6f96274c915e810abb8161f5 | [] | no_license | danperfectboss/backend-test-cornershop | 6c1138a432da008b715ff20ad6208305486fb924 | afdeaa168e5dd6ed60e1b8f3e82f75a34d434875 | refs/heads/master | 2023-04-15T07:07:53.505832 | 2021-04-28T07:48:28 | 2021-04-28T07:48:28 | 361,611,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for backendTest 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_S... | [
"dapeme.boss@gmail.com"
] | dapeme.boss@gmail.com |
469233826fa76271f9d1c92d61ca030c6ebe3463 | ac191a3e973b0d66baa559fdd27af5e0012fe67b | /shipyard/utils.py | eab1698afc173b87779a9d3d0ce8a92c8445ae1d | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | monokrome/shipyard | fb2ab707643e52c3acfd20dfaf4d269a8b5dc195 | 3a37105466e4ac30b260a6b40a467e0412b4fc13 | refs/heads/master | 2022-01-17T23:31:26.186270 | 2013-10-23T06:29:21 | 2013-10-23T06:29:21 | 13,798,136 | 1 | 0 | null | 2022-01-06T22:53:10 | 2013-10-23T09:02:08 | Python | UTF-8 | Python | false | false | 2,347 | py | # Copyright 2013 Evan Hazlett and contributors.
#
# 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 agree... | [
"ejhazlett@gmail.com"
] | ejhazlett@gmail.com |
2690394c577796e63ca8242a797e503b406ccb1a | a665936ae4c630ae9ef4c8b106aef1d0dcb3309b | /pro57.py | d63d9a4c653a8a0a3d28728a19a171d8b6b580fc | [] | no_license | Hemavarsheni/codekata | bbbd54e0282c0a5724ef58f6abd215cb57fe0cd8 | 577c8347991784d1b9b1b4364045cde3257ee9db | refs/heads/master | 2020-06-13T23:50:44.237011 | 2019-08-16T12:11:29 | 2019-08-16T12:11:29 | 194,827,236 | 0 | 10 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | #Hemavarsheni
a,b=map(str,input().split())
lista=[]
listb=[]
for i in range(len(a)-1):
s=""
for j in range(i,i+2):
s=s+a[j]
lista.append(s)
for i in range(len(b)-1):
s=""
for j in range(i,i+2):
s=s+b[j]
listb.append(s)
for i in lista:
if i in listb:
print("yes")
... | [
"noreply@github.com"
] | Hemavarsheni.noreply@github.com |
822d8811b069aed67ce8cd1f23bbf59c6c4a9c45 | 0b25dc3f9b4ef736e739aadddec33b96dd65a0c8 | /huawei/21.py | 7302d8adf92d83dba6e7130102b2a602b4176164 | [] | no_license | ttp55/LearnPy | b123f44a74e4364771491c572705742c15eb33ff | 1530e158bde152e5c585f496dd1e5ffcffdb73bc | refs/heads/master | 2023-05-11T13:02:30.157285 | 2023-05-08T07:13:57 | 2023-05-08T07:13:57 | 196,953,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | # @Time : 2022/2/8 13:58
# @Author : WZG
# --coding:utf-8--
l = [1,2,3,4,5,5]
print(l[3:]+l[:3])
s = input()
while '{}' in s or '()' in s or '[]' in s:
s = s.replace('{}', '')
s = s.replace('[]', '')
s = s.replace('()', '')
print(not s)
| [
"1047697347@qq.com"
] | 1047697347@qq.com |
f772f9f94521ad3e2773b9d9256426907462804b | c0502da3bc40e1ee49637beaf16239697e4b2c04 | /study_28-09_rw_files/venv/bin/pip3 | 585ef23694cd201ed5b2a72aab0d6e06f605ce11 | [] | no_license | lgcavalheiro/python_studies | f963bb428c1337ba42b29caa9e9a42d8bc90642b | 697c92e50043bf4495261aaa6bbb2580909bdd35 | refs/heads/master | 2020-07-31T19:28:57.205426 | 2020-03-01T01:49:44 | 2020-03-01T01:49:44 | 210,499,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | #!/home/user/PycharmProjects/python_studies/study_28-09_rw_files/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$... | [
"lg.cavalheiro@hotmail.com"
] | lg.cavalheiro@hotmail.com | |
5ef239b0126778ed8d7aeba3dc594138312d9df0 | 9f66941e73cad0c215601339512b8dd6729792da | /Show_Program_exe/predictModelUI/tensorflow/_api/v2/profiler/experimental/client/__init__.py | 6c373c04418802ba602b7d8a351fd76131351e7e | [] | no_license | NgaAdrain/TEAM_Enter_Text_Here | eb0e02c13959b90eecc0c69d2b24adb23a50150a | a7217438284360e06c93d37092dca1afcecb735a | refs/heads/master | 2023-07-20T11:42:50.353497 | 2021-05-28T08:30:53 | 2021-05-28T08:30:53 | 267,983,495 | 2 | 0 | null | 2023-07-06T22:00:36 | 2020-05-30T00:50:59 | Python | UTF-8 | Python | false | false | 419 | py | # This file is MACHINE GENERATED! Do not edit.
# Generated by: tensorflow/python/tools/api/generator/create_python_api.py script.
"""Public API for tf.profiler.experimental.client namespace.
"""
from __future__ import print_function as _print_function
import sys as _sys
from tensorflow.python.profiler.profiler_clien... | [
"adrainnga@gmail.com"
] | adrainnga@gmail.com |
58301abc8978ec270e7071e0d3cad4c520da1427 | 4fd7fa2c4dca3994e9b68699ef9f4f1a2c67f682 | /sfa/util/sfatime.py | 743566739aaf530dcad2f6c477a5d693e1574040 | [] | no_license | loicbaron/myslicelib | 29923500297c1bdeb852029e5f3d1775781b4206 | 1dac8f03bde80891ed7c89438892a6444fce7bb4 | refs/heads/master | 2021-01-01T19:41:26.584195 | 2017-07-25T15:36:27 | 2017-07-25T15:36:27 | 98,651,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,495 | py | #----------------------------------------------------------------------
# Copyright (c) 2008 Board of Trustees, Princeton University
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and/or hardware specification (the "Work") to
# deal in the Work without restriction, i... | [
"quan.zhou@lip6.fr"
] | quan.zhou@lip6.fr |
b92042ce3f508fcbda40ab22e5c02ce9914c0b71 | 5e1a068ca2d6c38815a64f64b628ead1c2186e1b | /tele/env/lib/python3.8/site-packages/youtubesearchpython/__future__/internal/extras.py | ea1bd9adb455580010d7066d948f5f90f7798e3a | [] | no_license | kalyevb/beka | cb28d7fdf725a8f097c854e63fa71fe95084372d | ba32e2d698fdb5767e53136209ebd7d72e44e3a6 | refs/heads/master | 2023-04-17T14:03:38.944303 | 2021-05-03T18:13:11 | 2021-05-03T18:13:11 | 364,019,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,429 | py | from typing import Union, List
import json
import httpx
from youtubesearchpython.__future__.internal.constants import *
class VideoInternal:
videoId = None
videoComponent = None
def __init__(self, videoLink: str, componentMode: str):
self.videoLink = videoLink
self.componentMode = compone... | [
"kalyevbb@mail.com"
] | kalyevbb@mail.com |
92cf5a1e022173cb051f88de7bda3dc570ed7c4f | 3282ec7fe0af6f72d6faaf2d35f5dc03890df1d9 | /nlp analysis.py | cc9b6d849df8bdbd1c1409ce90e6c99333f4f9b5 | [] | no_license | jackh08/Planning-Applications | 8463225ba607e773480e67b0827e323f3555fec7 | b212405df7aa80c0a783782cc0b532c95b46705e | refs/heads/master | 2020-03-19T13:49:46.026842 | 2018-09-20T09:45:08 | 2018-09-20T09:45:08 | 136,596,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,025 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 5 15:07:24 2018
@author: herring_j
"""
# Planning text analysis
"""
This is a broken version that performed well due to oversampling before
train/test split
comments
comments
"""
import nltk
import pandas as pd
import numpy as np
import sklearn
impo... | [
"noreply@github.com"
] | jackh08.noreply@github.com |
1091c4b620571053f1140af4a53b06cd43371d4d | 560a0f9586fd5fc27c69a86a4b277fd3cfb17085 | /providers/a4kScrapers/en/torrent/btdb.py | 5752a5505277038429cf649ba692400912dcf426 | [
"MIT"
] | permissive | Cwoo0/a4kScrapers | b1ffe31bd9915c7381f9c4ed7d4a866c4c681ccd | 054a12b42838ccb7afcc6076b1eb61b51d734edb | refs/heads/master | 2020-12-10T12:30:56.794047 | 2019-12-20T06:40:56 | 2019-12-20T06:40:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # -*- coding: utf-8 -*-
from providerModules.a4kScrapers import core
class sources(core.DefaultSources):
def __init__(self, *args, **kwargs):
super(sources, self).__init__(__name__, *args, **kwargs)
def _parse_seeds(self, row):
return core.safe_list_get(core.re.findall(r'style="color:green;">... | [
"47229722+newt-sc@users.noreply.github.com"
] | 47229722+newt-sc@users.noreply.github.com |
4bd54ecbde6b0eaaf45daf43276451087144bb63 | d82647b47d9720d46eff488b9e27582fbec14680 | /SWENGS_HW1/yamod/migrations/0001_initial.py | 5687274360831bc26b52478e331ad096e92d52a7 | [] | no_license | regulaja17/SWENGS_HW1 | 033487fa538907439075b69db0a5eb366dd97b07 | 0310ee7808e091d3e7505c43f7a6de3124786939 | refs/heads/master | 2022-11-15T14:13:09.653919 | 2019-11-05T16:49:34 | 2019-11-05T16:49:34 | 218,337,326 | 0 | 1 | null | 2022-10-30T12:21:51 | 2019-10-29T16:49:41 | Python | UTF-8 | Python | false | false | 739 | py | # Generated by Django 2.2.6 on 2019-10-29 17:11
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Student',
fields=[
('id', models.AutoField(... | [
"janik.regula@edu.fh-joanneum.at"
] | janik.regula@edu.fh-joanneum.at |
047d255cb913eb1fc1bcac608765d94e5a1a7538 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17s_1_02/ipv6/route/link_local_static_route_nh/__init__.py | f409793989d66c90174629d2778ac54c0f5f5de6 | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,384 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
1659e77a9f834c52289989c0d18398077d405e47 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/308/usersdata/290/72816/submittedfiles/ex1.py | 9d833bfe06bccfb760241d32e0c22608bc1e9950 | [] | 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 | 179 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = input('Digite a: ')
b = input('Digite b: ')
c = input('Digite c: ')
#COMECE A PARTIR DAQUI!
D=((b**2)-(4*a*c))
print(a) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
e831e010f58a199ff2318babbd6c2b81b050c012 | 8f2199375c2860c42239de359e7f27ac0111c2ab | /Numbers/pi.py | 898d41b6838c44932607f11d87d3ec1b6ebe6887 | [
"MIT"
] | permissive | arushs/Projects | a8c37f0adda56866a83e3c39397fb4eb998d125b | cd1a9be6d6689215ab9846792b958d3779f791c2 | refs/heads/master | 2016-09-05T12:19:59.658844 | 2014-05-15T06:44:43 | 2014-05-15T06:44:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | import math
digit = raw_input('What digit to go to?')
digit = int(digit)
if digit < 40:
print(float(round(math.pi, digit)))
else:
print("Sorry, digit is too large")
| [
"arushshankar@gmail.com"
] | arushshankar@gmail.com |
2654ed68c4c589ef4e77b524ae3738acb71499ac | b9876c8fd27d56351fd0b861503fc861ae086236 | /resource_rc.py | e4221d30a8cb362f2770522e8a3c789a4f359dcb | [] | no_license | zmarsarc/jk_native | 7cdc7299756e896735aaca6e8a9cb628d4aa807a | 65d08168e893cd16a6512618112cad8c3f852fec | refs/heads/master | 2023-03-25T14:50:13.885114 | 2021-03-19T07:49:25 | 2021-03-19T07:49:25 | 344,725,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,951 | py | # Resource object code (Python 3)
# Created by: object code
# Created by: The Resource Compiler for Qt version 6.0.2
# WARNING! All changes made in this file will be lost!
from PySide6 import QtCore
qt_resource_data = b"\
\x00\x00\x01\x10\
\x89\
PNG\x0d\x0a\x1a\x0a\x00\x00\x00\x0dIHDR\x00\
\x00\x00$\x00\x00\x00$\x08\... | [
"zeng.yu.1993@gmail.com"
] | zeng.yu.1993@gmail.com |
bf44fa6faca572aaf434cd4e3aebb67fab7f9eca | 472226be9c4422e7d84aab95330b20513ab61277 | /deepobs/tensorflow/testproblems/mnist_logreg.py | f8b9125d437de46a01114438768e0616c182d1c2 | [
"MIT"
] | permissive | fsschneider/DeepOBS | a601a6dd2548107e7e1fbae7d8b5357c79bf17d6 | b41aafe8896223ba8dc8e61449656e82d42be1d8 | refs/heads/master | 2023-04-14T15:52:07.937617 | 2022-01-31T12:26:36 | 2022-01-31T12:26:36 | 150,460,781 | 105 | 34 | MIT | 2023-03-24T22:45:25 | 2018-09-26T16:58:47 | Python | UTF-8 | Python | false | false | 2,726 | py | # -*- coding: utf-8 -*-
"""Multinomial logistic regression on MNIST."""
import tensorflow as tf
from ._logreg import _logreg
from ..datasets.mnist import mnist
from .testproblem import TestProblem
class mnist_logreg(TestProblem):
"""DeepOBS test problem class for multinomial logistic regression on MNIST.
No ... | [
"frank.stefan.schneider@gmail.com"
] | frank.stefan.schneider@gmail.com |
04ba26d95374cc9f8beb1e7b9eb48e8d9e9fd7cc | ce2a6330c807591f95210bdda005f875a76b98a8 | /model_lab/ml_models/titanic/scripts/train.py | 22de07daecff46eabb25b6cef569ac1b056d0c75 | [] | no_license | MartinThoma/model-lab | c1ca8d0950086cd4e332862d6a3b7a7ae7f10a2f | 3525cdd5271a1b7940f801d4245343b1592ffa67 | refs/heads/master | 2020-04-11T18:43:54.537892 | 2018-12-31T20:14:40 | 2018-12-31T20:17:02 | 162,009,569 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,893 | py | """Train a model for Titanic."""
import re
import math
import pickle
# 3rd party modules
import numpy as np
import pandas as pd
from sklearn.ensemble import ExtraTreesRegressor
def main():
"""Load, train, serialize, test."""
data = load_data()
analyze_features(data['full_features'])
model = train(da... | [
"info@martin-thoma.de"
] | info@martin-thoma.de |
58ddb52efa9da6ef02550ed095e3baaea5d1b3d0 | f3cc5be06299f1f218bdb7681fd2675df33f06f8 | /queries/winrm_execution.py | 79855356869583e17850ba870324194c421fc3fc | [] | no_license | willylong275/log-ioc | e199a282cb53eaca81b4f5263c02be66349330f2 | fdd12f261f52a6e35e8ff44be150763adacc3d81 | refs/heads/master | 2020-06-23T15:49:07.468749 | 2017-11-08T03:24:07 | 2017-11-08T03:24:07 | 96,907,288 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,033 | py | #!/usr/bin/env python
def main(df_hits, lock):
from logIoc import logIoc
import os
lio = logIoc()
query='winrm_execution'
print "executing windows powershell execution query"
lock.acquire()
lio.update_last_timestamp(query, df_hits.iloc[(len(df_hits)-1)]['@timestamp'])
#lio.update_last_timestamp('windows_account... | [
"wlong0313@gmail.com"
] | wlong0313@gmail.com |
9977d9b6d203d5561a3ff5869f62ce88026286be | 3c519a4879f6477d8dc13eeaab53bd2f591b25e5 | /3 Семестр/Компьютерная графика/EscapeFromLabyrinth/maps/4.py | a2e59ec7e5fc6412547f322acb017327b3a51bf2 | [] | no_license | Nellrun/VyatSU | 6a43e5a8de3e4a8bdfa9fe28da604246c654fc98 | 566529f9161298728197bccf1ce8a43a2c9eb7e8 | refs/heads/master | 2021-01-24T10:17:18.686655 | 2018-04-16T06:36:12 | 2018-04-16T06:36:12 | 69,678,763 | 3 | 1 | null | null | null | null | WINDOWS-1251 | Python | false | false | 499 | py | # Код python имеет блочную модель, т. е.
# Тело цикла имеет свой блок, тело функции свой и тд
# Блоки разделяются отступами
# Напрмер:
# for i in range(13):
# self.moveRight()
# self.moveUp()
# self.moveRight() выполнится в теле цикла, а
# self.moveUp() уже после цикла.
# Попробуйте при помощи цикла до... | [
"daniil.shchesnyak@gmail.com"
] | daniil.shchesnyak@gmail.com |
beb04ce89791c370b3c3978bb033b8788a64d143 | 2d6730ddf90d64151dbfdda59c7d9ca906e9bccd | /backend/backend/settings.py | 91b9510561be9c4144ad6db2e20926d35ec4cfa8 | [] | no_license | ShengZhuangRocks/issueTracker | ed893e3e51669c23dd6b650518918e40c8a19ca9 | 48e5fa9e1947167cb33cc8791e780ed7ec642472 | refs/heads/master | 2022-03-22T01:01:14.891905 | 2019-12-05T23:31:54 | 2019-12-05T23:31:54 | 221,866,710 | 0 | 0 | null | 2022-02-10T12:37:21 | 2019-11-15T07:18:18 | JavaScript | UTF-8 | Python | false | false | 3,288 | py | """
Django settings for backend project.
Generated by 'django-admin startproject' using Django 2.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
#... | [
"shengzh9@gmail.com"
] | shengzh9@gmail.com |
d5fb8399a682459c5d9a9e2bc11259421834d0f7 | ae21ff4de2297893f9b2595e6bed52b5163c4819 | /__init__.py | 171bad4bc140f989562cb98948b046c34029d806 | [] | no_license | nielsruelens/webdust_product | 1db132d10b2ab025595f4a8d2fb2d37d55ddf7d0 | 05381ea841e3a55bd017675e10419d6b50ea11a0 | refs/heads/master | 2021-01-22T03:12:59.369621 | 2015-01-27T06:49:19 | 2015-01-27T06:49:19 | 17,409,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | import product
import property
import image
import supplierinfo
import wizard | [
"niels.ruelens@clubit.be"
] | niels.ruelens@clubit.be |
2f3c49a04db5b832cc20257ba168a07f5eb6ccc2 | 51e21b5430dc5615f5743451359af3cde75da91b | /pittgrub/notifier.py | 2d29d0ae050fb629ffc5a3b854bdc2dbe0a1b331 | [
"MIT"
] | permissive | admtlab/PittGrubServer | 705c7fd89a141ea50c99522c7abbba257c22e1eb | 25f6c0f119576338a33cd9b42aa39e6fb4802fec | refs/heads/master | 2022-08-12T19:54:58.267582 | 2020-05-21T11:59:38 | 2020-05-21T11:59:38 | 90,174,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,241 | py | """
Send notifications to users
Author: Mark Silvis
"""
from typing import Any, Dict, Tuple, Union
from exponent_server_sdk import (
PushClient, PushMessage, PushServerError, PushResponseError,
)
class InvalidExpoToken(Exception):
def __init__(self):
self.message = "Invalid expo token"
super... | [
"marksilvis@pitt.edu"
] | marksilvis@pitt.edu |
a1add44754eec4db72df64bfc3f294a01ec01a29 | e78433e847c5a5ff1ed583303c0240b0a93dc06a | /0x01-python-if_else_loops_functions/6-print_comb3.py | 2682ef8c4fae7eef14ca880d7b9148e40c1481e8 | [] | no_license | david-develop/holbertonschool-higher_level_programming | 75eaef38173361cc4ef9202f3e3f6c5a781239ed | 90f62136a7ddfb7d3921daccdc38d50a5376343b | refs/heads/master | 2020-07-22T23:27:35.494155 | 2020-03-26T17:34:36 | 2020-03-26T17:34:36 | 207,366,767 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 169 | py | #!/usr/bin/python3
for num1 in range(0, 8):
for num2 in range(num1 + 1, 10):
print("{}{}".format(num1, num2), end=', ')
print("{}{}".format(num1 + 1, num2))
| [
"924@holbertonschool.com"
] | 924@holbertonschool.com |
a46f5b9eedcb1195e2fc993c39f96762d17c98b0 | bad67fafaa475e8dc7035e8a21e80e77cd90f43a | /manage.py | 3282f2314889e472c8fea59e71c5d8aa2c01f038 | [] | no_license | Aitmatow/Djago_girlst_test | 66c4a59f00b2ef95bee905c99d9d15d85bee1878 | a436e1b561dc8d0e8d7e4a88053ead74301c8aaa | refs/heads/master | 2022-09-19T12:08:37.493160 | 2020-06-03T05:39:40 | 2020-06-03T05:39:40 | 268,985,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Pycharm.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Import... | [
"aitmarowd@gmail.com"
] | aitmarowd@gmail.com |
cc827a59a8376d853d13dc82c896378c171fca75 | d2deead5da9b4999eb8cee6235b43c897f468212 | /Week2/helloworld/helloworld/urls.py | 66b21bef9a31d85d169b6a5d7aa68503314edfbf | [] | no_license | mkeshilbaev/BFDjango | 39f829d6362f4acbd502f98198facf482f1fd392 | caa34eb8e456e20cacadaa5b4e20949fa32ff529 | refs/heads/master | 2023-05-02T22:39:25.023549 | 2020-04-25T14:16:22 | 2020-04-25T14:16:22 | 233,826,635 | 0 | 0 | null | 2023-04-21T20:48:01 | 2020-01-14T11:30:49 | Python | UTF-8 | Python | false | false | 802 | py | """helloworld URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"m.keshilbaev@gmail.com"
] | m.keshilbaev@gmail.com |
cab5ec73309abc6f8c1a012ccccd0e4dc50f50b4 | 91f4078045a57eaaafe0b172909d7041e829941c | /arjuna-samples/arjex/test/pkg/gns_adv/check_gnsadv_07_waiters_default_wait.py | 21418e6c64e6736cfe53b4ca0f3d66b1a111ea50 | [
"Apache-2.0"
] | permissive | amiablea2/arjuna | 0d06d1dfb34309f4b6f39b17298f7acb6c3c48c9 | af74e0882216881ceca0a10f26442165ffc43287 | refs/heads/master | 2023-08-21T20:04:30.416303 | 2021-10-27T06:41:40 | 2021-10-27T06:41:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | # This file is a part of Arjuna
# Copyright 2015-2021 Rahul Verma
# Website: www.RahulVerma.net
# 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... | [
"rahulverma81@gmail.com"
] | rahulverma81@gmail.com |
f401995a7e9c5bdf3ff929b82ee7c85fe056ff79 | 92cae28d7ac300cf3bd250a7452f128e90cc80d9 | /test/unit/m3d/hadoop/algorithm/test_algorithm_fixed_length_string_extractor.py | 1d9e1952d02d8d12dc4b3945893935bed03bab01 | [
"Apache-2.0"
] | permissive | sbakiu/m3d-api | 92faed271329e6962564ea9a0beb0cfd5e32ed9e | 82522fbc6ba303fe099c86d4709b708dfadd48d7 | refs/heads/master | 2020-08-02T11:46:30.434072 | 2019-09-27T10:52:25 | 2019-09-27T10:52:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,245 | py | import pytest
from mock import patch
from m3d.exceptions.m3d_exceptions import M3DIllegalArgumentException
from m3d.hadoop.algorithm.algorithm_configuration_hadoop import AlgorithmConfigurationHadoop
from m3d.hadoop.algorithm.algorithm_fixed_length_string_extractor import AlgorithmFixedLengthStringExtractor
from m3d.h... | [
"bernhard.mueller@adidas.com"
] | bernhard.mueller@adidas.com |
00c9486b4f864e47050b452a39d72200ad35c57f | 53fcd2f29edc0b677498659bc6df8eae79404f52 | /test2.py | 9e4bf5152d049515f36c3cd644df77a1aab1fda7 | [
"MIT"
] | permissive | Esukhia/bospell-old | 3c96d43efd1fa2aac87448826f4c23a76f36ca4e | ae11cdeaeebe82ad7a56a8bcc440f615b57c07f6 | refs/heads/master | 2023-05-11T21:45:58.937660 | 2019-03-11T16:19:07 | 2019-03-11T16:19:07 | 126,886,943 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,649 | py | from bospell import SpellCheck, CheckFile
text = '''[བསྟོད་ཚོགས། ཀ 61b.6]{D001_བསྟོད།_ཀ_༠༠༠༧}༄༅།།ཆོས་ཀྱི་སྐུ་ལ་གནས་པའི་ཡོན་ཏན་ཐུན་མོང་མ་ཡིན་པ་ལ་བསྟོད་པ།#༄༅༅།།ཆོས་ཀྱི་སྐུ་ལ་གནས་པའི་ཡོན་ཏན་ཐུན་མོང་མ་ཡིན་པ་ལ་བསྟོད་པ། དེ་བཞིན་གཤེགས་པ་ཐམས་
[61b.7]ཅད་ལ་ཕྱག་འཚལ་ལོ། །སེམས་ཅན་རྣམས་ལ་ཐུགས་བརྩེ་བ། །ཕྲད་དང་བྲལ་བར་དགོངས་པ་ཅན། །མི་... | [
"hhdrupchen@gmail.com"
] | hhdrupchen@gmail.com |
031df58d82f852a76e48a56f5ff5e7c67e2740f1 | 348acc624966eeda7ce79594292ee91f6423c9c6 | /scrapy-env/demo_project/demo_project/spiders/goodread.py | 7d016d39a4833f05ecb9d9afe6aefcc6b76ca0e8 | [] | no_license | verifitim/scrapy-demo | 37f3d079f941bede88c1ce7b84c89543a33d8e3e | 56c807729195490594d1af47926027943248ec92 | refs/heads/master | 2020-07-04T08:11:24.654593 | 2019-08-13T20:17:57 | 2019-08-13T20:17:57 | 202,217,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | import scrapy
class GoodReadsSpider(scrapy.Spider):
#identity
name = 'goodreads'
#requests
def start_requests(self):
urls = [
'https://www.goodreads.com/quotes?page=1',
'https://www.goodreads.com/quotes?page=2',
'https://www.goodreads.com/quotes?page=3',
... | [
"verifitim@gmail.com"
] | verifitim@gmail.com |
5581c0cdeff7f381b60d22f9b283aeee08211312 | a6b559f9c9fa15b47d39ee0d156ddac6b3e562a3 | /aula20.py | dc1446d63c4095b5ff46a570798ae8235917db34 | [] | no_license | Pauloa90/Python | c06daae3ef63539084fd5ae35c13354ccd6bd39c | 3f349792734730190c2f9b3a301093359f76a36f | refs/heads/master | 2020-12-29T17:09:57.579006 | 2020-02-17T15:48:24 | 2020-02-17T15:48:24 | 238,679,221 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | frase = "Curso em VIdeo Python"
print(frase[9:21:2])
print(frase[15:])
print(frase[9::3])
print(len(frase))
print(frase.count('o', 0, 13))
print(frase.find('deo'))
print(frase.find('ola'))
print('Curso' in frase)
print(frase.replace('Python', 'Andoide'))
#frase.upper
print(frase.upper())
print(frase.lower())
... | [
"paulo.a90@hotmail.com"
] | paulo.a90@hotmail.com |
8683417d4c29b225e242d6807ac29aea02815bd6 | 7ed9b4eb16cc76a8e8b5f17c3d0a1adb6db99eb6 | /todos/tests.py | cddf7288e2d46f980a305cfc56758adc297e952a | [] | no_license | ManuelAlejandrG/Django-App2 | 748b211abf0637e9a3bada06fbc265e21c2f551a | 7a86722cb63065f80c0090e22db5d73fce43b3e9 | refs/heads/master | 2020-12-19T23:55:03.050076 | 2020-01-23T22:43:34 | 2020-01-23T22:43:34 | 235,890,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | from django.test import TestCase
# Create your tests here.
from .models import Todo
class TodoModelTest(TestCase):
@classmethod
def setUpTestData(cls):
Todo.objects.create(title="Jugar", description='jugar una vez a la semana')
def test_title_label(self):
title = Todo.objects.get(id=1)
field_label = titl... | [
"manuelgoyo10@gmail.com"
] | manuelgoyo10@gmail.com |
f3351eb253a2a7548073c80ee398e233e55ad1dc | a6916f004d2e5d71276ae4f64bbe118d08301a99 | /XES/staticXESSpectra_main.py | ae3969fe322f8a1465cd431c9014fcf71c3f3cf6 | [] | no_license | cliekhus/LCLS2015 | 154247a65ca9a72885f443ad6ccb30639c806bd6 | 584c804ede885f73fbf92d0e31ad96914edd8be4 | refs/heads/master | 2021-12-26T17:39:43.301205 | 2021-09-01T19:52:52 | 2021-09-01T19:52:52 | 204,533,468 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,457 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 7 11:03:44 2019
@author: chelsea
"""
import numpy as np
from loadData import loadData
import os
import pickle
import ProcessedDataClass as PDC
import matplotlib.pyplot as plt
from MakeRawBoot import MakeRawBootXES
import time
import datetime
folder = "D://LCLS_Data/LCL... | [
"chelsea738@gmail.com"
] | chelsea738@gmail.com |
220acf2053b36953db69197b5b7cd45c5040bc57 | 48b9d828acf80792bc4385febaa734a2e96ad465 | /test-openmps/Examples/05_Fermions_LongRange.py | fd886085ce8c20f16a78e8dadbd894ef399ac75e | [
"MIT"
] | permissive | OminiaVincit/qphase-trans | dd4ab2e0cacc449ead3bef318a65eb05aed45621 | 40e0c078dcd74282e8d8f44690433bf670bff8cb | refs/heads/master | 2023-05-06T12:14:30.368375 | 2021-05-28T05:11:58 | 2021-05-28T05:11:58 | 235,478,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | import MPSPyLib as mps
import numpy as np
import sys
import os.path
def main(PostProcess=False):
"""
Introductory example for openMPS to simulate a fermionic system with
long-range interactions. Two modes are available when running the
example from command line:
* ``python LongRangeTunneling.py --... | [
"k09tranhoan@gmail.com"
] | k09tranhoan@gmail.com |
2f2cd57dbef2ed47ee37071aaaf24f574a198924 | a17c0e08c2bb78e2a442b0edc80ac331b192b8fb | /Data Analysis and Modeling Techniques/q2a.py | bac4a9496ae4e1f86398095e21be2904a157da34 | [] | no_license | snehachitre/MS-Projects | 6bb914800dcb04aa8c868ef793d07065744a3887 | e36a78088b53ac4b20b519acd4c2cb0f7e8c7217 | refs/heads/master | 2021-01-01T04:23:23.666165 | 2017-07-13T23:52:45 | 2017-07-13T23:52:45 | 95,832,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py |
import random
def GenerateRandomNumber():
a=random.random() #store a uniformly generated number between 0.0 and 1.0 in a
x=46/((1-a)**(1/1.45))
print 'packet size is ', x
return x
if __name__=='__main__':
GenerateRandomNumber()
| [
"noreply@github.com"
] | snehachitre.noreply@github.com |
64c1f70e329c85405d3ab1ac2f692dfbe8516499 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/2/matrix_squaring_20200423020640.py | 59367a0a4ab8703f9cda9c70a66fc9fe3cec0b6e | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,579 | py | # -*- coding: utf-8 -*-
from __future__ import division
import os
import numpy as np
import matplotlib.pyplot as plt
from time import time
import pandas as pd
# Author: Juan Esteban Aristizabal-Zuluaga
# date: 20200414
def rho_free(x,xp,beta):
"""Uso: devuelve elemento de matriz dsnsidad para el caso de una p... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
2dbcf6cd6a69ccfb2076b0a58ac6ee1bc93b5b58 | f1dcd88883bdcc242c7838cd0ca97f505db43629 | /app/objects/ball.py | ae668ed33aa33e8cfa54a4d4fac6fe026d78f4b2 | [] | no_license | asoffer/revert | a635262e2ebb3dcbd541db066c5fa8a6dc85d11e | 8623df49e9656b5823d577f143d64b39b6555f7f | refs/heads/master | 2016-09-05T09:55:41.413521 | 2012-07-10T21:59:50 | 2012-07-10T21:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | from pandac.PandaModules import Point3
from ..lib.physical import Physical
from panda3d.ode import OdeSphereGeom, OdeMass
class Ball(Physical):
def __init__(self, world, loc = Point3()):
"""
the location is the bottom-left corner of the platform
"""
mass = OdeMass()
mass.se... | [
"andy@s231-225.resnet.ucla.edu"
] | andy@s231-225.resnet.ucla.edu |
1907c67c5b3ab0232e31a71b012d06cd4662a0be | 3d852809edef71da5ce6cc3df63ae7e77c1c01f7 | /day28/file_io/freadline_animal.py | 90ef9b27c9640e337305f6e56e968e8fe815599f | [] | no_license | yeomye/pyworks | f85f30e3592215efdbdd830c40a54586f636c8cd | b741068264f4a09dd2dcbde1c66617dcc1aa7f37 | refs/heads/master | 2023-08-03T03:18:37.789783 | 2021-09-24T04:19:50 | 2021-09-24T04:19:50 | 402,286,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | with open('animal.txt', 'w') as f:
animal = ['dog', 'cat', 'horse', 'cow']
for i in animal:
f.write(i +'\n')
with open('animal.txt', 'r') as f:
#line = f.readline() #한줄 읽기
#print(line)
lines = f.readlines() # 전체 읽기
print(lines) # 1차원 리스트
# 2차원 리스트로 만들기
animal... | [
"yyz2999@naver.com"
] | yyz2999@naver.com |
8bf038aad9b9c12f38ac8e0060c8756339eb988a | fed141f1730db5afa9acbe0fb5c745ee93bd5a90 | /yablonya.py | be5aa0b4dcccfce29c5f90d69d4bf999b1f9eb7e | [] | no_license | BaneOfSlaves300/taskP | 13c0dbf41b311d889a4b7028b2a56dddd4bf54e0 | 7b1a7e856a859fbec05d24a75ff92d3e0570c462 | refs/heads/main | 2023-08-04T12:06:26.629696 | 2021-09-22T11:50:56 | 2021-09-22T11:50:56 | 407,632,726 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | n = int(input())
li = list(map(int, input().split()))
for i in range(len(li)):
li[i] -= 1
A = [0 for i in range(n)]
A[0] = 1
for i in range(n - 1):
A[i + 1] = A[li[i]] + 1
A.sort()
ans = 0
cur = 1
len = 0
for i in A:
if i == cur:
len += 1
else:
ans += le... | [
"noreply@github.com"
] | BaneOfSlaves300.noreply@github.com |
49151e90add1e32edddc7c4b8da32a865c8b2e36 | c472c59b0c12f80bcdb92f2923f987aa2975d18e | /PdfEdit.py | 10c472844b0aaeabf2faebae572141c0b57468df | [] | no_license | heping101/pdfedit | f0faa5e4d7c290d7889e142d7d7ce80d2934ba64 | 2d33bfb334a68488a51094958d3918b5d21b9172 | refs/heads/master | 2022-01-22T22:29:28.828431 | 2019-06-13T13:35:08 | 2019-06-13T13:35:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,101 | py | # -*- coding: utf-8 -*-
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
from PyQt5.QtPrintSupport import QPrinter,QPrintDialog
import sys
import os
import os.path
import shutil
import fitz
import six
import win32api
import win32print
from Ui_MainWindow import Ui_MainWindow # 主... | [
"tzous@126.com"
] | tzous@126.com |
2f3d4e4d43c70ea1932284f8d01a37bbecc10fef | debec8751026989acc1516b43cb938d2bcf6898d | /dashboard/test_4.py | 4f37fa877411c894a3ddd1500a060105828e2597 | [] | no_license | tuomijal/TLO-32410 | 9705458341e5c10fbaa1ac31345a5884aa9cbe93 | 3545252e8820f849ad8de41cf7a0f3d1473f70d4 | refs/heads/master | 2021-02-16T02:49:34.806243 | 2020-05-02T13:37:49 | 2020-05-02T13:37:49 | 244,958,664 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,444 | py | import sqlite3 as sql
from os.path import dirname, join
import numpy as np
import pandas as pd
import geopy.distance
from bokeh.io import curdoc
from bokeh.layouts import column, layout
from bokeh.models import ColumnDataSource, Div, Select, Slider, TextInput
from bokeh.plotting import figure
from bokeh.sampledata.mo... | [
"jalmari.tuominen@gmail.com"
] | jalmari.tuominen@gmail.com |
1b9cf57ef224079edd8a55d3520d461748966596 | 003556f7ca1c8b9b92aebfb727c45ee44b025ace | /models/transformer/__init__.py | cee3b0047eaab38a36c9bf3e4af18e5f8237d5bd | [
"MIT"
] | permissive | pinakinathc/VisualGPT | fbd88fca200ab779ad562d0f99d750750ebfd9e3 | 45aaa8f1cddf33f1f9f197078b089edf9f27bfd7 | refs/heads/main | 2023-04-12T15:27:54.830700 | 2021-04-18T08:40:40 | 2021-04-18T08:40:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | from .transformer import Transformer
from .encoders import *
from .encoders_aoa_baseline import MemoryAugmentedEncoder_baseline
from .attention import *
from .transformer_m2 import Transformer_m2
from .m2_attention import *
from .transformer_visualGPT import Transformer_visualgpt
| [
"jun.chen@kaust.edu.sa"
] | jun.chen@kaust.edu.sa |
ddec73e39fc0ae3040f5a8f4618b0f6d20a21d5d | 2a3cb67f05ceaec9b150553f4afdffcf1e84a52c | /testsuites/base_testcase.py | ecf188272d71878d9b863a7e883b0e0b7db259c3 | [] | no_license | liucaifengname/liucaifeng | ad89fef4e9032a8986f8445bc25b1838cbe26674 | 2694f71fa7ea4e7c9db307e301403036a3ef4d25 | refs/heads/master | 2020-04-02T06:10:47.601898 | 2018-10-24T09:43:26 | 2018-10-24T09:43:26 | 154,134,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | from selenium import webdriver
from luntan.framework.browser_engine import BrowserEngine
import unittest
import time
class BaseTestCase(unittest.TestCase):
def setUp(self):#测试提前准备工作
browser=BrowserEngine()
self.driver=browser.open_browser()
def tearDown(self):#主要是测试结束后要做的工作
self.dr... | [
"1213637440@qq.com"
] | 1213637440@qq.com |
f730ff5bb0395da60902ab76911fb669ba9b8768 | 3471e7f40f3b465752bc5a08a726c6b6ebdf9124 | /python-libraries-assignment/ques5_random_array.py | a0f494c11e682764b01d68bc229f65f2a5ff89eb | [
"MIT"
] | permissive | Roshni-Sahoo/LeanIn-ML-Circle | 42bd185750dd3eec99bda02c5b834d0306d9125a | 65443306e7f57922dc8f6d805906e39d2da92aa2 | refs/heads/main | 2023-04-07T06:20:41.328714 | 2021-04-16T17:56:41 | 2021-04-16T17:56:41 | 336,463,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | import numpy as np
x=np.random.rand(10,4)
print(x)
y=x[:5,:]
print(y) | [
"roshni.sahoo19@gmail.com"
] | roshni.sahoo19@gmail.com |
001b2620fba71bf6672fffa7ba7578a6ef07180f | c838b0eaf08c63284bd29442f8a0a297d1558fd5 | /lagom/runner/rolling_segment_runner.py | 6f42c595b4aa4688010ec63e73d889e6d6601428 | [
"MIT"
] | permissive | vin136/lagom | ccd0f4a3e469c1ee8ef88b1f5248e712b51c5704 | 54e1890e6450f4b1bf499a838963c5d1a3b2da6a | refs/heads/master | 2020-04-22T21:45:51.488458 | 2019-02-13T16:41:32 | 2019-02-13T16:41:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,630 | py | import torch
import numpy as np
from lagom.envs import EnvSpec
from lagom.history import BatchSegment
from lagom.runner import BaseRunner
class RollingSegmentRunner(BaseRunner):
def __init__(self, config, agent, env):
super().__init__(config, agent, env)
self.env_spec = EnvSpec(self.en... | [
"zuoxingdong@hotmail.com"
] | zuoxingdong@hotmail.com |
cac67109814bf5ba931412ccdd408bb3fe7007b7 | 7b871438e5aba92f8a2184cb58ae839cd78da653 | /final_blog/tab_codee/tab_codee/settings.py | 046df1798e36a93af531f5cb048e1e7590994947 | [] | no_license | MohdTabish008/Tab_Coders_Community | 949d84eb90b60bf3d5590783aa799dbf06d001eb | 16f14ee3635ecb27514bab20e0f9f6b573d34456 | refs/heads/main | 2023-02-13T05:47:30.894689 | 2021-01-10T14:14:04 | 2021-01-10T14:14:04 | 327,924,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,360 | py | """
Django settings for tab_codee project.
Generated by 'django-admin startproject' using Django 3.1.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathl... | [
"tabishsid01@gmail.com"
] | tabishsid01@gmail.com |
0fbcacb35b0929a4980ce63924016e6e561beb9a | 1f3f0dc8799dac1e7974b1b05211c2bb863db787 | /ohwada/python/ex21.py | 87e024a3307e4b5409357cd8af76ca58a93fbb15 | [] | no_license | m-note/100knock2015 | 665bb27bc84a0eacaa795523b5e65a5b64c426ac | 84cd1d0617b0b5c15f64e593dd2e0ae21a4dcef7 | refs/heads/master | 2021-01-18T19:41:54.111994 | 2015-07-28T16:15:53 | 2015-07-28T16:15:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | #!/usr/bin/python
# -*- coding:utf-8 -*-
import sys
f = open("article_uk.txt", "r")
for line in f:
if "Category" in line:
print line.strip()
| [
"oowadakenichi@oowadakenichi-no-MacBook-Air.local"
] | oowadakenichi@oowadakenichi-no-MacBook-Air.local |
143015e6f533e9a7ff15567a923069a6255caf56 | 4ba0b403637e7aa3e18c9bafae32034e3c394fe4 | /python/proto/google/protobuf/internal/type_checkers.py | c88b8d028eb494464a1dd6e1420d1b256e13d83d | [] | no_license | ASMlover/study | 3767868ddae63ac996e91b73700d40595dd1450f | 1331c8861fcefbef2813a2bdd1ee09c1f1ee46d6 | refs/heads/master | 2023-09-06T06:45:45.596981 | 2023-09-01T08:19:49 | 2023-09-01T08:19:49 | 7,519,677 | 23 | 6 | null | null | null | null | UTF-8 | Python | false | false | 11,442 | py | # Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions o... | [
"asmlover@126.com"
] | asmlover@126.com |
9192c7935e9c169b9153a802bea4b6b3e121b0bf | d1deb9beb165756c043ad752919424a0eb41c74f | /collective/regexredirector/browser/browser.py | 71bb6eedbca9229b414ea212138f9c087caaee34 | [] | no_license | ebrehault/collective.regexredirector | 80d641d07e0d8b3d2e86ca9d18a915d36ab06aa0 | 333f9a78ec4cd29f3039f67c0e93a820df40a900 | refs/heads/master | 2021-01-16T20:51:47.738112 | 2013-01-30T11:10:34 | 2013-01-30T11:10:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | from zope.component import queryUtility
from zope.interface import implements
from plone.app.redirector.browser import FourOhFourView
from Products.MimetypesRegistry.base_zope import getToolByName
from collective.regexredirector.interfaces import IRegexFourOhFourView,IRegexRedirectionStorage
class RegexFourOhFourVie... | [
"davisp@xenbox.fr"
] | davisp@xenbox.fr |
c3ff723b2a28454b46b22d8b8d29fc224907cbe8 | 666ae8ea0e992e72293fc2624e8ce0e06eb376da | /optionhouseapp/models.py | a1fd888eabbd54adfb37ca3bb0e7f8394a3b41e3 | [] | no_license | kghudgens/OptionHouse | 7e2e8a1ffb81a7627f2b0896bbc3246425893149 | 26197cbe810f8127d9aefbe1b4c1d7e962c40690 | refs/heads/master | 2023-04-19T12:43:48.078274 | 2021-05-04T13:23:17 | 2021-05-04T13:23:17 | 309,648,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | from django.db import models
from django.contrib.auth.models import User
from django.urls import reverse
from PIL import Image
class Post(models.Model):
title = models.CharField(max_length=100)
author = models.ForeignKey(User, on_delete=models.CASCADE)
content = models.TextField()
date = models.DateFie... | [
"hudgens1073@gmail.com"
] | hudgens1073@gmail.com |
f32c47e27a4ed6dfd41d6154529bbafd699be8a3 | a38eb2457fc834109cbb1d5cd2f5649d932cbb00 | /blog/migrations/0001_initial.py | 7115d435920cd0178d44e08eebf29f71a8ba7649 | [] | no_license | anitalmada/mi-primer-blog | 0a5daef6aa87273ab4ab09c1f6d1ff51706fdae2 | 872709baeef37c30608231a746d749c9d11afb0e | refs/heads/master | 2020-06-10T01:47:37.291475 | 2017-10-09T00:16:38 | 2017-10-09T00:16:38 | 76,130,283 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,049 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2016-12-10 15:47
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
depende... | [
"admin@admin.com"
] | admin@admin.com |
0335ea1ef74f03b8d96b21d5130f5d0988090a9f | ccf7b194ecdff46f02a9e280511709d716d311aa | /ecommercedev/ecommercebd/ecommercebd/settings.py | e59b2395b93795408498b0c883b83cf6faf79007 | [] | no_license | imon91/test12 | 24a505a5545eca217436cf6ccff7e54acaca4d30 | 0c28a50f0b66be5c717f5ad28d8e189fbe21b002 | refs/heads/master | 2020-12-17T22:44:04.640363 | 2020-01-21T09:37:39 | 2020-01-21T09:37:39 | 235,298,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,503 | py | """
Django settings for ecommercebd project.
Generated by 'django-admin startproject' using Django 2.2.7.
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 o... | [
"39309@wgbd.com"
] | 39309@wgbd.com |
171b120236c34872af91814ca27829cc1e019db6 | 6a55a55eb384a5b2e7c8e2ae6419a9e811b7ff5d | /config/settings/base.py | a082b0af29cefc245a6d5788562e43c82a10bc1c | [
"MIT"
] | permissive | ChrisKeefe/homeslice | 343b718ae71b125a48e5d1519074b2914d4c418a | 6070e8a40d1a3b300eb5eb156216552663675975 | refs/heads/main | 2023-05-06T04:25:51.488115 | 2021-06-05T22:03:46 | 2021-06-05T22:03:46 | 328,460,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,006 | py | """
Base settings to build other settings files upon.
"""
from pathlib import Path
import environ
ROOT_DIR = Path(__file__).resolve(strict=True).parent.parent.parent
# homeslice/
APPS_DIR = ROOT_DIR / "homeslice"
env = environ.Env()
READ_DOT_ENV_FILE = env.bool("DJANGO_READ_DOT_ENV_FILE", default=False)
if READ_DOT_... | [
"crk239@nau.edu"
] | crk239@nau.edu |
330b773c30e9394678ce85a54e3f32455377b5c6 | 6249bc6388cc525e734f485edcb0ceb18dad31b2 | /contact/migrations/0002_cv.py | 0f43c43f2ec5a22899a1fef4c332aa311fd906e0 | [] | no_license | islamtaha/cube_webapp | cf33727f447d6a391811a436e01ed19d8dc6c23d | f99c2e5ae83ba877ecc920ca851214474ef45107 | refs/heads/master | 2020-12-29T18:47:49.153968 | 2016-09-06T09:46:46 | 2016-09-06T09:46:46 | 65,671,057 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 756 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-08-23 12:19
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('contact', '0001_initial'),
]
operations = [
migrations.CreateModel(
... | [
"itaha48@yahoo.com"
] | itaha48@yahoo.com |
d3bbf082b06c6084b0ced9d203a0938eb64e858b | 8c4dda85b853facaf400108c88366e598d8a6fc2 | /Regression Simple Linear/BetaCaclulation.py | 4e9d207d58829eed366226e85a45f178b691d480 | [
"Apache-2.0"
] | permissive | csitedexperts/DSML_MadeEasy | b78d911c775ffbfb19140fa8ee55e2cbf1f48eb5 | 9af03a00fb026930c19737790f603a0b0ae40b7e | refs/heads/master | 2020-08-29T02:42:16.351266 | 2019-10-27T18:50:23 | 2019-10-27T18:50:23 | 217,898,768 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py |
"""
"""
import numpy as np
X = [[180, 150], [150, 175], [170, 165]]
y = [[110], [140], [180]]
X_Transpose =np.transpose(X)
X_Transpose__X = np.matrix(X_Transpose)* np.matrix(X)
X_Transpose__X__Inv = np.linalg.inv(X_Transpose__X)
X_Transpose__X__Inv__X_Transpose = np.matrix(X_Transpose__X__Inv) * np.matrix(X_T... | [
"csitedexperts@gmail.com"
] | csitedexperts@gmail.com |
fa3c81e8655206c62c0e1c0548c42cc70ab771ae | c1261b9181d86c418df612dc809af933cfbb2c0d | /blog1/migrations/0003_auto_20190616_1338.py | c8a7d136c991ab23980daf09e24fe9de1d3d62e1 | [] | no_license | gitlGl/myblog | 122a598407d12a7397420ce50f9c1ca68a3107d2 | b3d7d1130e81ca625cb9d2b7204e19da6efe7d07 | refs/heads/master | 2023-09-01T14:06:04.720407 | 2022-10-22T08:47:02 | 2022-10-22T08:47:02 | 198,171,669 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # Generated by Django 2.1 on 2019-06-16 05:38
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog1', '0002_auto_20190616_1334'),
]
operations = [
migrations.CreateModel(
name='Page',
fields=[
('i... | [
"you@example.com"
] | you@example.com |
e35f7c5af2e92036ce16caa95070c2cccec270fb | 9dba716cfe998aef8503fdf862a108120cb7ca96 | /webapp.py | d5a9544680cb2cbd489967a1639d08a22e0b08e9 | [] | no_license | pascaleli/my_web_app | 09bb4dab6355b975a7db8bfc691a5bc05596076d | 2a91a2739ff98fc63bd33ede95c3b2f88498ff63 | refs/heads/master | 2020-03-23T00:20:36.623231 | 2018-07-12T22:56:10 | 2018-07-12T22:56:10 | 140,857,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'Hello world pasczal jjfjfjfjjfjfjfjfj'
if __name__ == '__main__':
app.run(debug = True , host ='0.0.0.0')
| [
"pascalhugues0104@gmail.com"
] | pascalhugues0104@gmail.com |
3d73f889afa776a5b31de5114443a72c0eb17e8b | d4c04d637d991c212986c9945a2d7a28ae294a38 | /users/admin.py | 87432000a63831705da1403eafc31e73abddbac8 | [] | no_license | Python-Zone/web | c2ea3ff8b1fa74009295c3f1e1f878a3e17d9a9e | 4b4a19e9626f9a599b59f28d0637ea0f0edcaeec | refs/heads/master | 2021-01-18T21:45:13.224677 | 2017-03-02T05:07:55 | 2017-03-02T05:07:55 | 48,666,682 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,060 | py | from django import forms
from django.contrib import admin
from django.contrib.auth.models import Group
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.forms import ReadOnlyPasswordHashField
from .models import User
class UserCreationForm(forms.ModelForm):
"""A form for creating new us... | [
"jingping.yi@gmail.com"
] | jingping.yi@gmail.com |
33298d89b69714b92013d275a06ba985e9250f11 | 04c09e7b0255e4adb1915d3576f76b1bf8144308 | /def_test/reverse_test.py | 2d43e7adf623e40d020a6ce81d384c8c4bf81b4c | [] | no_license | mingyu0519/python_sample | 99d5562e0c52b3e9facfc18c248a5c9022eeb087 | 86240a239c511ecc61e7a59187b3b73fc6d536f0 | refs/heads/master | 2020-05-21T16:43:59.120270 | 2016-11-16T15:14:12 | 2016-11-16T15:14:12 | 62,772,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 77 | py | def reverse(a):
b = a.split()[::-1]
print b
reverse('abc edf degd')
| [
"mingyu0519@gmail.com"
] | mingyu0519@gmail.com |
03cfdcd1222e28f24a08bac54f33697fc9fdd4db | 032c6131ac12d07536056eba38cfde6dacf3d830 | /0x04-python-more_data_structures/0-square_matrix_simple.py | 5deec046864ccaf24ea8777d5397516020be75d5 | [] | no_license | GioRubioHolberton/holbertonschool-higher_level_programming | 4e5872839b557b6d0052eb60f80b0a2af7e7d9da | 08bbd471de6b702afac1af3fc6351253007913a9 | refs/heads/master | 2020-05-18T02:48:10.454190 | 2019-09-27T03:11:43 | 2019-09-27T03:11:43 | 184,127,487 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | #!/usr/bin/python3
def square_matrix_simple(matrix=[]):
new = matrix[:]
new = [list(map(lambda y: y**2, x))for x in new]
return new
| [
"759@holbertonschool.com"
] | 759@holbertonschool.com |
0b702ab72911a2f200bcb1db6308248af3527d9f | e10ab6310fb0b6e83cb64f0bcc91fc72116738e7 | /color_table.py | b32e1e96317cc96c052d48de7ba16920102f690f | [] | no_license | penguin-of-linux/gifparser | 0f5080974cfa200280f37d306f01a65b3f4ae095 | c38eea5f4013a4ff941c74c414cfdd4e398675fa | refs/heads/master | 2021-01-22T04:24:34.426619 | 2017-02-10T08:06:16 | 2017-02-10T08:06:16 | 81,542,031 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | class ColorTable:
def __init__(self, data: bytes, pos: int, size: int):
self.colors = list()
i = pos
while i < pos + (2 ** (size + 1)) * 3:
color = data[i:i+3]
self.colors.append(color)
i += 3
def __str__(self):
result = "Color table:\n"
... | [
"kulc_hacker@mail.ru"
] | kulc_hacker@mail.ru |
3cb7621806e4937f1291b1f0db2257539d8f5b06 | 89daf19b7d920507e109cc9a7f7ab623d23da0d1 | /Giraffe/Modules_PIP.py | d4999e5d200dcf82ab6c257bbc2d656204d52588 | [] | no_license | ryanthemanr0x/Python | 18e3e54a1b385216daa1633734937b0f7aed587f | 9d25decfe25a24d99617a087c74de2dc53d6fb90 | refs/heads/master | 2022-12-25T15:08:06.686575 | 2020-10-15T00:52:33 | 2020-10-15T00:52:33 | 304,021,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | #Modules and PIP
# Import/Call other file
import useful_tools
print(useful_tools.roll_dice(10))
# Python Module Index: https://docs.python.org/3/py-modindex.html
# Python Modules local cache: %AppData%Local\Programs\Python\Python39
# External modules are installed to: %AppData%\Local\Programs\Python\Python39\Lib\sit... | [
"72871400+ryanthemanr0x@users.noreply.github.com"
] | 72871400+ryanthemanr0x@users.noreply.github.com |
1eb7553184f9f93b4f42a7d94f77117f5205d59e | 78171e8cfbc44c547ee07d6e5a85e595fb7397a1 | /analytics/migrations/0001_initial.py | c0e9b067863b881a1c5ab3492b2f8dbcc91c19cf | [] | no_license | jimpalowski/URLshortener | 37b41a3818679c1e0707f02f57147e87a651063c | f7b8450ce2e858dff1e6fec11f9fd5dfec3d3e26 | refs/heads/master | 2021-09-05T11:44:36.564719 | 2018-01-27T01:59:56 | 2018-01-27T01:59:56 | 118,685,038 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2018-01-26 19:04
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('shortener', '0003_auto_20180125_2359'),... | [
"palowskijim@gmail.com"
] | palowskijim@gmail.com |
55f1dc9325861a9e19d2e9a887425c689284659e | 0c6c7365d6ff8b694bc906ec5f74c741e8bb0d37 | /Algorithms/922-Sort-Array-By-Parity-II.py | b95848daeaa9b922111c67403417c1599a5222c5 | [] | no_license | XiongQiuQiu/leetcode-slove | d58ab90caa250c86b7a1ade8b60c669821d77995 | 60f0da57b8ea4bfb937e2fe0afe3caea719cd7e4 | refs/heads/master | 2021-01-23T11:21:15.069080 | 2019-07-08T15:42:48 | 2019-07-08T15:42:48 | 93,133,558 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | '''
Given an array A of non-negative integers, half of the integers in A are odd, and half of the integers are even.
Sort the array so that whenever A[i] is odd, i is odd; and whenever A[i] is even, i is even.
You may return any answer array that satisfies this condition.
Example 1:
Input: [4,2,5,7]
Output: [4,5,... | [
"zjw2goo@gmail.com"
] | zjw2goo@gmail.com |
0d1f4be94b416dba2fe989466c6736cc23c35903 | 613434b8996b067b22cb6dc54a14be326e89eac2 | /entrant/views.py | beb314e598cb52c39e5d648985b25411203b8196 | [] | no_license | Alex-Abat/course_work | 82ff7cac222e972bbb6f3913d4656eb716a4cfd0 | c86ef44af7bc65de7fdbf582e89ef2a6a9e9f40d | refs/heads/master | 2020-05-20T22:07:56.558947 | 2019-05-10T06:24:55 | 2019-05-10T06:24:55 | 185,776,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | from django.shortcuts import render
from django.http import HttpResponse, HttpResponseRedirect
from entrant.forms import AnketaForm, ExamForm, SpecForm, DiscForm
from entrant.models import Anketa, Special, Exam, Disc
def index(request):#главная страница
return render(request, 'index.html')
def add_anketa(request):#д... | [
"a.abatnin@mail.ru"
] | a.abatnin@mail.ru |
2dca00f6397ed40ea58e0b77e3e87b5dd9332bb3 | d33ff04629a6772d7ac0a0e8c5ea4d27c8a9b3e7 | /hpc_clust2qiime.py | d13785c522dee4029e4bd7aae0b30b61918763ca | [] | no_license | waoverholt/overholt_scripts | 0c17e1341856cd7ee7aa9a14a4cde9cda0a7211a | fa46786415c4e93841a582b8d0edba6717343f51 | refs/heads/master | 2023-06-21T18:23:09.235615 | 2023-06-09T15:13:17 | 2023-06-09T15:13:17 | 172,920,495 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,053 | py | #!/usr/bin/env python
import sys,os
import re
import argparse
from collections import defaultdict
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--input_file", help="the otu file created using the make-otus.sh script found in htc-clust", required=True)
parser.add_argument("-o", "--output_file", help="th... | [
"waoverholt@gmail.com"
] | waoverholt@gmail.com |
3ca51b06306029cc0282304b612125671375254a | d451be63acf0c749ba0a2915845732e277161925 | /untitled0.py | d157fe6ff366f73f1fe388a02db99b8bda2fe07d | [] | no_license | GeraldWu23/top5leaguesBIRCH | 7e202466173d36b164e70f348270ca5cdc5c362c | 5ec14127af95ab9039d8c9c3bb0725a9c363ba37 | refs/heads/master | 2020-09-17T02:30:40.858448 | 2019-11-25T13:54:45 | 2019-11-25T13:54:45 | 223,960,733 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,868 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jan 3 18:15:40 2019
@author: wukak
"""
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 31 14:16:42 2018
@author: wukak
"""
import numpy as np
import csv
import time
from sklearn.cluster import KMeans
B = 10 # how many children can non_leaf node have
L = 38 # how many c... | [
"wukakit96@gmail.com"
] | wukakit96@gmail.com |
037914c9c349ecf834267d3eb3e6e5b20c208d0b | 50dd2a43daa8316fc11e0c176b5872738fcc5dde | /Learning/049_Decorators/deco.py | a73431eabd8fc058356752fa444fc38ffd559521 | [] | no_license | FrenchBear/Python | 58204d368e3e72071eef298ff00d06ff51bd7914 | b41ab4b6a59ee9e145ef2cd887a5fe306973962b | refs/heads/master | 2023-08-31T18:43:37.792427 | 2023-08-26T15:53:20 | 2023-08-26T15:53:20 | 124,466,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,383 | py | # deco.py
# Exercices on decorators
#
# 2018-09-03 PV
# 2018-09-07 PV Variant with a class
# 2018-10-01 PV Expanded with execution time and following code
import functools
def uppercase(func):
# Preserve __name__ and __doc__ of original function in the decorated version
@functools.wraps(f... | [
"FrenchBear38@outlook.com"
] | FrenchBear38@outlook.com |
b8666ae4b48669c0120964f5809b6f7b3e720aef | 3e48bddb2ffdc4998c69ce8e1b3ebf54ef8c0cfe | /python_compiled_backend/app/iris/state_machine/model.py | 1c6f84971bdbbc34e1feac6dac5b59faa2797d27 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | direkshan-digital/iris-agent | f4229359c1fc3ec5403301a77efbf9ed00565627 | 97d1fcd8fb8946f7df1c41777e8a133322ca5727 | refs/heads/master | 2022-11-26T20:20:28.058664 | 2020-11-22T12:23:37 | 2020-11-22T12:23:37 | 101,836,065 | 0 | 0 | null | 2022-11-22T05:48:15 | 2017-08-30T04:03:15 | Python | UTF-8 | Python | false | false | 54 | py | from ..model import IrisBase
IRIS_MODEL = IrisBase()
| [
"ethanfast@Ethans-MacBook-Pro.local"
] | ethanfast@Ethans-MacBook-Pro.local |
21d731df849e297716c68f2ae4a7a7a0777d9eed | 2d9a3ce2a04190d0032e8a298829022260b1d76b | /indra/preassembler/refinement.py | 25da61e0baae4308ffbcc5076b86d3d1879d0344 | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | sorgerlab/indra | f127a0f9bdd2d3f48df14575883fd31e2f4de4bf | 6d6ca1174792b6c5a05cbf3afcb9f138fabcec6a | refs/heads/master | 2023-08-21T13:25:54.654995 | 2023-06-11T16:46:41 | 2023-06-11T16:46:41 | 22,848,436 | 158 | 61 | BSD-2-Clause | 2023-08-30T21:47:59 | 2014-08-11T17:44:05 | Python | UTF-8 | Python | false | false | 17,262 | py | """This module implements classes and functions that are used for
finding refinements between INDRA Statements as part of the
knowledge-assembly process. These are imported by the preassembler
module."""
__all__ = ['get_agent_key', 'get_relevant_keys', 'RefinementFilter',
'RefinementConfirmationFilter', 'Ont... | [
"ben.gyori@gmail.com"
] | ben.gyori@gmail.com |
bdd9eb2a0e740f5082e96fbccdc2a7f8b3cb016a | 3a3db844fbb83a03b64730624206d7f108c69687 | /pc_health.py | e64b7072716fec63d76201075bec48de44bc57f1 | [
"MIT"
] | permissive | encrypted-jpg/CleanPy | b2527c52bae31fe628bfa37fd36ec74ac2176e22 | d78cf1dfc070ba79a6ee8195f9a1291cef895919 | refs/heads/master | 2023-02-01T20:38:11.980984 | 2020-12-19T05:35:51 | 2020-12-19T05:35:51 | 319,217,657 | 1 | 0 | MIT | 2020-12-07T05:52:03 | 2020-12-07T05:52:02 | null | UTF-8 | Python | false | false | 996 | py | import subprocess
def system_info():
"""
It Prints the Brief System Information by using the following command.
"""
command = "systeminfo"
print("Retrieving Information... ")
info = subprocess.run(command, shell=True, capture_output=True)
cat = info.stdout.decode()
print(cat)
def o... | [
"vallakatlaaditya@gmail.com"
] | vallakatlaaditya@gmail.com |
b8050e8ae95f6ce9bc0e786016ccb3db9cb88646 | 2a8e5a3c0fce77326eec0b8f4d543fc5a81f83ce | /dht_log.py | 25fc59e4d870ac6488eff91f47dd9e5321917c19 | [] | no_license | sbrunas/dht11 | 5ec8002e91b79c27f28e522affe7fd62a739eb23 | 0983fb1c99fccbac553c01622b8a40c58a4c63c4 | refs/heads/master | 2020-07-19T12:50:13.465676 | 2019-09-26T01:06:18 | 2019-09-26T01:06:18 | 206,452,199 | 1 | 0 | null | 2019-09-21T16:32:57 | 2019-09-05T01:54:00 | Python | UTF-8 | Python | false | false | 1,374 | py | #!/usr/bin/python
#--------------------------------IMPORT LIBRARIES--------------------------------
import sys
import time
import Adafruit_DHT
import datetime
#--------------------------------PATH LOG FILE--------------------------------
log_path = "/home/pi/log/iot/"
#--------------------------------CONF TYPE OF SE... | [
"seb.bruna@gmail.com"
] | seb.bruna@gmail.com |
193b11d29a749d3ccdc5410eba8d70b5f4c3f6e9 | 3740c368be952b6bc2a7f92e97dc7171aa8cb3e5 | /auctions/migrations/0004_watchlist.py | 5b82c967bb17c01551fde62a97fad3745b16535a | [] | no_license | OliviaU-B/commerce-project | 5a0a10a7a878bb39e0859583db94dbe80132cebf | ad0b01aa2c1b0723ab26b299f00ffe6da4af5ed6 | refs/heads/master | 2023-05-07T01:00:32.170414 | 2021-05-23T19:14:02 | 2021-05-23T19:14:02 | 359,079,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | # Generated by Django 3.2 on 2021-04-14 11:40
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auctions', '0003_auto_20210412_1837'),
]
operations = [
migrations.CreateMod... | [
"olivia.u-b@hotmail.com"
] | olivia.u-b@hotmail.com |
1650ea5291fb078028b18bc7b1d33ce095acb1aa | 3fce653f12af1b98b6b87e3d87e7d10483ef6fac | /hood/migrations/0003_auto_20181018_1012.py | f514eafff572aa923446e6983049b97236ec7ec9 | [] | no_license | IreriVIkki/hoodip | 6dba100d75a69b0dd146205557cbaba4ec2555e2 | 610629d6a54920e66b7e30156b11887de7fe8db4 | refs/heads/master | 2020-04-01T14:31:31.729134 | 2018-10-23T11:27:31 | 2018-10-23T11:27:31 | 153,297,767 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-10-18 07:12
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('hood', '0002_auto_20181018_0936'),
]
operations = [
migrations.RenameModel(
... | [
"wambsviki@gmail.com"
] | wambsviki@gmail.com |
3ca2132c184222c94e395d4cfe2db671fd4aabff | 4bcba1c79b04268f043c0ec3fed582412a6a7dfa | /flipping-an-image.py | e7a9108d259d9586071d147bad075b497180ffb4 | [] | no_license | AjeshV/SolvedProblems | add6063f0b1aacf15e16fe6e4fc902f01e300580 | 40ac1f9bd1f81c3ce43bccf75e54c5661baf4529 | refs/heads/master | 2023-02-09T12:25:38.880657 | 2020-05-19T13:38:40 | 2020-05-19T13:38:40 | 175,366,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 205 | py | class Solution(object):
def flipAndInvertImage(self, A):
"""
:type A: List[List[int]]
:rtype: List[List[int]]
"""
return [[1-i for i in row[::-1]] for row in A]
| [
"noreply@github.com"
] | AjeshV.noreply@github.com |
10d583fbfb838d17ebed30ad91fdbb483af79e7a | b44a890564f1d79b78781319beac05178084b120 | /test01/customers/views.py | 6e8ee2be95d424d6e747f8cbd749e1e25005dcbe | [] | no_license | ryuzak/api01 | 130f90b944b8fce93c8a18bab7d195059fb858a0 | 4f510c78618e47e7b1d6c08eb7eaca8f5fc1548a | refs/heads/master | 2022-12-10T13:01:44.600969 | 2020-07-06T19:23:49 | 2020-07-06T19:23:49 | 209,666,207 | 1 | 0 | null | 2022-12-08T04:27:30 | 2019-09-19T23:34:48 | Python | UTF-8 | Python | false | false | 1,171 | py | from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework.permissions import IsAdminUser, IsAuthenticated
from rest_framework import status
from .serializers import CustomerSerializer
from accounts.serializers import UserSerializer
from .models import Customer
class Cr... | [
"roberto@sml.mx"
] | roberto@sml.mx |
bbd9e679b4854159d1c9db7300416a259fbcf773 | 8a171056b5d8d2ac184d66afa2c4573bf54ec8a0 | /Examples/Python/ExtractImageRegion.py | c7a669126fc8001d845248bb5406671b83518920 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | radpointhq/GDCM | 7b03d5a27c0f1f733d336fa24317d58329a3cf03 | 63bd2fc37b6ed3630183a3c2d8ee561027a9e574 | refs/heads/master | 2022-05-21T19:05:01.961938 | 2022-03-15T17:36:51 | 2022-03-15T17:36:51 | 189,388,523 | 1 | 0 | NOASSERTION | 2022-03-15T17:36:54 | 2019-05-30T09:50:16 | C++ | UTF-8 | Python | false | false | 2,650 | py | ############################################################################
#
# Program: GDCM (Grassroots DICOM). A DICOM library
#
# Copyright (c) 2006-2011 Mathieu Malaterre
# All rights reserved.
# See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
#
# This software is distributed ... | [
"mathieu.malaterre@gmail.com"
] | mathieu.malaterre@gmail.com |
1d7c91369001c27e093bf5a5535b4b94070065b5 | bca49526f88955ea6924e26cb6d2d6ea3ec79663 | /backend/brainhi/asgi.py | 9700090e6217da98ff9eef4f4addd7e98fd768a7 | [] | no_license | resparra/marketplace-project | 35999d6f5283ccfba4dbfa332a689dbfdef3fc42 | 2ceb08fbc890519b649adb4ebef48c55918f68d1 | refs/heads/master | 2023-01-11T02:18:16.367006 | 2020-11-12T15:54:29 | 2020-11-12T15:54:29 | 312,104,200 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | """
ASGI config for brainhi 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_SETTI... | [
"rafaelesparra@akcelita.com"
] | rafaelesparra@akcelita.com |
ee0d03e5ed294173e0df5f582729e2d0b61ef73f | 17926b196d9db43816453d16f3da84de6664f2fd | /155_Mini_Stack.py | 76a37a32f326092b1b0ac94945275b9c1a9c62f7 | [] | no_license | luchang59/leetcode | 66690a3c9b28a5201a7be8cd0134142b48418adb | feab001b9291f6e57c44eeb0b625fdaa145d19b4 | refs/heads/master | 2020-05-28T06:57:20.667138 | 2019-09-20T18:18:11 | 2019-09-20T18:18:11 | 188,914,681 | 0 | 0 | null | 2019-05-27T22:17:44 | 2019-05-27T22:08:54 | null | UTF-8 | Python | false | false | 717 | py | class MinStack:
def __init__(self):
"""
initialize your data structure here.
"""
self.stack = []
def push(self, x):
"""
:type x: int
:rtype: None
"""
curMin = self.getMin()
if curMin == None or x < curMin:
curMin = x
... | [
"luchang1991@gmail.com"
] | luchang1991@gmail.com |
004186567890d8ae2239bc073d0fdebcb8886cdb | a37b8ac91d4b1f9c03a9719299f1439f26a72bb9 | /ex24(更多练习).py | ab11085bb50e2d7aa7bbf6db18c5b412c423ca63 | [] | no_license | seasoncool/Exercises_Python | 1e32731f4ffcbbfd596d014fb6cd92f68215ae75 | fa839a84a44bd35d88e801f401f6ea161de3814b | refs/heads/master | 2020-12-24T17:08:45.879619 | 2014-02-09T01:56:51 | 2014-02-09T01:56:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 942 | py | #coding:utf-8
#更多练习
print "Let's practice everything."
print 'You\'d need to know \'bout escapes with \\ that do \n newlines and \t tabs.'
poem = """
\t The lovely world
with logic so firmly planted
cannot discern \n the needs of lovelynor comprehend passion from intuition
and requires an explanation
\n \t \t where t... | [
"150401848@qq.com"
] | 150401848@qq.com |
63eb7d87a1aafc03f35dda54a66e8ee6749dbf55 | 0e56bfa9b9f345aad98ae08e45dfeb800258d9de | /data_structures/Node.py | 30c71fec77fd050d46dddc88e7ccb1cc1a565cf0 | [] | no_license | karenngomes/learning_python | 02a8e1864b243fb382b4c1e979a43d82af69c472 | f45747217928955212bd03b4184efd1e646d236e | refs/heads/master | 2021-07-07T04:49:44.988553 | 2019-01-25T06:21:55 | 2019-01-25T06:21:55 | 119,829,113 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | class Node():
def __init__(self, initialData):
self.data = initialData
self.next = None
def getData(self):
return self.data
def getNext(self):
return self.next
def setData(self, newData):
self.data = newData
def setNext(self, newNext):
self.next = newN... | [
"kngs@ic.ufal.br"
] | kngs@ic.ufal.br |
9cf936a003b71ea51e58116c0624c2eefba3beeb | fc21ec8a999a47b7627aa49115ff21867c819137 | /Lesson 2/exercises.py | de9f42e2ea19bc2d1c4b235c69621d82bba9fdee | [] | no_license | Leslov/PythonBaseWebinarHW | b131cd94502868ea96afce62b4d3f6606a5c5f04 | 585aeb2b507685bceb8612e0c2bb2d8a9a4fdf2b | refs/heads/master | 2023-08-25T20:42:05.646809 | 2021-10-21T06:54:28 | 2021-10-21T06:54:28 | 404,587,556 | 0 | 0 | null | 2021-10-17T08:54:12 | 2021-09-09T04:41:12 | Python | UTF-8 | Python | false | false | 6,743 | py | import helpers
def exercise1():
print('Список элементов и их тип данных: ')
my_list = ['Alex', 43, False, 'Something', (1, 3, 'HH')]
for elem in my_list:
print(f'element - {elem}; type - {type(elem)}')
def exercise2():
def get_sorted_list(original_list):
my_bool = False
new_l... | [
"lehaha95@mail.ru"
] | lehaha95@mail.ru |
0ce5180b40afe8c903c9525c4abcb1538e4239d9 | 3cfaf190c329f1926ef1c73cdf72f852a0679e8f | /misc/array_rotation.py | a8ba96e1f4efb04b989833b31d1469c7fb35f634 | [] | no_license | venbalas/problem_solving | 525a5d9d7eba4f1771d44d54340f8c8607e07c87 | 8deaf42b6a3361d28de023632cf91e5fd7172b45 | refs/heads/master | 2023-02-01T15:59:31.877687 | 2020-12-13T02:06:53 | 2020-12-13T02:06:53 | 288,044,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | # Given an ascending sorted rotated array Arr of distinct integers of size N. The array is right rotated K times. Find the value of K.
class Solution:
def perform_binary_search(self, arr, n):
if n <= 1:
return 0
mid =n//2
if n%2==0:
... | [
"venktech91@gmail.com"
] | venktech91@gmail.com |
c160904d672d4b4ed90daa9fc2225301c3fa0c89 | fb7a324bb697cbd024093146d2eefd7b44fc1b2a | /SelfOrganisedMap.py | 41b46e19c51941b847355f54060d8afa97940e02 | [] | no_license | Lebo124/Exoplanets | d47ef98ceba71c0c3a50d02a0192f58e7c73c789 | 15131510f2f8e9a1920551cfde225fa2fa287fa5 | refs/heads/master | 2020-04-08T16:39:40.535071 | 2018-11-28T16:08:45 | 2018-11-28T16:08:45 | 159,528,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,299 | py |
# coding: utf-8
# # Final Assignement
#
# For the final assignement i was curious how unsupervised learning could help in clustering data. I was impressed of all the beautiful things that could be made by the neural networks, like deep dreaming, but i also am curious about the way deep learning can be used in scienc... | [
"noreply@github.com"
] | Lebo124.noreply@github.com |
91cb60f0828d4a36883b9e461baa1ffc15bc2fd6 | 1518691b26dc4455df1ffcbaeb3557c8098451b6 | /bayes/bayesian_test_func.py | 8d23dfbdec7adad5b19fdf96e981c35cbe56b107 | [] | no_license | c-d-cotton/python-math-func-examples | 20329041e7863fbdda9ef3e414df997ed114633d | e993082e25755d1858a40aa1f9cedd80d6e5e0e8 | refs/heads/master | 2023-02-11T08:15:28.485224 | 2020-12-31T15:07:25 | 2020-12-31T15:07:25 | 325,791,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,837 | py | #!/usr/bin/env python3
import os
from pathlib import Path
import sys
__projectdir__ = Path(os.path.dirname(os.path.realpath(__file__)) + '/../')
import functools
import numpy as np
from scipy.stats import norm
# Basic Functions:{{{1
def mh_basic():
"""
Take 100 draws from an N(mean, std) distribution
"""... | [
"cdc2175@columbia.edu"
] | cdc2175@columbia.edu |
34de46783263cd0ce2b4f87983353a8ecd82a2f7 | d6ec56cc79104a071f92e67a53835325fbc6849a | /gdifb/apps/home/views.py | ca3ab4db45eeadd01a0ba5346763e4dfa81d9dc3 | [] | no_license | dedy-purwanto/gdifbgroup_archive | 6869333a28bd30f74f47182b6e6433a69b7f1302 | 3e358d0b7f447bcfeeb81bd1c41da3e8a2ed7401 | refs/heads/master | 2023-05-27T01:35:19.636538 | 2012-01-22T10:07:29 | 2012-01-22T10:07:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from django.views.generic import TemplateView
from archive.models import Post
from search.forms import SearchForm
class MainView(TemplateView):
template_name = 'home/main.html'
def get_context_data(self, **kwargs):
data = super(MainView, self).get_context_data(**kwargs)
posts = Post.objects.fi... | [
"kecebongsoft@xxxxx.(none)"
] | kecebongsoft@xxxxx.(none) |
0d54a8ca3d2b786f788a93b14b7817b06777b682 | b48764e6684ffbd73b0043dc889c013860642e8d | /1학기/area1.py | f237fe223ef10a6ce0fda088efe636035c0f451d | [] | no_license | tanghee/Programming-Python- | c6d32a1e49d5c95c8359aeb8775cb52cc665167a | eb402357ad31638d867042e76af507bc6c67a0b4 | refs/heads/master | 2022-03-27T07:27:18.888660 | 2019-12-10T02:06:41 | 2019-12-10T02:06:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 180 | py | width = 3
height = 5
print("가로 ", width, "세로", height, "인 삼각형의 넒이: ", 3*5*1/2)
print("가로 ", width, "세로", height, "인 삼각형의 넒이: ", 3*5*1/2) | [
"s2018w37@e-mirim.hs.kr"
] | s2018w37@e-mirim.hs.kr |
72119a8d59b11a5ee1ee031256a0a0a8c7a9261f | d6cd27a4bd6637eca3bc4b97e6679d17754adb34 | /EJERCICIOS PYTHON/BANCO UNILEÑO.py | 459942ec9f0bed2f64e9ebbf7b7cd71af2728f32 | [] | no_license | andresafanador2/Inicial | ab9a2f53e544bab7227d306e74a53d0f41333022 | 0854ff27616a27375646f43debb68cb2c0bef6a4 | refs/heads/master | 2023-01-28T19:41:05.820745 | 2020-12-13T22:50:40 | 2020-12-13T22:50:40 | 317,550,067 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 560 | py | valor_retirar = int(input('Bienvenido al banco Unileño,\n por favor ingrese el valor que desea retirar.\n No olvide ingresar solo valores que sean multiplos de $10.000: '))
billetes_100 = (valor_retirar // 100000)
residuo = (valor_retirar % 100000)
billetes_50 = (residuo // 50000)
residuo = (residuo % 50000)
billetes_2... | [
"andresafanador2@gmail.com"
] | andresafanador2@gmail.com |
c2d2d05327906bec3330c6c47792a5758a692f5b | fe1aee55f9f8dd5f3e9aeac62c64b3d14e9212c4 | /guest/tests_account.py | cf18bb45c803b81a50474dc2229788ab949f48c9 | [] | no_license | loreleivillatte/BungalowApp_project_13 | 74efeff44e133a285b68556252279a87538af173 | 4664de69155d0427d63ef51f8c4a3b4f05c1b26c | refs/heads/master | 2020-05-09T22:54:04.126568 | 2019-04-15T15:55:32 | 2019-04-15T15:55:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,577 | py | from django.contrib.auth.models import User
from django.test import TestCase
from django.urls import reverse, resolve
from guest.forms_account import RegistrationForm, AuthForm
from .views_account import registration
class SignUp(TestCase):
def setUp(self):
url = reverse('signup')
self.response = ... | [
"jaune.pixel@gmail.com"
] | jaune.pixel@gmail.com |
eac0ec2067c7052cd8bde320aac728f64cfd1fa1 | d27453de856afd4e03c30ec92099a7833551431e | /lib/libnmap/plugins/backendplugin.py | 224cdd037a5e606e37ea412d8f55e8356ce4043f | [
"Apache-2.0"
] | permissive | webvul/Scanver | 1ec413a1ba53d1ec846c158fa0d750d8fedbd40a | f058eb7361e9c539917b85d3be69cf6655c2694f | refs/heads/master | 2020-04-10T15:46:20.733579 | 2018-12-07T07:03:11 | 2018-12-07T07:03:11 | 161,122,235 | 1 | 0 | Apache-2.0 | 2018-12-10T05:32:47 | 2018-12-10T05:32:47 | null | UTF-8 | Python | false | false | 1,147 | py | #!/usr/bin/env python
class NmapBackendPlugin(object):
"""
Abstract class showing to the minimal implementation for a plugin
All subclass MUST at least implement the following methods
"""
def __init__(self):
self.dbname = 'nmapdb'
self.store = 'reports'
def insert(self... | [
"664284092@QQ.COM"
] | 664284092@QQ.COM |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.