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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
df5dc53a7f4dbc860b2fdc75152abf5d48d28b8c | 8cda0cebf7fdc7352236c8c114491742fd3bf68a | /gtfsrt/reader.py | 16fc8f9f1ef4a2e01fc324104b5b777badf35b36 | [] | no_license | pravahio/py-gtfsr-analysis | 0cd23b296a6f02adf0e7fb8643c5e9f3ad5dac9d | 46233e1fd7f726652b4b5223d97aaea7d4125e77 | refs/heads/master | 2020-07-08T10:57:42.647372 | 2019-08-21T19:33:52 | 2019-08-21T19:33:52 | 203,652,035 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,329 | py | import os
import hashlib
import json
from datetime import datetime
from google.transit import gtfs_realtime_pb2
from google.protobuf.json_format import MessageToDict
GL_unique = {}
class GTFSRtReader:
READ_TRIP_UPDATES = 0
READ_VEHICLE_POSITION = 1
READ_SERVICE_ALERTS = 3
SAmode = False
VPmode =... | [
"a.upperwal@gmail.com"
] | a.upperwal@gmail.com |
b6ccec191dbc184ce1f567885c0785911098364f | deb8655fd05c80e3b81d3bf6100ad0970c959aec | /contact/tests/test_signup.py | f339d88b76a054eff3d880d9d6e0232cc81421c6 | [] | no_license | mayank-agarwal-96/phonebook | 5c20e151194f1c54dabc8c92aae4c5e16efe78dd | 015917a6a861e8a13e42c896f7e9d10045016e2d | refs/heads/master | 2021-01-23T01:59:52.550498 | 2017-03-23T13:53:47 | 2017-03-23T13:53:47 | 85,954,923 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,912 | py | import datetime
import time
from django.test import TestCase, LiveServerTestCase
from django.contrib.auth.models import User
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
class SignUpTest(LiveServerTestCase):
def setUp(self):
self.selenium = webdriver.Chrome(... | [
"agarwalm214@gmail.com"
] | agarwalm214@gmail.com |
7efbf58e4724def6d2a3904a3b96739ea7bf1929 | 422abf35d7b168bdc9050922e6a8e7c6ddb753b1 | /settings/settings_manager.py | 05ace33352f94617f9c41866ac9b53ea78a2c43a | [] | no_license | MycatQieZi/RemoteManager | a4b8c4b499c3065642fa74ad51aec37dea613681 | ef998b6a4046f81004a618f06762dcbf1715787c | refs/heads/main | 2023-06-24T19:04:10.658823 | 2021-07-06T09:45:48 | 2021-07-06T09:45:48 | 373,416,855 | 2 | 2 | null | 2021-07-23T02:29:09 | 2021-06-03T07:19:55 | Python | UTF-8 | Python | false | false | 5,031 | py | import configparser, os, logging, yaml, sys
from conf.reg import reg_get_QTHZ_path
from misc.enumerators import FilePath, SettingsCategories, SettingsItems
from settings.consts import DEFAULT_FILE_TEMPLATE
from misc.decorators import singleton
@singleton
class SettingsManager():
def __init__(self):
self.lo... | [
"zhangxy@ect888.com"
] | zhangxy@ect888.com |
8d633cacf961f2aaf372bd6e6e2760fa67fc75f3 | e66635486a8abc7710432b52aa15c2d6e4488c94 | /vmware_nsx_tempest/tests/nsxv3/api/test_l2_gateway_connection.py | a08d7212ce08967fe35b5b32d802971f61f21334 | [
"Apache-2.0"
] | permissive | yfauser/vmware-nsx | ba2bff4c3cc982b7af03ac7d9891a067018a7233 | 1fb08a7555efd820c2d5625665ab77d7e69d3b0c | refs/heads/master | 2021-01-18T17:41:40.411620 | 2016-06-02T21:13:43 | 2016-06-02T21:13:43 | 60,336,943 | 2 | 0 | null | 2016-06-03T09:42:43 | 2016-06-03T09:42:43 | null | UTF-8 | Python | false | false | 19,234 | py | # Copyright 2015 OpenStack Foundation
# Copyright 2016 VMware Inc
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LI... | [
"ksamoray@vmware.com"
] | ksamoray@vmware.com |
fe55479c2bc11a0237fb2eecee964409893ab01c | de77db1947bc0c1e99c493ffb90aabce8de197e7 | /products/utils.py | 93ee3df7ae1ac8d9a6e524e1f6794447d9b19b56 | [] | no_license | thesaadmirza/djangoecommerce | a6e17d0125ae5f85b8065341564ffd548a4a3520 | a4dbb14cc04b956497a8524c46141c6aa9ff50c0 | refs/heads/master | 2020-03-30T20:08:36.934892 | 2018-10-09T13:53:50 | 2018-10-09T13:53:50 | 151,574,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | import random
import string
from django.utils.text import slugify
def random_string_generator(size=10, chars=string.ascii_lowercase + string.digits):
return ''.join(random.choice(chars) for _ in range(size))
def unique_slug_generator(instance, new_slug=None):
"""
This is for a Django project and it as... | [
"saadmirza009@gmail.com"
] | saadmirza009@gmail.com |
f706442a26c3078a4ba76a8bf393f15c6c2a95f4 | 4e30c855c253cc1d972d29e83edb9d5ef662d30a | /product/models/stock.py | bfd6d68450fd500838468f3728f011573c8ed506 | [
"MIT"
] | permissive | rajeshr188/django-onex | 8b531fc2f519d004d1da64f87b10ffacbd0f2719 | 0a190ca9bcf96cf44f7773686205f2c1f83f3769 | refs/heads/master | 2023-08-21T22:36:43.898564 | 2023-08-15T12:08:24 | 2023-08-15T12:08:24 | 163,012,755 | 2 | 0 | NOASSERTION | 2023-07-22T09:47:28 | 2018-12-24T17:46:35 | Python | UTF-8 | Python | false | false | 17,058 | py | from decimal import Decimal
from django.db import models
from django.db.models import OuterRef, Subquery, Sum
from django.db.models.functions import Coalesce
from django.shortcuts import reverse
from dea.models import Journal
from utils.friendlyid import encode
from ..managers import StockLotManager, StockManager
... | [
"rajeshrathodh@gmail.com"
] | rajeshrathodh@gmail.com |
a0844a6b122f516ecc3798d4bad710627ee5512a | 52c990629932dcc5f13b4753af23c7d395bb4b1b | /STOCK/wallet/migrations/0013_auto_20210220_2205.py | a60b9f13b0368c83b6b6b1db975d02e261c119c6 | [] | no_license | Strzelba2/STOCK | 4a0158534cf3a231df59ead0873d1ac50d6b1ee8 | b1904057a40f74f54abd7629fd8726807229c44c | refs/heads/main | 2023-03-14T17:19:04.662137 | 2021-03-21T19:45:08 | 2021-03-21T19:45:08 | 313,441,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | # Generated by Django 3.1.3 on 2021-02-20 21:05
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('wallet', '0012_auto_20210220_2205'),
]
operations = [
migrations.AlterField(
model_name='stocks... | [
"artur_strzelczyk@wp.pl"
] | artur_strzelczyk@wp.pl |
649162ec2eee906ff40ed4a11742014eddbea62c | 490c4f252522ba00fcbb6544cf77afc883db63a8 | /supremes/helpers.py | 5fcb3d1364fba7c616dfc628be5628496b04be5e | [] | no_license | stillmatic/supremes | a6c7b9f25d7d8ef92511469e837c1ee78e6bf2ff | a34f3b6ac038c0a66030df1dba92aa249f53ae17 | refs/heads/master | 2020-06-25T13:02:00.093656 | 2019-07-28T20:24:36 | 2019-07-28T20:24:36 | 199,315,962 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,221 | py | """
Utils, e.g. for I/O.
"""
import hashlib
import requests
import rapidjson
import glob
from models import Case
from typing import List, Any, Dict, Optional
PATH = "D:/code/supremes/oyez/downloaded"
def load_from_remote(url: str, overwrite: bool = False, verbose: bool = True) -> Any:
"""
Load from cache i... | [
"hua.christopher@gmail.com"
] | hua.christopher@gmail.com |
68cb78d9786b17dbf9ebfd1f7d9bc1c3a09d832a | 49e5321f91ec6a7090fad075dff70380e8782436 | /test_example/008_temperature.py | fedf554c65d22940c0e2d72e90a337181b6586fd | [] | no_license | hedgehoght/py3_cainiao | 068bd3b50f6fdcd21265ef426178ac94e27a437c | e671bb8b0d402e47d0ddd1eb250c4f8f78a58357 | refs/heads/main | 2023-04-02T22:39:00.713433 | 2021-04-09T08:25:06 | 2021-04-09T08:25:06 | 348,980,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,903 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2021/3/18 16:22
# @Author : huangting
# @File : 008_temperature.py
# 摄氏温度转华氏温度
# 以下实例演示了如何将摄氏温度转华氏温度:
# author by : www.runoob.com
# 用户输入摄氏温度
# 接收用户输入
celsius = float(input('输入摄氏温度: '))
# 计算华氏温度
fahrenheit = (celsius * 1.8) + 32
print('%0.1f 摄氏温度转为华氏温度为 %0... | [
"1720886432@qq.com"
] | 1720886432@qq.com |
604a402d920686f394a64772d385a750c89d7118 | 971b586e21abbb74d631ac49bef3836806261252 | /LDA using Parameter Server/code/lda_run.py | 8798301161ec03e132807470eb7fa8491ec78650 | [] | no_license | samridhishree/Machine-Learning-for-Large-Datasets | 92b84c665a115d069e45a0ce7c8d54e97a004e19 | d02ded246d115b43bff680a85b896f88d30a83ea | refs/heads/master | 2021-09-04T15:33:41.797957 | 2018-01-19T23:02:30 | 2018-01-19T23:02:30 | 114,903,782 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,553 | py | #!/usr/bin/env python
if __name__ == '__main__':
import argparse
import os
import time
script_dir = os.path.dirname(os.path.realpath(__file__))
default_host_file = os.path.join(script_dir, 'hosts.txt')
default_data_file = os.path.join(script_dir, '20news.csv')
parser = argparse.ArgumentParser(desc... | [
"sami@samridhishree.com"
] | sami@samridhishree.com |
c1e93bd7232a7db99271954b0b80e062ac990c1e | 7e8363cea094afdc23532265776d135167e4af84 | /new_cb.py | 558bee1c17e81f8c89e5e2650be1bc38a68ce958 | [] | no_license | flaresky/stock | 2c8f92c0144ae48b328265398716bd154c91d887 | 720ede20b04908e873920456fa1ead54a1114d7c | refs/heads/master | 2020-04-11T20:53:31.365704 | 2019-08-16T01:44:26 | 2019-08-16T01:44:26 | 162,087,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,038 | py | # -*- coding: utf-8 -*-
import re
import datetime
import utils
import traceback
from EmailSender import send_mail
notify_rate = 55
def main():
global notify_rate
today = datetime.datetime.today()
ts = today.strftime("%Y-%m-%d")
# ts = "2019-04-19"
stocks = []
url = "https://www.... | [
"flaresky@gmail.com"
] | flaresky@gmail.com |
e481d147740b8ba9df9a7d2102804aca929b1f8a | 62172ba64eba74eddf96ea6d92db9967301edc2d | /src/method/sidnet/train.py | 69885788dee97bd7abed3361d7d944ad390c0137 | [] | no_license | icdm21-sidnet/codes | e00af1fb0de9472496b0604715f79359ef63b5b0 | 79b3c2fb6f6088200e753a0cf77e9de5ccb171c7 | refs/heads/master | 2023-05-26T18:26:17.546881 | 2021-06-10T12:28:56 | 2021-06-10T12:28:56 | 375,684,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,724 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import torch
from dotmap import DotMap
from tqdm import tqdm
import numpy as np
from method.sidnet.model import SidNet
import scipy.sparse as sp
from loguru import logger
class SidNetTrainer(torch.nn.Module):
def __init__(self, param):
"""
Constructor... | [
"icdm21sidnet@gmail.com"
] | icdm21sidnet@gmail.com |
34e948024f0bec94ff0ac644ed0ec34b906fbcf6 | c058f51b99f91faebf27183b2b579e9f96e0d8f5 | /botorch/sampling/index_sampler.py | ac64388a6725fbe6d9d097bcda515413de547a4f | [
"MIT"
] | permissive | pytorch/botorch | 255d62f698cc615c750e9343c278a63c7e96a586 | 4cc5ed59b2e8a9c780f786830c548e05cc74d53c | refs/heads/main | 2023-08-22T15:23:51.071048 | 2023-08-22T05:30:38 | 2023-08-22T05:30:38 | 142,940,093 | 2,891 | 373 | MIT | 2023-09-13T00:16:13 | 2018-07-30T23:59:57 | Jupyter Notebook | UTF-8 | Python | false | false | 2,289 | py | #!/usr/bin/env python3
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
r"""
Sampler to be used with `EnsemblePosteriors` to enable
deterministic optimization of acquisition functions with ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
ae6316a772722d458445a524f69b025e1ec1ac9e | 246fc123d539e150ae9e82720f843b1ab5890532 | /shau.py | 3d7e55e187f5baafca30bcaa50ea87fcf4ba249e | [] | no_license | Raeshmithaa/guvi | 3a5edd0b33d7971eae1a73aa4d543eb8f0a0aec2 | cd20cda104b409aba23dcb15210ab9285fc946fc | refs/heads/master | 2020-05-31T06:39:44.349687 | 2019-07-26T10:30:46 | 2019-07-26T10:30:46 | 190,146,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 72 | py | r=int(input("enter the value"))
for i in xrange(r):
print ("Hello")
| [
"noreply@github.com"
] | Raeshmithaa.noreply@github.com |
a1c0fe09c2da797f27037c5a052110c6c7af18cd | c256a2afd147589b86cd342c3b4d8d6bf091b544 | /zonefile_parser/main.py | e5fa2d902d5fee1ffc3bda70e9b9e06ed62e51fc | [
"MIT"
] | permissive | mlytics-william/zonefile-parser | bef8c0560063d36892474877328431506eec1f8b | d0af3258f415993e2974aafe3479126064577365 | refs/heads/master | 2023-02-02T11:05:13.607069 | 2020-12-09T00:42:08 | 2020-12-09T00:42:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,742 | py | import os
from zonefile_parser.helper import remove_comments
from zonefile_parser.helper import remove_trailing_spaces
from zonefile_parser.helper import default_ttl
from zonefile_parser.helper import default_origin
from zonefile_parser.helper import find_soa_lines
from zonefile_parser.helper import parted_soa
from zon... | [
"aredwood@users.noreply.github.com"
] | aredwood@users.noreply.github.com |
8725d2a1385df69f69e2f38965280d22d8072110 | 958dfda84dd93ba500c18b22a53017704c84a9dd | /sql_queries.py | 0797b6cd5eb51a731fd1610babd45f34efc62f56 | [] | no_license | walkandride/Data-Modeling-With-Postgres | 152e77486bfa749e48435072696db7e8fa0e7421 | c0db3614d9984625f8fcf2d92331f70637dd0411 | refs/heads/master | 2021-03-24T14:42:25.226600 | 2020-05-28T17:17:08 | 2020-05-28T17:17:08 | 247,539,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,569 | py | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS songplays;"
user_table_drop = "DROP TABLE IF EXISTS users;"
song_table_drop = "DROP TABLE IF EXISTS songs;"
artist_table_drop = "DROP TABLE IF EXISTS artists;"
time_table_drop = "DROP TABLE IF EXISTS time;"
# CREATE TABLES
songplay_table_create = ("""
CREATE ... | [
"walkandride@hotmail.com"
] | walkandride@hotmail.com |
7f9fb37e893d8d72f1e7cdaec460c08f350a2b7b | 9bc71630f9a0f0d3f0b490210e8ca36d05f29bc5 | /python/Views/QuestionAnswer.py | bc3e66895953e0836ca104937c4dbe4d559776b1 | [] | no_license | SproutProject/SproutProject-regweb | b88b720a805bbd9027dd0fe1e631da65fadc18fa | 46a7e17ca6e2ddf76dbb65c5768e68e6f2865ce2 | refs/heads/master | 2021-04-30T23:15:22.218639 | 2017-02-11T18:01:34 | 2017-02-11T18:01:34 | 71,987,513 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,807 | py | from sqlalchemy import and_
from Config import DEBUG
from Model import *
from Views.Base import RequestHandler
from Views.Utils import get_user, db_insert
class GetAllHandler(RequestHandler):
def post(self):
session = self.get_session()
data = []
for row in session.query(Qa).filter(Qa.st... | [
"luniacslime@gmail.com"
] | luniacslime@gmail.com |
2bb7d800683997697c30b40167e239a1b671acbd | 9f5fcff2513f2d78f27e5313698dcc47fce1e754 | /Experiment/RL_EA_search/graphnas/rs_trainer.py | 60d453b4a9dc3b195ba7af0fdb0ad1d16b376820 | [
"Apache-2.0"
] | permissive | ncucjm/notebook | c2495f790e9fc2ca55c1c29a8eaa2dc1bfe7463f | 7271a0d1b10cdd6298e223c7ff150d4df031aa76 | refs/heads/master | 2023-07-20T05:55:48.946687 | 2021-01-27T09:12:19 | 2021-01-27T09:12:19 | 202,633,012 | 0 | 0 | null | 2023-07-06T21:28:29 | 2019-08-16T00:58:45 | Jupyter Notebook | UTF-8 | Python | false | false | 1,510 | py | import time
import torch
import numpy as np
from collections import deque
from graphnas.trainer import Trainer
class RandomSearch_Trainer(Trainer):
"""
This class implements a Random Search method, on the Search Space
provided to it.
"""
def __init__(self, args):
super(RandomSearch_Trainer... | [
"1300887184@qq.com"
] | 1300887184@qq.com |
56891733bd69b657990cf4c7f42b4cadd4945ee3 | cd33ce52f3cec01b6b4e6855b20548b66e7b48e3 | /comision/migrations/0007_auto_20170228_1611.py | 1dfadc6696ad5092ae8ba358c2e3054b81e3f565 | [] | no_license | ingcacm/viceacad_si | 3f24156405a4862fd2ef1458182608cf3e091afb | eb7680fadc510ac0b5768c9eb63885f6741f97cc | refs/heads/master | 2020-04-02T15:24:41.745195 | 2018-11-02T15:13:09 | 2018-11-02T15:13:09 | 154,566,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,640 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-28 16:11
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('comision', '0006_auto_20170228_1601'),
]
operations = [
migrations.AlterFie... | [
"ingenierocamilocryuz@gmail.com"
] | ingenierocamilocryuz@gmail.com |
c8e6ec9859340312be86d4aa0d4624585f7ff9d9 | 4d0bf402a07e152cdd9b457e7eb6b48fb185d451 | /source/lib/python3.6/_bootlocale.py | 640ba8eb3d36da8fe9357c6d653d70a53eb3957c | [] | no_license | sajivfrancis/opteylearningtool | d61fab9367d264bea0e9ec051a43a4a02a2b413e | 6b91b0f1653deeee674e1512b0ce4431521b1f69 | refs/heads/master | 2020-04-28T07:03:20.842795 | 2019-05-08T15:24:31 | 2019-05-08T15:24:31 | 152,605,200 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 57 | py | /Users/sajivfrancis/anaconda/lib/python3.6/_bootlocale.py | [
"sajivfrancis@Sajivs-MacBook-Pro.local"
] | sajivfrancis@Sajivs-MacBook-Pro.local |
27851538355cbd4e982fa4268a95c563c111d7c4 | 07eddbfdf1fcc20e0b3c2027514e5cc9ace6360c | /src/agent.py | 2b79da3118d1482dd97c49447982213aa887f5cf | [] | no_license | Benjamin-Etheredge/DeepQExploration | a087739e792dde8c1aa1c0c639963bbbfcdd3615 | 78f8998d6d1dbff740e5f32f239b9db2b9064afd | refs/heads/master | 2023-05-11T02:14:50.018053 | 2021-04-28T04:13:28 | 2021-04-28T04:13:28 | 168,606,706 | 0 | 0 | null | 2023-05-01T13:44:30 | 2019-01-31T22:28:23 | Python | UTF-8 | Python | false | false | 19,820 | py | # TODO test with starting with large window and reducing size
# TODO test with randomly removing items from deque instead of using a sliding window
# TODO add new q value network for randomly sampling q values to test convergence of predicted q values.
import time
from datetime import datetime
from timeit import defaul... | [
"benjamin.etheredge@gmail.com"
] | benjamin.etheredge@gmail.com |
e077b381b5bd58b93198eb2f2a96e908241882cd | b4eeca0ca9dea1956251b1fdba0ab5cc5c6ad938 | /img_saver.py | 3f16cc31e795bbc6fffdca4a409c1ea3430c00fa | [] | no_license | Rowing0914/simple_CNN_mnist | 70ecb5c4e5874b13a43c870aa9ac5bdce7aeba72 | 4ff3414bad9e8304ecc839314ff6f716a1bfa445 | refs/heads/master | 2020-03-18T14:14:28.582076 | 2018-05-26T11:25:12 | 2018-05-26T11:25:12 | 134,837,434 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,567 | py | import keras
from keras.datasets import mnist
from keras.models import model_from_json
from keras import backend as K
import numpy as np
import matplotlib.pyplot as plt
batch_size = 128
num_classes = 10
epochs = 5
index_range = 30
# input image dimensions
img_rows, img_cols = 28, 28
checker = True
while (checker):
... | [
"norio.kosaka@rakuten.com"
] | norio.kosaka@rakuten.com |
6e5c4d9328171eeb50e8290adcc1ce764248f029 | 8d472f9facb895dda9e1df81f3bb6c2f81b9c357 | /master/bt5/slapos_jio/SkinTemplateItem/portal_skins/slapos_hal_json_style/Project_hasItem.py | d66daa1f26bb81642f295654c3ff99a0f40cc6d8 | [] | no_license | SlapOS/slapos.core | 852485eed9382685f3df6ba8532f8192bb1389c4 | 369e8d56636e1c59a745e68dc68154abfc5b7840 | refs/heads/master | 2023-08-31T04:42:34.722241 | 2023-08-30T15:13:08 | 2023-08-30T15:13:08 | 1,825,920 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | import json
return json.dumps(len(context.Project_getComputeNodeTrackingList()))
| [
"rafael@nexedi.com"
] | rafael@nexedi.com |
d48f8bec41176e377a39ba8177cac60f159340b7 | 297497957c531d81ba286bc91253fbbb78b4d8be | /third_party/python/esprima/esprima/__init__.py | aa2398f4102b2e9d4553bb39f890861fda8ee0ea | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | marco-c/gecko-dev-comments-removed | 7a9dd34045b07e6b22f0c636c0a836b9e639f9d3 | 61942784fb157763e65608e5a29b3729b0aa66fa | refs/heads/master | 2023-08-09T18:55:25.895853 | 2023-08-01T00:40:39 | 2023-08-01T00:40:39 | 211,297,481 | 0 | 0 | NOASSERTION | 2019-09-29T01:27:49 | 2019-09-27T10:44:24 | C++ | UTF-8 | Python | false | false | 154 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
version = '4.0.1'
__version__ = (4, 0, 1)
from .esprima import *
| [
"mcastelluccio@mozilla.com"
] | mcastelluccio@mozilla.com |
1776f070e04378fb62f8d7fa0efb71da985ee265 | 66d35c4c299cfebe70acb45cbfe69eee74e63c45 | /quantum/vazirani/L03a-bellstate/main.py | dfc5f84107e9016c2ff12d43b59fed96cabc4a35 | [] | no_license | numpde/misc | 8b7b245e7cb4ab403a6ecce3ebd7aaf63fe1c1c5 | d57a0715800adda4acc1920b52d811e193ac29dc | refs/heads/master | 2022-12-07T19:38:15.829569 | 2021-03-19T11:41:11 | 2021-03-19T11:41:11 | 196,041,509 | 0 | 0 | null | 2022-09-30T18:39:24 | 2019-07-09T16:02:18 | Python | UTF-8 | Python | false | false | 459 | py | # RA, 2019-12-10
import qsharp
import numpy as np
from Quantum.Bell import Corr, Corr_SignBasis, Corr_SignBasis_Simul
r = 100 * np.mean([Corr.simulate() for __ in range(1000)])
print(F"Agreement (0/1 basis): {r}%")
r = 100 * np.mean([Corr_SignBasis.simulate() for __ in range(1000)])
print(F"Agreement (+/- basis): {... | [
"21158052+numpde@users.noreply.github.com"
] | 21158052+numpde@users.noreply.github.com |
85fe8257ba6b215d2f1be3c0e44cab33018ef58f | 305cfe3a1f16555509d6b63b1955cbfd2c667344 | /posts/api_urls.py | affc09831cae7fe6e0ca34d4d4bd15c9ae8b1d7c | [
"MIT"
] | permissive | krainet/Wordplease | 08843fb83fed8823878a291e4dd9e5c9e95f847b | c546913cdfa21be71d9c852fabf0a853e1617ab4 | refs/heads/master | 2020-05-18T11:59:17.809358 | 2015-08-30T15:13:23 | 2015-08-30T15:13:23 | 39,742,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # -*- coding: utf-8 -*-
from posts.api import PostViewSet
from django.conf.urls import include, url
from rest_framework.routers import DefaultRouter
router = DefaultRouter()
router.register('post', PostViewSet)
urlpatterns = [
url(r'1.0/', include(router.urls)),
]
| [
"ralberti@mequedouno.com"
] | ralberti@mequedouno.com |
795e1fb93d180391f6871a8b83279551c75bfce7 | 50cd47781972b0906bdeb86ec19d66afca146479 | /experiment/financial_statement.py | 20eb0ed53f64ade87d12a72352c17057f3b05697 | [] | no_license | Niyokee/coodori-batch | 500f8499cab70dc779c4a30af42c5072bc37d694 | 5860af70f27999b838e99f553154add1d5a324f6 | refs/heads/master | 2023-02-12T02:13:58.646853 | 2021-01-06T00:20:07 | 2021-01-06T00:20:07 | 289,264,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,995 | py | import re
import sys
import traceback
from datetime import datetime
import requests
import pandas as pd
import pandas.io.sql as psql
import numpy as np
from db_util import *
from bs4 import BeautifulSoup
from sqlalchemy import create_engine
import pandas.io.sql as psql
import psycopg2 as pg
from logging import getLogge... | [
"knk43nok@gmail.com"
] | knk43nok@gmail.com |
2091019304441ed2b85284ecae92403d78b00911 | d6309b1c29872a78473b9469b103c03faa289343 | /teams/forms.py | 013799f1c4f250545260809050ed2f2ee9186cea | [] | no_license | HackyRoot/TeamFinder | 86044ddc58e7d8626f04f1c11218c9abd20c015d | 3f76c2b9f1862c703a872e41cff90ac31462ede6 | refs/heads/master | 2020-04-29T05:28:16.608339 | 2019-03-21T13:02:46 | 2019-03-21T13:02:46 | 175,884,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User
# from .models import Member, Team
# https://stackoverflow.com/questions/49198400/django-add-user-to-team
# class InviteMemberForm(forms.ModelForm):
#
# class Meta:
# model = Team
# ... | [
"steveparmar6nov2011@gmail.com"
] | steveparmar6nov2011@gmail.com |
022ad5c859c0bd9242aba0bf2f6eb4c519cc7624 | 9c2eb3b057cfab3c1fe62259855772cdcce3e247 | /python/sam_and_substrings.py | 6e4659aec87f35d9c56521e53d06817ced548eac | [] | no_license | saienthan/HackerRank | a508ab0fe7783d4033f59f4688db12f202b05595 | 3f45cd5bca610090f36d07861caa752402aae07a | refs/heads/master | 2021-01-19T08:34:31.278662 | 2015-08-29T01:52:46 | 2015-08-29T01:52:46 | 31,596,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | num = input()
size = len(num)
dp = [0]*size
dp[0] = int(num[0])
ans = dp[0]
for i in range(1,size):
dp[i] = (dp[i-1]*10 + (int(num[i])*(i+1)))%1000000007
ans = (ans + dp[i])%1000000007
print(ans)
| [
"saienthan@gmail.com"
] | saienthan@gmail.com |
751495d0c007ac9f2437d3f8ac658de6de62b17d | 6511518ea4d81218d30b34ac6b783a50bac913fa | /base/webdriverfactory.py | 64d30aa199154737731391ffa29280d938797be3 | [] | no_license | sony093/amazon-repository | f979e1a7be6da9d3db415c8ad86acbc522b94629 | 205516503be6a5e34364e53f14dac53c76f2838c | refs/heads/master | 2022-11-21T20:58:33.688593 | 2020-07-24T06:56:14 | 2020-07-24T06:56:14 | 282,141,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | from selenium import webdriver
class WebDriverFactory():
def __init__(self, browser):
self.browser = browser
def getWebDriverInstance(self):
baseURL = "https://www.amazon.in/"
if self.browser == "iexplore":
driver = webdriver.Ie()
elif self.browser == "firefox":
... | [
"sonybiswal093@gmail.com"
] | sonybiswal093@gmail.com |
4ec3a3ad39f84c17851919fc61bb7c8ea7077454 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startCirq1255.py | 433c18dd8d62c95a5ce1435e5cbc4fa0ed500276 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,849 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=5
# total number=49
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
from cirq.contrib.svg import SVGCircuit
# Symbols for... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
4709c002cbe78386e7a2d8b1f0af23cb71cc52a3 | 1286114add63959946e4253efa7ac4d3f7dbab04 | /product.py | 53800c3871c514b426093efd14fa0f750a14ec44 | [] | no_license | kugimasa/VendingMachine | e87a11fcc9976f989572b134aa94ebe5b131ca48 | d8d81e8c879ea5bb62274dc78e66068e3d735b97 | refs/heads/master | 2020-07-19T21:48:47.977278 | 2019-09-05T09:40:33 | 2019-09-05T09:40:33 | 206,519,926 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | class Product:
def __init__(self, name, price):
self.__name = name
self.__price = price
@property
def name(self):
return self.__name
@property
def price(self):
return self.__price | [
"kugimania@gmail.com"
] | kugimania@gmail.com |
9b3897a204d2e19414bfafbc3476fb262e256b8a | 32214725e788d3e5b8f360b47959cdf9fd4b79b5 | /learn_theano/pylearn2/test_pylearn_tutorials.py | 02741e3acee9840acf9946f89be017bf75e5bf65 | [
"Apache-2.0"
] | permissive | consciousnesss/learn_theano | 4906ae656d2780e42b973186b078298055cfa5f9 | 43bc661032963274520ecfdd620ac547ee421f9d | refs/heads/master | 2021-01-10T13:13:25.552127 | 2015-12-05T05:07:17 | 2015-12-05T05:07:17 | 45,771,031 | 0 | 0 | null | 2015-12-05T05:10:33 | 2015-11-08T07:20:47 | Python | UTF-8 | Python | false | false | 509 | py | from learn_theano.pylearn2.custom_autoencoder_2 import custom_autoencoder_run
from learn_theano.pylearn2.custom_logreg_1 import custom_log_reg_run
from learn_theano.pylearn2.standard_mlp_0 import standard_mlp_run
import theano
def test_standard_mlp():
standard_mlp_run(1)
def test_custom_log_reg():
old_float... | [
"olegsinyavskiy@gmail.com"
] | olegsinyavskiy@gmail.com |
8c2a09329555943408f9a1d045564df59699fbf7 | 0b7272149f953c1a1fdbea4e17095e25f1e5c620 | /hours/admin.py | 0705be8278b9e1c111d3b5bf621a12928758f9fe | [] | no_license | Jayshah6699/Medico | c116bc6b09efc2c47d11758734122fc1c0e247e7 | ecc2b2f28866758cbe8eeb48b554d40bae65c502 | refs/heads/main | 2023-01-30T18:54:37.331793 | 2020-12-19T12:13:56 | 2020-12-19T12:13:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from django.contrib import admin
from .models import Department, Shift
admin.site.register(Department)
admin.site.register(Shift)
| [
"andrewroblesdev@gmail.com"
] | andrewroblesdev@gmail.com |
84111d9587a8ae65f17009f4940debffcdcba987 | 297d426d5519c669b210e82d4aff479a51949e52 | /routines/flat_dark_corr.py | 849357cb9f9c2abf7af01abd15c2581df6e98cda | [] | no_license | PulkitMalhotra15/Lunar-Eclipse-Analysis | 4722d6779bad00f107a553dccd4335051dde570b | d07f6b36eec79fea1f10e3129d8c6b72bc669521 | refs/heads/master | 2020-08-21T22:27:14.922373 | 2019-10-19T21:09:11 | 2019-10-19T21:09:11 | 216,261,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,902 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 29 21:10:03 2018
@author: sid
"""
import numpy as np
import matplotlib.pyplot as plt
import astropy.io.fits as fit
import prepare_lists as pl
llists = pl.llists()
dpath='/home/atom/2018_07_27 TLE Jaisalmer/Analysis/images/dark_and_flat/'
savepat... | [
"noreply@github.com"
] | PulkitMalhotra15.noreply@github.com |
5e504538adc68c06ea2082edf5674a0e82a28dc0 | 4f75cc33b4d65d5e4b054fc35b831a388a46c896 | /.history/app_20210903181729.py | d0919a5fe032e1f8eaa9d4770a1d04d5bbe154c3 | [] | no_license | Lr-2002/newpage | c3fe2acc451e24f6408996ea1271c61c321de702 | c589ad974e7100aa9b1c2ccc095a959ff68069b6 | refs/heads/main | 2023-09-03T06:13:53.428236 | 2021-11-23T10:41:21 | 2021-11-23T10:41:21 | 402,606,000 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | from flask import Flask ,render_template,url_for
from flask_sqlalchemy import SQLAlchemy
import os
import sys
import click
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///' + os.path.join(app.root_path,'data.db')
# / / / / 是文件的绝对路径
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] =... | [
"2629651228@qq.com"
] | 2629651228@qq.com |
384496359f968c0c15c69e0e31cf20fe03eecb7d | 5fd297a27951074f3434d45ab7367687a15ad3b1 | /cep/__init__.py | 0499b31d041f05719ad12c78b1179c582ae8bb89 | [] | no_license | Cazuky/cepy | 808e155cdcf70bc25ef87f658e11c53bdb715530 | eca789cf632156a2e61b9d6fb4422056105a1c8d | refs/heads/master | 2021-01-11T14:12:31.974783 | 2012-11-27T17:45:25 | 2012-11-27T17:45:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | from flaskapp import create_application
__version__ = '0.0.0'
| [
"luanfonceca@gmail.com"
] | luanfonceca@gmail.com |
88fae0f7f05b8375208a3a5144f972d9792eac4c | 4ed038a638725ac77731b0b97ddd61aa37dd8d89 | /cairis/misc/KaosModel.py | 39259e225455f6f69fa7f7bc60346a9b9a88fa53 | [
"Apache-2.0"
] | permissive | RachelLar/cairis_update | 0b784101c4aff81ff0390328eb615e335301daa2 | 0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2 | refs/heads/master | 2021-01-19T06:25:47.644993 | 2016-07-11T20:48:11 | 2016-07-11T20:48:11 | 63,103,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,998 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may... | [
"shamal.faily@googlemail.com"
] | shamal.faily@googlemail.com |
63616405b27720b76566b120e130bee0ac7bae8e | cfa464f5e4ec36b740d6e884f0ca1e170ebd2efb | /0x15-api/1-export_to_CSV.py | 402fb19b0b58ff81079e112f6fdb96aead0b7b14 | [] | no_license | Immaannn2222/holberton-system_engineering-devops | 6ea0c4f3af2943c242e1928a2b4e66932f193a34 | bcf001f3693fc55d54842ad92848ee783edee37a | refs/heads/master | 2020-12-22T21:12:22.507064 | 2020-10-12T19:46:37 | 2020-10-12T19:46:37 | 236,933,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | #!/usr/bin/python3
"""HTTP WITH PYTHON"""
import csv
import requests
from sys import argv
if __name__ == "__main__":
"""main"""
to_do = requests.get('https://jsonplaceholder.typicode.com/todos/',
params={"userId": argv[1]})
user = requests.get('https://jsonplaceholder.typicode.com... | [
"imennaayari@gmail.com"
] | imennaayari@gmail.com |
59a610eb83b8706f74f0002b97f722652d711751 | 83c57f25a1c8b29bb84078340efabaf527a9452e | /pytest/xiaoniu88/pipelines.py | bcf58746076d6fa5a9859ffc60911edbe065bfe3 | [] | no_license | ifzz/py | df06cf5da5920dae979c2c8454bfa02c36dfeeb1 | 2305e651613725ca51d6a87306f3ef83d6c51939 | refs/heads/master | 2021-01-18T08:32:21.256271 | 2016-03-11T10:30:28 | 2016-03-11T10:30:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html
class Xiaoniu88Pipeline(object):
def process_item(self, item, spider):
return item
| [
"junxuanwoo@163.com"
] | junxuanwoo@163.com |
727b6531f40238a90a6b79a006be2a0a540553cb | 432dde1eea596e915673f57aca3c02687c503089 | /home/home_location.py | d4439ea9800fda01e4efbbc74b1169d20b62a67e | [] | no_license | DavidLouisLevine/adventure | 2762b825652d2c17eececdbd3951137ae455dada | dd91f7a155777bea5199e33e4f7238300080beed | refs/heads/master | 2020-07-11T18:51:04.405008 | 2019-09-29T04:41:22 | 2019-09-29T04:41:22 | 204,619,716 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | from adventure.location import Location
locations = (
Location('Living', (
'This room has a couch, chairs and TV.',
'You have entered the living room. You can watch TV here.',
'This room has two sofas, chairs and a chandelier.',
'A huge television that is great for watching games.')... | [
"dll@davidlouislevine.com"
] | dll@davidlouislevine.com |
01945bf47b3a7cee41fd7758b27020b16dfe8c9f | c018a7de1de41c0b82c3be5430e5d18bb546b944 | /adapter/gql/mutation/mutation.py | 00a050f8d8bbd4e5d106fac370f050257a0136b0 | [] | no_license | rafaelbm9126/py-crud | 3b8f2741563f59cc6e3c490fc8c7addfd2b88923 | 88442915691340345d098941c60d23d06da4d74f | refs/heads/master | 2022-01-09T13:25:21.472348 | 2019-06-15T22:54:06 | 2019-06-15T22:54:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | py | from graphene import (
ObjectType
)
from adapter.gql.mutation.post.create import PostCreate
from adapter.gql.mutation.comment.create import CommentCreate
class MutationC(ObjectType):
post_create = PostCreate.Field()
comment_create = CommentCreate.Field()
| [
"rafaelbm9126@gmail.com"
] | rafaelbm9126@gmail.com |
6aa00e15918047934e9a5d1a3b2ca63b884a34e0 | 31a2a512544734047f960f3ad386137c53004945 | /pierre/gamelogic.py | def2add812f287db056a40e3807415fa01b8de13 | [] | no_license | ValentinCPE/simonsGame | f077bd267eda3badb09756c5e92a53778b09e4e3 | 8bd468228f21d9c80370bbc158ec13fb6014f1e3 | refs/heads/master | 2021-06-07T01:53:38.258995 | 2016-11-16T21:44:41 | 2016-11-16T21:44:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | #!/usr/bin/env python2
import random, os
def compareSequences(list1, list2):
for i in range(0, len(list1)-1):
if list1[i] != list2[i]:
return False
return True
limit = 3
points = 0
while True:
usersequence = []
sequence = []
while len(sequence) < limit:
sequence.append(random.randint(0,3))
print("\nRe... | [
"hyacinthe@openmailbox.org"
] | hyacinthe@openmailbox.org |
b72811cf470f14d3204cf120201855ee3e250c6f | 99ec105d854a24488d8efec8b425c36daae0db64 | /src/Fostr_Django/Fostr_Django/settings.py | da4c07c513e0678d110f912db439084763c90098 | [] | no_license | allenwang52/Fostr | 6630f053cc5f9e398e1f74c7e9a844ab7af941ca | 6f07570d34059637edeb29b375b48a642f880efa | refs/heads/master | 2022-07-25T21:19:48.245225 | 2020-05-23T01:44:48 | 2020-05-23T01:44:48 | 258,685,650 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,131 | py | """
Django settings for Fostr_Django project.
Generated by 'django-admin startproject' using Django 3.0.3.
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 ... | [
"allenwang52@yahoo.com"
] | allenwang52@yahoo.com |
cca8684959f85d2e036f5c9887666fd2e912318b | 5865cc1b70db72b7a9a9a07547f05a1f47959bb1 | /supervised_learning/0x02-tensorflow/0-create_placeholders.py | 030bfd54225f665c91036d412c47e2ec3b3197fd | [] | no_license | nildiert/holbertonschool-machine_learning | c8cefc3a784348f09128c0f4d82d65b9d56000c5 | 273f81feaa14fe24ac4db5d82be0d13299e857b8 | refs/heads/master | 2020-12-21T12:27:48.280880 | 2020-09-25T17:58:33 | 2020-09-25T17:58:33 | 236,429,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | #!/usr/bin/env python3
""" This function creates two placeholders """
import tensorflow as tf
def create_placeholders(nx, classes):
""" Method to create placeholders """
x = tf.placeholder(tf.float32, shape=(None, nx), name='x')
y = tf.placeholder(tf.float32, shape=(None, classes), name='y')
return (... | [
"niljordan23@gmail.com"
] | niljordan23@gmail.com |
82b163e0655d3a3d299eb6ece605cf2fcc3c9873 | 58873a31cf82764c326d9ad61a93212387c5cd52 | /odoo_academy/wizard/.ipynb_checkpoints/sale_wizard-checkpoint.py | 5341ed4e814de6a69b947c0399ca97294d65e167 | [] | no_license | sebastian2161/ejercicio1 | 60cec40eb33421d9168458ccf93e24c0d74eec9f | 8bd0f2c46bbc3bd939274416cb1a65de28cc29c3 | refs/heads/main | 2023-08-31T18:37:55.990171 | 2021-10-11T03:36:46 | 2021-10-11T03:36:46 | 406,099,568 | 0 | 0 | null | 2021-09-25T01:07:29 | 2021-09-13T19:17:00 | Python | UTF-8 | Python | false | false | 1,638 | py | # -*- coding: utf-8 -*-
from odoo import models, fields, api
class SaleWizard(models.TransientModel):
_name = 'academy.sale.wizard'
_description = 'Wizard: Rapida orden de venta para estudiantes de session'
def _default_session(self):
return self.env['academy.session'].browse(self._... | [
"sebastiancoll25@gmail.com"
] | sebastiancoll25@gmail.com |
d9acf31c600bcd66b25ae0ae1a318d9535f57025 | 73a96d5e28352fd9d25a89c1c3ac509b9367ee49 | /ExerciciosListas/Exe19.py | d2850a6541184650878b5213a38733c598ca54a4 | [] | no_license | Elton86/ExerciciosPython | 5023d32022338c05b759714ce691a822a1a90f5d | c8166c4f53462a0da744193892cdacc7a3b6b8b5 | refs/heads/main | 2023-05-26T19:14:39.836238 | 2021-06-17T01:25:22 | 2021-06-17T01:25:22 | 340,248,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,885 | py | """ma empresa de pesquisas precisa tabular os resultados da seguinte enquete feita a um grande quantidade de
organizações:
"Qual o melhor Sistema Operacional para uso em servidores?"
As possíveis respostas são:
1- Windows Server
2- Unix
3- Linux
4- Netware
5- Mac OS
6- Outro
Você foi contratado para desenvolver um p... | [
"elton86@gmail.com"
] | elton86@gmail.com |
502b02d1c61d4e86509630f79c837a98d579e3d2 | 39d3a01f30dd24be11f284a6fd25aae3c3ac56e5 | /pixeldefend/models/pixelcnn_cifar.py | 2bd1d74b9beec39dd65d303e28781ab2cafd0007 | [] | no_license | anishathalye/obfuscated-gradients | a94470ad4ca7a9f16f2856f7fbab558e2e4c891e | 9ef8b37ae985183f1cd37a40d126af7ab6c8d057 | refs/heads/master | 2023-06-21T19:37:43.648545 | 2023-06-10T14:11:29 | 2023-06-10T14:11:29 | 119,627,984 | 917 | 187 | null | 2018-11-04T23:15:52 | 2018-01-31T03:13:46 | Jupyter Notebook | UTF-8 | Python | false | false | 2,166 | py | import models.pixel_cnn_pp.nn as nn
from models.pixel_cnn_pp.model import model_spec
from utils import optimistic_restore
import tensorflow as tf
import numpy as np
import os
_PIXELCNN_CHECKPOINT_NAME = 'params_cifar.ckpt'
DATA_DIR = os.path.join(
os.path.dirname(__file__),
os.pardir,
'data'
)
_obs_shape ... | [
"nicholas@carlini.com"
] | nicholas@carlini.com |
7f955293e5e91bed3c822740e591c956bf441510 | 6f36b511e8e74b82e113ce137f7bec42797e003c | /catalog_editor_main.py | 43d3d1497ee5b82c6232625679fefe1fb5c26b7a | [
"MIT"
] | permissive | FIREdog5/Catalog-Editor | b15d28aae6ded8dc72f331da525ea4928d0894ab | 49dab360e7284ac318db5d25dc2b2c1c97fa9a58 | refs/heads/main | 2023-02-10T06:52:59.972641 | 2021-01-09T09:05:16 | 2021-01-09T09:05:16 | 328,013,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | import tkinter as tk
import first_pass as fp
import html_compiler as hc
import data_manager as dm
import pre_edit_pass as pep
def main(old_window=None, return_function=lambda *_: None):
if old_window:
old_window.destroy()
window = tk.Tk()
screen_width = window.winfo_screenwidth()
screen_height ... | [
"betterthanbossfiredog5@gmail.com"
] | betterthanbossfiredog5@gmail.com |
06d0c2730cb97528517b6138758f05097f3d260f | 3d5f5403d9ac344abdd3fa71632514d2c4343179 | /unsplash_python_script.py | 7d03ed23440094aa278b42a7aa6a75a03f3b8c30 | [] | no_license | psonH/Python-Selenium-Web-Automation | 2d29d5e840d7c8456b63060614af4d572eddb803 | 625e62696f76e6a43a6cedf5b71c6fc6a9a30eb7 | refs/heads/master | 2022-11-16T03:41:28.444079 | 2020-07-11T09:20:02 | 2020-07-11T09:20:02 | 278,822,580 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
# from selenium.webdriver.common.by import By
# from selenium.webdriver.support.ui import WebDriverWait
# from selenium.webdriver.support import expected_conditions as EC
import time
import urllib.request
# path to the chrome web driver
PATH... | [
"p47.hajela@gmail.com"
] | p47.hajela@gmail.com |
179469489a69ca59e2930a07ad28fb243302e0f3 | 12c1b33e27d841bb25899d6601f1de75b522d88d | /python/udacity/draw_turtles.py | 6d504799dbe85482a068035ecfff4a600108ee55 | [] | no_license | conflabermits/Scripts | ec27456b5b26ad7b1edaf30686addff2cacc6619 | c91ef0594dda1228a523fcaccb4af3313d370718 | refs/heads/main | 2023-07-06T21:41:12.033118 | 2023-06-25T19:24:54 | 2023-06-25T19:24:54 | 66,151,253 | 4 | 0 | null | 2023-09-10T19:56:17 | 2016-08-20T14:35:34 | HTML | UTF-8 | Python | false | false | 893 | py | import turtle
def draw_square(a_turtle):
for i in range(0, 4):
a_turtle.forward(100)
a_turtle.right(90)
def draw_circle(a_turtle):
a_turtle.circle(100)
def draw_triangle(a_turtle):
for i in range(0, 3):
a_turtle.forward(100)
a_turtle.left(120)
def draw_turtles():
... | [
"christopher.dunaj@gmail.com"
] | christopher.dunaj@gmail.com |
222738c4f873a2f9f0c0cadf200ebad4fb8da0ce | 816ef0bc4abc1ebeba9fde7f857fa59f31c4b933 | /lab04/jsonparser_test.py | 98475d3a92bc43b662dc9523b6ff6e2623a343cb | [] | no_license | Gogomoe/SUSTech_CS323_works | cc7dbb97df8a85055dc23f1c0dc72c72bba47901 | 5a142c665be8c5cf5342f2e89d16aea6e6d756d1 | refs/heads/master | 2023-02-14T04:39:13.835332 | 2021-01-07T13:11:04 | 2021-01-07T13:11:04 | 293,798,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | #!/usr/bin/env python3
import pathlib
import re
import subprocess
DATA = pathlib.Path('data')
def jsonparser_output(json_file):
out = subprocess.check_output(['./jp.out', json_file])
return out.decode().strip()
def check_jsonchecker_fail_withlexical():
data = DATA/'jsonchecker'
for failjson in dat... | [
"gogo81745.moe@gmail.com"
] | gogo81745.moe@gmail.com |
d2028f57e889580dbad8b3af308f120a3fc7b02a | f9d919611a8db24de3e9729cb7efe513016708c2 | /Tiralabra/src_lagrange/energiat.py~ | 6a184d5f07ae0609ea2c2da14bb14d6aa76814b6 | [] | no_license | paapu88/TiraLabra | 6e4926b604fe860da4b0d11c1c59fea561c14c60 | 9be12c74d4261d43a2f9116d4d8e090e1bae18de | refs/heads/master | 2021-05-30T13:21:04.436866 | 2014-06-21T19:25:42 | 2014-06-21T19:25:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,069 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Tässä moduulissa lasketaan gridiin liittyviä energiatermejä:
Elektronien kineettinen energia T(n(r))
Vaihtokorrelaatioenergia E_xc
Elektronien Coulombin energia.
Atomiytimien aiheuttama potentiaali V_ext*n(r)
"""
from sys import exit
from laskentaa import tee_gauss_sei... | [
"markus.kaukonen@iki.fi"
] | markus.kaukonen@iki.fi | |
d21c3d5ac2ec534e248cf7b149b64ca6d5a7c7aa | 95062add19335123f4d3569644f37056310a54d5 | /admin_manage/urls.py | 6900cd054529d4cdb58b4cad6d856d61cfc08543 | [] | no_license | jamisonz87/merch-app | 653518474bdae6576ca25779fc7e4658e5eec114 | cc6967d92e51a3ce73904b6ea58366b7fd44b3b0 | refs/heads/master | 2022-11-05T21:20:01.041349 | 2020-06-26T20:32:09 | 2020-06-26T20:32:09 | 275,229,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | from django.urls import path
from . import views
urlpatterns = [
path('add_product/', views.add_product, name='add_product'),
path('', views.index, name='admin_index'),
path('view_order/<int:order_id>', views.view_order, name='view_order'),
] | [
"jamisonz87@gmail.com"
] | jamisonz87@gmail.com |
1dbeb3124b5820205735e94d1f113b90adcfa8f4 | 680d7da38e4af5df02c92e1509462ba135a3aa38 | /index/views.py | 2ede79e33a57bc23f202ee27a47a3cc08fe9bf27 | [] | no_license | yanjl/mydjango | 047fff986fde53dfe46bc858f95a1e92043e7910 | d5c199d8c7deec37081ecc7faa8bf17cfe446c56 | refs/heads/master | 2020-04-13T07:54:07.052125 | 2018-12-25T08:56:51 | 2018-12-25T08:56:51 | 163,065,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,383 | py | from django.contrib.auth.mixins import LoginRequiredMixin
from django.db.models import Avg, Count, Max, Min, Sum
from django.http import HttpResponse
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse
from django.views.generic import DeleteView, ListView, TemplateView
from... | [
"sinberyh@aliyun.com"
] | sinberyh@aliyun.com |
e3eb7c216955ffc40e650b1d631b5fe332b79e2f | ef875150adbd1b22864542f6038e8d30ca15380b | /venv/Lib/site-packages/wikidataintegrator/tests/tests.py | 95ae61b59be6ab1295c95fa178a12eb40ceaadeb | [] | no_license | JimmyYourHonor/extract_syn_idf | 52d452d0e04ab906d3a2b08d400658f083fdc16a | df05e83cca9312c8b08cfc6436011eeec864f078 | refs/heads/master | 2020-04-16T21:35:01.096776 | 2019-03-29T04:03:53 | 2019-03-29T04:03:53 | 165,930,787 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 8,278 | py | import unittest
import pprint
import copy
import requests
from wikidataintegrator import wdi_core, wdi_fastrun, wdi_login
from wikidataintegrator.wdi_core import WDBaseDataType, WDApiError
__author__ = 'Sebastian Burgstaller-Muehlbacher'
__license__ = 'AGPLv3'
class TestMediawikiApiCall(unittest.TestCase):
de... | [
"jfu.jf60@gmail.com"
] | jfu.jf60@gmail.com |
6b680b7c1510ab90715898f56a24b0345c4068df | 0953e96ffe4e29e863fc876a8058c1940a44fdd4 | /range.py | 7027c250497402ec52e235da21eb7a2c4b3f1c06 | [] | no_license | Harpal008/Python_Programs | 651c0adb98302056acf6d605ac424a941bdd24c8 | 6e13f89a78be266c180b86c67b5fb2c543e42615 | refs/heads/master | 2020-04-17T00:02:00.864875 | 2019-01-16T12:15:43 | 2019-01-16T12:15:43 | 166,034,788 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 21 18:04:54 2018
@author: harpal
"""
l=[1,2,3,4,5]
for num in l:
print (num)
for num in range(1,6,2):
print( )
x=range(1,6,2)
x2=list(x)
print(x2) | [
"noreply@github.com"
] | Harpal008.noreply@github.com |
2366d7935f4314c749785ebdab31ec3c1f338625 | 2d80296b4f13e3a5fb9380b89c626d418eb53a60 | /python/8_kyu/Simple_multiplication.py | 6108b15497b97099450c429569df0c4e551eb5e9 | [] | no_license | ivan3123708/codewars | 680484b32ac6347ebbcf311b5b98fc697a063927 | 73e99695a6e27c30baf17b8d4841462d702810a3 | refs/heads/master | 2020-03-19T08:32:05.863217 | 2018-10-28T00:17:34 | 2018-10-28T00:17:34 | 136,212,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | def simple_multiplication(number):
if number % 2 == 0:
return number * 8
else:
return number * 9 | [
"ivan3123708@gmail.com"
] | ivan3123708@gmail.com |
42835590fa2d772e8fd35ff631574e8c3dda8650 | 2f30cf20d58e2cde4037441e67213223c69a6998 | /lesson19_接口2/d02request.py | 34aa5e3f987860394f8ccb9da1afab99314bd07e | [] | no_license | zengcong1314/python1205 | b11db7de7d0ad1f8401b8b0c9b20024b4405ae6c | da800ed3374d1d43eb75485588ddb8c3a159bb41 | refs/heads/master | 2023-05-25T07:17:25.065004 | 2021-06-08T08:27:54 | 2021-06-08T08:27:54 | 318,685,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | """
第三方库
pip install requests
python 用来发送HTTP 请求
"""
import requests
#发送get 请求
url = "http://www.keyou.site:8000/projects/"
p = {"a":"b"}
resp = requests.get(url,params=p)
print(resp)
print(resp.status_code)
# 字符串
print(resp.text)
# 字典
print(resp.json())
# post请求
url = "http://www.keyou.site:8000/user/login/"
# 请求参数:... | [
"237886015@qq.com"
] | 237886015@qq.com |
ef12a61a3f9668366b02a4f68d57fc5cb87247f6 | f9d4eee81dda90e41ee755f333e0d787dab749db | /eth2/beacon/scripts/quickstart_state/generate_beacon_genesis.py | 2ce8f76b744662551c3a38e4b0081d708144e70a | [
"MIT"
] | permissive | Palem1988/trinity | f10f21119a7ea98a7fc9458e5ff05b1e4cf6a021 | 79c21f8ae90bc765a78cb8052af0e4271e4c25e1 | refs/heads/master | 2022-02-20T05:21:18.576796 | 2019-09-24T22:09:21 | 2019-09-24T22:40:24 | 210,869,348 | 0 | 1 | MIT | 2019-09-25T14:45:12 | 2019-09-25T14:45:04 | null | UTF-8 | Python | false | false | 1,982 | py | from pathlib import Path
import time
from eth2._utils.hash import hash_eth2
from eth2.beacon.genesis import initialize_beacon_state_from_eth1
from eth2.beacon.tools.builder.initializer import create_mock_deposits_and_root
from eth2.beacon.tools.fixtures.config_types import Minimal
from eth2.beacon.tools.fixtures.loadi... | [
"r.alex.stokes@gmail.com"
] | r.alex.stokes@gmail.com |
155c373da8447288c1aafebb642fba1578142292 | 221e648122feca6be8490ea1e149ea8d16b46e1b | /panorama_stitch.py | 9d994e5bb260c572781b7a82404c846278ad53de | [] | no_license | Hanuu/panorama | 2cc8cf92ad4037acbc14fe07d43144de3de4063a | a7af3343218ac824870509ab742e62a9da5923b7 | refs/heads/master | 2020-04-01T19:56:48.743362 | 2018-12-03T05:52:15 | 2018-12-03T05:52:15 | 153,579,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,246 | py | """
Panorama Stitching Class
Given two images, return a stitched image.
Two images could be rotated.
Design Doc: https://docs.google.com/document/d/1785FwZ11CizzumJ3CRqsoBdRwDlqTid2EWIUzbM2B2I/edit?usp=sharing
"""
import numpy as np
import imutils
import cv2
class PanoramaStitcher:
def __int__(self):
p... | [
"minjunkwakwak@gmail.com"
] | minjunkwakwak@gmail.com |
af4765dd6396d538544701205a413d2b3b2edca6 | 16adaa2980c6d72945721cf5b58cc44fd7e3cb9c | /conditions.py | 7c12d3ae0e533c6e51b6d425626b6260e0a16bd2 | [] | no_license | sathishtammalla/PythonLearning | d23a7c267ff605dc0762b2d45d9769e7a2f61645 | 4a1394b5e831bea378b13be34be3cc87505538f4 | refs/heads/master | 2020-05-02T23:36:15.230662 | 2019-04-05T08:24:45 | 2019-04-05T08:24:45 | 178,284,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | def conditions():
"""IF Condition Check Program"""
print('IF Conditions Check Program')
print('Enter a Number for X')
x = input()
print("Entered X Value :{0}".format(x))
print('Enter a Number for Y')
y = input()
print("Entered Y Value :{0}".format(y))
if x < y:
print('X is le... | [
"stammall@starbucks.com"
] | stammall@starbucks.com |
e42f783b5a1c733909130de9eb7ff7a225dfbaf1 | f1131c4079f437186cf92a75b06a472993bd67dd | /Superscalar-Processor/simulator.py | d25fd0ea90c5efadaae5f0a0086e7c764b865bda | [] | no_license | pradeep90/Processor-Simulator | c4fc5c92f3e29d66dc70e4897d210d32221d8295 | ecac52f69633136b72c85ddf41215b556e21cf9f | refs/heads/master | 2021-01-19T14:59:17.100469 | 2012-12-07T07:15:12 | 2012-12-07T07:15:12 | 6,086,352 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | from processor import Processor
import sys
def main():
try:
source_code_file_name = sys.argv[1]
except:
source_code_file_name = 'human-code.txt'
# source_code_file_name = 'human-code-2.txt'
code_file = file(source_code_file_name, 'r')
initial_values_file = file('./initial_value... | [
"gohanpra@gmail.com"
] | gohanpra@gmail.com |
3ea5bee3bd4871ba78ed230af082be4efae65c9f | d76224386c2b359d6d3228567cbb274fea8fcaab | /final_back/asgi.py | 3b0602bc765f04f8b1a90f1b18b5d63842de6062 | [] | no_license | SSAFY-5th-seungwoon/Moya_backend | 2a270525dc3d0d53ee4b42274696d19f84edce9d | ac8d7004dafef9a4f9030dbe3a5762661f3f06ac | refs/heads/master | 2023-05-22T20:45:07.230178 | 2021-06-16T07:44:05 | 2021-06-16T07:44:05 | 369,787,652 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for final_back 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.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"swhan9404@naver.com"
] | swhan9404@naver.com |
0f3aaea69808c239b235c44f472f9e05b0f6e1ab | 63cf686bf970d28c045719de2f0e7e9dae5bed15 | /Contains Duplicate .py | f7d07154cc28b4a5d52c30ce29ed8bc9695a4146 | [] | no_license | menard-noe/LeetCode | 6461bda4a076849cf69f2cd87999275f141cc483 | 4e9c50d256c84d1b830a7642b265619a0b69d542 | refs/heads/master | 2022-12-13T09:41:41.682555 | 2020-09-14T12:46:53 | 2020-09-14T12:46:53 | 282,481,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | import math
from typing import List
class Solution:
def containsDuplicate(self, nums: List[int]) -> bool:
dico = dict()
for num in nums:
if num in dico:
return True
else:
dico[num] = 0
return False
if __name__ == "__main__":
# e... | [
"noe.menard4@gmail.com"
] | noe.menard4@gmail.com |
0daffa52db933f8ae220251c9fef1d3d8ab76afb | 403ddbd5e1b59392991bf8ef3d8c20ead27e7e5f | /trader/language/chinese/constant.py | e79010c64ad91cfd0e3abd14cef2c66b5d034b15 | [] | no_license | guanzidashu/vnpylib | f2b44e08d82d6a24ed154535fc98b936eeb4d8d9 | 6ee29f993070360b4ceef02e04b277ff3c9a8f14 | refs/heads/master | 2020-03-18T19:34:09.935449 | 2018-06-09T16:47:49 | 2018-06-09T16:47:49 | 135,162,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,404 | py | # encoding: UTF-8
# 默认空值
EMPTY_STRING = ''
EMPTY_UNICODE = u''
EMPTY_INT = 0
EMPTY_FLOAT = 0.0
# 方向常量
DIRECTION_NONE = u'无方向'
DIRECTION_LONG = u'duo'
DIRECTION_SHORT = u'kong'
DIRECTION_UNKNOWN = u'未知'
DIRECTION_NET = u'净'
DIRECTION_SELL = u'卖出' # IB接口
DIRECTION_COVEREDSHORT = u'备兑空' # 证券期权
# 开平常量
OF... | [
"635518957@qq.com"
] | 635518957@qq.com |
123dd34179bbc5e5a5f6710a9269b70888902b80 | 485549f6ceedd40fb8d22b23403df011eb13d988 | /utils/import_csv.py | 8fe3facec6b4ad1564e34ee2a588621250f0049b | [
"MIT"
] | permissive | aasmune/RevNet | f1f6dbc4c20bd2baa02601f2609125061d30bcdd | f96edce499b2ba7d80c578577b06ede6572b9367 | refs/heads/master | 2020-04-21T06:57:57.883310 | 2019-03-20T11:29:42 | 2019-03-20T11:29:42 | 169,380,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | py | from numpy import genfromtxt, isnan, interp, zeros
import pandas
def read_csv_files(filenames):
data = [None for i in range(len(filenames))]
for i in range(len(filenames)):
t = pandas.read_csv(filenames[i], delimiter=',').values
data[i] = t[~isnan(t).any(axis=1)]
return data
def create_s... | [
"aasm.eek@gmail.com"
] | aasm.eek@gmail.com |
fb523bd643df5c81f1bc335ef9c4213751f44767 | 2d0fb78dde6029a971ab0310513e1d89811ce476 | /bilibili/bili/bili/spiders/getFansFromSpaceFans.py | 1b032d33ff6dfb86c63006426f967c3ee9b0d672 | [] | no_license | biubiudragon/WebCmdMining | a7fd03a54363c1e74aea0e0bf81ffbee85eacdee | bd7efc80070ff7d63c89df0e6579c7df1502c3a1 | refs/heads/master | 2021-05-30T23:53:20.900803 | 2016-03-10T00:39:59 | 2016-03-10T00:39:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,378 | py | # -*- coding: utf-8 -*-
__author__ = 'AllenCHM'
from scrapy.spider import BaseSpider
import json
import pymongo
from scrapy import Request
from datetime import datetime
import re
from bili.settings import MONGOHOST
class GetFansFromSpaceFansScrapy(BaseSpider):
name = u'getFansFromSpaceFans'
allowed_domains =... | [
"chengchuanming@hotmail.com"
] | chengchuanming@hotmail.com |
f4b310eeda479456a3e4f29b67d0d49ef4b40cdc | c951f19c5a1ffe1772772eab3e909d85164e671f | /{{cookiecutter.project_slug}}/code/custom_verification/verify_and_redirect/redirect.py | b2e0ef2ce9df63162f35426006044681310a97e3 | [] | no_license | barabanpan/aws-cognito-serverless | dd2d463368aeacbecda32d7f490d0962fe21f060 | 4b069684e016517528e5ccb1bb8048337291e28f | refs/heads/main | 2023-07-19T10:17:20.403070 | 2021-09-12T07:05:38 | 2021-09-12T07:05:38 | 312,616,616 | 1 | 0 | null | 2020-12-29T15:48:30 | 2020-11-13T15:43:03 | Python | UTF-8 | Python | false | false | 1,633 | py | import boto3
import logging
import os
from utils import redirect_to
cognito = boto3.client("cognito-idp")
CLIENT_ID = os.environ.get("COGNITO_CLIENT_ID")
USER_POOL_ID = os.environ.get("COGNITO_USER_POOL_ID")
REDIRECT_AFTER_VERIFICATION = os.environ.get("URL_FOR_REDIRECT_AFTER_COGNITO_VERIFICATION")
REDIRECT_WHEN_COD... | [
"nataliia.dyshko@jetsoftpro.com"
] | nataliia.dyshko@jetsoftpro.com |
b41947cab9b6e2b7a277cf5fc0c50563580e1d5b | ca2054e1cce228c0ff310797f4f4e884dcfd65f0 | /thunder/ndarray/__init__.py | 01a26e2e659e8548af33ed8857b96085e859f328 | [] | no_license | gzhcv/deeplearning_framework | 32a6e0c5d240e97fede129cb9795000b0169465d | 3b535e4d7ad06f0855fc29b8d236eb9f77e23f74 | refs/heads/master | 2023-06-16T23:19:07.457070 | 2021-07-15T11:40:57 | 2021-07-15T11:40:57 | 384,694,836 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from . import ndarry
from . import gpu_op
__all__ = ['ndarry', 'gpu_op']
| [
"guozhaohong@huawei.com"
] | guozhaohong@huawei.com |
7ff1948228505514fa2fc18802fadd69dee1abbb | 81cac5d646fc14e52b3941279d59fdd957b10f7e | /tests/components/homekit_controller/specific_devices/test_ecobee_occupancy.py | 293ecd07dd2394ceabecc9061354e93c5bf4a172 | [
"Apache-2.0"
] | permissive | arsaboo/home-assistant | 6b6617f296408a42874a67a71ad9bc6074acd000 | 554e51017e7b1b6949783d9684c4a0e8ca21e466 | refs/heads/dev | 2023-07-27T20:56:52.656891 | 2022-01-19T19:30:57 | 2022-01-19T19:30:57 | 207,046,472 | 2 | 0 | Apache-2.0 | 2019-09-08T01:35:16 | 2019-09-08T01:35:16 | null | UTF-8 | Python | false | false | 1,226 | py | """
Regression tests for Ecobee occupancy.
https://github.com/home-assistant/core/issues/31827
"""
from tests.components.homekit_controller.common import (
DeviceTestInfo,
EntityTestInfo,
assert_devices_and_entities_created,
setup_accessories_from_file,
setup_test_accessories,
)
async def test_e... | [
"noreply@github.com"
] | arsaboo.noreply@github.com |
6fba70adc9002e1c1d465e9e22bc0f20dd4e571d | 0100687bae959dff1b14199d3f901f82e4dae019 | /website/urls.py | d287c37bd62256e38e6c71c5cab4fbc2c7495fbb | [] | no_license | Kabzel55/Django_Blog | eb39f1ed8b28273b32ecdca084638f4590a98639 | d4d6599d0dbacf4002ec5655a6704d9f35da8513 | refs/heads/master | 2022-08-26T22:27:51.506612 | 2020-05-27T13:23:37 | 2020-05-27T13:23:37 | 267,325,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,381 | py | from django.contrib import admin
from django.urls import path, include
from users import views as user_views
from django.contrib.auth import views as auth_views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('admin/', admin.site.urls),
path('register/', user_vi... | [
"patryk.koryga@pollub.edu.pl"
] | patryk.koryga@pollub.edu.pl |
4011086557663f0dd2f3045fdc0b4dd03086183d | 56490255e417e65848b7774be49e9602363f238b | /pywinfuse/tools.py | fa88567eb928f7fb4de206fc6587f0932a8a771e | [
"MIT"
] | permissive | weijia/pywinfuse | a5668e567f46548d0e871c2cacd725b818bfce74 | 249196a70cbcc09b74288d4dc1fa04b25b7c6105 | refs/heads/master | 2022-02-04T23:19:27.320602 | 2022-01-30T15:21:17 | 2022-01-30T15:21:17 | 36,103,070 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | from ctypes import *
def setDwordByPoint(valueAddress, value):
'''
valueAddress[0] = value && 0xff
valueAddress[1] = (value >> 8) && 0xff
'''
i = 0
while i < 4:
memset(valueAddress+i, value&0xff, 1)
i += 1
value >>= 8
def setLongLongByPoint(valueAddress, value):
setDwordByPoint(valueAddres... | [
"wang.weijia@a5b76d48-45a9-11de-a65c-33beeba39556"
] | wang.weijia@a5b76d48-45a9-11de-a65c-33beeba39556 |
74b87ca9cb07bcf0b829fb9f8d1acca0b0fd7381 | 182dd5305aedeaa197f302c0d830ab85413cdd53 | /plugins/Filters/Convert2Gray/Convert2Gray.py | 68772b2605be2aa6796c95576bfe72f1a8208b5f | [
"MIT"
] | permissive | UmSenhorQualquer/workflow-editor | 016dbf47759b2572a811b80fc8bc79c88404c4ab | 6f836f99e155c2f503cf59adf4e8b8b574184e6d | refs/heads/master | 2021-01-24T18:58:13.224476 | 2017-07-20T10:00:10 | 2017-07-20T10:00:10 | 86,163,117 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | import core.utils.tools as tools, cv2
from core.modules.OTModulePlugin import OTModulePlugin
from core.modules.ModuleConnection import ModuleConnection
from datatypes.TypeComponentsVideoPipe import TypeComponentsVideoPipe
from datatypes.TypeColorVideoPipe import TypeColorVideoPipe
from datatypes.TypeColorVide... | [
"ricardo.ribeiro@neuro.fchampalimaud.org"
] | ricardo.ribeiro@neuro.fchampalimaud.org |
865969b8d3d2edcbf84ae4aacf778ed65aedfbbe | 54495b3d41ff1a08ce6d786c8c0304b9850dffeb | /Iterator.py | bfde76530fc5a732c3a03668c1ed9326f76e3f3f | [] | no_license | Sakshi1504/Python-OOPS | d2324b923adcfed1179a709b9f9c21695e82753e | 9c8ffe900131319737f5f5ee3c4e74adeb3f351e | refs/heads/main | 2023-03-11T19:53:05.142711 | 2021-02-28T03:35:00 | 2021-02-28T03:35:00 | 343,012,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | '''
num=[5,1,2,3]
print(num[2])
it = iter(num)
print(it.__next__())
print(it.__next__())
#iterator takes forward further values, and don't repeat the same value again
for i in it:
print(i)
'''
class TopTen:
def __init__(self):
self.num=1
def __iter__(self):
return... | [
"noreply@github.com"
] | Sakshi1504.noreply@github.com |
f084f2434510565b6756fe2e22ff2eee7bd9ae65 | 52272ef3de9036a1b23b35047ceb90a2027df1f3 | /selenium_doc/TEST/test1.py | 23254c71b70f3e7247cd31f2a4df400aa90ba122 | [] | no_license | luokeke/selenium_python | 9f2883cc158e473902e0c4bbf9fca20ecb61bfda | 3cc05034afd0bc0930921812393bd572db868fb3 | refs/heads/master | 2020-08-25T02:51:16.064938 | 2020-04-20T10:03:52 | 2020-04-20T10:03:52 | 216,950,778 | 3 | 1 | null | 2019-10-23T03:39:52 | 2019-10-23T02:29:06 | null | UTF-8 | Python | false | false | 849 | py | #!/usr/bin/env python
#-*- coding:utf8 -*-
#@author: 刘慧玲 2018/5/22 19:15
from selenium import webdriver
from time import sleep
from login01 import *
'''
脚本作用 :服务器ssp功能
'''
#批量删除存储空间
driver = webdriver.Firefox()
driver.delete_all_cookies()
driver.maximize_window()
# 直接访问景安站存储空间链接,并登录。用户名密码可修改
Login().Ky_login(driver,"l... | [
"1326677806@qq.com"
] | 1326677806@qq.com |
1463b421ec5ef0507e7c270799171f92034fc335 | e090d298340aa0cb12fc0d2ca3874cf4c9d9c547 | /text-analysis-scripts/preprocess_split_data.py | aa465036a8cdf54938b7b47a8a4832cddbdd43ee | [] | no_license | mslovett21/crisis-computing | 1d00b7f665ff63b48359b4ced6e06e133b5996b3 | 33b296426df78cd9051934f0aa36c5537a969ba3 | refs/heads/master | 2023-07-29T13:23:33.536024 | 2021-09-16T04:22:58 | 2021-09-16T04:22:58 | 309,000,861 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,509 | py | import os
import pandas as pd
import numpy as np
from shutil import copy
import glob
import nltk
from nltk.corpus import stopwords
from itertools import chain
nltk.download('stopwords')
import re
#access data folders for csv
out_path = r'../data/tweets_csv'
INFORMATIVE_TWEETS = out_path + "/INFORMATIVE_TWEETS/"
NONIN... | [
"patrycja.krawczuk@gmail.com"
] | patrycja.krawczuk@gmail.com |
cc8600545b3e22e4cd60c9f8edcd14f0dad2ed45 | b8cb2d3dffdba0bec43352ae77fb81b7e4caf91d | /src/face_rec_flask.py | 16868f2d812c1b2b19d01d0f162eb09d733753ae | [] | no_license | thangnch/MiAI_FaceRecog_2 | f873b79a1353af3992ce3389f74d155918257f3a | cc0524adb708b4b2ed4b23f486f19431670efc59 | refs/heads/master | 2023-04-02T11:13:33.182950 | 2022-08-06T14:49:53 | 2022-08-06T14:49:53 | 207,716,157 | 10 | 20 | null | 2023-03-24T23:39:48 | 2019-09-11T03:35:56 | Python | UTF-8 | Python | false | false | 3,796 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from flask import Flask
from flask import render_template , request
from flask_cors import CORS, cross_origin
import tensorflow as tf
import argparse
import facenet
import os
import sys
import math
import pickl... | [
"noreply@github.com"
] | thangnch.noreply@github.com |
6991166ac2811bf5b5871d798c5766c22ed204be | 32cb0be487895629ad1184ea25e0076a43abba0a | /LifePictorial/top/api/rest/HotelRoomImgUploadRequest.py | ff545c17c529a9cad6b04e9031dcf6168e228996 | [] | no_license | poorevil/LifePictorial | 6814e447ec93ee6c4d5b0f1737335601899a6a56 | b3cac4aa7bb5166608f4c56e5564b33249f5abef | refs/heads/master | 2021-01-25T08:48:21.918663 | 2014-03-19T08:55:47 | 2014-03-19T08:55:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | '''
Created by auto_sdk on 2014-02-10 16:59:30
'''
from top.api.base import RestApi
class HotelRoomImgUploadRequest(RestApi):
def __init__(self,domain='gw.api.taobao.com',port=80):
RestApi.__init__(self,domain, port)
self.gid = None
self.pic = None
self.position = None
def getapiname(self):
ret... | [
"poorevil@gmail.com"
] | poorevil@gmail.com |
4dab74f654c68c3116d92d88b95a8cbe01d07417 | 6bc2f280299458357a590f18f40d61a784abb312 | /ColumnReinforcement/SingleTieMultipleRebars.py | 44ed628473a9568231f60431940589e8f5c9898f | [] | no_license | cadsimula-xin/FreeCAD-Reinforcement | a3a35f2817c0a2c5ec25608d44e29364bc4f7c1c | f9e5658b5a5a6943c3c2c10ba2b2bb2c745937a3 | refs/heads/master | 2021-03-14T12:16:14.481501 | 2020-03-12T07:55:36 | 2020-03-12T07:55:36 | 246,758,943 | 0 | 0 | null | 2020-03-12T06:21:15 | 2020-03-12T06:21:15 | null | UTF-8 | Python | false | false | 50,771 | py | # -*- coding: utf-8 -*-
# ***************************************************************************
# * *
# * Copyright (c) 2019 - Suraj <dadralj18@gmail.com> *
# * ... | [
"dadralj18@gmail.com"
] | dadralj18@gmail.com |
a8a8399bfa809d696c5a030a9946a0d1162f8291 | ee05d8196d40e2e59885f639150cc318be189986 | /website.py | 1de4d31c0e24aed095685cd85fbbfc2aa86fe08b | [] | no_license | isakson/Endangered-Species-API | d83dd5b74cf5d76c65d0750f6e844861f6ed13ee | 68ae3f97a4b82d9a56cf0cdfe7eda23c847d8a9c | refs/heads/master | 2020-03-24T22:24:17.246659 | 2018-08-01T00:24:39 | 2018-08-01T00:24:39 | 143,083,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | #!/usr/bin/env python3
'''
website.py
'''
import sys
import flask
app = flask.Flask(__name__, static_folder='static', template_folder='templates')
@app.route('/')
def get_main_page():
''' This is the only route intended for human users '''
global api_port
return flask.render_template('index.html', ap... | [
"saksoni@carleton.edu"
] | saksoni@carleton.edu |
47794b95a5259461f6546bb731ff6ad706f6ddc8 | 1ee4b9f9cbe6c55e88b055e0200d4c9704b125cf | /server.py | 282782f87eadfc5a8cf25ef0d7f1ff93f8c67655 | [] | no_license | VagishM6/web_server_system | 2d339dc937166903a736fef202fdf97dac347f4b | f6be5146576082d7c1146b9a80ecdea0534d414b | refs/heads/main | 2023-08-01T20:13:29.453543 | 2021-09-10T16:32:24 | 2021-09-10T16:32:24 | 402,270,172 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | from flask import Flask, render_template, url_for, request, redirect
import csv
app = Flask(__name__)
@app.route('/')
def my_home():
return render_template('index.html')
@app.route('/<string:page_name>')
def html_page(page_name):
return render_template(page_name)
# write the data to csv file
def write_to_c... | [
"iamvagish6@gmail.com"
] | iamvagish6@gmail.com |
03c09f5406d6286376fef2f47a651851ed002f74 | 7d780e632edbd73b9df391394fc1b365851108af | /app/worker/base_worker/trainer.py | e1144e6c49f789c469161dfbb68c5808fca8fe71 | [] | no_license | rompear/attention_rl | 1bcaf998a69e81e0947bc3b3e7f00e808d5647d0 | d45c04380a25587870c550742a9694de351c7a8f | refs/heads/master | 2020-07-31T11:47:11.451104 | 2019-11-19T13:07:07 | 2019-11-19T13:07:07 | 210,594,294 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,119 | py | import torch
import gym
import app.util.wrapers_atari.atari_wrappers as Atari_Wrappers
import numpy as np
from app.config.config_factory import ConfigFactory
from app.util.logger.logger import Logger
from typing import Dict, Any, Tuple, List, Union
from app.util.wrapers_atari.atari_wrappers import LazyFrames
class Tr... | [
"romeogoosens94@gmail.com"
] | romeogoosens94@gmail.com |
99f94f0fc3ee9a38ec3c34db968e6e99a9ea7e86 | f47fe8a7d8cd87b3bfa2e172b4a9fc93e3a4abc2 | /2016/AST2/Bili/letnji/ponovo/konacno1.py | 7482940ccb3f15b8866efb9be0b7760bf88d483d | [] | no_license | ispastlibrary/Titan | a4a7e4bb56544d28b884a336db488488e81402e0 | f60e5c6dc43876415b36ad76ab0322a1f709b14d | refs/heads/master | 2021-01-17T19:23:32.839966 | 2016-06-03T13:47:44 | 2016-06-03T13:47:44 | 60,350,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,475 | py | from scipy.special import wofz
import numpy as np
import matplotlib.pyplot as plt
import math
from scipy import interpolate
e=1.60217657e-19 #elementarno naelektrisanje [C]
eV=1.60217657e-19 #eV u J
AU=149597871000 #Astronomska jedinica [m]
Na=6.02*1e+23 #Avogadrov broj
M=23*1e-3 #molarna masa Na [kg/mol]
m... | [
"ispast.library@gmail.com"
] | ispast.library@gmail.com |
51fa600b4dc27c99a0e12ee0492e363f5ac329ce | e3f427476df64d80e284ba234788fda12abc7876 | /Remove Duplicates from Sorted Array [ 96.27 %].py | f7d669679625e3d08a19fb28c8765d4c58e80ccf | [] | no_license | ankitrana1256/LeetcodeSolutions | 217c525894974caa1794aba64bd322374a2b1943 | 3c7256a6bead3fb345ca8ab45bf0603e36ee523d | refs/heads/master | 2023-08-27T05:10:28.433072 | 2021-11-04T06:56:09 | 2021-11-04T06:56:09 | 397,987,067 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | class Solution:
def removeDuplicates(nums) -> int:
new_list = list(set(nums))
nums.clear()
nums.extend(new_list)
nums.sort()
return len(nums)
nums = [1,1,2]
k = Solution.removeDuplicates(nums)
print(k, nums) | [
"76605774+ankitrana1256@users.noreply.github.com"
] | 76605774+ankitrana1256@users.noreply.github.com |
ae6057dbb0fae441881aef45ecbbe8e1312170af | 9673686edc2ffefdb076fa2b688fdf3364a342dc | /BOJ_4673.py | 91cbf1013a075e210ae201718daac3dc43a4c3c9 | [] | no_license | D7DonKIM7E/Python | f23ded6b3353bb5f675c1dfbaee554a58894fa53 | b40d14f342f40819a4fbabb336248bfa26ad527f | refs/heads/main | 2023-04-22T20:29:36.208879 | 2021-05-09T09:49:56 | 2021-05-09T09:49:56 | 349,476,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | originalNumber = set(range(1,10001))
generatorEx = set()
for n in range(1,10001) :
for i in str(n):
n += int(i)
generatorEx.add(n)
selfNumber = sorted(originalNumber - generatorEx)
for n in selfNumber:
print(n)
| [
"puppy031894@gmail.com"
] | puppy031894@gmail.com |
55092738abbf74b5764225191343917f20bb273f | b9c2d9bc099ebae0b9e7b1e9c538701ba41a235e | /experiments/tiered-ImageNet_DeepEMD/FRN/ResNet-12_pretrain/train.py | e4dbf15991344986fd6192a0f8d8ae0c08891c2b | [
"MIT"
] | permissive | Jf-Chen/FRN-main | 9e3eeba4ec23e450f05f37e69db766ec5ce7f805 | 5b57b9e0d7368058a8e3ba41a53c460b54ab9b91 | refs/heads/main | 2023-08-30T12:29:03.178309 | 2021-10-26T08:25:38 | 2021-10-26T08:25:38 | 419,918,858 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | import os
import sys
import torch
import yaml
from functools import partial
sys.path.append('../../../../')
from trainers import trainer, frn_train
from datasets import dataloaders
from models.FRN import FRN
args = trainer.train_parser()
with open('../../../../config.yml', 'r') as f:
temp = yaml.safe_load(f)
data... | [
"485133380@qq.com"
] | 485133380@qq.com |
774d7f3f9294171b6783ee1dfd78785c51cde38f | e531605ed73a42af958143e2f80f4f721d2ac810 | /tf2cv.py | 332a9a325e5a55bd736ac0e36f6f290439889616 | [
"MIT"
] | permissive | markgordon/keras-yolo3 | 2fadf44c872cc911afeea710d89830f7b05b39fc | 53fb083523d1c728b3a5bbf4b5801fb2bfe842fa | refs/heads/master | 2020-12-15T02:46:53.808418 | 2020-02-13T22:44:59 | 2020-02-13T22:44:59 | 234,970,107 | 0 | 0 | MIT | 2020-01-19T21:23:09 | 2020-01-19T21:23:08 | null | UTF-8 | Python | false | false | 947 | py | #! /usr/bin/env python
import tensorflow as tf
from numpy import loadtxt
from tensorflow.keras.models import load_model
import argparse
import configparser
import io
import os
from collections import defaultdict
import tensorflow_model_optimization as tmot
parser = argparse.ArgumentParser(description='Darknet To Keras... | [
"x@y.z"
] | x@y.z |
780002a82af4cd9867b9c666fdee43af9b33a52a | 2a12bedd69dbc4632b321dd40037df36b5e7bc76 | /hospital/migrations/0009_auto_20201122_0139.py | 7751eb005dc78242e9d1db918efeddc5efc96363 | [] | no_license | mbharti321/covidms | 1a70392a2ad02b5cd08592566b082ca76efdabda | 3e1e2ec4fc997b88bcea184ffde69a74e1f32692 | refs/heads/main | 2023-01-21T01:04:42.181821 | 2020-11-22T01:45:16 | 2020-11-22T01:45:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | # Generated by Django 3.1.3 on 2020-11-21 20:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('hospital', '0008_patient_severity'),
]
operations = [
migrations.AddField(
model_name='patient',
name='recovery_date... | [
"ericmiranda7@gmail.com"
] | ericmiranda7@gmail.com |
728b4497309cb53507d8324b36ea8bd2d0693130 | aaa07613c41fed96fb6d7fe5dc292975e17fb107 | /isovar/genetic_code.py | c703b7f00116baad44d36508c1c4167141a87eb6 | [
"Apache-2.0"
] | permissive | openvax/isovar | 2fa89f88525e72d94b974d5a20f038e3bdc15bf4 | e43e2574dc783a5dfc65b055f977bd0f11df015b | refs/heads/master | 2023-08-18T20:14:39.338144 | 2023-08-01T17:56:23 | 2023-08-01T17:56:23 | 51,102,454 | 17 | 10 | Apache-2.0 | 2020-08-19T18:48:54 | 2016-02-04T20:14:48 | Python | UTF-8 | Python | false | false | 8,454 | py | # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under th... | [
"alex.rubinsteyn@gmail.com"
] | alex.rubinsteyn@gmail.com |
1693ec93727b0777d4566244afdac149272f172e | 471c56fc617994cb22dd1463d8ff413fdcf5aaa9 | /24.py | d2ea7e2d356ecb0e57ef91624dfbdc000305db3f | [] | no_license | blanchg/aoc202 | e112597a1b4538096fa84c24293641465aa4115d | e14c6d16879b83178a585df0babd9be172cf2556 | refs/heads/main | 2023-02-05T11:57:56.953209 | 2020-12-27T13:09:39 | 2020-12-27T13:09:39 | 319,165,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,096 | py | from hex import Hex, Layout, Point, hex_add, hex_direction, hex_distance, hex_neighbor, hex_scale, layout_pointy, polygon_corners
import time
from collections import deque, defaultdict
ms = time.time() * 1000
class HexValue:
def __init__(self, q, r=None, s=None) -> None:
if isinstance(q, str):
... | [
"glen.blanchard@adgile.media"
] | glen.blanchard@adgile.media |
2245cd251ad202e770f21c9460b99be910f1aa89 | ba34c60da52d847a7a6b6030db5afe1fb3e4c432 | /python/tornado/com.py | d43302ac834c933b301f4e8ad9ecb705172bb17a | [] | no_license | yurnerola/Script | 533eb3bca45b69498e6e6a5e5c07ea37fcef5df9 | 6d887fddf44098df72f7d581d82f13375d2720b9 | refs/heads/master | 2016-09-05T17:08:35.239295 | 2014-05-27T02:46:43 | 2014-05-27T02:46:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 969 | py | import re;
def usage():
return '''
Usage:<br/>
logger [options]<br/>
Options:<br/>
-h Print this usage.<br/>
-i <hallid><br/>
Example:<br/>
logger -i 447283
'''
if __name__=="__main__":
m=re.match(r'(\w+) (\w+)(?P<sign>.*)','hello world!')
print "m.string:",m.string
p... | [
"yurnerola@gmail.com"
] | yurnerola@gmail.com |
3af61ccc05ac107e2d8dc13ce31678bf1379ca5c | 894f35e683119469b85768bcd7fe95658fd3d900 | /1-Python101/variables/mutable_and_unmmutable.py | cc87976987ce4a5cc199c7605bc90c3556831af9 | [] | no_license | sltm-14/Python_Course | 8af91b75563e3b0129d225e51b18f39567547491 | 58f8e78902e78abc13367274bb224de56fb5cb0c | refs/heads/master | 2020-12-21T21:23:58.254837 | 2020-11-19T18:03:09 | 2020-11-19T18:03:09 | 236,566,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | """ -------------------------------------------------------------------------------------------------------------------------------------
UNMMUTABLE
In python integers are unmmutable, that means that the value will be allocated in a different space of memory everythime it changes,
and X will reference this new memory ... | [
"ie693242@iteso.mx"
] | ie693242@iteso.mx |
43d061b4c4472d4324336ec30c70f872f8e872b6 | ce4d8e005d68a48d091f28351729d8f5e902de2e | /lib/PageNotFoundException.py | ed919f82b36320ab17ecee78dfaddc24f617ee6e | [] | no_license | alexgf/document-similarity | cc1c0e80a1383dda897b5e1b75e9e366754dd8c7 | c4674d6af792e9b2e4efcad500dcacebbbad47de | refs/heads/main | 2023-08-25T02:31:37.260524 | 2021-09-16T15:55:21 | 2021-09-16T15:55:21 | 406,755,812 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | class PageNotFoundException(Exception):
""" Exception raised when URL is not found
Attributes:
url - url not possible to be loaded
"""
def __init__(self, url):
self.url = url
self.message = f'Enable to load {self.url}' | [
"agferreira.rj@gmail.com"
] | agferreira.rj@gmail.com |
f3bf4efd08ac73f061fd67e8806df8cc2163f5d6 | 0c9bc1db20e8f88a366839c32c0662a681d80379 | /src/skymusic/renderers/instrument_renderers/instrument_renderer.py | 98edca3561c549dbe0cd793bd09e395b9ae3094d | [
"MIT"
] | permissive | TrendingTechnology/sky-python-music-sheet-maker | d1074399b2d92059ea64c6c84871655cfc9cc270 | d749c7163c01686350cf77a9740c814f763140cb | refs/heads/master | 2023-05-19T17:40:39.751401 | 2021-06-13T01:25:30 | 2021-06-13T01:25:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from skymusic import Lang
from skymusic.instruments import Voice
class InstrumentRenderer():
def __init__(self, locale=None):
if locale is None:
self.locale = Lang.guess_locale()
print(f"**ERROR: Song self.maker has no locale. Reverting to: {self.locale}")
else:
... | [
"jmmelko@gmail.com"
] | jmmelko@gmail.com |
4a08d92165fcd2b39439dfe0582d81ab8427ed10 | 9464f910f81cc5363c76f1b9e4a9290e89115812 | /Problems/Lucky ticket/task.py | 4e6912390a2dc3e0225543c6f2687614a0d94972 | [] | no_license | sanqit/simply_chatty_bot | 8bfb4052e2a4dbcac6cd782f0b2fedaea69ca52f | 3ed5de7503fe8994d9e99313cb627fb0d4bf8621 | refs/heads/master | 2022-11-11T06:19:50.713198 | 2020-07-04T20:56:40 | 2020-07-04T20:56:40 | 277,183,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | # Save the input in this variable
ticket = int(input())
# Add up the digits for each half
first = ticket % 10
ticket //= 10
second = ticket % 10
ticket //= 10
third = ticket % 10
ticket //= 10
half1 = first + second + third
first = ticket % 10
ticket //= 10
second = ticket % 10
ticket //= 10
third = ticket % 10
hal... | [
"admin@sanqit.ru"
] | admin@sanqit.ru |
803c19c6fe0f39db11b5ed2b0443c09df5ef0e85 | 48ca34f5666e8ce7e7777acf599a302317ad907d | /2-vervolg datatypes/taak02 -dicts/antwoorden.py | 2411aa77fbe56f3c915c39f641b704cd5688004a | [] | no_license | DaantjeDaantje/Python-Basic | 8645121327d1ae8e891ec193add4642d5f86b813 | f09c12fac98767e927607b4a0bfbef08ef2a14b3 | refs/heads/master | 2023-02-25T11:04:46.228327 | 2021-02-02T12:40:04 | 2021-02-02T12:40:04 | 293,811,687 | 0 | 0 | null | 2020-09-08T13:01:04 | 2020-09-08T13:01:04 | null | UTF-8 | Python | false | false | 538 | py | #%%
Provinciehoofdsteden = dict([
('Noord_Holland' , 'Amsterdam'),
('Zuid_Holland', 'Den_Haag'),
('Utrecht', 'Utrecht'),
])
type(Provinciehoofdsteden)
print(Provinciehoofdsteden)
Provinciehoofdsteden['Zeeland'] = 'Middelburg'
Provinciehoofdsteden['Limburg'] = 'Maastricht'
Provinciehoofdsteden['Gelderland'] = 'ert'
pri... | [
"danielleroelofsma@gmail.com"
] | danielleroelofsma@gmail.com |
3058f9b477b8a173f082bf87d9701e0d5998c875 | ce0ed63440993396190ddd6878880ab3652bc657 | /comments/urls.py | c50b75c7a0d73d6f2e736b0e9fc39490142a7024 | [] | no_license | daduoduo123/project1 | 762b208c27cde71c44c8c95a0422c9de08f4f794 | b6d25183b7d703d9bd4cc6a051b22ed6e1f48411 | refs/heads/master | 2021-06-20T21:21:24.063288 | 2019-06-30T03:48:06 | 2019-06-30T03:48:06 | 194,406,916 | 0 | 0 | null | 2021-06-10T21:39:30 | 2019-06-29T13:08:32 | CSS | UTF-8 | Python | false | false | 195 | py | from django.conf.urls import url
from .import views
app_name='comments'
urlpatterns=[
url(r'^comments/post/(?P<post_pk>[0-9]+)/$', views.post_comment, name='post_comment'), # 文章评论
] | [
"785216423@qq.com"
] | 785216423@qq.com |
553c7caf000c233ba51244d4df4ff97ba86e93c4 | 5201bb9ea835f8cce502690d25b67868000140ff | /Desafios/Aula 020/ex098.py | f4765fdfddd25bde19cddc292869ee4887217eb6 | [] | no_license | vitorsemidio-dev/curso-python-guanabara | 4eccb05f17fc4cf84361eb499ab0113bf25901f7 | fcd656abb0faf7a36ff70e2544c4cbbd12db3a8a | refs/heads/master | 2021-01-05T12:32:02.619140 | 2020-02-17T05:10:58 | 2020-02-17T05:10:58 | 241,024,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 782 | py | from time import sleep
from random import randint
pausa = 0.5
def imprime(inicio, fim, passo):
ultimo = 1
if not passo:
passo = 1
if inicio > fim:
passo = -abs(passo)
ultimo = -1
for i in range(inicio, fim+ultimo, passo):
print(f"{i}", end=" ")
s... | [
"vitorsemidio.96@gmail.com"
] | vitorsemidio.96@gmail.com |
6680de51002ea138c0edcb346732ab17cab16b1a | efc7433020b404f19bd46372000032797d361a0c | /apps/account/enums.py | 9164b76980a275512b305acbeea9dbd65b5ada36 | [] | no_license | dimitrisamp/joinflyline | 2819571c867434ec7b7e859a21cd278bb2bde501 | dff0ab38244e6e2876443995fe99ad9959fc3db4 | refs/heads/develop | 2022-12-21T13:11:19.364128 | 2020-02-14T13:37:30 | 2020-02-14T13:37:30 | 242,969,405 | 0 | 0 | null | 2022-12-12T03:15:37 | 2020-02-25T10:12:46 | Vue | UTF-8 | Python | false | false | 226 | py | from django_enumfield import enum
class CompanionInviteStatus(enum.Enum):
created = 0
email_sent = 1
active = 2
class DWGKind(enum.Enum):
unknown = -1
domestic = 0
international = 1
private = 2
| [
"bladeofdima@gmail.com"
] | bladeofdima@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.