blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f187845d86a0daf4cd9e7251b45628a9ac90250f | 0a19f97e8f382306686f5a08f3f898d4ed02e4d5 | /code.py | 211738bc6777881613f4683118d4c833bd659879 | [] | no_license | 5555-harshu/direct_line | 8a8c2612a850bb7bcb66740cab926551f77a12bf | d77e133551965011cf552552b366e4460acf47e4 | refs/heads/master | 2022-12-05T17:43:00.705928 | 2020-08-11T11:40:29 | 2020-08-11T11:40:29 | 286,725,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,862 | py | # direct_line test code Assumption
# I assume screen temprature is the temprature on that date. However data is not looking correct as there are many things.
# I did not calculate temprature using the attributes given in the input file, if that was required.
# There must be some formula to calculte the temprature for ... | [
"noreply@github.com"
] | noreply@github.com |
bb4b9285535ad7d5f312f536b86fbe646c634094 | 5814ba283e1a652475d206ff2cfd9fff94ddcc36 | /{{cookiecutter.app_name}}/tests/test_models.py | a304a6de1207e6e44c7533410111bc239f973ec5 | [] | no_license | smeggingsmegger/flask-cookiecutter | 76bc4d42f0e521b9109161c1ef0fde28462b4fc3 | cee546c3272aa55f25a0e4b5608d59b475f85ead | refs/heads/master | 2021-01-20T19:50:22.822652 | 2016-08-23T12:56:23 | 2016-08-23T12:56:23 | 62,155,252 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | #! ../env/bin/python
# -*- coding: utf-8 -*-
import pytest
from {{cookiecutter.app_name}}.models import db, User
create_user = False
@pytest.mark.usefixtures("testapp")
class TestModels:
def test_user_save(self, testapp):
""" Test Saving the user model to the database """
admin = User(username... | [
"sblevins@gmail.com"
] | sblevins@gmail.com |
1136cdfff801610b81725a9af6321f3f4d7b58b4 | 6697195831c8904d8712959c4ace4eb6617a8c0e | /env/bin/pyreverse | 8a36f8f02a2eee578593774e4ad06b51af86a94a | [] | no_license | vishaldhakal/edugate | 9652d56c56dc059922dfb71b6a8694f8f0c41e16 | 943de19084ca5d9734708ade1743f2fb33998d4d | refs/heads/main | 2023-03-15T06:14:10.299756 | 2021-03-09T07:35:41 | 2021-03-09T07:35:41 | 345,921,001 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | #!/Users/vishaldhakal/Desktop/educate/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_pyreverse
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(run_pyreverse())
| [
"vishaldhakal@Vishals-Air.domain.name"
] | vishaldhakal@Vishals-Air.domain.name | |
16ace28f744c8daf204afc559ff8eee3329a0453 | 43f52da1a41a46ca7255769559029cd53c275036 | /manage.py | f5153e2a3b25216d574784fbe09eef23e04d3b93 | [] | no_license | thanuj11/Web-Application-for-Online-Car-reservation-System | 992e15b7e02c79e45f0e959d12673eef29f1c7c6 | bb70557e3487395ea8faaa476f121833326260f7 | refs/heads/master | 2021-04-04T00:07:46.698946 | 2019-02-12T22:50:55 | 2019-02-12T22:50:55 | 124,616,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "online_reservation.settings")
try:
from django.core.management import execute_from_command_line
except ImportError:
# The above import may fail for some other reason. Ensur... | [
"dthanuj28@gmail.com"
] | dthanuj28@gmail.com |
89e7931d5c59894357853c14f7e7a0e855c0f723 | b7f336685d0ca204db9b8edebc20863351a74ad4 | /views.py | df86f79d7fad36423ebd04a723be6ee5928cd97a | [] | no_license | novicasarenac/snowboy-streaming | 77de0ecff0902e5c317b98c704cd6901d3062459 | c31ab4d2948fdb4160a29edb122024f7f31b8838 | refs/heads/master | 2020-04-01T15:50:55.029603 | 2018-10-16T21:31:52 | 2018-10-16T21:31:52 | 153,354,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,100 | py | from app import app
from app import socketio
from flask import render_template, session
from ws_snowboy_decoder import WSHotwordDetector
from resampler import resample
from flask_socketio import emit
@app.route('/')
def index():
return render_template('index.html')
@socketio.on('connect')
def connect():
pri... | [
"nolesarenac@yahoo.com"
] | nolesarenac@yahoo.com |
3c3bb96ed71efa8609883259af8dd7294751d67a | fa0fe3b1b2fcd4e65db8e222ea37df866f44e088 | /diff.py | 7f410ac0f3b2258264c9a369ff43a225ee71f5a8 | [
"Apache-2.0"
] | permissive | stanfordnlp/wge | 031a5b9d70b43dc7dc51a23483afe23685cb6a6e | bed526657a62a64a163f80deb4a8627cb63871a3 | refs/heads/master | 2023-06-15T06:23:05.801754 | 2023-06-05T21:38:35 | 2023-06-05T21:38:35 | 122,270,144 | 97 | 38 | null | 2018-03-25T06:56:34 | 2018-02-20T23:32:48 | HTML | UTF-8 | Python | false | false | 2,868 | py | import argparse
import json
import os
from collections import OrderedDict
from os.path import join, splitext
from gtd.io import IntegerDirectories
from variational import data
parser = argparse.ArgumentParser()
parser.add_argument('run1', type=int)
parser.add_argument('run2', type=int)
args = parser.parse_args()
c... | [
"evanliu@stanford.edu"
] | evanliu@stanford.edu |
3364a121d0d65b2d564c1caf77f12215681d78c9 | f5d94d12733c480848ee002a5b4df8d5b5f33a80 | /manage.py | 87dcbd8076a3cc64484a4465af55d5b5cc97e79e | [] | no_license | nagkumar91/dj_1_8_test | a19b574b0c1cfe1ad279a38bd5d5d7357d75b114 | 724fc87dbef6519b781b1dcb464ad288b64b6f4d | refs/heads/master | 2021-01-25T10:07:19.643798 | 2015-05-04T08:17:25 | 2015-05-04T08:17:25 | 35,017,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dj_1_8_test.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"me@nagkumar.com"
] | me@nagkumar.com |
ad26f2dd3de6339480f4232b37b7660935fb3993 | a69175b22a4b27eac49617e3621c2d4b44d09af6 | /tts.py | a8fba66e9f3fe93b7fb6753705aec94a0e8becc6 | [] | no_license | prajwalccc13/Voice-Assistant | 7badd8997f6dd32a196384271161d705657bcc48 | 2eb7ecf3f04ce796ef2b181d8e2c701f104883d9 | refs/heads/main | 2023-08-19T08:00:44.469920 | 2021-09-30T18:22:44 | 2021-09-30T18:22:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | import pyttsx3
engine = pyttsx3.init(driverName='flite')
engine.setProperty('rate',140)
"""VOICE"""
voices = engine.getProperty('voices') #getting details of current voice
# engine.setProperty('voice', voices[0].id) #changing index, changes voices. o for male
engine.setProperty('voice', voices[2].id) #chang... | [
"prajwalccc13@outlook.com"
] | prajwalccc13@outlook.com |
0b863056205532158e8b81c5c836aa686db31747 | 1ca3067846c8472159b07d085d33866d07dc66a1 | /graphsage/minibatch.py | 180648d115a5a67a24375d106ce96e2d0c80d069 | [
"MIT"
] | permissive | WangNuoWa/GraphSAGE | 00800b1b9719c84fb3f792a5eabd0a22f46327bf | 0d9c4a739261c9fd86736af95406d6004de4833d | refs/heads/master | 2021-06-27T00:22:58.032898 | 2017-09-16T21:34:13 | 2017-09-16T21:34:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,607 | py | from __future__ import division
from __future__ import print_function
import numpy as np
np.random.seed(123)
class EdgeMinibatchIterator(object):
""" This minibatch iterator iterates over batches of sampled edges or
random pairs of co-occuring edges.
G -- networkx graph
id2idx -- dict mapping n... | [
"wleif@stanford.edu"
] | wleif@stanford.edu |
370cbbbaa94a1cb540bfb5ddd385885f7480ba1a | 7c5baa5916f5ee9f104205d8d4e23bca5d55ca36 | /zoldesktop/spiders/09_ZOL壁纸_分辨率选择版.py | 19ad8b4f3316690da3d86005afcb269460dd3320 | [] | no_license | Modestzero/ZOL-wallpapaer | d837a120120ffcdbee1401f63b363befaf1b4b45 | 14b5ab7dcd44679ff5c6ed97d0baf01f6e706147 | refs/heads/master | 2023-02-07T08:06:32.748454 | 2020-12-31T07:50:01 | 2020-12-31T07:50:01 | 279,782,108 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,933 | py | import os
import re
from queue import Queue
from random import randint
from threading import Thread
from time import sleep
import requests
from lxml import etree
def select_ratio(url, choice):
response = requests.get(url, headers=headers)
e = etree.HTML(response.text)
ratios_list = { }
ratios_list['1'... | [
"1030693123@qq..com"
] | 1030693123@qq..com |
a001e486ee880546709fe00e62b39eaad931a21c | 0ae32dd39740b83fada1b6537e0a5f073d379d08 | /src/models/__init__.py | b296f9a4cb292418b47db1eaa9b2f601deadcdf6 | [] | no_license | RetormLi/my-XML | 2e8374b66f05e04a5bd6438048b2e0af7d1cacab | 0c02992103ba8dc5897f0bc3cc9513bfa25faaae | refs/heads/main | 2023-06-25T11:40:58.183494 | 2021-07-14T03:47:50 | 2021-07-14T03:47:50 | 385,805,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from .cnn import CnnClassifier
from .xml_cnn import XMLCNN
from .pure_cnn import PureCnn
| [
"1197334522@qq.com"
] | 1197334522@qq.com |
7fc48ac64107c97a8357f111ccd641bcaaf880af | aca01c2d073cc9ca2b71e12b8ed87a13a3d61438 | /design-patterns/src/iterators-ksiazka-adresowa.py | bed9ad1fa41d7eb0c99cdd60435c1395e01f065b | [
"MIT"
] | permissive | sli1989/book-python | ee2ee0f37b3173b6921db722a4cb2593d6df1f2b | 51ea279bcc26c4b9b8a1d726e2683c019a28d62b | refs/heads/master | 2020-04-15T11:39:07.209256 | 2019-01-06T23:27:55 | 2019-01-06T23:27:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 792 | py | class Kontakt:
def __init__(self, imie, nazwisko, adresy=[]):
self.imie = imie
self.nazwisko = nazwisko
self.adresy = adresy
class Adres:
def __init__(self, **kwargs):
for key, value in kwargs.items():
setattr(self, key, value)
kontakt = Kontakt(imie='Pan', nazwis... | [
"matt@astrotech.io"
] | matt@astrotech.io |
5dd2d3b95992ed9936e51f728d58af8d4893d6b4 | d325e106ca0408ce0ca2c547975aa7632cc34e32 | /message_count/client.py | 97eba8f57d6c092edaf70bf7b3ac8adfa02e43ca | [] | no_license | woong97/gRPC-Examples | d44ee96c9e3d3a5405969da44ff6714d6aac058f | 6cf5097a7d3ee88afeb2027e89e720bc567f5786 | refs/heads/master | 2023-07-31T07:49:21.842955 | 2021-09-19T16:09:37 | 2021-09-19T16:09:37 | 406,507,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | import os
import pingpong_pb2
import pingpong_pb2_grpc
import time
import grpc
print(__name__)
def run():
counter = 0
pid = os.getpid()
with grpc.insecure_channel("localhost:50051") as channel:
stub = pingpong_pb2_grpc.PingPongServiceStub(channel)
while True:
try:
... | [
"yjwoong97@gmail.com"
] | yjwoong97@gmail.com |
8b51d49d005e035931c97199225c9bfefcd9c452 | 4f2766354d1b97fc2edca2ece1d8c029faad80f6 | /engine/make-predictions.py | 919e8400ebd1db88b48bb42eaf20077a863a6517 | [] | no_license | codeunifier/cryptoflow | ebc79aba36f545abd850454e66c0a0d366750366 | 809dbb46e3a3b427a6eacf0e31aaa154920cf6e2 | refs/heads/master | 2023-05-24T22:17:03.497874 | 2019-11-19T15:18:20 | 2019-11-19T15:18:20 | 167,708,682 | 0 | 0 | null | 2023-05-22T21:47:25 | 2019-01-26T16:09:15 | TypeScript | UTF-8 | Python | false | false | 1,671 | py | import pandas as pd
import numpy as np
import time
import datetime
import keras
import tensorflow as tf
from math import sqrt
from sklearn.preprocessing import MinMaxScaler
from sklearn.metrics import mean_squared_error
from sklearn.metrics import mean_absolute_error
import requests
from model import CryptoModel
from ... | [
"eva15023@byui.edu"
] | eva15023@byui.edu |
b4f1d9f7d55cf307767c89a911376d87978e9513 | 477c2342a296ef4388da8347dc4f897bb3455906 | /python-for-coding-test/모험가 길드.py | 963ca0e9e3f53e4f617c21cccfe23cc9ccd1ecf8 | [] | no_license | llhbum/Problem-Solving_Python | eb56e7bac44c1fd15cbfc9766839a81d5743b797 | 97c03ffb4a2f6301c7f7443c11741ac94c9173c6 | refs/heads/master | 2023-02-11T08:03:02.831518 | 2021-01-07T11:47:04 | 2021-01-07T11:47:04 | 294,284,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | '''
INPUT
5
2 3 1 2 2
'''
n = int(input())
nList = list(map(int,input().split()))
nList.sort()
result = 0
cnt = 0
for i in nList:
cnt += 1
if cnt >= i:
result += 1
cnt = 0
print(result)
| [
"llhbum@gmail.com"
] | llhbum@gmail.com |
dccc2f93dfb78fed07cde8da78882492c7d21daf | 2dfbd44565c8e070061a6e790523a0734eff6ff9 | /hello_app/views.py | 202b16d6270fb12ea74f23115d710983ebc89eff | [] | no_license | sohailADev/hello_django | 96d1203d5f23568086fb196abd52c6e313fa2c82 | d8b8b97ca0f0519e7068bc4128b381354439605a | refs/heads/master | 2022-11-28T21:49:37.873232 | 2020-08-05T01:23:45 | 2020-08-05T01:23:45 | 285,052,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.shortcuts import render
# Create your views here.
def index_view(request):
return render(request,"index.html",{"index_view_varialbe":"Hello world!!!"}) | [
"sohailaslam0707@gmail.com"
] | sohailaslam0707@gmail.com |
128c41e485c8c714605cebb8f0550d44679ebf8b | e037112b3f85eac65f0d998428b513d46d5b3b49 | /scripts/coursebuilder/__init__.py | c47f7675e416d6f2c130fb13a81380bff711d255 | [] | no_license | bmschmidt/static_course_CMS | dc893bf791f423f5d0a296f597837345b755fdb2 | e2f6ac24e0dbdb1f95a299c71c54f5b0068ac410 | refs/heads/master | 2020-12-22T14:28:57.887140 | 2020-12-21T18:35:58 | 2020-12-21T18:35:58 | 236,823,690 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | from .settings import course_settings
| [
"bmschmidt@gmail.com"
] | bmschmidt@gmail.com |
dcdf4facd5b67bd0722e43992355d294ac565bd8 | 2203e8e65267ec913b17fcf1107380ea1ed73bcc | /accounts/urls.py | af7fc05254ac179c0c56739ec2b0f4929050a2d4 | [] | no_license | BurumeMulindwa/django-boards-acounts | 340af6c30f61f420e7fb6b9a5aa54440aef63f2b | 342a5795f58abf5a0cad01363cf45583c1133f8e | refs/heads/master | 2022-12-09T12:44:45.757927 | 2020-03-31T11:41:56 | 2020-03-31T11:41:56 | 251,586,395 | 0 | 0 | null | 2022-12-08T03:56:24 | 2020-03-31T11:44:13 | Python | UTF-8 | Python | false | false | 462 | py | from django.urls import path
from django.contrib import admin
from django.contrib.auth import views as auth_views
from accounts import views as accounts_views
from boards import views
urlpatterns = [
# path('', views.home, name='home'),
path('signup/', accounts_views.signup, name='signup'),
path('logout/', a... | [
"burumemulindwa@gmail.com"
] | burumemulindwa@gmail.com |
895f4fd77041a989df7f6adafe8cbb780d71624f | f24a2574875042ad2f39bfea027098f1bee21050 | /DjangoLearning/common.py | 7cb2396c76abe356eafd798047fc0d648d6c0403 | [] | no_license | shashi634/QuizChamp | 9f0190b57add9781389aa9efef82b97ead0b9173 | 8bb9ed390e4cc0646c4b777e65a01b4825755a46 | refs/heads/master | 2020-08-28T10:27:09.570442 | 2019-11-10T10:21:01 | 2019-11-10T10:21:01 | 217,673,135 | 0 | 0 | null | 2019-11-02T17:19:34 | 2019-10-26T07:36:14 | JavaScript | UTF-8 | Python | false | false | 1,193 | py | import hashlib, binascii, os
import re
from django.utils.deprecation import MiddlewareMixin
from django.http import HttpResponseRedirect
from django.shortcuts import render
def hashPassword(password):
"""Hash a password for storing."""
salt = hashlib.sha256(os.urandom(60)).hexdigest().encode('ascii')
pwdhas... | [
"shankar634@hotmail.com"
] | shankar634@hotmail.com |
a1c5ec54e64f05ebf48791444f838fff8f9cc066 | 0e91533b80819ff6d20d84e7887797d39709ce9e | /vip/migrations/0001_initial.py | 6ccec0b1ff32d91056bd466102862e6e96ec392c | [
"Apache-2.0",
"MIT"
] | permissive | jhihwei/eshop | f4e3f9ea0f0ad40a97e21f379db858c66595bd9d | e9861e9a2ee084201ecd36bed628cf50e9dbeb7e | refs/heads/master | 2023-07-07T10:04:23.496720 | 2021-08-06T06:25:13 | 2021-08-06T06:25:13 | 393,273,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | # Generated by Django 3.1.3 on 2021-01-04 03:19
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='user',
fields=[
('id', models.AutoField(aut... | [
"krel.jhan@gmail.com"
] | krel.jhan@gmail.com |
c0c3fd786947bf2e0f51e84538ce584a249110a4 | d444e1b1190ef62cd03e267e7f3031dc94c43340 | /venv/Scripts/easy_install-script.py | 0276406ac18099e9601d9482f3de79b4b05e98c2 | [] | no_license | cnfrank/webSpider | fccbd99918898ca0e976709acfdd7bd395fe592c | a96a72db1a9dbd76eae2fc4076ce29d8bdb4709d | refs/heads/master | 2020-04-13T22:55:02.443281 | 2018-12-29T08:22:14 | 2018-12-29T08:22:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | #!C:\Users\95700\PycharmProjects\webSpider\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|... | [
"9570075@qq.com"
] | 9570075@qq.com |
9bf41e3da01de44b1c0c745ee89bd86373b4c4db | 2f2cc5bc44f0ff08c1f9888c3dd97ea2d3f3fe0a | /EXAMPLES/for_ex.py | b036718cf51e26c987b2303382ce052554a32419 | [] | no_license | solracq/Python-Training | ba33583292863393fab8156d18d48bc511c9f331 | 4c8a29da23b9e483f8e5c30f7ef4a7311a427381 | refs/heads/master | 2021-01-21T00:45:04.954824 | 2020-05-04T00:21:35 | 2020-05-04T00:21:35 | 14,281,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 323 | py | #!/usr/bin/env python3
mylist = [ "Idle","Cleese","Chapman","Gilliam","Palin","Jones"]
mytup = ("Roger","Old Woman","Prince Herbert","Brother Maynard")
mystr = "She turned me into a newt"
for p in mylist:
print(p)
print()
for r in mytup:
print(r)
print()
for ch in mystr:
print(ch, end=' ')
print(... | [
"Solrac@192.168.0.18"
] | Solrac@192.168.0.18 |
eb7c72bc1dfe900c646c7d26ddc66400e27f3755 | 60f9b5dce4d11f1e89da620915918dacba738b45 | /billiard/reduction.py | 11ea7c4913c98a398df8837bd3ac3dfc3807ca5e | [
"BSD-3-Clause"
] | permissive | dexter-xiong/billiard | 5e7497a29d14b11b19cab5008110e69d3c9bae19 | 0fedae7cb7c7408a4287e3d161b4f2b63541c279 | refs/heads/master | 2020-12-31T01:36:59.953134 | 2014-12-18T20:58:25 | 2014-12-18T20:58:25 | 33,759,423 | 0 | 0 | null | 2015-04-11T02:25:20 | 2015-04-11T02:25:20 | null | UTF-8 | Python | false | false | 8,976 | py | #
# Module which deals with pickling of objects.
#
# multiprocessing/reduction.py
#
# Copyright (c) 2006-2008, R Oudkerk
# Licensed to PSF under a Contributor Agreement.
#
from __future__ import absolute_import
import functools
import io
import os
import pickle
import socket
import sys
__all__ = ['send_handle', 'recv... | [
"ask@celeryproject.org"
] | ask@celeryproject.org |
c7a62de7ce601948322d2f4cfd19486a18070ec1 | d12f83d6c4b958904ea47176c1f861b97e783e78 | /list.py | c88b6eb3d12f17dc83314a98b873188fd37df833 | [] | no_license | jifeng35/pycharm | 2cc7b2ab1e68ca15e0738b5b6aa9ba694e5fd01e | 2123c1dd3ee0be3dc498d8a793b2ce71a165b197 | refs/heads/master | 2023-07-08T06:26:24.230051 | 2021-08-07T02:50:30 | 2021-08-07T02:50:30 | 367,003,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | my_list = [1, 'a', 2.3875, "小李"]
print(my_list)
print(my_list[3], "输出末尾元素的两种方式", my_list[-1])
# -1是最后一个 0是第一个元素
print(type(my_list[0]))
print(type(my_list[1]))
print(type(my_list[2]))
print(type(my_list[3]))
# 列表中存储的元素为定义时的数据类型
for i in my_list:
print(i, end=",")
print("列表的长度为:", len(my_list))
j = 0
while j < len(m... | [
"84109179+jifeng35@users.noreply.github.com"
] | 84109179+jifeng35@users.noreply.github.com |
6c4f384947a59d6f8f492cfba3970f59e2044c54 | 6349ef281cf18c3ebc5864ebba07155829292952 | /test/多进程.py | a755a89e5fa84a1736a5ab4d8704958b7d82cdcf | [] | no_license | Ibunao/pythontest | e402aeb9b16f2835a8c0f340ecb94f8f185af780 | bffe8f03bc2b5cc5fb9563a91d2e7f6e3ffcaf5d | refs/heads/master | 2020-03-24T17:16:47.652647 | 2019-05-25T07:41:54 | 2019-05-25T07:41:54 | 142,854,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | from concurrent.futures import ProcessPoolExecutor
import requests
# 线程执行的任务
def task(url):
response = requests.get(url)
return response
# 线程执行完回调函数
def done(future, *arge, **kwargs):
# 获取到线程返回的数据
response = future.result()
print(response.status_code, response.content)
# 创建线程池
pool = ProcessPoolE... | [
"idingran@163.com"
] | idingran@163.com |
3daba78686755bb45f71e5eac73448cbf43e45fb | a52fc147ebdb54f86e605eb69d9efd3b73d7775f | /rango/urls.py | 4fee132e486768199160654a15c5a19c700a6763 | [] | no_license | KienWelch/tango_with_django_project | 4f7ccdd4d2dfa62da4249d26002c6786d3fc27ce | 74133e6c0c34597e57d5e7eadff420090865909c | refs/heads/master | 2020-12-13T20:49:06.531115 | 2020-02-10T20:38:30 | 2020-02-10T20:38:30 | 234,528,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,323 | py | """tango_with_django_project 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='... | [
"59999504+KienWelch@users.noreply.github.com"
] | 59999504+KienWelch@users.noreply.github.com |
9bfe5a80ac97775d19c7714fa8ba2f44ee3460a4 | 2f90f032240d13b67bdc879c221e42e89d9a3605 | /hbruraldoctor/hbvirtual/bin/decrypto | eabb31961fb6635cdc9ca62655e0cdac7cddd853 | [
"Apache-2.0"
] | permissive | hallohubo/DjangoDocterAPI | 83ad091dae82fd06bf07368eac1485ad675d9f9e | 2d86d17c718affa968c0b2d4f9590aa08d43716e | refs/heads/master | 2020-06-02T08:47:13.519399 | 2019-06-21T10:07:40 | 2019-06-21T10:07:40 | 191,104,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | #!/Users/kobo/Desktop/hbruraldoctor/hbvirtual/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from crypto.decryptoapp import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"hallohubo@gmail.com"
] | hallohubo@gmail.com | |
f9e2781a80ab9850d43d46c6af52acced8635898 | 41831710427637e567cb72053f6d6c1845af0da2 | /apptest/views.py | ad664314e427819c3035d1b9c2a49e410ce23a3d | [] | no_license | lihengqi/testmanage | 1eef8516ff3ac4f9bd19f01ac3056b4ef94ee60a | 2afc31c472cccae01748ba97216c6eed424e4d5d | refs/heads/master | 2021-03-24T00:19:04.829412 | 2020-04-19T10:14:25 | 2020-04-19T10:14:25 | 247,496,899 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect, HttpResponse
from django.contrib.auth.decorators import login_required
from django.contrib import auth
from django.contrib.auth import authenticate, login
from apptest.models import Appcase, Appcasestep
# Create your views here.
# app用例... | [
"lvq897652402@163.com"
] | lvq897652402@163.com |
d8074cdceef3099fac3b9fe5188dce7732392b2d | c8efab9c9f5cc7d6a16d319f839e14b6e5d40c34 | /source/Clarification/Backtracking/生成括号.py | 79c4cbc77e31405a0b2e94b1f993c9dc312741f0 | [
"MIT"
] | permissive | zhangwang0537/LeetCode-Notebook | 73e4a4f2c90738dea4a8b77883b6f2c59e02e9c1 | 1dbd18114ed688ddeaa3ee83181d373dcc1429e5 | refs/heads/master | 2022-11-13T21:08:20.343562 | 2020-04-09T03:11:51 | 2020-04-09T03:11:51 | 277,572,643 | 0 | 0 | MIT | 2020-07-06T14:59:57 | 2020-07-06T14:59:56 | null | UTF-8 | Python | false | false | 685 | py | # 给出 n 代表生成括号的对数,请你写出一个函数,使其能够生成所有可能的并且有效的括号组合。
#
# 例如,给出 n = 3,生成结果为:
#
# [
# "((()))",
# "(()())",
# "(())()",
# "()(())",
# "()()()"
# ]
class Solution:
def generateParenthesis(self, n: int) -> List[str]:
ans = []
def backtrack(s='',left=0,right=0):
if len(s... | [
"mzm@mail.dlut.edu.cn"
] | mzm@mail.dlut.edu.cn |
4d793f5d9c9393cbd4f436ee59a7d37d6704b26c | bd736cfd2e618ad1bfa66a1ad245d644ff98c8e5 | /routes/index.py | c14825d1701cc25a3a6cc281e8ecbdee61f08ff6 | [] | no_license | fairylin/bbs | c2c1d96f6cae74042ce19e5c959d5abc16e8f90f | 2d3d84939171f38b77676df31df4626958bebd4c | refs/heads/master | 2020-05-06T14:10:58.192178 | 2020-03-29T15:42:15 | 2020-03-29T15:42:15 | 180,176,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,495 | py | from flask import (
render_template,
request,
redirect,
session,
url_for,
Blueprint,
make_response,
send_from_directory,
)
from werkzeug.utils import secure_filename
from models.user import User
from config import user_file_director
import os
from utils import log
main = Blueprint('in... | [
"15574412169@163.com"
] | 15574412169@163.com |
6c43608b41249f6e16862da77c32ec53324a78c4 | 06952f5ef7eba6fafa629856617699b1b43cac20 | /图像特效/02灰度处理2.py | dae86c1231dc8b151319856ceecf2f114b5b30c8 | [] | no_license | gaoxiang97/openCV-1 | 208e5a38a3f8218beaf41851f64116c8275f0bb4 | 1f068ad0f4fcf8f93d455a5390c607047c44eb03 | refs/heads/master | 2022-01-16T02:54:49.144806 | 2019-07-05T06:35:19 | 2019-07-05T06:35:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | import cv2
import numpy as np
img = cv2.imread('image0.jpg', 1)
imgInfo = img.shape
height = imgInfo[0]
width = imgInfo[1]
#RGB R=G=B = GRAY
dst = np.zeros((height, width, 3), np.uint8)
for i in range(0, height):
for j in range(0, width):
(b, g, r) = img[i, j]
gray = (int(b)+int(g)+int(r))/3
... | [
"885228764@qq.com"
] | 885228764@qq.com |
309933581c5906d2db8e8db38c4eb5949f694987 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03157/s868052818.py | ec6805ad1b92df0a841e5a07b2af49a175993650 | [] | 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 | 1,370 | py | from collections import defaultdict
H, W = map(int, input().split())
S = [input() for _ in range(H)]
es = defaultdict(list)
# あるマスについて左右見なくても右に向かってみていけば逆もとれる
for i in range(H):
for j in range(W):
if j < W-1 and S[i][j] != S[i][j+1]:
es[(i,j)].append((i,j+1))
es[(i,j+1)].append(... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c29a49bb27bab979d299a65922ab8b19a11e297b | ed7a8554b99cd71cab7b6e46d11c65d4a644b358 | /Exercise7.py | 6ccfef98bb6377704effa159e513b0d44afc40a5 | [] | no_license | gorsheninii/zed_a._shaw | 5aa5c6f3af99b31167220229be2db57b324e6342 | 615c78dae2b04018c3872fed8d7696d9b4bace8c | refs/heads/master | 2023-03-26T16:13:47.966767 | 2021-03-29T18:05:45 | 2021-03-29T18:05:45 | 343,179,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | print("Mary has a small sheep.")
print("His furr was white, like a {}.".format('show'))
print("And anywhere, where Mary went,")
print("Small sheep follow her.")
print("."*10) #What?
end1 = "B"
end2 = "a"
end3 = "d"
end4 = "d"
end5 = "y"
end6 = "G"
end7 = "a"
end8 = "y"
print(end1+end2+end3+end4+end5, end=' ')
print(e... | [
"zingo@mail.ru"
] | zingo@mail.ru |
fa078ebd935861277a4069ea88a2a99c8620354a | 17b10615c1dc6c824ba77cdc3661222bf95adca6 | /work/pharma/settings.py | 53be93302bf37c2cc0dd8af58a85e252cbf2d1a2 | [] | no_license | ayush-sah/AYUNIK | c692b5c3068245af77ad8e6233fbbc7e87c56d86 | 70e5c427ac0d5a4039477d47499c2922e76395c5 | refs/heads/main | 2023-06-20T08:58:40.240372 | 2021-07-12T14:57:51 | 2021-07-12T14:57:51 | 383,075,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,279 | py | """
Django settings for pharma project.
Generated by 'django-admin startproject' using Django 3.0.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# ... | [
"ayush.sah@spit.ac.in"
] | ayush.sah@spit.ac.in |
79db950c2f9450ff729d2ac03f6271965dd807cf | d5049c3b59b943a158389deaefe9c48970a43c6c | /Lab4/UI.py | e33e0458a9bc51d6e7bef9164a7954f72ed438a3 | [] | no_license | LauraDiosan-CS/lab04-gatsp-DiosDuck | 18e013df30b1a8d0e182190c693cad7da47e68d1 | 647ae011fa5edf7ea4a4187b684f351b0482c328 | refs/heads/master | 2022-04-22T20:47:47.311060 | 2020-03-27T17:59:05 | 2020-03-27T17:59:05 | 250,198,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | from Service import Service
class UI():
def __init__(self):
self.__service=None
def main(self):
while 1:
try:
x = input()
if x == "0":
return
elif x == "1":
file=input()
... | [
"noreply@github.com"
] | noreply@github.com |
5d41718f3f1ed181db8cd1a776a5f2453bafd1e7 | 3a31529e99a5971bdbb761732a5b078a405e13e2 | /performance/migrations/0006_auto_20201019_2300.py | 8e3c2c934c6c1317002d698ebc80eff74de4eef3 | [] | no_license | gabriel-bandeira/backend-desafio-cnj | f6486487b90182f20f69885316e8411fefd35552 | a58a95ad8d47845a3309b350db8c9f496c60b002 | refs/heads/master | 2023-01-20T07:51:21.896143 | 2020-11-27T01:01:35 | 2020-11-27T01:01:35 | 304,983,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,388 | py | # Generated by Django 3.1.2 on 2020-10-20 02:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('performance', '0005_auto_20201019_1407'),
]
operations = [
migrations.RemoveField(
model_name='vara',
name='time_mac... | [
"lfv.vercosa@gmail.com"
] | lfv.vercosa@gmail.com |
beada61a7378cf493b0f7dc69afdb144dabca034 | 98684d541d98672261d05e52c9d96fe6733079f5 | /my_bbox_tool.py | f4074e16937b8fc25d6f94f0c49d79b8fc68ad3f | [] | no_license | LucasWangZH/My_FasterRcnn | 2d9a308bbbe2f3a0b8ac8ba09690ef893978df7e | 6cb5c492491d0731da548fb43bfe5b2fe4dcfb23 | refs/heads/master | 2020-08-27T21:50:40.379512 | 2020-01-20T03:29:33 | 2020-01-20T03:29:33 | 217,497,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,973 | py | import numpy as np
def bbox_iou(src_bbox,dst_bbox):
"""
calc iou between bboxes
:param src_bbox: (N,4) y1x1,y2x2
:param dst_bbox: (K,4)
:return: (N,K)
"""
#iou = np.zeros(src_bbox.shape[0],dst_bbox.shape[0]).astype(np.float32)
# a_lt = src_bbox[:,:2]
# a_br = src_bbox[:,2:]
# b_... | [
"wangzh@deepblueai.com"
] | wangzh@deepblueai.com |
1be2d69acbec46ee753fc6db8b742d5347894dec | f793d068a05d5abeef66135425a22ac0ee6cb7df | /registru/wsgi.py | b3766ff0f5c5bc26652f73848e71db624dcc2a41 | [] | no_license | sinc144/registru | b18f13066fa364527120c5125f5221e68981e569 | 55079f6eca13afdeb332cb0b889fb2c6ac60b35f | refs/heads/master | 2021-04-06T03:11:46.378666 | 2018-03-15T11:33:50 | 2018-03-15T11:33:50 | 125,353,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | """
WSGI config for registru project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"alecsa.alecs@gmail.com"
] | alecsa.alecs@gmail.com |
0a5f75f3493784e2864fbe6e0385c11db563cf4a | 80c43a62d7652dffa46306ecbb5e8f367403a26c | /Tech_Python/Python_kisokouza/Python基礎講座②/list_neural-network2.py | c0b9e7f84bc500f0441b6984f2a6bb511332c5f2 | [] | no_license | TakanoriYagi/Proseed_dmm_online | 4ddc0ed7202d31e70a2531c6ff1b8b36b4ec6ba9 | 40d7b6f1ddd8bb3a3390707667c9cdf97b2f3e5e | refs/heads/master | 2020-06-24T12:36:50.340477 | 2019-08-06T05:04:56 | 2019-08-06T05:04:56 | 198,964,369 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 563 | py | x1 = 1.0
x2 = 2.0
x3 = -3.0
w1u1 = 3.0
w1u2 = 1.0
w1u3 = -3.0
w2u1 = 2.5
w2u2 = 2.0
w2u3 = -1.0
w3u1 = 4.5
w3u2 = -1.5
w3u3 = 5.0
w3 = -4.0
w4 = 1.5
w5 = 4.2
# それぞれの要素をリストで表示
X = [x1, x2, x3]
W_X = [[w1u1, w1u2, w1u3], [w2u1, w2u2, w2u3], [w3u1, w3u2, w3u3]]
W_U = [w3, w4, w5]
# u1, u2 , u3 を求める
u1 = X[0]*W_X[0][0] +... | [
"takanori.jo@me.com"
] | takanori.jo@me.com |
663d615c02204499d6889f865bb4370a6ca20332 | cfd01f570ad4e54a159cb92df904b11266667500 | /Tarea1G06/Tarea1G06/settings.py | 3e46083e80dc472f3f67dee471fa4d5aae33d474 | [] | no_license | IN3501/tarea1-grupo06 | 85c278933dd3cc07327642f6f4af9ef6412b46d0 | e81ebf9d3fa123ed7988dc3b404ac1a1fd2e74fe | refs/heads/master | 2021-06-25T08:13:53.991713 | 2019-08-26T04:22:43 | 2019-08-26T04:22:43 | 204,368,162 | 0 | 0 | null | 2021-03-19T00:58:56 | 2019-08-26T00:49:42 | Python | UTF-8 | Python | false | false | 3,097 | py | """
Django settings for Tarea1G06 project.
Generated by 'django-admin startproject' using Django 2.2.4.
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
... | [
"cmontero@MacBook-Pro-de-cmontero.local"
] | cmontero@MacBook-Pro-de-cmontero.local |
27181cecd9421063c903d8f3ac12f702a58afdb0 | 74d094511ee9cb5cd113782ae818b77ccd0decd9 | /venv/Scripts/pip3.6-script.py | e20b3025b5c32d479c3f3a94bdb82cc47f96e295 | [] | no_license | woqls22/-Cryptocurrency_prices | 9ce36cf01dfcf49dea664542e339f09a3ccfef07 | 3086c9f22dc8b5920e7b592eacdd1caa22131353 | refs/heads/master | 2021-04-11T16:32:31.220295 | 2020-03-21T18:37:51 | 2020-03-21T18:37:51 | 249,037,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | #!C:\Users\woqls\AppData\Local\Programs\Python\Python36\crawling\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3.6'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|... | [
"woqls226@gmail.com"
] | woqls226@gmail.com |
9ad681dd43b6c7c3ad239efb29a60c322241f16f | 44091f741b544bc02527588f495ba3d4bb2d2f39 | /rasterise_all_at_once_from_postgis.py | f89bc14ae2fe74eb1ab255cb3e59dfc799fe9300 | [] | no_license | doctorluz/py-utils | 26abc84abd05dc4e81f77b508f4236f66b5470cd | 7ed5122e38d9b25673b3dc7ddf2a900a31bda744 | refs/heads/master | 2020-04-03T09:53:46.569586 | 2017-02-09T09:57:48 | 2017-02-09T09:57:48 | 62,695,342 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,590 | py | import sys, json, os
import psycopg2
from db_processing_connect import db_connection_string
from subprocess import Popen
from rasterise_all_at_once_settings import *
try:
# create connection to database
conn = psycopg2.connect(db_connection_string)
# create a cursor object called cur
cur = conn.cursor(... | [
"doctorluz@gmail.com"
] | doctorluz@gmail.com |
2f961ffd53ac5c591c95cfb96f730b5bb45915e4 | 133e8c9df1d1725d7d34ea4317ae3a15e26e6c66 | /python/数据结构与算法/02链表/单链表.py | 9acd2da0cfb6f8e8a747ab11e1d4d6a83f289443 | [
"Apache-2.0"
] | permissive | 425776024/Learn | dfa8b53233f019b77b7537cc340fce2a81ff4c3b | 3990e75b469225ba7b430539ef9a16abe89eb863 | refs/heads/master | 2022-12-01T06:46:49.674609 | 2020-06-01T08:17:08 | 2020-06-01T08:17:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,886 | py | # -*- coding: utf-8 -*-
class Node(object):
def __init__(self, value=None, next=None):
# 这里我们 root 节点默认都是 None,所以都给了默认值
self.value = value # 值
self.next = next # 链接域, 指针
def __str__(self):
"""方便你打出来调试,复杂的代码可能需要断点调试"""
return '<Node: value: {}, next={}>'.form... | [
"1248644045@qq.com"
] | 1248644045@qq.com |
48fa0b67d4214fe81cc12d36c2c97996bdba97a3 | 621a38539934504d82d81098ade33013a147cfc7 | /src/core/__init__.py | 8d6c6749a3005d8c4ca3766271ad17955a7f70b8 | [
"MIT"
] | permissive | chkp-eyalit/Karta | 2bf943f9a9721e8c8c5695a00002ba40bfdffec1 | 90602d73a9109f8f81ccb9978de6a5fc4ba4b8a3 | refs/heads/master | 2021-06-07T16:01:37.665386 | 2021-05-18T07:26:41 | 2021-05-18T07:26:41 | 177,569,979 | 0 | 0 | MIT | 2020-05-27T11:31:04 | 2019-03-25T11:06:04 | Python | UTF-8 | Python | false | false | 99 | py | from .file_layer import *
from .function_context import *
from .matching_engine import *
| [
"eyalit@checkpoint.com"
] | eyalit@checkpoint.com |
eda7d59af2ae751d7b25d53cd82272fde7a20c7d | eb19175c18053e5d414b4f6442bdfd0f9f97e24d | /tests/contrib_django/test_converter.py | 8c04699773df54369df8be04d36665643a5f9a55 | [
"MIT"
] | permissive | jhgg/graphene | 6c4c5a64b7b0f39c8f6b32d17f62e1c31ca03825 | 67904e8329de3d69fec8c82ba8c3b4fe598afa8e | refs/heads/master | 2020-12-25T21:23:22.556227 | 2015-10-15T19:56:40 | 2015-10-15T19:56:40 | 43,073,008 | 1 | 0 | null | 2015-09-24T14:47:19 | 2015-09-24T14:47:19 | null | UTF-8 | Python | false | false | 3,521 | py | from py.test import raises
from collections import namedtuple
from pytest import raises
import graphene
from graphene import relay
from graphene.contrib.django.converter import (
convert_django_field
)
from graphene.contrib.django.fields import (
ConnectionOrListField,
DjangoModelField
)
from django.db impo... | [
"me@syrusakbary.com"
] | me@syrusakbary.com |
325a673abe7fc34434f96cd346a1cfe3a1605b70 | 27c75f5179703e46de81c6306765f8347953ef07 | /Unit4/sps.py | d14c54a6bf8cce5df597794714098b437ec8a6ec | [] | no_license | eachofwhich/Udacity_CS212 | 735426d161233a5cb387747ff426e19b42ddaded | e194ea2b18136125c925e21dcce36a2f416f1b62 | refs/heads/master | 2016-09-01T17:14:49.220091 | 2012-09-23T19:42:06 | 2012-09-23T19:42:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,755 | py | # -----------------
# User Instructions
#
# Write a function, shortest_path_search, that generalizes the search algorithm
# that we have been using. This function should have three inputs, a start state,
# a successors function, and an is_goal function.
#
# You can use the solution to mc_problem as a template for cons... | [
"eliburmin@gmail.com"
] | eliburmin@gmail.com |
c8d1e0aea95375d24f5cd8721a8724c5a9da2785 | 9290fbfd26accae2b46f8693d633ceb418f356c4 | /spring-2017/src/others/hw2-ref.py | c8800b9261b3519bf76a9e20a52148dc9dd87c09 | [] | no_license | ngvinay/python-projects | 97e88e303ab2afaf6c5202e333f98fab4ad7a30c | 5ec71e9d2617bade302c0b8d3f7e6aa1645a49d0 | refs/heads/master | 2021-07-17T03:22:20.261290 | 2017-10-23T07:22:12 | 2017-10-23T07:22:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,686 | py | from __future__ import print_function
import sys
import numpy as np
if __name__ == "__main__":
if len(sys.argv) != 2:
print("Usage: home_work_1 <input file name>", file=sys.stderr)
exit(-1)
inputFileName = sys.argv[1]
from pyspark import SparkContext, SparkConf
conf = SparkConf().s... | [
"dipankar.biswas@teamaol.com"
] | dipankar.biswas@teamaol.com |
7d650c2929ce6966ec2dcfb1a114dd7f07f03ec1 | 586c448195b07549ea518b506534eac140f7194c | /recount/__init__.py | 81849e5a73593d7c2cc3a4ad22b48369491f4ff5 | [] | no_license | jgrison/recount | 01bcfccd184dd356d1185971dea8dd240e48e2bb | 8b7f0858dd8943141a4a84bbe26b2bdd1eebdbf7 | refs/heads/master | 2021-01-01T17:56:55.896372 | 2014-10-04T14:22:17 | 2014-10-04T14:22:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | from flask import Flask, request, g, redirect, render_template, url_for, flash, request
app = Flask(__name__)
# Homepage
@app.route('/')
def home():
return render_template('index.html')
# Lists all the reports we've made
@app.route('/reports')
def reports():
return render_template('reports/index.html')
# Generate ... | [
"jgrison@vicimus.com"
] | jgrison@vicimus.com |
3ecfeaa8f31a83953a4fb15ebd5095dea283bb3b | 50353ceacf14742bcb33f747ed6b5eddff4de8fd | /DAY4/arraysorting1.py | 7130b87501d0414da73ac1c1a10e05d950beb9ce | [] | no_license | manoznp/LearnPython-Challenge | 0384605bf086f31a46f94c3029e30db9047fd99e | 6c7f603a7c94f9c2724c72f7bf1a241fb7332804 | refs/heads/master | 2020-04-08T23:10:03.703926 | 2018-12-02T10:34:56 | 2018-12-02T10:34:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | #Descending order
def sort_Ascending(data):
for i in range(0, len(data)-1):
for j in range(i+1, len(data)):
if data[i] < data[j]:
temp = data[i]
data[i] = data[j]
data[j] = temp
print(data)
#array
a = [1,3,5,7,2,4]
#functioncall
sort_Ascendi... | [
"mynameismanozacharya@gmail.com"
] | mynameismanozacharya@gmail.com |
ee26cb6d30f2a114158c6fc07b2ba1139a0992f3 | e41e3ec38419b6efe5468632d2c5f60440eafb07 | /system/views.py | 9124d0862f04a4aa4fc9d67ca2e3887d344cf476 | [] | no_license | aytekinaygun/NagiConfig | c6a8744c339d686b26b840440bda6a8edfa59035 | 6d5a1ace7d345fdbb5e825ecc8c3212d90704eb7 | refs/heads/master | 2022-05-04T19:04:02.902402 | 2020-10-05T12:57:48 | 2020-10-05T12:57:48 | 163,303,011 | 1 | 0 | null | 2022-04-22T21:02:49 | 2018-12-27T14:23:34 | Python | UTF-8 | Python | false | false | 2,925 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from host_groups.models import Host_Groups
from hosts.models import Hosts
from services.models import Services, ServiceCommand
import os
@login_required()
def s... | [
"aytekinaygun@gmail.com"
] | aytekinaygun@gmail.com |
ec9970dcf780bcafd195a9680fad730328cbdf8e | 7d80e6d69454596dd6efc814bd808e6c115071c1 | /util/stemmedCountVectorizer.py | d1d8f1953aa9dd0840d06b375556628960125a80 | [] | no_license | nilankamanoj/solvesoft_scanme_core | e0485d584eaf2f4ec146d2e444f5238a322c3743 | ec946e538df16fd71324a5478660472beabc144b | refs/heads/master | 2022-12-09T20:40:26.616732 | 2019-12-08T14:53:24 | 2019-12-08T14:53:24 | 193,545,694 | 0 | 1 | null | 2022-12-08T06:35:38 | 2019-06-24T17:00:29 | HTML | UTF-8 | Python | false | false | 426 | py | from nltk.stem.snowball import SnowballStemmer
from sklearn.feature_extraction.text import CountVectorizer
stemmer = SnowballStemmer("english", ignore_stopwords=True)
class StemmedCountVectorizer(CountVectorizer):
def build_analyzer(self):
analyzer = super(StemmedCountVectorizer, self).build_analyzer()
... | [
"nilankaeng16@gmail.com"
] | nilankaeng16@gmail.com |
21b6deb849e7b391aabeb811cc79bf8b7ccee1eb | 21238a26742309adb860a04174ea5360f729ad39 | /SourceCode/.history/Detector_20181224025625.py | b39a3a2293f57ceff29bef9d0e2a2f2758353cac | [] | no_license | Shehabalaa/Viola-Jones-Face-Detection | 5b5d0c3835e0de11658d35941fa3d19468452e93 | b6522b96394df8d67266b41a803bc30a93fc5c49 | refs/heads/master | 2020-04-23T03:08:56.976486 | 2019-06-23T10:39:25 | 2019-06-23T10:39:25 | 170,869,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,957 | py | from IntegralImage import toIntegralImage as toII
import cv2
import numpy as np
import random
from sklearn.cluster import MeanShift
from Cascade import Cascade
import itertools
import Utils
from math import floor
from functools import partial
from multiprocessing import Pool
base_detector_width = 24.
def... | [
"shehabalaa97@gmail.com"
] | shehabalaa97@gmail.com |
8c27fefec88b9cb1c72f0f422651288309a83dab | de1c72ceb7c2a302ce809d7cb98044e187cd8178 | /src/LNEC/SAR_Tiling.py | 8ee4bf5bee0204f03bffac9c858285f963517547 | [] | no_license | ouc-cook/coresyf-toolkit | 8004d08af93172ecf251418c88530bc34b23fa87 | 98f189d6a8e24430ea42c21e8dbfbb5bd76dee8c | refs/heads/master | 2020-04-13T22:49:57.056157 | 2018-02-19T15:09:37 | 2018-02-19T15:09:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,925 | py | #!/usr/bin/python2.7
# -*- coding: utf-8 -*-
"""
=====================================================================================================
Co-ReSyF Research Application: Image Processing and Subsets definition
Authors: Florent Birrien and Alberto Azevedo and Francisco Sancho
Date: July/2017
Last... | [
"tiago.mendes@deimos.com.pt"
] | tiago.mendes@deimos.com.pt |
92b9a7b14e7c1602e3296d2d6da514b5bb2b768c | 24874a352571a52aad2fd6d6aedce6cfe78db364 | /loft_auth.py | fe6f71096b238a3f3e46dc79c23d3b70cbee4b21 | [] | no_license | RetailArchitects/xmpp_auth | a9cd33518c4e48c72dcd815c65e97056e17130fd | 117d23b876a408411675563701417fe21ce24201 | refs/heads/master | 2020-04-14T08:59:38.345495 | 2013-04-01T17:42:57 | 2013-04-01T17:42:57 | 9,152,149 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,642 | py | #!/usr/bin/python
import requests
from requests.auth import HTTPBasicAuth
import json
import sys, os, logging
from struct import *
url = 'https://simon.retailarchitects.com/tg/authenticate'
sys.stderr = open('/Applications/ejabberd-2.1.11/logs/extauth_err.log','a')
logging.basicConfig(level=logging.DEBUG,
format... | [
"robertneville73@gmail.com"
] | robertneville73@gmail.com |
da0aaee1bb5defffbefd3443a022f700842a5265 | 0235c80552b9a4a34f915c6272bdca8dad9fef6e | /tokenize_preprocess.py | c38e12e94abce83268fc08446c782ca79e044cd2 | [] | no_license | J-Seo/Pytorch_NLG | b52c11f97bccaaf84db97a7b3b7e874d5cbf0c08 | 0a9a7d1643534d813e52c8160cc1bb2ef1a759b8 | refs/heads/master | 2022-02-14T13:20:01.937820 | 2019-08-01T04:51:45 | 2019-08-01T04:51:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,501 | py | # -*- coding: utf-8 -*-
"""tokenize_preprocess.ipynb의 사본
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/10xGlIo5KWV5RtCNfeUn7KBTCNJDeL8bU
"""
!pip install https://github.com/rsennrich/subword-nmt/archive/master.zip
from __future__ import absolute_imp... | [
"41497567+seojae777@users.noreply.github.com"
] | 41497567+seojae777@users.noreply.github.com |
25e06c922c868656cf57c45a74152cf0e56c3986 | be54d95dc0363f5b3dcf57fd99facbf67660d280 | /ttsx_app/views_bak.py | 8153feec473caf0267567d455d3f4fff02114a16 | [] | no_license | csrlsm/cmdb_test | c9443dab28bd842594e6640c538fef8b7ec038a1 | 5cd4ee1f179a68ae849925992732d532b0c18f68 | refs/heads/master | 2021-05-01T09:57:04.522773 | 2018-03-12T06:47:19 | 2018-03-12T06:47:19 | 121,101,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render
from django.http import *
from django.template import loader, RequestContext
# Create your views here.
def index(request):
# tmp=loader.get_template('index.html')
# return HttpResponse(tmp.render())
return ... | [
"csrlsm@outlook.com"
] | csrlsm@outlook.com |
116cc3115d4ac2f1294d91646a2ab68c1d360cde | eff7a4a914e912eef2bc7a480795cfaae95eac91 | /python/Exercicios/8.16/8.16v2.py | 357d73983e83043c3f6a648ce289af847d27c6f8 | [] | no_license | HenDGS/Aprendendo-Python | fb3cf05d8911a7084c7805a69b8df06f9ce3d311 | 622a83983f3f77e5e74411e016663f05449be537 | refs/heads/master | 2023-08-17T14:17:53.304676 | 2021-09-14T02:51:52 | 2021-09-14T02:51:52 | 294,150,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import funcao
a=funcao.funcao("camaro","Chevrolet",ano=2015,porência=461)
print(a)
| [
"henrique1443@hotmail.com"
] | henrique1443@hotmail.com |
ec31ae45ffa95cb68df704049a22cd392664ce0f | d76d780efe1c7934907ca01917030d4d46924629 | /test (Edmunds-MacBook-Pro's conflicted copy 2013-05-27).py | 9fbaba0a87d07e77c89762fc351fdfb6eca0a5e9 | [] | no_license | emhart/SexRatioFecundityIBM | ba63a616bd5e1f4dd81f134b8fc2e6a180f4d4e7 | 2075996e9a79f237365695ff40e28da5cdeb7e0f | refs/heads/master | 2020-05-19T14:14:17.620469 | 2013-06-19T23:41:53 | 2013-06-19T23:41:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | '''
Created on Jul 19, 2012
@author: emh
A working file to test out my python classes, will be junked when the full simulation is run.
'''
### Imports
from ibmsimulation import Lattice as L
from ibmsimulation import Individual as Ind
from ibmsimulation import Group as G
import matplotlib.pyplot as plt
import numpy... | [
"edmundhart@Edmunds-iMac.local"
] | edmundhart@Edmunds-iMac.local |
c8a0dd7d7b60c120616e1b5a012166d1ebc10680 | 470b3d063ec639200de58acd24c6b50466315ece | /UpdatedSyntheticDataset/SyntheticDataset2/ElementsCreator/shape.py | e03c24a1df1a8dcc4b3c33ec11d5efb1f5a918a0 | [
"MIT"
] | permissive | FlintHill/SUAS-Competition | 56da6189e1e3391acd873806ccb2181a729fac05 | 8931c8859878692134f5113d4c6c3e17561f0196 | refs/heads/master | 2020-04-03T21:28:08.110599 | 2020-01-27T13:42:53 | 2020-01-27T13:42:53 | 34,731,946 | 5 | 12 | null | 2020-01-27T13:46:10 | 2015-04-28T13:25:37 | Python | UTF-8 | Python | false | false | 1,084 | py | from PIL import ImageDraw, Image
import abc
class Shape(object):
__metaclass__ = abc.ABCMeta
def __init__(self, color, rotation):
"""
:param color: color of shape - RGB
:type color: 3-tuple
:param rotation: degrees counterclockwise shape will be rotated
:type rotation: ... | [
"jmoxrox@gmail.com"
] | jmoxrox@gmail.com |
5c187cef52ac8e1006273cd22ea80940f0c1b7d1 | 485ba262357e10460c74482cd407003ac86886bb | /pyNastran/converters/openfoam/test_openfoam_gui.py | 0d93a5f9986ab459a658b741ae5694fddee65246 | [] | no_license | shangke00GitHub/pyNastran | 13202f3f504dca044755088971176a407622425b | c4509df6ef6c3291c005caada831b443feee734f | refs/heads/master | 2020-11-30T02:45:48.774507 | 2019-12-20T00:56:25 | 2019-12-20T00:56:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,090 | py | import os
import unittest
from cpylog import get_logger
import pyNastran
from pyNastran.gui.testing_methods import FakeGUIMethods
from pyNastran.converters.openfoam.block_mesh import read_block_mesh, mirror_block_mesh
from pyNastran.converters.openfoam.face_file import FaceFile
from pyNastran.converters.openfoam.openf... | [
"mesheb82@gmail.com"
] | mesheb82@gmail.com |
05926003b26f53d3dda5111840987f9ff1896673 | be58f5f0012d70db570de0e3a745ceefc91f91e0 | /Week7/Code/using_os.py | 906d5166ea0ff95ca2d5dad4387733a42f8c9428 | [] | no_license | amysolman/CMEECourseWork | caa2ad6ef11c819d2eb295cfe03f1571b7ad9cae | fb2a21bc7b625fed643eaad03bf51c458645abc4 | refs/heads/master | 2021-07-25T01:10:00.653892 | 2020-08-27T13:06:55 | 2020-08-27T13:06:55 | 212,303,861 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,163 | py | #!/usr/bin/env python3
# Date: 15th November 2019
"""Subprocess practical for Python II"""
__appname__ = 'using_os.py'
__author__ = 'Amy Solman (amy.solman19@imperial.ac.uk'
__version__ = '0.0.1'
# Use the subprocess.os module to get a list of files and directories
# in your ubuntu home directory
# Hint: look in ... | [
"amysolman@Amys-MacBook-Pro.local"
] | amysolman@Amys-MacBook-Pro.local |
9e384c9a4c29da0c141ce394c3198d2303cc27f9 | 6414227ccd7022800f9486f7890b28e506d92f44 | /robots/small/strategies/2019/test/pokupio/t2.py | 7c777b3fc7b9f6b56271fbb8bb6b17d0944cf1f9 | [
"MIT"
] | permissive | memristor/mep2 | 74df408e59c9183146d99f9d48ec288f87741cec | bc5cddacba3d740f791f3454b8cb51bda83ce202 | refs/heads/master | 2023-02-04T04:03:00.054195 | 2020-04-03T16:29:29 | 2020-04-03T16:29:29 | 153,911,004 | 5 | 1 | MIT | 2020-02-26T21:58:51 | 2018-10-20T13:56:59 | C++ | UTF-8 | Python | false | false | 59 | py |
weight=2
def run():
if not State.pokupio:
return False
| [
"sciliquant@gmail.com"
] | sciliquant@gmail.com |
8878ce204a1cf83898ff83b7f035d0f6a483c822 | e5f2a3e824ad181a5121e18304adcde70ec2e16e | /ads_chm/bin/pip3.5 | 8c560f102abd53370d064c50ab2fee69b6b49775 | [] | no_license | MichalRozenwald/num_methods_ads_prediction | 5d45f4551dd497e88d3ebbc5b9b4ac1a3088f522 | 168031696e37844ed8f5324c5cf27eb0c2d7ca0f | refs/heads/master | 2021-01-12T08:29:27.731475 | 2016-12-15T20:57:20 | 2016-12-15T20:57:20 | 76,594,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | 5 | #!/home/michal/Projects/ads_chm/ads_chm/bin/python3.5
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"michal.rozenwald@gmail.com"
] | michal.rozenwald@gmail.com |
719ec5e11dce6e24bd6b5f91b3469b407c0160a1 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02257/s888628284.py | 59550bf214754874e7673f5cf26d7edf5cc0ca07 | [] | 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 | 321 | py | # -*- coding: utf-8 -*-
def isPrime(p):
if p == 2:
return True
elif p < 2 or p%2 == 0:
return False
elif pow(2, p-1, p) == 1:
return True
else:
return False
n = int(raw_input())
count = 0
for i in range(n):
if isPrime(int(raw_input())):
count += 1
print coun... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
561a473b6aa704f7d0651d89278fc1942b376384 | b3528a3795ce373e27d52362128de3cff6f9969d | /python/orbs/target/password-generator/slices1589360571.263371/success/success_39_0.py | f1896f56cc09413b60c95ec2ce3c24bce6dab1fd | [] | no_license | greenmonn/daily-coding | 43e0f3775678c7d6116df7ba5034ea18489d87c9 | ef6ecc88e6db61e18364eef3ea071c11e1385a99 | refs/heads/master | 2023-01-14T04:59:14.130309 | 2021-02-08T23:32:56 | 2021-02-08T23:32:56 | 157,735,438 | 1 | 1 | null | 2022-12-21T02:13:17 | 2018-11-15T15:47:37 | Python | UTF-8 | Python | false | false | 5,253 | py | #!/usr/bin/env python3
# m4ngl3m3! v0.1.1
# Common password pattern generator using strings list
# Follow (Medium / Twitter): @localh0t
import argparse
import sys
import os
from Mangler import ManglingParameters
from Mangler import Mangler
def build_parser():
"""Add parser arguments and return an instance of A... | [
"greenmon@kaist.ac.kr"
] | greenmon@kaist.ac.kr |
acf2f03be9c0416122ef08ae04a4e24687d2aaf8 | 8bc6fa3520c11820f030a08fb620b0da9753bbfe | /lib/dataset/shelf_synthetic.py | 23a7bfa57c931e7effe0632777f28931862bc3fc | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | zhangyux15/voxelpose-pytorch | 010a66d8678dca5c679b742faf2a8c421bccf74b | 9ef5d407a597c9647b2c8f6c0a246b725a87a054 | refs/heads/main | 2023-06-02T18:18:50.210534 | 2021-06-18T07:13:06 | 2021-06-18T07:13:06 | 408,174,695 | 1 | 0 | MIT | 2021-09-19T16:12:56 | 2021-09-19T16:12:56 | null | UTF-8 | Python | false | false | 16,179 | py | # ------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
# ------------------------------------------------------------------------------
from __future__ import absolute_import
from __future__ import d... | [
"meijieru@gmail.com"
] | meijieru@gmail.com |
ed222c561a8364dd729c7da79f866fc6f3032907 | 8419f7d24df69a2cb92f04d7369c11c8141b0fcd | /tests/selection_test.py | 50d2e7a9e5f36e1495360ba5839de57cc89d17e9 | [
"MIT"
] | permissive | heyuqi1970/vaex | c1768eac9d5126e7efd1e139522feb9d65a7ecc9 | 867c180427a23e3b71df47305d7e8866b6673a98 | refs/heads/master | 2021-07-09T08:45:21.634354 | 2020-04-23T17:23:58 | 2020-04-23T17:23:58 | 242,555,084 | 2 | 0 | MIT | 2020-04-24T03:40:17 | 2020-02-23T16:54:13 | Python | UTF-8 | Python | false | false | 6,325 | py | from common import *
def test_selection_basics(df):
total = df["x"].sum()
df.select("x > 5")
df.select("x <= 5", name="inverse")
counts = df.count("x", selection=["default", "inverse", "x > 5", "default | inverse"])
np.testing.assert_array_almost_equal(counts, [4, 6, 4, 10])
df.select("x <... | [
"maartenbreddels@gmail.com"
] | maartenbreddels@gmail.com |
ed2f46727aa6af253e2f0bda84ca29d56ea9a2af | 41fd80f9ccc72a17c2db16b7019312a87d3181e8 | /zhang_local/pdep/network4339_1.py | 52702a2b7fa8af0d6b888aed032edd7cb7a99807 | [] | no_license | aberdeendinius/n-heptane | 1510e6704d87283043357aec36317fdb4a2a0c34 | 1806622607f74495477ef3fd772908d94cff04d9 | refs/heads/master | 2020-05-26T02:06:49.084015 | 2019-07-01T15:12:44 | 2019-07-01T15:12:44 | 188,069,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,984 | py | species(
label = '[CH]C(=[CH])C([CH2])C(18883)',
structure = SMILES('[CH]C(=[CH])C([CH2])C'),
E0 = (739.718,'kJ/mol'),
modes = [
HarmonicOscillator(frequencies=([3000,3100,440,815,1455,1000,2750,2800,2850,1350,1500,750,1050,1375,1000,1380,1390,370,380,2900,435,3120,650,792.5,1650,350,440,435,172... | [
"dinius.ab@husky.neu.edu"
] | dinius.ab@husky.neu.edu |
483748271f5991198d5319c7f7955667c13bdc56 | e15b849ef7e2c9c2c8837a4e00da8eeee2117c60 | /iaproofread03-gen.py | 0782df93d917df7c112f5462633b45ad26f9897d | [
"CC0-1.0",
"LicenseRef-scancode-public-domain"
] | permissive | vitorio/iaproofread | baaf0153d60eef009c14b29ed12d5f1128635e6b | f4a5188ad83bd07f778f57cdd7e37828477a0aa1 | refs/heads/master | 2021-01-10T01:33:10.717361 | 2016-02-07T04:44:34 | 2013-11-17T04:05:44 | 51,231,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py | # -*- coding: utf-8 -*-
__author__ = 'vitorio'
from xml.dom import minidom
import os.path
import pickle
import cgi
import PythonMagick
import jinja2
env = jinja2.Environment(loader=jinja2.FileSystemLoader('.'))
template = env.get_template('iaproofread03.jinja2')
#IA_NAME = 'windinwillows00grah'
#IA_NAME = 'artpracti... | [
"email_about_iaproofread@vitor.io"
] | email_about_iaproofread@vitor.io |
01015222f4e22a467b3819943f4ec0d7342478b0 | bb8542963352bb45706e28dab0d42281010dc259 | /delphi/train.py | 421a6033129cca849132aa08032692c303f2dc92 | [] | no_license | kjlfsjakljsdfnsvjkdsa/Efficient-Truncated-Regression-with-Unknown-Noise-Variance---NeurIPs---2021 | 682a7d23c31a02c7f3470406f9dbec91ee3425ec | df227fbd68b8accc5c34cd07129df42f952b90df | refs/heads/master | 2023-05-13T20:14:40.790333 | 2021-06-04T19:32:40 | 2021-06-04T19:32:40 | 373,937,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,976 | py | import time
import os
import warnings
import dill
import numpy as np
import torch as ch
from torch import Tensor
from torch.optim import SGD, Adam
from torch.optim import lr_scheduler
from . import oracle
from .utils.helpers import has_attr, ckpt_at_epoch, AverageMeter, accuracy, type_of_script, LinearUnknownVariance,... | [
"stefanou@mit.edu"
] | stefanou@mit.edu |
e382659fe44a65b3a060e2c0d9cb78015fd0bea2 | 28436c3e8d5f59f9011bfac7fcdef977c345aa7b | /2021-05-15/homework1.py | 960425e000fa70c2621ff185c6e2e587beb46b6b | [] | no_license | engeeker/python-for-kid-2021 | 533d7b54ef23d99727642ba7a119e0a46577651b | 783d3582c6e9009c23213378650160f7dc937409 | refs/heads/main | 2023-08-02T15:18:17.367567 | 2021-10-01T13:15:56 | 2021-10-01T13:15:56 | 347,414,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | import turtle
import random
p = turtle.Pen()
color_list = ['red', 'yellow', 'blue', 'green']
p.speed(0)
turtle.bgcolor('black')
p.color(random.choice(color_list))
for i in range(200):
p.forward(i * 2)
p.left(91)
turtle.Screen().exitonclick() | [
"xiaoquwl@gmail.com"
] | xiaoquwl@gmail.com |
b011cc4260236016a704cc1c7e6ee337974e4570 | 3eadb0ea0d359422db25e780bf387983bcb8b4d4 | /MnA/lib/python3.6/codecs.py | 8cf1662cc230abbe90516e6d96f6e780438703ad | [] | no_license | Zhaarn/CRUDBuilding | 37492af97a4ffb55a6c804a5562cdd54d131218c | b96bf11412aa9f353b26dab45ac56402405e78c0 | refs/heads/master | 2021-05-02T11:13:45.889862 | 2018-02-08T18:39:40 | 2018-02-08T18:39:40 | 120,771,704 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47 | py | /Users/am_dev/anaconda3/lib/python3.6/codecs.py | [
"amdirtylabdeveloper@gmail.com"
] | amdirtylabdeveloper@gmail.com |
6bc3b1ab7146b7abc8c84a1644387c0b84af4983 | 25c3cca9f8d34ede4b1a3307bef4ad2b9482e2dc | /decuen/actors/_actor.py | 4fed5361eb818be3562bb21c321a5c7731a7f6d6 | [
"MIT"
] | permissive | ziyadedher/decuen | efd36897f9b62b2d4baa61dcdedaa0661cc0decf | bc3bd42857308d7b189f576a3404abb3f9152531 | refs/heads/develop | 2020-08-29T20:27:07.408852 | 2019-11-26T18:52:26 | 2019-11-26T18:52:26 | 218,165,890 | 1 | 0 | MIT | 2019-11-26T18:52:27 | 2019-10-28T23:43:12 | Python | UTF-8 | Python | false | false | 4,858 | py | """Interface for arbitrary actor-learners and respective settings."""
from abc import ABC, abstractmethod
from dataclasses import dataclass
from functools import reduce
from typing import Generic, MutableSequence, Optional, Type, TypeVar
from gym.spaces import Box, Discrete # type: ignore
from torch import diag_embe... | [
"ziyad.edher@gmail.com"
] | ziyad.edher@gmail.com |
94e24cb8e8e35ea44e6696d809e1def8130431b8 | d51a6dc99e36cc964598485a4971e7315725b78d | /D_010.py | ebb37bf463b2295abe0038c6798070340057f853 | [] | no_license | Carmona-Elias/Python_CEV | d8baf296ce66a659c209b203aacecf8c129772c5 | da2eb6c43ee836788a818497e14b207455461f26 | refs/heads/main | 2022-12-31T13:35:44.240344 | 2020-10-16T20:43:10 | 2020-10-16T20:43:10 | 302,625,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | print('e-Cambio')
valor = float(input('Digite o valor em MZN MT: '))
print(f'Com {valor} MZN MT voce pode comprar {valor/71.63 :.2f} USD $')
print('Obrigado \n Volte Sempre!') | [
"noreply@github.com"
] | noreply@github.com |
e4e413389afb212298e6544059d2479cd049516e | 385befa1b4edd424c5669e3957bbefcc799a906c | /pystreaming/audio/patterns.py | 071f412f72d2885786ad0e55fcf4481698033a87 | [
"MIT"
] | permissive | joseph-x-li/pystreaming | 121c55f5471b7c154323e2f63dcf4585f2b95584 | 31cd0129fdedfe4b11d73ead90bf4792f343ff42 | refs/heads/main | 2023-05-13T05:00:17.533007 | 2021-05-31T07:22:02 | 2021-05-31T07:22:02 | 316,455,995 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,802 | py | import zmq
import time
from ..stream import interface as intf
from . import STR_HWM, RCV_HWM
class AudioStreamer:
def __init__(self, endpoint):
"""Audio streamer.
Binds to a zmq PUB socket.
Args:
endpoint (str): Descriptor of stream publishing endpoint.
"""
se... | [
"13826851+joseph-x-li@users.noreply.github.com"
] | 13826851+joseph-x-li@users.noreply.github.com |
c66e67c04ff41d5801bd819a5d94c68a3aa17409 | 0cb8c5789450e1cae6f990176faec1db0e387a24 | /pylsdj/test_clock.py | fb0012f814e202ff03bce2d59ecbe0a4a03a975b | [
"MIT"
] | permissive | undermink/pylsdj | 419111db35d996cf7285502aab5c30d3f2618f29 | d051d30a7e7889cc290b9a1c2cf46cb15c4b1902 | refs/heads/master | 2021-01-16T23:11:47.854245 | 2015-01-12T07:17:05 | 2015-01-12T07:17:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | import os
from nose.tools import assert_equal
from project import load_lsdsng
SCRIPT_DIR = os.path.abspath(os.path.dirname(__file__))
def test_read_clocks():
proj = load_lsdsng(
os.path.join(SCRIPT_DIR, 'test_data', 'UNTOLDST.lsdsng'))
project_clock = proj.song.clock
total_clock = proj.song.glo... | [
"alexras@trifacta.com"
] | alexras@trifacta.com |
4d56f1d27269f09b0a3b2c28a39c14e04b9956c0 | 693e90bf7b3fcd245e254c3fb4c03f041821e5f6 | /domain/Base.py | 3210a01c99425523521a01941bd745e9326688ed | [] | no_license | lilin409546297/python_planeWar | 8c7a948380a861eab47638a808eba7430bd78ec2 | 5c16221057a528a9432e545cf7f4ab85ab8d8e82 | refs/heads/master | 2020-05-20T18:47:15.275477 | 2019-05-09T02:42:12 | 2019-05-09T02:42:12 | 185,713,246 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | # !/usr/bin/python
# -*- coding: UTF-8 -*-
import pygame
class Base:
def __init__(self, screen, x, y, image_path):
self.screen = screen
self.x = x
self.y = y
self.image = pygame.image.load(image_path)
| [
"lilin409546297@*"
] | lilin409546297@* |
1df490347f6ba150e4c18eda8adb09b65cfd0cbd | 7ca50753ed3ff4c6115f8be3de675c91631c382f | /manage.py | 8c8509f5ee95dfc01cb27aa14ab0dd2c753db751 | [] | no_license | harrywang/flask-tdd-docker | a63ca86062dc05ab99591ef4ce609d90868f6e77 | 2677c52ae8dba84695d032fd309ee864f7fb2521 | refs/heads/master | 2023-05-11T15:44:04.689565 | 2020-03-21T20:00:57 | 2020-03-21T20:00:57 | 248,801,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # manage.py
import sys
from flask.cli import FlaskGroup
from project import create_app, db
from project.api.users.models import User
app = create_app()
cli = FlaskGroup(create_app=create_app)
@cli.command('recreate_db')
def recreate_db():
db.drop_all()
db.create_all()
db.session.commit()
@cli.comma... | [
"harryjwang@gmail.com"
] | harryjwang@gmail.com |
9805962edbe9190b73c9b86898de6cbf7dce6ec3 | 504cf192d885776af1bf83ff05385d49847f2dc2 | /P12_tweet_analysis.py | 4e722ad3a9367cbf4636b9e9408ad60d8bbde8cb | [] | no_license | LeonMac/Principles-of-Data-Science_forPython3 | 334c0ea82738c3204e550815f2615918d5aef033 | 0b09db9f03e5b4d57c2efeb9f48da0d08eccdb97 | refs/heads/master | 2020-06-04T13:12:49.779035 | 2019-06-16T10:13:56 | 2019-06-16T10:13:56 | 192,036,034 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 299 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
tweet_msg="RT @robdv: $TWTR now top holding for Andor, unseating $AAPL"
words_in_tweet= tweet_msg.split(' ') # split tweet messge to word
for word in words_in_tweet: #for loop
if "$" in word:
print ("This Tweet is about", word)
| [
"liang.ma.sh@gmail.com"
] | liang.ma.sh@gmail.com |
77ece19a047655049ffb2f82d4ce5d60516e3101 | 300e852000024dcf6ec222af75490361c37b6a3d | /tests/test_model.py | 2fbd9cc7ad4d3569e19eb8125c0409e2618fe029 | [] | no_license | BitLab16/Machine-learning | 6c54c22b9a859baf97d2a7ba9d918b1e0ea0476b | f5498b5c23061194436ac0d912bfd5f7346f6489 | refs/heads/master | 2023-04-22T17:16:19.816393 | 2021-05-18T15:04:57 | 2021-05-18T15:04:57 | 343,573,845 | 2 | 0 | null | 2021-05-17T08:29:03 | 2021-03-01T22:23:07 | Python | UTF-8 | Python | false | false | 572 | py | import pytest
import pandas as pd
import json
from unittest import TestCase
from flaskr.model.Prediction import Prediction
from flaskr.ml.DecisionTree import DecisionTree
'''
def test_to_json(data_for_testing):
data = data_for_testing.loc[(data_for_testing['detection_time'] == '2018-01-10 14:05') & (data_for_testi... | [
"daimatty@gmail.com"
] | daimatty@gmail.com |
2f1870f3c2fec1ee22df014c5d9a0cf91f80080d | 70233044d1431fa4253dd330e862d98810307e02 | /github/github.py | 895e889b4d7310b2719962d4f2a31e62be6d6bd6 | [
"LicenseRef-scancode-public-domain",
"CC0-1.0"
] | permissive | assem-ch/github-issues-migrator | cfa48a9f0d5c47b0b87005fae41bec6f43e9cfed | 6ee852ab849dd61ee28a0219e904bae34220f874 | refs/heads/master | 2021-01-15T20:04:44.737627 | 2016-06-01T13:15:17 | 2016-06-01T13:15:17 | 60,211,311 | 9 | 0 | null | 2016-06-01T21:15:21 | 2016-06-01T21:15:21 | null | UTF-8 | Python | false | false | 4,012 | py | #!/usr/bin/env python
##
# 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, softwa... | [
"kghiboub@gmail.com"
] | kghiboub@gmail.com |
28acd031f8288cd187bda7e9ae137641eb37c596 | 6dbb207a407b4255ce9fd3916d2b625409de378c | /milestone_1_pkg/src/scripts/keyboardInput | b4196f9a5cf38c0bf7fd7dbbb207fa59f2bf58ca | [] | no_license | JqkerN/Project_Course_Robotic_and_Controll | 3c95e7aa6a50f6abd916e6c3d053316fd408e821 | be0cfc5941cefb50ecdea579a6f6de1444ea1758 | refs/heads/main | 2023-01-03T03:12:31.878519 | 2020-11-02T14:11:26 | 2020-11-02T14:11:26 | 309,388,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | #!/usr/bin/env python
import sys
import math
import readchar
import rospy
import tf2_ros
import tf2_geometry_msgs
from crazyflie_driver.msg import Hover
from aruco_msgs.msg import MarkerArray
HOVER_LVL = 0.2
SHUTDOWN = False
POSE = Hover()
def publish_hover():
global POSE
pub_cmd.publish(POSE)
def keyAct... | [
"noreply@github.com"
] | noreply@github.com | |
fcf1ed07e836d7eace792161bc3e350b982fa814 | 08c18b86c49072a5cb5bde1791a128a15947b73a | /mysite/uphotos/serializers.py | 0204e5af8be79a63c0d7930fa51670200b1befec | [] | no_license | xiaol/xuemei | e20e721ecf833d9e163b27d9d4bcbe5ae12eba21 | 8c75524530ca233badf807debaea0e04575f951f | refs/heads/master | 2021-01-10T01:19:26.320158 | 2013-06-04T08:23:36 | 2013-06-04T08:23:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | from rest_framework import serializers, pagination
from uphotos.models import Photo
class PhotoSerializer(serializers.ModelSerializer):
class Meta:
model = Photo
fields = ('image_url',)
class PaginatedPhotoSerializer(pagination.PaginationSerializer):
class Meta:
object_serializer_cla... | [
"ubuntu@ishoow.cn"
] | ubuntu@ishoow.cn |
8cf3ba6f22bfcdd3f535f3444e4ffa50b1aa8779 | 5d4eaf047143dbba60bcc6b72f744a4d92684709 | /homepage/views.py | eddd48736e83f6308e14febcbb530d4dbb90394d | [] | no_license | Rungwarapon/django-miniproject | fa5177212dc95fbb8296325389d6bf0fae7f4be7 | c8d922d5e4fab1533756579112bc7315db528c5e | refs/heads/master | 2022-06-23T07:46:49.862025 | 2020-03-10T12:40:21 | 2020-03-10T12:44:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from urllib import request
from homepage.models import Faculty, Restaurant
from django.shortcuts import render
# Create your views here.
def home(request):
search = request.GET.get('inputSearch', '')
faculty = Faculty.objects.all()
classes = Restaurant.objects.filter(
name__icontains=search
)... | [
"rungwarapon.khu14@gmail.com"
] | rungwarapon.khu14@gmail.com |
f0946355fe96135fd0f0750b6b88dfd013d5006f | 245bcf63bce2933948adead5734f86e11cc190dd | /marketcheck_api_sdk/api/crm_api.py | ebdc39bd9bea2de007954012b2a4ac08d813572a | [] | no_license | MarketcheckCarsInc/marketcheck_api_sdk_python | 385c645c74805be3d8717304188e2b215786be56 | aca339cc61a0860f31f2070c736af32f07d8fd5a | refs/heads/master | 2020-03-23T23:53:32.292175 | 2018-08-25T03:06:52 | 2018-08-25T03:06:52 | 142,261,814 | 2 | 1 | null | 2018-08-25T03:06:53 | 2018-07-25T07:11:04 | Python | UTF-8 | Python | false | false | 6,081 | py | # coding: utf-8
"""
Marketcheck Cars API
<b>Access the New, Used and Certified cars inventories for all Car Dealers in US.</b> <br/>The data is sourced from online listings by over 44,000 Car dealers in US. At any time, there are about 6.2M searchable listings (about 1.9M unique VINs) for Used & Certified car... | [
"mahesh.hakeem@zerebral.co.in"
] | mahesh.hakeem@zerebral.co.in |
402af64e3ea87e296c5acc8805fb6f6745eeb37b | 55962e7722844cc7877d6d6417479a58111ba7c3 | /app/app.py | ded5085155f02512f5887529646da9412e8490ae | [] | no_license | masterplanx/demo-mockapp | e62d4f56a1aaf82fdedd50803690ce28f589f266 | bb864750bae402d169b2183a99fa21f504a48be9 | refs/heads/master | 2020-04-11T04:05:17.222134 | 2019-03-25T18:54:58 | 2019-03-25T18:54:58 | 161,501,073 | 0 | 0 | null | 2019-01-18T15:30:52 | 2018-12-12T14:37:52 | Python | UTF-8 | Python | false | false | 1,849 | py | """
high level support for doing this and that.
"""
import os
from flask import Flask, render_template, request
from flask_sqlalchemy import SQLAlchemy
from redis import Redis
from flask_migrate import Migrate
DATABASE_URI = 'postgresql+psycopg2://{dbuser}:{dbpass}@{dbhost}/{dbname}'.format(
dbuser=os.environ['P... | [
"ferreyrasergio@gmail.com"
] | ferreyrasergio@gmail.com |
a4ab1183b45a01e1584dcbc648e4f24ba302105a | 5ab03914f3685cab48816fe7bbfdd3a11ec4ca0a | /OOP/call.py | ac3e04364fa741e92b6e817704a922ce8180ab5f | [] | no_license | jan-2018-py1/Python_Anton | 09449a74336e19b158faf0feb9f5778de5461f8d | 1fec1bcb3f6b70436ae91afe45deda24308251e6 | refs/heads/master | 2021-05-09T11:08:41.831053 | 2018-03-03T03:40:29 | 2018-03-03T03:40:29 | 118,982,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,855 | py | class Call(object):
def __init__(self, c_id, caller_name, caller_phone_number, time_of_call, reason):
self.c_id = c_id
self.caller_name = caller_name
self.caller_phone_number = caller_phone_number
self.time_of_call = time_of_call
self.reason = reason
def display(self):
... | [
"slntn@yahoo.com"
] | slntn@yahoo.com |
44afabd1a5975428ea59c4232a94a03a50f2c8e7 | dc02e4333d1a0558534c3c0136dc2213ca5531e7 | /test.py | 875c278653b8b557c52e2f64a1695249fde76c23 | [] | no_license | yjsx/yjsx_leetcode | 3676907d29a71506314f0d9db701f76781ac1f54 | a130e59cbbcfb777e40393c0204d25085254600e | refs/heads/master | 2020-05-24T00:44:39.120684 | 2019-08-14T09:42:41 | 2019-08-14T09:42:41 | 187,021,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | def test(a):
a = a.copy()
a.pop(1)
return a
a = {1:1,2:2}
b = test(a)
print(a)
print(b) | [
"dyf0202@mail.ustc.edu.cn"
] | dyf0202@mail.ustc.edu.cn |
352fc2592e428da6a89e6a9b67cbe4e96f892a87 | 3ca6b34676a0adeaba85a2953a8c9abf5d6ef3e4 | /cap 2/ex2.3 mensagem_pessoal.py | d266787bc99096ebbba2c49184dbe991fa9c8afc | [] | no_license | giusepper11/Curso-intensivo-Python | 34fb8e94c7c9afb09f54d8fc67136b337d0ef106 | 613cd502af3ff877dac0d62d9eb09b290d227838 | refs/heads/master | 2021-08-30T11:41:42.824065 | 2017-12-17T19:47:15 | 2017-12-17T19:47:15 | 114,535,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | name = "Giuseppe"
print('Alo ' + name + ', voce gostaria de aprender mais sobre python? ')
| [
"giusepper11@gmail.com"
] | giusepper11@gmail.com |
8e176be9bb96af885fabca34dfda3cb72b2e9898 | 75962f70eecc19a2616e3bf44d47da9a5f8e697d | /dividends.py | b70901a43945b8b66244164251747a249c40eceb | [] | no_license | Stephen-Strosko/dividend-retrieval | 88ec38bca8760116c5997777b22d035b5ce538a9 | de25df226d889a42e447f9240059809a232485e8 | refs/heads/master | 2022-09-27T12:33:37.880207 | 2020-05-31T15:02:08 | 2020-05-31T15:02:08 | 268,299,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,098 | py | import logging
import pandas as pd
import requests
import time
from bs4 import BeautifulSoup
from pathlib import Path
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
CURRENT_STOCKS = Path(f'{Insert Path Here')
HEADERS = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64... | [
"noreply@github.com"
] | noreply@github.com |
1d3fbff443cb40d8db73301313628d2eca4d2fa2 | 5ff85c3986448903ceacfbc035b1bc00f5157125 | /1-Chinese/1-textgcn/build_graph.py | 5693a1b9d95edbb9a909e77e71360747bd3888b5 | [] | no_license | wanlu0/MSPaper | f25e75535ab03670b0a16b94b3bea2b6f6020ec4 | 55401d32e0bc8021146ab53408f717a91958349a | refs/heads/master | 2021-03-01T11:38:50.168766 | 2020-03-06T04:23:33 | 2020-03-06T04:23:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,019 | py | import os
import random
import numpy as np
import pickle as pkl
import networkx as nx
import scipy.sparse as sp
from utils import loadWord2Vec, clean_str
from math import log
from sklearn import svm
from nltk.corpus import wordnet as wn
from sklearn.feature_extraction.text import TfidfVectorizer
import sys
from scipy.s... | [
"wangzhaoonly@163.com"
] | wangzhaoonly@163.com |
bd517c47eea33b7775af83cdb8ffe53a16598566 | eac0e7be7cdfc6aa63dff46b3ca706c3fd840979 | /maskpostgresdata/__init__.py | 2c1b79b6ee68dd4bbf53a724da5e2f6c84470452 | [] | no_license | developersociety/django-maskpostgresdata | 3318cddb8881702a18b90e6c996560487089abf3 | 1cc60d1245a278c7b9e7c0ea3ef2003bbedc12fc | refs/heads/main | 2023-09-04T06:36:29.377464 | 2023-08-18T14:44:51 | 2023-08-18T14:44:51 | 200,231,576 | 3 | 0 | null | 2023-08-18T14:55:53 | 2019-08-02T12:33:42 | Python | UTF-8 | Python | false | false | 92 | py | from .management.commands.dump_masked_data import Command as BasePostgresDataMaskingCommand
| [
"alistairclark89@gmail.com"
] | alistairclark89@gmail.com |
a1ac5e350c5300dac315fe2d6bba5ddfeb3fa3de | f431bdb1f5a333448e7a274c7659f5b8fd4d56ac | /DNRtest.py | d86d3e3af4054cafb8115309ee3a11c5d7850357 | [] | no_license | RanZhu1989/case33Py | d465e7876c632a40912cf637d5a45025220a7862 | cc7c0b44a78fab8734c10ed92281ab14b57430c6 | refs/heads/master | 2023-02-04T10:03:04.802931 | 2020-12-23T06:48:22 | 2020-12-23T06:48:22 | 316,476,346 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | from lib.MosekTask import *
from lib.GridData import *
from lib.PandapowerTask import *
# create data agent
data_case33 = GridData()
# create IEEE33BW network
network = PandapowerTask()
data_case33.make_step(step=1,DNR=True)
problem = MosekDNR(data_case33)
problem.make_constraints(data_case33)
problem.make_objective(d... | [
"gemina_cat@163.com"
] | gemina_cat@163.com |
87866b70179b143a7d8ca36a63784724e7ce88f1 | 1f4d46034598f635fd77fba860f75ecdbab2f70c | /scripts/make_gif.py | 1250de89be985cf384c0de12b3c0f38247231488 | [] | no_license | evan-greenbrg/CalculateMobility | 776b68629ab8f8a9a131168b84d53d90c58a7c52 | da54949724c47cba42ccfeb050b3e3cd18de9039 | refs/heads/master | 2023-04-09T14:51:33.740524 | 2023-04-04T16:18:29 | 2023-04-04T16:18:29 | 528,523,994 | 0 | 0 | null | 2022-11-08T20:32:16 | 2022-08-24T17:21:32 | Python | UTF-8 | Python | false | false | 2,492 | py | import argparse
import glob
import os
import io
import re
from natsort import natsorted
import rasterio
from PIL import Image
from matplotlib import pyplot as plt
from matplotlib.patches import Patch
import numpy as np
def make_gif(root, out):
# Find files
fps = natsorted(glob.glob(os.path.join(root, '*.tif')... | [
"greenberg@Evans-MacBook-Pro.local"
] | greenberg@Evans-MacBook-Pro.local |
7befc4596349f1be8acb39bc0bd4d35beeee12c9 | 551d39505955b67c1570d0b9788245c7cdaf4a05 | /exercise7/DecisionTreeSample.py | a29cfc18e8f25b5b813c6b38ef8896f61853c52f | [] | no_license | NetoPedro/DecisionTreeSample | b22ca8b170d63253580b0e6d879446b71ef2c88f | 52939442b680af7dc7c9b93152b299c1d499f973 | refs/heads/master | 2020-03-27T20:41:49.141505 | 2018-09-02T14:23:44 | 2018-09-02T14:23:44 | 147,087,385 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,049 | py | import sklearn.datasets as datasets
import numpy as np
import pandas
# Generating the dataset
samples = 10000
dataset_X,dataset_y = datasets.make_moons(n_samples=samples, noise=0.4)
dataset = pandas.DataFrame(dataset_X)
dataset["label"] = dataset_y
# Function to divide the dataset into train and test set.
def split_tr... | [
"pedroneto_09@hotmail.com"
] | pedroneto_09@hotmail.com |
4a07ea84d52063b402726d57dbdf3727faf67046 | b09584e81194e40070d320c763856d6b0721935f | /tools/Polygraphy/tests/backend/trt/test_loader.py | 74ddfb66e8dcb83df156387239bb16de0286f81a | [
"BSD-3-Clause",
"Apache-2.0",
"ISC",
"BSD-2-Clause",
"MIT"
] | permissive | MarkMoTrin/TensorRT | c7a46a5877b4a0687ffe2b694515e7fc923d0443 | 7f269a7e6a62f555100d9b72afb9977e702ad488 | refs/heads/main | 2023-09-05T13:08:58.048025 | 2021-10-19T08:23:08 | 2021-10-19T17:25:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,003 | py | #
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"rajeevsrao@users.noreply.github.com"
] | rajeevsrao@users.noreply.github.com |
114a3690d3e8d7109785b55584eddd54b82468bf | e26839377e28a27d53bf946ce8b23c5304868be0 | /project/models/Food.py | 8065f09b5a2ff141c75abbe6123798a3b3586b7c | [] | no_license | liumx10/ele | 82ec24e1a64499a4ff80866a2300c513e1a7259d | 280dfe873f795bc2a37f6724be0833c7f7ed65af | refs/heads/master | 2021-01-10T08:12:26.507965 | 2016-02-29T11:53:03 | 2016-02-29T11:53:03 | 47,866,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,051 | py | #coding:utf-8
from project import db
class Food(db.Model):
__tablename__ = "food"
id = db.Column(db.Integer, primary_key=True)
rid = db.Column(db.Integer)
fid = db.Column(db.Integer)
name = db.Column(db.String(64))
count = db.Column(db.Integer)
def __init__(self, fid, rid, name, count):
... | [
"liumengxing2010@qq.com"
] | liumengxing2010@qq.com |
71420c46e794fbf9129e80cd832982ba3453f560 | c0836fbc0d26ec5b4fbef8b116536ee1573a63e3 | /1_basic/2_pandas/pandas_15.py | c103bccdeca3d2290f5bb6aabbc243f1cc9500b8 | [] | no_license | SungmanHan/machineLearningStudy | 5e4c2869351cceddb6cd212323c4a710a97984cc | 36854f946252158b2cdb18b6842f0c905d0811b1 | refs/heads/master | 2020-07-12T21:21:18.126845 | 2019-09-25T13:23:50 | 2019-09-25T13:23:50 | 204,908,533 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,567 | py | # -*- coding: utf-8 -*-
import pandas as pd
# 사이킷 런의 sklearn.datasets 패키지 내부의
# 학습 데이터를 로딩하는 코드
# (load_... 이름으로 함수가 정의되어 있음)
from sklearn.datasets import load_iris
# iris 데이터를 로딩하는 코드
iris_data = load_iris()
# Bunch 클래스 타입의 값이 반환
# 파이썬의 딕셔너리와 유사한 타입으로
# 키값을 사용하여 데이터를 추출할 수 있음
print(type(iris_data))
# Bunch 클래스 k... | [
"hansung926@gmail.com"
] | hansung926@gmail.com |
7bc640435ac8b1c04189e32d8de4b0291e22ffe4 | c9720c1b088237c2d45fd809e35753e875beace8 | /Attention_weighted_sim.py | 1bb730682150f2d839e652ac1db0df55e8b4215a | [] | no_license | Remorax/IBM-Internship | 6576b44e285db6d81d3a5bc4a6f61ba5f7fc9727 | c857330758b64a611d6e6eda793c80979bdc7267 | refs/heads/master | 2023-05-26T00:55:03.112221 | 2021-02-13T08:56:27 | 2021-02-13T08:56:27 | 267,085,878 | 1 | 0 | null | 2021-01-18T10:05:28 | 2020-05-26T15:49:06 | Jupyter Notebook | UTF-8 | Python | false | false | 11,674 | py | import os, itertools, time, pickle
import subprocess
from xml.dom import minidom
from collections import Counter, OrderedDict
from operator import itemgetter
from scipy import spatial
from sklearn.metrics import precision_score, accuracy_score, recall_score, f1_score
from sklearn.feature_extraction.text import TfidfVec... | [
"vivekbalasundaram@gmail.com"
] | vivekbalasundaram@gmail.com |
30d321a07b229416598f5b342fce036537d243be | e68f1a4a71a39a183a20fd925015f322f9e273fa | /maps_and_tiles.py | 757240ab54b06a7c3d98688fb6fba2b0be9c41c9 | [] | no_license | OskarDuda/evolution-simulator | f6307e672f4e34b5bf7f4f6b3a2c8d0322afa56f | acdc6f86bdc130ce9763681a347f21e40869d2b0 | refs/heads/master | 2021-07-24T06:42:02.416759 | 2017-11-02T13:03:58 | 2017-11-02T13:03:58 | 107,558,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,758 | py | import numpy as np
import matplotlib.pyplot as plt
TILE_TYPES = []
class Tile_type:
def __init__(self, id='', plants_inc=0.0, meat_inc=0.0, temperature=0.0):
if not id:
self.id = 'Custom_Tile'+str(len(TILE_TYPES)+1) #ID speaks for itself
else:
self.id = id
self.plant... | [
"noreply@github.com"
] | noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.