blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
29a1f4a44405742798afc88e3574090ae6e3b5b8 | 572113e8eb47bbf62e7b423d2ff566a1cd8d38d1 | /media.py | 67c38e014aa38deee88172152dc2dbdd5a0de6df | [] | no_license | as2876/FSND-Python | 8109ad3510a85f4c0531b6870b4f03fec0f0bf8a | ed3d3759ebef94fa9e7695a9541a83c9e8ab1e7f | refs/heads/master | 2020-12-24T12:04:29.755301 | 2015-05-20T21:12:21 | 2015-05-20T21:12:21 | 35,929,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | import webbrowser
"""This class provides a way to store movie related information."""
class Movie(object):
VALID_RATINGS = ("G", "PG", "PG-13", "R")
def __init__(self,
movie_title,
poster_image,
trailer_youtube,
year_made,
... | [
"as2876@users.noreply.github.com"
] | as2876@users.noreply.github.com |
e155344e9148c6784b44e761fba607ede0c609b5 | b733b432933fa5976ac39cc78983f4d998b0df98 | /indentation.py | a3a32d6410259af5df745462c85a23ec9845ac6a | [
"MIT"
] | permissive | omar19-meet/meet2017y1lab4 | ea471ec94dd22d37be3d7b0974caa911a84e08a5 | d515753c079abc13f2210ab631df9f8909e92d01 | refs/heads/master | 2020-12-02T11:33:49.433401 | 2017-07-26T09:22:59 | 2017-07-26T09:22:59 | 96,651,523 | 0 | 0 | null | 2017-07-09T00:23:08 | 2017-07-09T00:23:07 | null | UTF-8 | Python | false | false | 102 | py | indentation=False
if indentation:
print('chocolate')
print('Indentations are cool!')
| [
"omar19@meet.mit.edu"
] | omar19@meet.mit.edu |
e46b64996e9e1aa34e14b2f5e6632b22d719aca6 | d118d8e12c01c3b2bd5e1c15976ce07e81549384 | /harry_py/control/if_else_7.py | fc29e529770f0b9fa85a9e55a0b67da247216ca7 | [] | no_license | Amankhalsa/Aman_code-html-php-python | c5fc812f79cfd875cc515fe541ab0ca26efc91cf | 657bfda2a6377c67f13c30daa3790b93a23dfa3d | refs/heads/main | 2023-08-30T20:55:37.345290 | 2021-07-06T09:15:37 | 2021-07-06T09:15:37 | 374,629,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # from typing import List
# var1=4
# var2=57
# var3=int(input("enter value:"))
# if var3>var2:
# print("grater")
# elif var3==var2:
# print("equal")
# else:
# print("lesser ")
# list1=[1,2,3,4,5]
# if 4 in list1:
# print("yes in the list")
# if 16 not in list1:
# print("Not in list ")
# my exce... | [
"amansin31@gmail.com"
] | amansin31@gmail.com |
fa8d20c0f8081fc2400161bdd40523aa3911fe0f | 8776c9fe065ba24c73fd92e85ea97cf8dcde699b | /init.py | f07135bc36fa01230a6c4d3f4dabf6fe273cb19b | [] | no_license | citin/midi-vc | 9712b1bf777ea68ecb25222c2416d8ac5b116ce4 | 53b9d19eaa6cda3f5c18b6327dbbe8f96b481ebb | refs/heads/master | 2020-03-11T00:11:16.128222 | 2018-04-15T22:49:02 | 2018-04-15T22:49:02 | 129,657,559 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 784 | py | import mido
# inport = mido.open_input('OpenInput', virtual=True)
outport = mido.open_output('AndresVirtualInstrument', virtual=True)
from mido import Message
msg1 = Message('note_on', note=60)
msg2 = Message('note_on', note=62)
from pynput import mouse
from time import sleep
from threading import Thread
def stop_... | [
"cito.bernardi@gmail.com"
] | cito.bernardi@gmail.com |
542a1e1eb80ff1947e2891b4c824b7641646699c | eb868f4cac20e84ddd9441e71b1ef3c4f25e11d4 | /lvtuso/scrape/items.py | d223218f59c1e3f0183df393d1de854f1ae6b1b7 | [] | no_license | nanfang/lvtuso | bdabf8c327094e54211323d0912ece19ff364a8d | e06aa4cef30bf59b5825b91e55c475548065b027 | refs/heads/master | 2022-08-22T01:05:55.670995 | 2012-08-03T14:59:40 | 2012-08-03T14:59:40 | 4,359,801 | 0 | 0 | null | 2022-07-29T22:27:49 | 2012-05-17T15:16:22 | Python | UTF-8 | Python | false | false | 373 | py | # Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/topics/items.html
from scrapy.item import Item, Field
class MafengwoPlace(Item):
id = Field()
name = Field()
hot = Field()
lat = Field()
lng = Field()
level = Field()
rating = Field()
tags... | [
"nanfang05@gmail.com"
] | nanfang05@gmail.com |
823410ba82329f61657526974a8cce78acd8b00b | ff548fbc1bdb0c024c4f1a4a603158a1ba7a6f2e | /GetVLAN.py | c3cfdc6e145a8353e3dc85154a1a210bc618bb83 | [] | no_license | cairey88/ArubaGetVLAN | b866272cc81505736381ed92f51768d0fcebcd42 | 0bca7fb998b51bdeb5d71e8132f09cd1d9febe79 | refs/heads/master | 2020-03-21T15:37:46.564883 | 2018-06-26T12:54:06 | 2018-06-26T12:54:06 | 138,723,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,127 | py | #import modules
import netmiko
import sys
import re
import time
from netmiko import ConnectHandler
from getpass import getpass
#Prompt user for device input
ipaddress = input("Enter switch IP: ")
username = input("Enter switch username: ")
password = getpass()
#Start Timer
count = 0
start = time.time()
#Connect to e... | [
"info@christopherairey.co.uk"
] | info@christopherairey.co.uk |
65bb1a1db096463741ab31584cd9c2ec1f9288d2 | bbeb21f24553cd808eb53248efdb0f7ef1daf973 | /ruminate/ruminate/migrations/0003_auto_20171202_1521.py | be4e795e16ee51f5894c4c6df21afbd1d124e86a | [] | no_license | yashsahota/YHacks | 5d7291358334568b5e1369e7b8e0796a105962de | 9581aacf9a8b737ae19ba00e5a74bf89c3ae753a | refs/heads/master | 2021-09-22T09:17:38.395400 | 2018-09-07T03:55:47 | 2018-09-07T03:55:47 | 112,816,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,558 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-12-02 15:21
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ruminate', '0002_auto_20171202_0938'),
]
operation... | [
"yashsahota@icloud.com"
] | yashsahota@icloud.com |
d7f7bb4028b5479b15a7462cc249c4f4351e69e0 | 4643aa963765d4326f90f6b8bb20045471588e5d | /iridium/plugins/nova/__init__.py | 31d21b017172b4c7cdec3f124d032a77f624b02b | [
"Apache-2.0"
] | permissive | subecho/Iridium | 552bc5ad2336f9be6e899fe8200bf343b4d6ed12 | b843ec3a4a61adbfccc758a175977ac1cd53a869 | refs/heads/master | 2021-01-12T21:38:22.203185 | 2015-10-26T21:28:41 | 2015-10-26T21:28:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 378 | py | class NovaPlugin(type):
def __init__(cls, name, bases, what):
super().__init__(what)
if not hasattr(cls, 'registry'):
cls.registry = set()
else:
cls.registry.add(cls)
cls.registry -= set(bases)
def __iter__(cls):
"""
:param cls:
... | [
"tdunnon@gmail.com"
] | tdunnon@gmail.com |
41b88f035d338d2b876e73b428b2e84e99857bbf | 8927e0034bc061c19c1af16fadd94775c9b51e52 | /pyscrapy_exercise/biqvkan/biqvkan/spiders/biqv.py | 8f36cd0aa97be09e1b58e30be15f8980b1aedfb8 | [] | no_license | secure-zhang/learngit | ff3bba4f348020847d4532597e2c13c099e47f8f | a729fc4b99086438d5e1a74c47bf483361106314 | refs/heads/master | 2020-03-19T06:22:01.879726 | 2018-07-16T15:08:30 | 2018-07-16T15:08:30 | 136,013,125 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | # -*- coding: utf-8 -*-
import scrapy
class BiqvSpider(scrapy.Spider):
name = 'biqv'
allowed_domains = ['www.biqukan.com']
start_urls = ['http://www.biqukan.com/']
def parse(self, response):
pass
| [
"17635035787@163.com"
] | 17635035787@163.com |
5b10299c57fc53babedf9ab74d0eac4e956a4b22 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/recommend/ncf/src/callbacks.py | 317609a1d107a4377e1ea3f29175925f5f0339ed | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 1,564 | py | # Copyright 2020 Huawei Technologies Co., Ltd
#
# 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... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
4bc4453d2fe97b44145676ea5811d538a6d710a2 | 73eaa6b71f4ac8831b2e4249de042a33b364f2ba | /powonline/schema.py | 7fc1fa92cb3388e17b5ea99beddf1744adfad130 | [
"MIT"
] | permissive | exhuma/powonline | d154e8b0bd14a1dbd2e394a23c158ebbfa3e64c8 | 87c211fa6cf9708bdf3fc4b736f3cca450c0a290 | refs/heads/develop | 2023-06-08T09:54:20.293139 | 2023-05-25T12:30:14 | 2023-05-25T12:30:14 | 92,521,594 | 0 | 1 | null | 2017-06-27T16:24:54 | 2017-05-26T15:00:15 | Python | UTF-8 | Python | false | false | 2,881 | py | from dateutil.parser import parse
from marshmallow import Schema, fields # type: ignore
class FuzzyDate(fields.Field):
def _serialize(self, value, attr, obj):
"""
Convert a Python object into an outside-world object
"""
if not value:
return None
return value.is... | [
"michel@albert.lu"
] | michel@albert.lu |
b84391dccdd839dd39b4d668043ec5300016bb44 | 4be629b90704ba7bcb5ede04316ec522bbe84997 | /mylearn/migrations/0006_auto_20190403_1950.py | 6ba206480a3e403d2002704d633c2457206a21c3 | [] | no_license | hghgobi/mytest | 4fdf81427052c51fb566739a96606032de39a4a0 | 404b7ffd1a9c02167a15867505d0de6df912aee5 | refs/heads/master | 2022-12-08T07:50:26.821351 | 2021-04-22T00:36:09 | 2021-04-22T00:36:09 | 175,358,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | # Generated by Django 2.1.7 on 2019-04-03 19:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('mylearn', '0005_searchstudentid'),
]
operations = [
migrations.AddField(
model_name='classnotes',
name='readed_num',... | [
"569258059@qq.com"
] | 569258059@qq.com |
c54240d1402a38da9d0a57f039c2bee7420a4916 | b02c46e92103c12f1f82a5527ae15ffde866344f | /main.py | 8855c550e8efaeb86cbf83ec42687ecafb7f2df2 | [] | no_license | rama333/sunflower | a6f23efd4238ef7782b560229fc906231dbdc356 | 7e8d9dc501577afc070c696e2914e7fdff57c13c | refs/heads/master | 2023-09-03T05:34:57.551865 | 2021-11-13T13:22:41 | 2021-11-13T13:22:41 | 427,671,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | from flask import Flask, jsonify, request
from flask_cors import CORS
from os.path import join, dirname, realpath
from werkzeug.utils import secure_filename
import cv2
import numpy as np
import json
UPLOADS_PATH = join(dirname(realpath(__file__)), 'static\\img')
app = Flask(name)
CORS(app)
@app.route("/api/sunflower"... | [
"ramilramilev@MacBook-Ramil.local"
] | ramilramilev@MacBook-Ramil.local |
932164d56577805db3457dacf8de4b3a7435707b | aa3b3f54940855dd9c1329c46f821213aa646129 | /CodeguideSource/resources/Whoosh-2.4.1/tests/test_compound.py | 01ebcbfad214c3e9c1df338be02426b9fcc72c70 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | lingz/codeguide | b94c0e74e6654737ad31cf94c7df972dedd0fca1 | 3aff49fb2ddf82968500d6d73e4423b727187260 | refs/heads/master | 2020-04-23T02:46:28.844602 | 2013-05-15T18:42:15 | 2013-05-15T18:42:15 | 9,670,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,825 | py | from __future__ import with_statement
from nose.tools import assert_equal # @UnresolvedImport
from whoosh.compat import b
from whoosh.support.testing import TempStorage
from whoosh.filedb.compound import CompoundStorage
from whoosh.filedb.filestore import RamStorage
def _test_simple_compound(st):
alist = [1, 2... | [
"lz781@nyu.edu"
] | lz781@nyu.edu |
4df3ce38b7d5b1a02e730dbf153efabc86c57857 | 9378187c61a4dfc9802c17baee6173a2caa6c439 | /tests/test_util.py | 754f3b607e0734399c38d4e8520ef887b9e34f32 | [
"MIT"
] | permissive | nijibabulu/moduledev | 788edbc4dfbd3184afb9319ce496a4459a92adb7 | 2268a03ac3945c5d53ca994cefd600e14e82bc95 | refs/heads/master | 2021-07-05T00:57:37.947176 | 2020-02-24T21:00:52 | 2020-02-24T21:00:52 | 235,235,333 | 0 | 0 | null | 2021-04-20T19:21:30 | 2020-01-21T01:55:27 | Python | UTF-8 | Python | false | false | 900 | py | import os
import stat
import moduledev
def test_version_key():
assert moduledev.version_key("1.2.0") > moduledev.version_key("0.2.5")
assert moduledev.version_key("1.2.0b") > moduledev.version_key("1.2.0a")
assert moduledev.version_key("b") > moduledev.version_key("a")
def test_writeable_dir(tmpdir):
... | [
"robert.zimmermann@univie.ac.at"
] | robert.zimmermann@univie.ac.at |
fb8684b95ddd249500e3a7b77cbe546b8b011d1f | 10298aa755fe53029438d5bc3392e907020b18f7 | /crypt_utils.py | d7cb6d4408a115c78f28e71c6e6804ad5936a680 | [] | no_license | tiginamaria/crypto | 257127cb390b68ce4fd24d5eb24aba484d23e397 | 10847a2f88d34eddc9079bc8849af44089ecec25 | refs/heads/main | 2023-03-23T14:37:06.746570 | 2021-03-12T05:35:09 | 2021-03-12T05:35:09 | 330,205,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | def pad(text, d=8):
b = d - (len(text) % d)
return text + b * chr(0)
def unpad(text, d=8):
b = ord(text[-1])
return text[:-b]
def bits_to_int(bits) -> int:
return int(''.join([str(x) for x in bits]), 2)
def text_to_bits(text) -> []:
bits = []
for char in text:
bits += char_to_b... | [
"tiginamaria@gmail.com"
] | tiginamaria@gmail.com |
66f04a7b3a3c05bbcb0f85871b938de87a476a45 | 98dfb9a18db055e41a552d7426f712a642e0c3a6 | /lms/OLD MIGRATIONS/migrations/0001_initial.py | 6d8f66a166abeb529ffe099407e2992726a51356 | [] | no_license | anugeorge123/Leave_management | 98b93af4db4be8bdbcde517e6d50422d9f54c5cf | b0572eafaad2820139449c7a1efe0cbd6dea5236 | refs/heads/master | 2020-08-03T14:34:10.696026 | 2019-09-30T06:35:19 | 2019-09-30T06:35:19 | 211,787,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | # Generated by Django 2.2.2 on 2019-08-20 05:08
from django.db import migrations, models
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Leaveapply',
fields=[
... | [
"noreply@github.com"
] | anugeorge123.noreply@github.com |
820b6a7b49b777698bd24ae730a5fad1e0a30192 | e122eaee76d7350ab6b3f3876032c7af1797cbbb | /muni.py | fe41d926b59f1c41b39c81abe35b0a6fee419bf6 | [] | no_license | albertfilice/muni_python | ca0fdbef4b43df9c7142e25d83067f028d05774b | f12d426e7b936371624e62a6caac4135f8842868 | refs/heads/master | 2021-01-10T14:27:12.640639 | 2016-02-17T20:22:19 | 2016-02-17T20:22:19 | 51,403,474 | 0 | 0 | null | 2016-02-10T00:33:10 | 2016-02-09T22:02:34 | Python | UTF-8 | Python | false | false | 306,990 | py | # -*- coding: UTF-8
from subprocess import check_output
import platform
import sys
import argparse
import requests
import xml.etree.ElementTree as ET
# Set up the OS variable
if platform.system() == "Windows":
operating_system = "Windows"
elif platform.system() == "Darwin":
operating_system = "OSX"
elif platform.sy... | [
"filicealbert@gmail.com"
] | filicealbert@gmail.com |
b86fa88df6d9f0ccd2275ed3eab7031b8b77d765 | 2da6133f3cd5c5fc19355292d60253b8c0dbcd49 | /.history/antz/urls_20200404013549.py | f99dbc532bd60eebcd25820adca5ab2100be000b | [] | no_license | mirfarzam/python-advance-jadi-maktabkhooneh | b24f5c03ab88e3b12c166a439b925af92f50de49 | d9bcecae73fd992f1290c6fd76761683bb512825 | refs/heads/master | 2021-05-25T21:33:37.782734 | 2020-04-07T22:39:28 | 2020-04-07T22:39:28 | 253,927,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 106 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path()
] | [
"farzam.mirmoeini@gmail.com"
] | farzam.mirmoeini@gmail.com |
4e5e8085dec854165bb92503689eda01c69af4a0 | 2fbe97e689bc847ec950331266373ed1c674f6c3 | /login.py | 8a894a5dd4673e2011ef1a2b645afad97f98d8fc | [] | no_license | chinaylssly/mooc | ab6bb5f3d6ea6f1f896f5d47624918e684b93721 | fa0eeb3175c9b6123b71b5dc19aca64e03cc8b81 | refs/heads/master | 2020-04-05T20:31:21.336896 | 2018-11-12T09:02:58 | 2018-11-12T09:02:58 | 157,184,013 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | #_*_ coding:utf-8 _*_
'''
模拟登陆,获取cookies
'''
import time
from selenium import webdriver
def login():
'''selenium 模拟登陆'''
options = webdriver.ChromeOptions()
# 设置中文
options.add_argument('lang=zh_CN.UTF-8')
# 更换头部
options.add_argument('user-agent=Mozilla/5.0 (Windows; U; Windows NT 5.2) Gecko... | [
"chinaylssly@qq.com"
] | chinaylssly@qq.com |
e3bb984cdf1e77bd1898da0a32ef2d94e2b0e8a0 | 26d59b2d18a9edf8610ace52223155d7a4465865 | /problem 7.py | 075409ab001bce47fb46fdb32c3d7229433df012 | [] | no_license | Subham47/Python-learning-week1 | 4eb8cde7d3ef4ccc990d77efb57d5228f41a683e | 5bfb5d3890031a72a915b1ae76d0cb145901328b | refs/heads/master | 2023-06-01T19:33:51.647333 | 2021-06-15T05:09:58 | 2021-06-15T05:09:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | #%%
def problem1_7():
b1=input("Enter the length of one of the bases:")
b2=input("Enter the length of the other base:")
h=input("Enter the height:")
x1=float(b1)
x2=float(b2)
x3=float(h)
A=((x1+x2)/2)*x3
print("The area of a trapezoid with bases",x1,"and",x2,"and height",x3,"is"... | [
"subhamkumarsingh401@gmail.com"
] | subhamkumarsingh401@gmail.com |
7a86ac8e0a2dc73728feb986b20013fcaa807771 | 04a8f570d35d99058c1df97b9dbb843fb1843d13 | /beginner/2-1-1_部分和問題/ABC079_C.py | e18a871a8d232bc15248d3ae375f66e312fe8993 | [] | no_license | knakajima3027/Ant-Book | 61838cab20f4ff256040e645706ccaf93f9cc24f | 9abe5808cbed4c6bc28a53adb2e2818f440f3721 | refs/heads/master | 2020-04-19T18:09:42.116639 | 2020-01-31T09:38:40 | 2020-01-31T09:38:40 | 168,355,366 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | N = input()
for x in ('+', '-'):
for y in ('+', '-'):
for z in ('+', '-'):
res = int(N[0])
if x == '+':
res += int(N[1])
else:
res -= int(N[1])
if y == '+':
res += int(N[2])
... | [
"kamihate1012@gmail.com"
] | kamihate1012@gmail.com |
baa3b62b3f16878b48a79f5fc2289a3cfa64943a | dbe60b8d97f17cbdfb701219b135e8ce43fcb3ea | /Server.py | 2434e89ccbf50df5cb5b8c89a025bf71cc392c20 | [
"MIT"
] | permissive | JosephGarrone/PyServer | 77d18d65c2539a60027d4d861d48d3c1a6d40300 | 91dad964facf9586b00f940115b8e44038da9da5 | refs/heads/master | 2016-09-06T07:32:58.378267 | 2013-11-12T14:30:23 | 2013-11-12T14:30:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,954 | py | from Webservice import Webservice
from Console import Console
from Constants import Constants
import http.server
import time
import datetime
class Server:
def __init__(self):
self.webservice = Webservice
self.console = Console()
self.constants = Constants()
self.started = False
self.menu()
def menu(self... | [
"josephgarrone@gmail.com"
] | josephgarrone@gmail.com |
55e1d3b4fc357fcc1d48fe0fb4cea16976753281 | c2f0dbf82cb28670e83fd2f1da1a1741a59554c5 | /nonlinear/postprocess/plot_Lorentz_vpt_V_alpha.py | ea79253fafa527405f020906dae1a3638434b768 | [
"MIT"
] | permissive | ZdM87/higher-order-quantum-reservoir | 526b8bf352ca6e07b19b28133b8a6e1af67db2ae | 7fc75d03bb5ff2398d245ed7c5d7939fad00ef96 | refs/heads/master | 2023-08-12T08:18:50.762744 | 2021-10-07T01:44:48 | 2021-10-07T01:44:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,408 | py | import sys
import os
import glob
import argparse
import numpy as np
import matplotlib.pyplot as plt
import plot_utils as putils
import matplotlib as mpl
from pathlib import Path
import re
if __name__ == '__main__':
# Check for command line arguments
parser = argparse.ArgumentParser()
parser.add_argument('... | [
"k09tranhoan@gmail.com"
] | k09tranhoan@gmail.com |
4f21f0d3e489a4a1bc24aed15a998951ab07161d | 53ca9596602644f768b6b0f8cda4aa1ff656d12e | /bbt_bpm/config/desktop.py | ea41567b59e655c48259d54a6467166de2005dc9 | [
"MIT"
] | permissive | ARindictrans/BBT-I2E | 4f705c9fa8fcff63a66aee9dfd69de118aa4149f | fbdbb4cec70e364c3e991e49d650aba6e349dde6 | refs/heads/master | 2023-08-14T05:09:04.385819 | 2021-09-24T06:05:21 | 2021-09-24T06:05:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return [
{
"module_name": "Bbt Bpm",
"color": "grey",
"icon": "octicon octicon-file-directory",
"type": "module",
"label": _("Bbt Bpm")
}
]
| [
"ashishkumar.r@indictrans.in"
] | ashishkumar.r@indictrans.in |
58731b5632d5be48847b83dee3c1c833a98b3c1b | 0fb2853a6cbf60f0b94fcdaaa5e4adcb0f24b6d3 | /Assignment 2/dags/actionable_insights.py | 11d70fd94d24358e29657a5143f37fc456e4d53f | [] | no_license | Team4INFO6105/Team4 | 56c898b792e2b60a6c64a643840f5136cefafbac | 6ff861fbe573bb6cd0929341adef9f49b5f37b41 | refs/heads/master | 2020-05-16T05:18:57.436586 | 2019-04-27T00:58:09 | 2019-04-27T00:58:09 | 182,812,835 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,007 | py | #!/usr/bin/env python
# coding: utf-8
# In[11]:
# import libraries
import pandas as pd
import string
import collections
import nltk
from nltk.corpus import stopwords
from nltk.util import ngrams
import glob
from nltk.tokenize import word_tokenize
import csv
import os
import plotly.graph_objs as go
import plotly as p... | [
"noreply@github.com"
] | Team4INFO6105.noreply@github.com |
e4833a472cc0ff38f6a60f406c33c3fdacf5ec57 | 194bf37081df54b3a9b04ab0c4301d2186a26b6a | /Losses/LCCLoss.py | c5c9976af4a93c67668bd9987409e9af4f6dd12a | [] | no_license | Qidian213/NTIRE2021_Depth_Guided_Image_Relighting | 35d35d16d8e5fabd052455b0baab0bd21ed8741f | 09e2c92d3f473b5f8086c4cc63354499691036b4 | refs/heads/main | 2023-07-02T10:07:17.084843 | 2021-08-14T11:11:28 | 2021-08-14T11:11:28 | 347,814,644 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,444 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from .ColorFunction import *
class LCCLoss(nn.Module):
"""
local (over window) normalized cross correlation (square)
"""
def __init__(self, win=[9, 9], eps=1e-5):
super(LCCLoss, self).__init__()
self.win = win
... | [
"xhx1247786632@gmail.com"
] | xhx1247786632@gmail.com |
fd4c4dfb7df1f3df9c10d96a8399a4621af6f1e5 | 79da6fbbd5269d1f6ac25aae8000e2d716cdbcdf | /settings_local.py | 8c56b6a5ef479d6b3ffa533e8d398ae9d37b13dc | [] | no_license | rdrsh/logoclone | 617629cd2995c85f15751b05b0e7612e9fd60f40 | a8a455486d4d500e9bd20ba3fef2229b0650f6ff | refs/heads/master | 2021-01-10T05:03:47.517556 | 2016-02-10T14:33:02 | 2016-02-10T14:33:02 | 51,443,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | DATABASE_ENGINE = 'mysql'
DATABASE_NAME = 'logoclon'
DATABASE_USER = 'root'
DATABASE_PASSWORD = 'ser ver 2'
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('rdoroshko', 'rdoroshko@gmail.com'),
)
MANAGERS = ADMINS
DEFAULT_VARS = {
'phone': '(495) 649-83-65',
'buyColCou... | [
"rdoroshko@gmail.com"
] | rdoroshko@gmail.com |
0182d1746a88d55955491a6d45140ea1948b53e5 | 9f9f4280a02f451776ea08365a3f119448025c25 | /plans/hsppw/lcut_hsp-s_065_base_mlpc_hs.py | 12677d484791a417487debc4c1ccfe38a4c974b6 | [
"BSD-2-Clause"
] | permissive | dbis-uibk/hit-prediction-code | 6b7effb2313d2499f49b2b14dd95ae7545299291 | c95be2cdedfcd5d5c27d0186f4c801d9be475389 | refs/heads/master | 2023-02-04T16:07:24.118915 | 2022-09-22T12:49:50 | 2022-09-22T12:49:50 | 226,829,436 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,876 | py | """Plan using all features."""
import os.path
from dbispipeline.evaluators import CvEpochEvaluator
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import MinMaxScaler
import hit_prediction_code.common as common
from hit_prediction_code.dataloaders import ClassLoaderWrapper
from hit_prediction_code.da... | [
"mikevo-uibk@famv.net"
] | mikevo-uibk@famv.net |
207805b4e3cbdbea46f7b77c576758c717dbda2f | 6dc7b6253b5958684e87af51f4aaf98f641a5c4f | /project/config.py | 5f0b85f9b8920dc0b03abddf1c3c6785033691e5 | [
"MIT"
] | permissive | ktzoulas/stateless-password-manager | 963f5524fc5425fcdf37655fffd9f3a4311c330d | c2b8a5cad878758a924a5d8550e5b80b50d7a60b | refs/heads/master | 2023-05-25T14:36:49.336598 | 2021-01-09T23:51:25 | 2021-01-09T23:51:25 | 210,364,250 | 0 | 1 | MIT | 2020-12-30T11:28:38 | 2019-09-23T13:37:25 | Python | UTF-8 | Python | false | false | 1,186 | py | """
Configuration parameters for the different environments (development, testing and production).
"""
# pylint: disable=too-few-public-methods
import os
BASEDIR = os.path.abspath(os.path.dirname(__file__))
class BaseConfig:
"""Base Configuration"""
APP_NAME = os.getenv('APP_NAME', 'SPaMan')
DEBUG ... | [
"kostantinos.tzoulas@sgdigital.com"
] | kostantinos.tzoulas@sgdigital.com |
49a379c0c7c03bba5d46b643ebb5be717aadfc6d | 7d8421a55dec94c77d8db7f7d1502cf2ef9edd37 | /dev/postProcess__mask2json.py | 31ae392656b2353d2abd03dccbc5d9f4cd18d5ca | [
"MIT"
] | permissive | oeway/img-segment | 6eeb4dfb7db926d1ce6fa87fbe574b1bbf48f805 | a90c4990d3972130f47a0c390b641bcd082d50e6 | refs/heads/master | 2020-05-16T06:04:41.699067 | 2019-04-22T14:51:33 | 2019-04-22T14:51:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,416 | py | # Code to post-process segmentation results
# Part about actual cell segmentation comes from https://gitlab.pasteur.fr/wouyang/im2im-segmentation:
# ==> run_im2im.py --> calls segment_cells_nuclei (from im2imLib.segmentationUtils)
#
# Test files: on GitHub: img-segment/data/postprocessing/outputs/data/postprocessi... | [
"muellerf.research@gmail.com"
] | muellerf.research@gmail.com |
45e09ee0d1069171658a277292abb6299f907758 | af93b3909f86ab2d310a8fa81c9357d87fdd8a64 | /begginer/7.cas/domaci7cas.py | 88049f37d52c132bb52efea35fba10a2e9a7c341 | [] | no_license | BiljanaPavlovic/pajton-kurs | 8cf15d443c9cca38f627e44d764106ef0cc5cd98 | 93092e6e945b33116ca65796570462edccfcbcb0 | refs/heads/master | 2021-05-24T14:09:57.536994 | 2020-08-02T15:00:12 | 2020-08-02T15:00:12 | 253,597,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py |
brojBrojeva=input('Koliko brojeva zelite da unesete?')
broj_brojeva=int(brojBrojeva)
brojevi=[]
suma=0
while broj_brojeva>=1:
uneti_brojevi=int(input("Unesite broj:"))
suma=suma+uneti_brojevi
broj_brojeva=broj_brojeva-1
brojevi.append(uneti_brojevi)
srednja_vrednost=suma/int(brojBrojeva)
print('Uneli... | [
"zabiljanupavlovic@gmail.com"
] | zabiljanupavlovic@gmail.com |
cc4f11a90fb98d112e6774bffa87fb6810e99afd | a2f23955ccdb9cad17db9f5928832d4e7d17b69d | /run/webpy/experimental/pwt.py | da03c94c8e33a0111a296e747220d7cb4ea700e9 | [] | no_license | wellcomez/crash | 03ae8d66e21145a478aa62961f442c6f7823b96c | a0e39dfa34bb26934ae2497777c242b959c02f76 | refs/heads/master | 2020-06-01T18:33:25.321334 | 2014-08-08T09:27:16 | 2014-08-08T09:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,185 | py | U2FsdGVkX194ECcAAAAAAB2gKSjj/nNqCj6L+rpsNEN9ZjUCJhJJpQ5fmZODkz8y
wyqhifHDvSOEH+P47P9g6gQXX2KIKimMUO/DfsXzt8/Buo3JtHhfQrzyZiX9eFp+
AmnDm7h3oNgGWPAnSAXXbDkMUdxu22aUmnvja5VvUZ9cotJa/sUREJt+x0JU9YvK
gRCKvHNfqJz4MlcAGJZay12838hXZfXYLbqt8CCTNCTb01hDXF7IpxxJtqYwfGXi
RRLfiipqQ9VrPevmCeHoA2tAwcJHlIcVJuRBANIY2I8LG9LsT/ePXfOLcGVG... | [
"zhu.jialai@gmail.com"
] | zhu.jialai@gmail.com |
c25a9c2c8c9337c9b2b8b604d9b3c582e34427eb | 09e47cd344d849c968e8edaeb40a4d6353f51836 | /gameoflife.py | ec21ab2570fc68ccfb193da21213c6ccbf182826 | [] | no_license | 1not/conway-s-game-of-life | a046d9b31a4218a06551c26dc31d542fab2e6594 | b9cfc94f89fe2a048630e41bf2561cc3cc05937d | refs/heads/master | 2020-05-26T17:02:37.874257 | 2019-05-23T21:58:13 | 2019-05-23T21:58:13 | 126,390,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,933 | py | import os
os.environ['PYGAME_HIDE_SUPPORT_PROMPT'] = "hide"
import pygame
import random
WIDTH = 1020
HEIGHT = 640
TITLE = "Conway's Game of Life"
TILESIZE = 10
FPS = 2
BACKGROUND = [20, 20, 20]
GRID = [0, 0, 0]
r = 100
g = 100
b = 100
ORGANISM = [r, g, b]
populated = []
unpopulated = []
location = []
i = 1
pygame.... | [
"noreply@github.com"
] | 1not.noreply@github.com |
bdfa58fc5493cbdd1cbd7d54bc4d20ec5a7b2528 | e23e174332b7978f8b0f122fa76ff036e71731de | /IBGEVisualizer/model/ListResourceModel.py | 4bd61c39eefad117a266d3c0447fe8fe6df9ec85 | [] | no_license | IDEHCO3/qgis3-hyper-plugin | 1fa209a49b609cdcee2d7e9d4738df3d9cfb85b9 | a375fc04aee062f08626ec7a976ead094c4aa5a1 | refs/heads/master | 2020-07-07T14:21:58.294040 | 2019-09-18T17:27:34 | 2019-09-18T17:27:34 | 203,374,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py |
#coding: utf-8
from collections import OrderedDict
from IBGEVisualizer.Utils import Config
model = {
'IBGE-BCIM': 'http://172.30.137.117/api/bcim/',
'OSM Views': 'http://172.30.137.117/api/osm-2017-06/'
}
| [
"andre.eds@ibge.gov.br"
] | andre.eds@ibge.gov.br |
c1c084ff36111231daf2760f6b4a79a77fd30ee5 | 6cf4dcbf4bff00c5a4f657e72f7756e46e620db9 | /ping_domain.py | 0e60269e5d5276fe81e11dc6d50f94d1099f2d5c | [] | no_license | jamesmorgan/PythonScripts | 68ad1cc244932487420ab6e9db29acc04677358c | 26389d0a5560b1f91c5ba4dba7b38763410b35c2 | refs/heads/master | 2021-01-19T05:44:17.851455 | 2011-04-27T09:52:56 | 2011-04-27T09:52:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | #!/usr/bin/python
####################################
## Used to ping domains in python ##
####################################
import subprocess
host = "www.google.com"
ping = subprocess.Popen(
# Linux ["ping", "-c", "4", host],
["ping", "-n", "4", host],
stdout = subprocess.PIPE,
stderr = subproce... | [
"james.morgan@leadx.com"
] | james.morgan@leadx.com |
38698b3deb174381678bd196b76d35504867b883 | d7604ab4a777ccda65afd86386a4d31c3b0f4b99 | /00 Finals/2016/Ans/2016qn6.py | 722a08b8d868bb39bfb4400f459374f37be0aee3 | [] | no_license | justiniansiah/10.009-Digital-Word | b955726c064f7feadedb7a7665a667211b28808b | 4b811637716903271a58538636674d7fce3e4af7 | refs/heads/master | 2020-05-15T13:04:03.671641 | 2019-04-19T15:45:22 | 2019-04-19T15:45:22 | 182,285,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,196 | py | import copy
class Map:
def __init__(self, world):
self.world = copy.deepcopy(world)
def whatIsAt(self, position):
if position not in self.world.keys():
return 'Empty'
elif self.world[position] == 0:
return 'Wall'
elif self.world[position] == 'x':
return 'Exit'
elif self.world[position] > 0:
r... | [
"justinian_siah@mymail.sutd.edu.sg"
] | justinian_siah@mymail.sutd.edu.sg |
05109a3fa7bb65467f0e23d5c6063a13dd3a8950 | 9ae0cf807bc0f0769342fdcadcc47a0558f67704 | /venv/bin/twist | cbff9ace7ffccb37966a3b432532604aa35a22a6 | [] | no_license | Dexhub/Partner-search | d51ae6071640d829ad7432acad336679870e2766 | 44d850a2aaaf32a2603e5594de046e25c5a87df4 | refs/heads/master | 2021-01-12T09:21:41.475806 | 2016-12-11T03:09:18 | 2016-12-11T03:09:18 | 76,150,628 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | #!/Users/Himanshu/Desktop/Code-repo/Personal/scrapper-matrimony/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from twisted.application.twist._twist import Twist
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(Twist.main())
| [
"Himanshu1410@live.com"
] | Himanshu1410@live.com | |
a1f230047a9f7039bd3003ca48b2315d42a78681 | 60ba5cc2f817471dd0ff84a15996b46b1dbfa6ba | /park/envs/circuit/simulator/circuit/transimpedance/__init__.py | 31e7ad09f894d74f069e93f27ddf6aaae76fc96b | [
"MIT"
] | permissive | park-project/park | dd15d27e5859fe421c878a90627716623892b6f9 | 08f8f7f0dea14e011af2d5ce2a72410084eb8713 | refs/heads/master | 2023-06-28T11:38:30.359938 | 2022-04-07T14:42:21 | 2022-04-07T14:42:21 | 184,142,889 | 216 | 55 | MIT | 2023-06-14T16:10:38 | 2019-04-29T20:55:25 | Python | UTF-8 | Python | false | false | 44 | py | from .three_stage import *
del three_stage
| [
"kipsora@gmail.com"
] | kipsora@gmail.com |
e57ea56ce1e9f30a52a0f2911fb5a089bd661853 | e2bd7234589ba8e4b33ef3f7f2b56141f7ea199e | /Codes_Jellybean/floodfill.py | 6b314a8a9439b4747f9176186723f4a5fa3506f4 | [] | no_license | srvanderplas/jellybean | 53e1dd82d00d1bf466b70f5c3ac71b884d1459e1 | 66803096c28fde90e768eeca1bfeddc3716f1858 | refs/heads/master | 2020-11-30T02:38:10.370524 | 2020-03-23T22:53:44 | 2020-03-23T22:53:44 | 230,277,852 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,451 | py | # load the requisite libraries
import cv2
import numpy as np
from matplotlib import pyplot as plt
from scipy import ndimage
from skimage import measure, color, io
import numpy as np
# read in the image, convert to float
img = cv2.imread(r"D:\Jellybean\data\7UP(R).png")/255.0
# read in the mask, convert to ... | [
"noreply@github.com"
] | srvanderplas.noreply@github.com |
3b393e9e85da526c558348e127109c87d91f67b4 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_35/155.py | 239e923d2fed9e0249e83ec49641ba1080007d52 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | dxy = ((0, -1), (-1, 0), (1, 0), (0, 1))
m = dim = []
def minel(x, y):
minval, minx, miny = m[y][x], x, y
for u, v in dxy:
newx, newy = (x + u), (y + v)
if newx >= 0 and newx < dim[1] and newy >= 0 and newy < dim[0] and m[newy][newx] < minval:
minval, minx, miny = m[newy][newx], new... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
106051fc71956ed94f8493cf13880863465c3cff | 1495a171d3341f3fc5df004000d028e21dc8b522 | /src/tf_components/bijector/Coupling.py | 8e8e66b28e0402f7f5201def416b6a758f4f69f5 | [
"MIT"
] | permissive | YorkUCVIL/Wavelet-Flow | 54b2a08f7a5656ec86fbbf08c5e6ce7c21d8e076 | 8d6d63fa116ec44299c32f37e66817594510f644 | refs/heads/master | 2023-05-03T13:23:04.591823 | 2021-05-21T20:15:33 | 2021-05-21T20:15:33 | 294,146,582 | 62 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,748 | py | import tensorflow as tf
from util import *
from tf_components.bijector.Bijector import *
from tf_components.bijector.Act_norm import *
from tf_components.openai_conv import Openai_conv
from tf_components.openai_zero_conv import *
class Coupling_res_block(Layer):
def __init__(self,k_size,width,edge_bias,
dtype=tf.flo... | [
"jjyu@eecs.yorku.ca"
] | jjyu@eecs.yorku.ca |
12795f9911820ddc919fdd49162f0cd307a81a68 | b358b5fdecdd0f0cfb4531a5a508d4e2ec3c25e7 | /chaos-orca/monitoring/grafana.py | d2a52e5e3148d66d60617ba40985f12c774a3cfd | [] | no_license | adriannovegil/my-chaosorca | 3d730cee003d15eef6bed106b5815bec15b25902 | e3eab17334ef9a4d46cb42e4ca5c4f5c58d15ca1 | refs/heads/master | 2021-09-11T07:20:46.009314 | 2021-09-07T16:34:32 | 2021-09-07T16:34:32 | 228,900,033 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,726 | py | import os
# Package import
import docker
# Local import
import config
from misc import common_helpers as common
#import monitoring.prometheus_targets as monitoring_targets
docker_client = docker.from_env()
dir_name = os.path.dirname(os.path.abspath(__file__))
grafana_name = '%s.grafana' % config.BASE_NAME
def star... | [
"adrian.novegil@gmail.com"
] | adrian.novegil@gmail.com |
31d819ede6fc04ab3723fae34a385e10b1bd5da9 | 2e492f08fa0adb15418fb0d087ce8100d0d15d54 | /project_contributors/login/serializers.py | 0ee3855bef1e08c39ca56571fc44a6153c031126 | [] | no_license | dimosd/Project-Contributors | 5f0b9406df7e49cf50c45c0682feb7feaaf16a68 | 9863fdf958f580a50644cdee76822622e071442a | refs/heads/main | 2023-09-02T13:13:01.763596 | 2021-11-22T20:18:49 | 2021-11-22T20:18:49 | 430,838,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,694 | py | from users.models import User
from rest_framework import serializers
from django.core.exceptions import ValidationError
from rest_framework.validators import UniqueValidator
from django.core.validators import MaxValueValidator, MinValueValidator
class UserSerializer(serializers.ModelSerializer):
email = serialize... | [
"dimosthenisd@projectagora.com"
] | dimosthenisd@projectagora.com |
0d48ef377e6f2accedc4cb491619da45670f3722 | 4694a0d4a16d792d6ea9507b0f5f527631bfbc1a | /cf/cli/command_groups/user.py | 42cc08fba510763b22b0e5ff841e23a28e07d5ce | [
"MIT"
] | permissive | doublevcodes/cf-cli | 080162d4719d11411bdde569ad6db996df97b3ad | 7e69b7189f9f51a13cda10a19cdee5440533b90f | refs/heads/main | 2023-07-18T02:56:18.869429 | 2021-09-02T21:38:28 | 2021-09-02T21:38:28 | 402,380,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,320 | py | import typer
from textwrap import dedent
from pathlib import Path
import orjson
from cf.backend.endpoints.user import get_user_info
from cf.backend.endpoints.token import verify
user = typer.Typer()
@user.command("login")
def user_login():
access_token = typer.prompt(typer.style("Input thy access token which be... | [
"vivaan.verma@gmail.com"
] | vivaan.verma@gmail.com |
ec9f3b3dd3169b74875c405a34021d8357e31cb8 | 3713ebbc2db56f74f9e713e0f605fe942fd0e32f | /training_P300_speller/sub_bands/sub_bands_ch14_HHT.py | 0642ed3c346c705ba4376542b16927d45d7a838b | [] | no_license | dahaiyu/Subject_Identification_EEG | c64a147174fbe8e4b9a63001e5c0f6edf5814bf1 | e2c3d443d6f635a8354b3644ab2a0c4b36523160 | refs/heads/master | 2020-11-27T07:52:21.529988 | 2019-12-13T22:21:42 | 2019-12-13T22:21:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,893 | py | from temp.dataset_P300 import get_subdataset, get_samples
from temp.features import get_features_sub_bands
from temp.preprocessing import preprocessing_P300
from temp.classefiers import selector
import pickle
import logging
import warnings
warnings.filterwarnings("ignore")
logging.basicConfig(filename='EMD3_P300_ch14... | [
"shobihap@stud.ntnu.no"
] | shobihap@stud.ntnu.no |
617df8a8f25c5ebc321c824bba738497597e3599 | 752c9787bd1d96739294cb6fb05f97dcb904af46 | /tests/test_sat_adapters.py | a6d9dbe3bd00e55cf1adb0c3939793ef2fdacf67 | [] | no_license | Anton495/peano-1 | 93b73662f44bf9365d4a1355284afa58844e76ec | 2321d60a2a98a25007c81274a7b858304cb5e574 | refs/heads/master | 2023-02-13T18:42:44.035499 | 2021-01-10T22:27:45 | 2021-01-10T22:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | import unittest
from peano.sat_adapters import CurveSATAdapter
from .examples import * # TODO get rid of *
def get_model_from_curve(adapter, curve):
for pnum, cnum, sp in curve.gen_defined_specs():
sp_var = adapter.get_sp_var(pnum, cnum, sp)
adapter.append_clause({sp_var: True})
if not ada... | [
"jura05 at Яндекс"
] | jura05 at Яндекс |
e358a89f0c66ce54359db63ea1a4d3f73ca6dae5 | fb3855b468b08f335dfb84233c923e10514b7ef2 | /myapp/models/ActionStudyLog.py | 0d399bbf5c41e6c5b1997e273e240976ede4d2af | [] | no_license | ngotuan12/ASEProject | f3acf347e3121405ba126505ec7cda4321553086 | cf04ecd11e0e1bdda64ee13c057cd26c6c525f79 | refs/heads/master | 2021-01-13T14:19:50.947272 | 2014-07-28T08:16:20 | 2014-07-28T08:16:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | from datetime import datetime
from mongoengine.document import Document
from mongoengine.fields import DateTimeField, ReferenceField, \
StringField
from myapp.models.Action import Action
from myapp.models.Impression import Impression
from myapp.models.ProgressType import ProgressType
from myapp.models.Student import... | [
"ngo.tuan12@gmail.com"
] | ngo.tuan12@gmail.com |
2aa0292d87465b1b9f52a7e1c5b92b2c26d7a77b | f573f4530b0f80bfb6604ec4394ee0d51eebfabb | /nomadgram/notifications/migrations/0001_initial.py | 198e4147aa8c155eb6bb37d3ffae80e8e9cbb643 | [
"MIT"
] | permissive | Jeongkiwon/nomadgram | 93d810361fa397246973aba1af6589ccbf9ad264 | 6c9b54f2982b8256ee3b842c3509be2786089941 | refs/heads/master | 2021-11-20T11:44:02.632886 | 2019-02-16T11:58:57 | 2019-02-16T11:58:57 | 147,059,019 | 2 | 0 | MIT | 2021-09-08T00:48:16 | 2018-09-02T06:01:58 | Python | UTF-8 | Python | false | false | 1,350 | py | # Generated by Django 2.0.8 on 2018-11-05 03:12
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('imag... | [
"jeong214132@naver.com"
] | jeong214132@naver.com |
76237b26d138041d9302ea4c9df6470e87470844 | 717c529ce974da50048849b2a5e7ca0149922ffd | /convert.py | b94c943729e433d66a6778a2de712b1b1b9d0533 | [] | no_license | rajah9/RtsConversion | 3a90489b8ff7882da8f00cb2590340025fb75b82 | bdf753cd376f1d17ec382d5db1133004f470f440 | refs/heads/master | 2020-11-26T01:00:20.252064 | 2019-12-19T02:48:46 | 2019-12-19T02:48:46 | 228,913,378 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,423 | py | """
convert several files from IBID to LightSpeed.
Interesting Python features:
* Reads Utilities from a relative path.
* Does a list comprehension from a dictionary on a condition in clean_inventory
"""
from os.path import realpath, abspath, split, join
from inspect import currentframe, getfile
import sys
cmd_folder ... | [
"rajah@alumni.duke.edu"
] | rajah@alumni.duke.edu |
c07f18139ab4336aa9b638cf9c6f235f94745228 | 2f027c97e7954e245f7bece05a3a3f5629c06672 | /daily_work/chapter15/practice13.py | c93ed7eade6873df55697cf295b539b74b1e7703 | [] | no_license | wu-zero/python_learn | 17b93130efd07aaed3660551ef3e78c6cd5b9567 | 52e085c4247329ac296c2bdc6b70adfcfefb601a | refs/heads/master | 2020-04-15T05:26:10.388235 | 2019-03-04T03:35:38 | 2019-03-04T03:35:38 | 164,422,257 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,060 | py | # 13. 使用多态与封装设计一个虚拟宠物的程序,
# 三个基础的宠物类 -- Cat类,Dog类,Pig类
# 属性:name(名字)、type(品种),name、type均为私有属性(对内可见,对外不可见)
# type属性为成员属性(由构造器__init__方法赋初值),但type对外又是可读可写(利用property装饰器实现),name属性初始化操作由父类完成(子类利用super()来实现)
# 方法:eat(self) 均拥有eat的方法(父级继承) 但实现体分别可以体现出 "吃猫粮"、"吃狗粮"、"吃猪粮"不同点(不同的实现)
# 一个宠物的父类 -- Pet类
# 属性:name(名字),name为私... | [
"32433681+wu-zero@users.noreply.github.com"
] | 32433681+wu-zero@users.noreply.github.com |
c7bc4e0a9f682160564dc5a6b4a91124d4cd39c4 | 4960473f77113dd42e8f3c9322b2af62edd23184 | /bw_processing/examples/interfaces.py | 901bbfda45a4b2d0d1aba901caae03918ec1a449 | [
"BSD-3-Clause"
] | permissive | brightway-lca/bw_processing | bfa8e28cf2527f1f112cef540a579eb5c37d3a54 | bd95aba5f671b45283262bdbddf7319c9a58d003 | refs/heads/main | 2023-08-20T10:39:37.515780 | 2023-08-14T19:17:52 | 2023-08-14T19:17:52 | 215,505,287 | 3 | 3 | BSD-3-Clause | 2023-09-14T17:19:03 | 2019-10-16T09:10:45 | Python | UTF-8 | Python | false | false | 602 | py | import numpy as np
class ExampleVectorInterface:
def __init__(self):
self.rng = np.random.default_rng()
self.size = self.rng.integers(2, 10)
def __next__(self):
return self.rng.random(self.size)
class ExampleArrayInterface:
def __init__(self):
rng = np.random.default_rng... | [
"cmutel@gmail.com"
] | cmutel@gmail.com |
a37cf9f6494a6d9d13936791841525786b4cb428 | 3360cf2a1ac6870f0ddd31e1cf3b194a0f5e12ae | /main.py | 1fc8eef07d12bf72a536c0d20d9c86677e150090 | [] | no_license | Stanislasss/Easy-YT | bd8c82162cba37fce5e08a86cdaa11e7c0eae3fb | 293f33fcca14f729bc9e7532155c3f074baff1a1 | refs/heads/main | 2023-04-27T14:39:09.183311 | 2021-05-08T09:00:29 | 2021-05-08T09:00:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,535 | py | from pytube import YouTube
import tkinter
import tkinter.ttk
from tkinter.filedialog import askdirectory
import tkinter.messagebox
from threading import Thread
import os
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
# Selenium Stuff
options = Options()
options.headles... | [
"noreply@github.com"
] | Stanislasss.noreply@github.com |
1fb1737dd78908b033c6940b672ef8db24d714ac | 00c91258477e80f85fd150d9e0b96fb006ab68a6 | /b_cnn/models/bcnn_model.py | ad6da8fcba2cdbc1abc352787baa80a4baaa6e2d | [] | no_license | senkey705/B_CNN | fc4ffb9d532708de24a469cbe1a8fa8999fc0791 | 68a00c735c9ecb25c07a22ccfc324ae56773a705 | refs/heads/master | 2021-09-16T17:19:48.823146 | 2018-06-22T11:20:35 | 2018-06-22T11:20:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,372 | py | from keras.models import Model
from keras.layers import Dense, Dropout, Flatten
from keras.layers import Conv2D, MaxPooling2D
from keras.layers.normalization import BatchNormalization
class BCNN_Model:
def __init__(self, params):
self.num_c_1 = params.num_c_1
self.num_c_2 = params.num_c_2
se... | [
"ryousuke.s.m@gmail.com"
] | ryousuke.s.m@gmail.com |
90188776f21b95555836685ee050b690d4fa2dbd | be8e10350f54f3ef682c7dc61e7567a671082260 | /demultiplex.py | 738cb07f0cf59b8153607de235707896f72e9a3d | [] | no_license | 2019-bgmp/demultiplexing-JoshSakai | 94f765fd01283c476a7e0af74fc1b4cda05e0519 | a56616cb49d14774c48344b342128dd9e14f9e5f | refs/heads/master | 2020-07-03T06:34:56.273837 | 2019-11-05T20:34:18 | 2019-11-05T20:34:18 | 201,822,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,914 | py | #!/usr/bin/env python
import numpy as np
import gzip
import matplotlib.pyplot as mpl
import argparse
def get_args():
"""inputting the file names for read 1, read 2, index 1, and index 2 """
parser = argparse.ArgumentParser(description=' File name to be used')
parser.add_argument('-r1', '--read1', help='... | [
"noreply@github.com"
] | 2019-bgmp.noreply@github.com |
4bcaa3330a389a94add059b34d8ffbfe70a165cc | b095652f1c185e5a39a44f4bde59adfaf239d500 | /bestemmelse_af_kvadratrod_2_v1.py | b15cedf4f4d1528527f6cd6d4339cfa177e75141 | [] | no_license | KnightOfLastDawn/it_programmering_eksamensprojekt | 93d452342eb911033ae99589244c3f09561c83ea | 293f9e14d872b4926edabfe8b8aa8e3e82f8251d | refs/heads/master | 2020-04-28T21:55:12.931079 | 2019-06-18T11:19:29 | 2019-06-18T11:19:29 | 175,599,022 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | x_n=4
x_resul=4
print('Bestemmelse af kvadratroden af 2')
print('f(x)=x**2-2')
print('')
print('x 0=',x_n)
for n in range(1,10):
x_n=x_resul
x_n_1=n
x_resul=x_n-((x_n**2)-2)/(2*x_n)
print('x',x_n_1,'=',x_resul)
if x_n - x_resul <0.000000000001 and x_n - x_resul > -0.000000000001:
print('ende... | [
"noreply@github.com"
] | KnightOfLastDawn.noreply@github.com |
514599150e55ad65383054a47636ceb397cb5c69 | f1e467be0bfd2003a03231ef3841da9a6f538801 | /functionalities/can_switch_from_cli/steps/bash_command.py | dcc1972fa708cc77a5e648837ed4855d894096aa | [] | no_license | LorenzoCavatorta/Warmy | 73fa7139050e4e1547c403446432ec760cd07b4a | d45ca23072f3eb7a6419ba1d1d0948ab9b2c9a08 | refs/heads/master | 2020-07-02T11:48:14.010990 | 2017-02-12T18:46:37 | 2017-02-12T18:46:37 | 74,309,735 | 0 | 0 | null | 2017-02-12T18:46:37 | 2016-11-20T23:34:15 | Python | UTF-8 | Python | false | false | 2,056 | py | import subprocess
class BashCommand():
def __init__(self, command_body='', v=0, r=None, command_pipe_in=''):
self.command = command_body
self.command_pipe_in = command_pipe_in
self.verbose = v
self.return_parameter = r
def check_for_pipes(self):
if '|' in self.comman... | [
"noreply@github.com"
] | LorenzoCavatorta.noreply@github.com |
10ec581067b767b927683b43e5a34b8d574eaaa1 | 49fab4575265a32d1d84065ffddce3e3073402b6 | /test_pdfparser.py | dcb5f33b09223305efb808c4b5bf9adcf18ce59f | [] | no_license | ZosBHAI/pdfparser | 3cdf687c7163f943dd82a7c4ef027aa9c9e6427f | 49c1df97da8d7e4017716432f358b7947166c7e1 | refs/heads/master | 2023-01-04T04:09:21.770312 | 2020-11-01T06:17:18 | 2020-11-01T06:17:18 | 308,934,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | from PdfParser import *
import unittest
import json
class PDFParserTest(unittest.TestCase):
def setUp(self) -> None:
self.parser = PDFParser("input\interview_sample_data.pdf", "output.json")
def test_validate_email(self):
self.assertEqual(self.parser._validate_email("burk.lee@gmail.com"),"b... | [
"user2@awb.com"
] | user2@awb.com |
a62a095a730fcdc651a3ed18e6604d4a1754b28b | e7755f9c3302d1da105def867908c03738c42e1a | /.idea/VirtualEnvironment/Scripts/pip3-script.py | 02cce1fbdd1d6502c90aab7d1b32663a4f4063b7 | [] | no_license | kamlesh-cyber/Zookeeper-python | 18b387fd50d0732bcdad9d431b7d3f2ff3832b7c | b6317ba2c80434ff382bcf19c5ef8050bcc2a197 | refs/heads/master | 2022-06-09T17:42:18.715017 | 2020-05-06T19:34:16 | 2020-05-06T19:34:16 | 261,884,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | #!"C:\Users\Kamlesh Gupta\PycharmProjects\Zookeeper\.idea\VirtualEnvironment\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-scrip... | [
"kamleshgupta44393@gmail.com"
] | kamleshgupta44393@gmail.com |
ac839c792f307d78cf4c464fcdb00725d66defbf | 7438f82a3a4041550b705be55c04252332ae5908 | /Elementary/Elementary_The_Most_Numbers.py | 7106a72668416bf9947f7c81def1f4045b0b0193 | [] | no_license | Nivram3/CheckioPython | bc1af4e760be32eb731ae7f4ed2af6c75d11e33c | 8f15a5a4eeea6c1c68b1737c1aff27e966e0c75d | refs/heads/master | 2020-06-13T16:15:10.977724 | 2019-10-10T14:35:31 | 2019-10-10T14:35:31 | 194,705,501 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,328 | py | '''
You are given an array of numbers (floats).
You should find the difference between the maximum
and minimum element. Your function should be able to
handle an undefined amount of arguments.
For an empty argument list, the function should
return 0.
Floating-point numbers are represented in computer
hardware as base ... | [
"marvinyan3@gmail.com"
] | marvinyan3@gmail.com |
f80708a15dc94d59fe133b799ce9c464454dee6b | fd4f5dd1a79f204ce205458bdf85300a6abe1c97 | /python/djangoTutorial/mysite/venv/bin/python-config | 247fdce87aab50f069c79ef16d403338464e758b | [] | no_license | WalterRen1991/Continuous-Learning | 3548225de5256ea1f75732c927a49d1463a24ff1 | b0895b37980c1e67b26acc874967dee08e54d1ee | refs/heads/master | 2020-09-02T17:57:38.043827 | 2019-11-24T09:13:47 | 2019-11-24T09:13:47 | 219,273,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,379 | #!/Users/walter/learningspace/python/djangoTutorial/mysite/venv/bin/python
import sys
import getopt
import sysconfig
valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
'ldflags', 'help']
if sys.version_info >= (3, 2):
valid_opts.insert(-1, 'extension-suffix')
valid_opts.append... | [
"renkai05332@hellobike.com"
] | renkai05332@hellobike.com | |
1b22da02d94a4fd27b7b749f8f217993a9a01664 | c317f5b607e25a0ebb8b2746c1a94691538e3c71 | /MapWidget.py | a514cef982b73882739be19d6f2f51dcb5a06ecb | [] | no_license | Zverinus/Maps-API-big-problem | 12faab9c5eaa0e728339e6ffcd01adeacb8eabaf | f8b036a35fcfa52be50c879a6838cd46ece994d6 | refs/heads/main | 2023-03-03T05:02:54.798441 | 2021-02-16T18:39:16 | 2021-02-16T18:39:16 | 336,515,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,832 | py | import requests
from settings import *
from PyQt5.QtWidgets import QWidget, QMessageBox
from PyQt5.QtGui import QPixmap
from PyQt5.uic import loadUi
from PyQt5.QtCore import Qt
class MapWidget(QWidget):
def __init__(self, window_size, coords):
super().__init__()
loadUi("UICs/MapWidget... | [
"noreply@github.com"
] | Zverinus.noreply@github.com |
0ca7806f26d1cd0948551a5dd3ff1eae4b0209ed | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03148/s959152650.py | 7dabbd7f01d1a3050984f24c96ebaa9d0225de79 | [] | 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 | 787 | py | import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
from operator import itemgetter
from collections import defaultdict,deque
n,k = map(int,readline().split())
chk = []
for i in range(n):
t,d = map(int,readline().split())
chk.append((t,d))
chk = sorte... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
13153baaa152548e6c14f5588293ff4315456bb0 | afa711b0bb98566342f346f46365e6f6514a3ae2 | /src/models/items/views.py | 38c362a5ed3b0c28329bb913c42ec70206c8fe1e | [] | no_license | QilinGu/price-monitor-app | cbfc9251663e6230d8eb8c85f468d4daa37adc33 | bb1bde63fbd4374be09468ecd212cc5acab1d28d | refs/heads/master | 2021-01-09T06:41:02.378206 | 2016-08-19T16:00:16 | 2016-08-19T16:00:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py | from flask import Blueprint
item_blueprint = Blueprint('items', __name__)
@item_blueprint.route('/item/<string:name>')
def item_page(name):
pass
| [
"myletter428@gmail.com"
] | myletter428@gmail.com |
4405cd71e2b1676f601e75017539082489699a2b | c73fd0ccd3c124c0cbb8980fdf9d147ab0d49826 | /L7/1.py | 9213fdc1af4aea168df9cc5a5fd6c5dd21c1674a | [
"Unlicense"
] | permissive | onik282/Python | 9d4c21334276f2e00594b7fb82d55bffad0d62da | 656fc8dc0b62a03a7830618e0d3c6078b7745bee | refs/heads/main | 2023-04-11T16:11:58.122679 | 2021-05-09T19:16:54 | 2021-05-09T19:16:54 | 357,659,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 839 | py | class Matrix:
def __init__(self, list_1, list_2) -> object:
# self.matr = [list_1, list_2]
self.list_1 = list_1
self.list_2 = list_2
def __add__(self):
matr = [[0, 0, 0],
[0, 0, 0],
[0, 0, 0]]
for i in range(len(self.list_1)):
... | [
"Yanshin@nextmail.ru"
] | Yanshin@nextmail.ru |
8810a1d3bc1a848c3c79bcdd9ed645e9eff1541e | 3dddb75ca4add198e988decb7a8492fa42a8f0ec | /individual_tasks/task6/web/cgi-bin/form.py | 0f927c7f339949b1cd0c82426eff415734bd272a | [] | no_license | TheTenzou/python-4-kurs | e7747c7638d46f43585c6f263583f4c4b5491f26 | 9b3c8939a645172706b27ac0be9dae3db3ddf023 | refs/heads/master | 2023-04-02T19:16:11.095502 | 2021-04-14T06:52:58 | 2021-04-14T06:52:58 | 339,730,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,789 | py | #!/usr/bin/env python3
import cgi
import html
import sys
import codecs
import sqlite3
import os
sys.stdout = codecs.getwriter("utf-8")(sys.stdout.detach())
dirname = os.path.dirname(__file__)
db_name = os.path.join(dirname, 'computers.db')
form = cgi.FieldStorage()
text1 = form.getfirst("NAME")
text2 = form.getfirst... | [
"61962705+TheTenzou@users.noreply.github.com"
] | 61962705+TheTenzou@users.noreply.github.com |
f5fb804acb81bcf80e35522fe941253a72ad1d04 | c2bdcd5aec95d5c4ac4322f166c2ef9b2b8992f9 | /kurstag_2/loesungen_2/if_loesung1.py | 6afc3ad3400e82a3455e7d3d6bfb7e462c133dff | [] | no_license | softborg/Python_HWZ_Start | 4437c5d8676301db8f4c42b75c98f0cc91320012 | 6361647113365df66e3ad84a0d1d1b563137ebbd | refs/heads/master | 2022-07-21T16:27:30.333598 | 2022-07-12T12:08:37 | 2022-07-12T12:08:37 | 252,724,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | # if Aufgabe 01
# Entscheiden sie ob eine Zahl
# - kleiner als 18
# - gleich 18
# - oder grösser als 18 ist
# und geben dies auf der Konsole aus.
# if Aufgabe - Loesung 01
zahl = 19
if zahl < 18:
print("Zahl:", zahl, "ist kleiner als 18")
elif zahl == 18:
print("Zahl:", zahl, "ist gleich 18")
else:
print(... | [
"stefan.berger@softborg.com"
] | stefan.berger@softborg.com |
af0039340fa3bf127002de09a5a2c764efa035fc | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayCommerceTransportIndustryProxyUseResponse.py | bdaca7fe27b18a5f91bd2a8152cd58348aaf1f41 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 829 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayCommerceTransportIndustryProxyUseResponse(AlipayResponse):
def __init__(self):
super(AlipayCommerceTransportIndustryProxyUseResponse, self).__init__()
self._ind... | [
"jiandong.jd@antfin.com"
] | jiandong.jd@antfin.com |
19d855b1c4c6c3825cfdd9dbc112ea6c718aeb33 | f013c7884289b4b877ce54186b005b4acc8b6055 | /venv/Scripts/easy_install-3.7-script.py | 43c4afedd56571bba27d22097d5611f724b3acb3 | [] | no_license | leo-sandler/Unit_5-File-I.O | eca9f3d223fa6480f47cff879c12e6e57c0266ed | 0a47a1a6874bd2ccaecd54a7ca3e1967b1908120 | refs/heads/master | 2021-09-29T02:20:52.607624 | 2018-11-22T18:51:17 | 2018-11-22T18:51:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | #!C:\Users\leo_sandler\PycharmProjects\Unit_5-File-I\Unit_5-File-I.O\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install-3.7'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv... | [
"leo.sandler@greenwoodcollege.com"
] | leo.sandler@greenwoodcollege.com |
e2854eed89c1aacd6616ff22b4563c7d1f74d2dd | 395b2e9718eeb5035995130b2377c47b8df05614 | /fourier_attack/attack/attack.py | e2304a76e69349a401a7f3f4b3cd27213bc02a70 | [] | no_license | gatheluck/fourier-attack | 0a6d773e268bf1e480f04a43dcc72905af804b43 | 1668f0d2eed6182cb69904c49fe223e78cb5d0cc | refs/heads/master | 2023-03-10T05:15:10.897205 | 2021-03-01T08:19:10 | 2021-03-01T08:19:10 | 320,191,916 | 1 | 0 | null | 2021-03-01T08:19:11 | 2020-12-10T07:21:19 | Python | UTF-8 | Python | false | false | 5,664 | py | import random
from typing import Optional, Tuple
import torch
import fourier_attack.util
def get_eps(
batch_size: int,
eps_max: float,
step_size_max: float,
scale_eps: bool,
scale_each: bool,
device: Optional[torch.device],
) -> Tuple[torch.Tensor, torch.Tensor]:
"""return total purturba... | [
"gatheluck+tech@gmail.com"
] | gatheluck+tech@gmail.com |
33ece3d78ed293db1f08c38062da3290f6dd3fbd | 16cb17ab60d9d57966ef5c6fe13515e9e35a6ecb | /lectures/INFO501/CM5/src/examples.py | 2eb52fbbe910e35a342b12acb0fa0d4a7752fa40 | [] | no_license | AmmarMian/ammarmian.github.io | a2c7861ccbcd090b696e59c40c720a7ebb9194b0 | b5f155488a7a9cae71cae9fca471ba9586d6d029 | refs/heads/master | 2023-01-24T00:11:00.211153 | 2022-12-26T16:56:33 | 2022-12-26T16:56:33 | 153,121,018 | 0 | 0 | null | 2023-01-06T21:38:00 | 2018-10-15T13:47:35 | HTML | UTF-8 | Python | false | false | 972 | py | class my_class():
def __init__(self) -> None:
self.my_attribute = 0
def set_my_attribute(self, new_value):
self.my_attribute = new_value
my_instance = my_class()
print(type(my_instance))
print(my_instance.my_attribute)
my_instance.set_my_attribute(1)
print(my_instance.my_attribute)
def empil... | [
"ammar.mian@univ-smb.fr"
] | ammar.mian@univ-smb.fr |
df897b33613b0d934ced7f2240e56da2350b6c6c | e0b54721275627fdbb90d0325b7639d16de897f1 | /rain_shuffle/hour_cat.py | ece92a8bce367e12fc9ea7abb647c02eeacf7d93 | [] | no_license | zwx1306/Rainfall_Prediction | 527156b58c4cd6282b8897640965cdadb87c7366 | 4923a41900aa5f0cea0488fd3954e15159e39ea0 | refs/heads/main | 2023-06-28T20:37:39.392014 | 2021-07-30T08:11:28 | 2021-07-30T08:11:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 710 | py | import pandas as pd
import numpy as np
import os
record=pd.read_csv('sudeste.csv')
path ='./hour_data'
if os.path.exists(path):
pass
else:
os.mkdir(path)
print(record.columns)
print(record.index)
print(record.head())
print(record[record.wsid==178].head())
print(record.wsid.value_counts())
#获得数据的气象点标签
idx... | [
"noreply@github.com"
] | zwx1306.noreply@github.com |
086d4ef5658973ed975e93ea706be5b7256ebbcd | 88c7c66473c58083d92d87597d0925398859e233 | /venv/RecoverySession2.py | a76f947a03c7c823ccf10f719576cb0a68dd90a5 | [] | no_license | ishantk/GW2019C | 509e9281e4056fe4cc22451273fc55a63920570a | ab3164d728f01425138a5e640702ede6ce861c35 | refs/heads/master | 2020-05-05T03:12:26.978124 | 2019-05-30T11:10:41 | 2019-05-30T11:10:41 | 179,664,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | """
OOPS
====
Object Oriented Programming Structure
Design Methodolgy
Object
Anything which we can see and touch
Realtiy
real time Entity
Class
Representation of an Object
Drawing of an Object
1. Think of an Object
2. Create its drawing
3. Looking from the drawing create it in real
Computer Science
Object... | [
"er.ishant@gmail.com"
] | er.ishant@gmail.com |
f03123bdae6c59fd6c1b994ccb0ecd8a3b80b0f0 | b12b035a48e0d1e89e6055b54f9fa48eadf25e07 | /leg_detector.py | 858adb3ad063d6c12ecbee41ec71747362b5a739 | [] | no_license | jonathan11ch/LaserScan | 6929a7143e43137e3a226662e1cc460a1a7d5406 | 8eaa8b43ff61bb00cb53610de933faa036ca9c0d | refs/heads/master | 2020-04-24T12:31:14.770666 | 2019-02-21T23:17:21 | 2019-02-21T23:17:21 | 171,957,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,335 | py | #Author: Juan Lara
import hokuyo.hokuyo as hokuyo
import hokuyo.lib.serial_port as serial_port
import sensors
import serial
import time
import logging
import threading
import numpy as np
#import matplotlib.pyplot as plt
import scipy.signal as spy
import scipy.io
import warnings
import os
warnings.filterwarnings("ignore... | [
"juan.lara-r@mail.escuelaing.edu.co"
] | juan.lara-r@mail.escuelaing.edu.co |
4bee78c231e3b173acceaafe7f41ba2852444791 | 995f48dc24216e62d60bc0bd5a86c0ecaa69e60b | /src/digispider/models/order.py | d917c835d0d4f7372779ec72619d0b487cbf0506 | [
"MIT"
] | permissive | alirezastack/digikala-spider | bb4903cce217936d0f69c744e1f28e47d6d0685d | 293e8784e6f652d0e5b2fba3bf8a6580acd8da14 | refs/heads/master | 2022-11-13T02:10:32.929362 | 2020-07-05T08:35:17 | 2020-07-05T08:35:17 | 277,261,699 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from mongoengine import Document, StringField, IntField
class Order(Document):
_id = IntField()
product_image = StringField()
product_title = StringField()
product_id = StringField()
product_variant_id = StringField()
order_no = IntField()
ordered_at = StringField()
finalized_order_at ... | [
"alireza.stack@gmail.com"
] | alireza.stack@gmail.com |
5baa8a3a635cd1557b9cdf63739cfbf3857564b2 | 188b2e42baeeb307ed987f47f933d52d2653117a | /Chapter7/myshop/orders/admin.py | 436f4cc5fe8bdaed80743a1354c97c52dca0f012 | [] | no_license | Acowboyz/django-by-example | dc4375484fb91a048f51bd344be659a2a9fabc7f | dfcb8ea407f4aec2564d6b16a2b7a2d32d723ecb | refs/heads/master | 2022-12-27T06:18:48.690421 | 2018-08-10T14:34:16 | 2018-08-10T14:34:16 | 143,476,883 | 0 | 0 | null | 2022-12-08T02:21:44 | 2018-08-03T22:01:27 | Python | UTF-8 | Python | false | false | 535 | py | # Register your models here.
from django.contrib import admin
from .models import OrderItem, Order
# Register your models here.
class OrderItemInline(admin.TabularInline):
model = OrderItem
raw_id_fields = ['product']
class OrderAdmin(admin.ModelAdmin):
list_display = ['id', 'first_name', 'last_name', ... | [
"felixlin@MacbookPro"
] | felixlin@MacbookPro |
5abcc344bd85f4744c0633a45d36fc620247f479 | f542fbc3db590fc93ff50fcc075c8bec8bb4bc20 | /Webhacking/los/LOS - darknight.py | b3137a77d6b4b01708991c13b2a8ff64e059cc2b | [] | no_license | JissuPark/Wargame | 6b048cc826a914df57fae66cb047b589c1492792 | b1bd18d5b376fb169959219c0e4a776b71154e17 | refs/heads/master | 2022-12-05T18:40:44.708185 | 2020-09-05T14:57:26 | 2020-09-05T14:57:26 | 287,033,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | import requests
cooki = {'PHPSESSID': "otscuf8q15lrb320f1jnkt8c9j"}
url = "https://los.rubiya.kr/chall/darkknight_5cfbc71e68e09f1b039a8204d1a81456.php?"
i = 1
key = "Hello admin"
pw_len = 0
while True:
params = {'no': "1||length(pw) like "+str(i)+"#"}
res = requests.get(url, params, cookies=cooki)
#print re... | [
"qkrwltn9412@gmail.com"
] | qkrwltn9412@gmail.com |
666f49d69c2a8038830dcc0bdac25f9259e0a941 | b11e5545ae0de900a0bac981555d2584fbc719ce | /0x0F-python-object_relational_mapping/9-model_state_filter_a.py | 8168b4e2b433d71ba3ab40334e2882e2e2daba27 | [] | no_license | AndresCallejasG/holbertonschool-higher_level_programming | 6fa844002dad56545bc500c839e88cd5c71033f5 | 062fe54721ef0fb3c02da1a7d9b2327496b0838a | refs/heads/master | 2022-12-19T00:23:09.277883 | 2020-09-28T20:19:18 | 2020-09-28T20:19:18 | 259,443,426 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | #!/usr/bin/python3
""" lists all State objects that contain the
letter a from the database hbtn_0e_6_usa
"""
import sys
from model_state import Base, State
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
if __name__ == "__main__":
""" Contains `a`
"""
my_host = 'localhost'
... | [
"andres.callejasg@gmail.com"
] | andres.callejasg@gmail.com |
7e9796851d34608e6ff00bdc24e577701b52eaf0 | b9fbee0aa0155d48ceed914324b6b7a46c257dd7 | /cricket_tales/urls.py | 1e996785ea8f437c4cf50a179afa5f19a07e1e8f | [] | no_license | nebogeo/cricket-tales | 14e3c5b19599893b9610af9a09ad0eb0846ad92b | d71e119702049431b78dbf68e5e441c176f5e9ce | refs/heads/master | 2020-12-20T23:29:45.151054 | 2016-05-31T10:33:20 | 2016-05-31T10:33:20 | 23,955,972 | 1 | 1 | null | 2015-11-25T13:09:14 | 2014-09-12T10:12:06 | Python | UTF-8 | Python | false | false | 556 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
import settings
admin.site.site_header = 'Wild Cricket Tales Admin'
admin.site.index_template = 'admin/ct_index.html'
admin.autodiscover()
urlpatterns = patterns('',
url(r'^', include('crickets.urls')),
url(r'^admin/', inclu... | [
"dave@fo.am"
] | dave@fo.am |
35806f37f1da3f6236899b92d18cad0180d8b30f | 6554d695f3b5f44588f4d95b51d6f43f212d3611 | /Set 3/pals20.py | f915b569c5aca1ec98f3bcc7bcc7add431d1bf7b | [] | no_license | jomens235/cryptography_challenges-cryptopals | ef81e554887fe37a80cef68a199063cdde2a07c5 | 8df757f9c00faea1745f521838db829db414847b | refs/heads/main | 2023-09-03T22:51:45.844555 | 2021-10-10T14:33:23 | 2021-10-10T14:33:23 | 415,604,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 827 | py | from base64 import b64decode
from pals18 import ctr_mode, generate_random_bytes, crack_ctr_same_nonce
from Cryptodome.Cipher import AES
if __name__ == '__main__':
"""Crypto Pals Set 3 #20"""
original_plaintexts = []
ciphertexts = []
random_key = generate_random_bytes(AES.key_size[0])
# R... | [
"noreply@github.com"
] | jomens235.noreply@github.com |
f991444fd0388fa5edda440fa8e41c71677170df | 6999b451f79ffd6fcb4b23024224ccb073c612eb | /Lab Practice/wk3/Q4.py | 7961bb191bf64def973282b749d8478745c33dd2 | [] | no_license | bunnycou/CSET-Work | f47873fc77e56b67e521dc416f157ea659d71781 | b307f01295c12e64c27822b92539db343820cdeb | refs/heads/main | 2023-01-06T13:57:51.795714 | 2020-11-06T15:44:59 | 2020-11-06T15:44:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | ############
# Question 4
############
print("\n-----\nQuestion 4 - Demonstrate formatting Numbers and Strings\n")
print(format(57.467657, "10.2f"))
print(format(57.467657, "10.2e"))
print(format(0.53457, "10.2%"))
print(format(57.467657, "<10.2f"))
print(format(59832, "10x"))
print(format("Fridays with pewdiepie", "20... | [
"noahjcou@gmail.com"
] | noahjcou@gmail.com |
273d9cd140c28edb0194b5f318a72f504c6cd7ad | 97197bc6ac2e96a38b82c230882713f1f7ea5ae0 | /signature_extractor-master/signature_extractor.py | 9c8c78400cf5bd1b90c151622e9acf0df5aa207c | [
"MIT"
] | permissive | vvs1999/Signature-extraction-using-connected-component-labeling | be4c88d1fc39d15c7abef7ff515fd722d8c7db37 | 5b89e40533b1661e33516989c723a4a1349017dd | refs/heads/main | 2023-02-15T02:58:36.304481 | 2021-01-05T10:16:34 | 2021-01-05T10:16:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,133 | py | import cv2
import numpy as np
from skimage import measure
from skimage.measure import label, regionprops
from skimage.color import label2rgb
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
from scipy import ndimage
from skimage import morphology
# read the input image
img = cv2.imread(... | [
"noreply@github.com"
] | vvs1999.noreply@github.com |
802656e7ec32802c735c13bc6d074a520b00d54a | c8dc80a0082b2d59de0e1df24b25483f55510c57 | /0x04-python-more_data_structures/3-common_elements.py | 2abe9ec623fca31bface534ee215789c132627ac | [] | no_license | Daransoto/holbertonschool-higher_level_programming | 51d81fac1dc3a6bd0799283332a3bcf5e2480330 | 4fa5f95b462f0e22b1e87189d162f0cb8c5625b6 | refs/heads/master | 2020-07-22T23:03:01.184032 | 2020-02-13T21:36:18 | 2020-02-13T21:36:18 | 207,358,507 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 136 | py | #!/usr/bin/python3
def common_elements(set_1, set_2):
if set_1 is None or set_2 is None:
return []
return set_1 & set_2
| [
"901@holbertonschool.com"
] | 901@holbertonschool.com |
f7956f28bd054b224c8a5964fd55a98276e4a704 | 1e780ef275761326bbcadaaa948101931472c30c | /alexandria/models/idna.py | bcde94c5ac42e5f8a6577e25e9936d04b74ae214 | [
"ISC"
] | permissive | cdunklau/alexandria | 765ffaf08c51156cb7328e16ac84fbef287079f7 | 000f33ac36c54ebe09a0731072ae89c3fe6290b8 | refs/heads/master | 2021-01-23T21:28:09.472621 | 2015-02-09T04:50:57 | 2015-02-09T04:50:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 533 | py | from pyramid.compat import (
text_type,
binary_type
)
from sqlalchemy.ext.hybrid import (
hybrid_property,
Comparator,
)
class IdnaComparator(Comparator):
def __eq__(self, other):
if isinstance(other, text_type):
other = other.encode('idna').deco... | [
"bertjw@regeer.org"
] | bertjw@regeer.org |
ba61313228a27eb30307fa0f6b008303bd0566e4 | 0e090992042e4472037e59acaaeeca78172f7572 | /pset6/boss.py | 17766ee795c57f64fd753074a10a7facf625f590 | [] | no_license | AgumaOgwal/cs50x | 05bea0414926024a144ec7ad9221901ea7e01bac | ca9e69de1bfbdb2c4e2f7f3705e3b0e71db334f4 | refs/heads/master | 2018-10-16T02:34:41.458889 | 2018-07-12T07:41:35 | 2018-07-12T07:41:35 | 115,493,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py |
def main():
a = "Hello"
b= "Temperature"
final = substrings(b,2)
for word in final:
print(word)
def substrings(a,n):
list = []
for i in range(len(a)):
substr = a[i:n]
list.append(substr)
n = n + 1
if n > len(a):
break
return li... | [
"hrodney5@gmail.com"
] | hrodney5@gmail.com |
72074603d560c5b2c257a07d1d3fdfb028261867 | 12fce8ad79db96eda6b2dad052c422ec6d7874e7 | /manager/GameInternalState.py | 929b020bf71ddfabcd168d9f700bfe394dc19068 | [
"Apache-2.0"
] | permissive | mariantirlea/python-blackjack | 3d6e8563b1185e6f1956c3a23a0c832771d6985f | 975e1b89807295fba107a658cddb93d0d5207cba | refs/heads/main | 2023-01-06T19:47:03.919150 | 2020-10-24T13:14:37 | 2020-10-24T13:14:37 | 304,140,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | from enum import Enum
class GameInternalState(Enum):
NONE = 0,
FIRST_CARD = 1,
SECOND_CARD = 2,
PLAYING = 3,
DEALER_TURN = 4 | [
"mariantirlea@hotmail.com"
] | mariantirlea@hotmail.com |
97b46e964b023e8f858efc1760eb33c595ad0b20 | cfcdf441a4ea1907da59d7a30347698ee190e584 | /3_funkcje/zad_7.py | 4001af9fcfb4be35e89af2ac2614fe8b9d0d8852 | [] | no_license | kamilzazi/Python_Bootcamp_Krakow | d7683641101a57c6725732e08f50dbc948505e79 | 7f874662978b44c06e1ab42834b1648b8977726e | refs/heads/master | 2020-12-24T00:55:37.271711 | 2020-01-31T00:07:06 | 2020-01-31T00:07:06 | 237,329,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | """
Zaimplementuj funkcję przycinającą listę na podstawie podanego
warunku początkowego oraz końcowego:
Przykład użycia:
przytnij(
data=[1, 2, 3, 4, 5, 6, 7],
start=lambda x: x > 3,
stop=lambda x: x == 6,
)
[4, 5, 6]
"""
def przytnij(data, start, stop):
# znajdujemy klucz w liscie data, od którego mamy... | [
"noreply@github.com"
] | kamilzazi.noreply@github.com |
98c4bb31a3511cd0fd46561bd8dab92b5e15149f | 0496e4be257be0a154bf70788abce86942b9dbbf | /2-Leveraging Pre-Trained Models/Exercise 3/app.py | a506e080b72dcc7080b6c7aed82382e1966dc3c0 | [] | no_license | ivyclare/IntelEdgeAI | 4fbb9c9ceecc911718c09877caa739f41a015a90 | c0bbf3f4c6a15d07be1830635e7c1cc7c2404f3a | refs/heads/master | 2021-02-12T17:46:12.131042 | 2020-03-08T19:55:23 | 2020-03-08T19:55:23 | 244,613,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,824 | py | import argparse
import cv2
import numpy as np
from handle_models import handle_output, preprocessing
from inference import Network
CAR_COLORS = ["white", "gray", "yellow", "red", "green", "blue", "black"]
CAR_TYPES = ["car", "bus", "truck", "van"]
def get_args():
'''
Gets the arguments from the command lin... | [
"ivolinengong@gmail.com"
] | ivolinengong@gmail.com |
95d36d5a07bcf9bb0484e833c802f47d54336a49 | 6a7005ca7e418a18cbfeec296129873aef6446a4 | /DecryptLogin/modules/clients/cloud189.py | c225cfe48db9b83ae17b59f9e9d9e743ff923bb5 | [
"Apache-2.0"
] | permissive | CharlesPikachu/DecryptLogin | f0646d37e8604fb9c41dc74c17c0ea48cb5066ec | bb4228c0535ffd7060b7816cbd1da51ba8d95ab8 | refs/heads/master | 2023-05-22T15:21:59.038844 | 2022-08-29T08:59:05 | 2022-08-29T08:59:05 | 172,416,496 | 2,871 | 809 | Apache-2.0 | 2022-10-06T14:58:49 | 2019-02-25T01:57:20 | Python | UTF-8 | Python | false | false | 907 | py | '''
Function:
天翼云盘客户端
Author:
Charles
微信公众号:
Charles的皮卡丘
更新日期:
2022-03-11
'''
from .baseclient import BaseClient
'''天翼云盘客户端'''
class Cloud189Client(BaseClient):
def __init__(self, reload_history=True, **kwargs):
super(Cloud189Client, self).__init__(website_name='cloud189', reload_history=r... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
a8b2023aea466a99dc3cb568615b18f732342445 | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /addons/product/tests/test_name.py | 7afbd6ccaa997c25558c82064254fd0b701908be | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 995 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.tests.common import TransactionCase
class TestName(TransactionCase):
def setUp(self):
super().setUp()
self.product_name = 'Product Test Name'
self.product_code = 'PTN'
sel... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
25a21d6bddbf9f90fc55c9f0176c5cbd3d6bc479 | bba3a0ea5350413d1892f5d44ebc15ddd52c6921 | /app/api/v2/views/__init__.py | 35f7cc9868ac2997ab5f9350dcde50c584c467b9 | [] | no_license | murugilinet/Politico_v2 | 930a6ea2ddeaea0bbf63a8bd641a2da1a0a1ef2b | 4fb4431cc9de38cf8b0637d505b73debffa8e882 | refs/heads/develop | 2022-12-16T01:56:45.827096 | 2019-02-22T06:27:03 | 2019-02-22T06:27:03 | 170,436,444 | 0 | 0 | null | 2021-04-20T17:52:51 | 2019-02-13T03:52:12 | Python | UTF-8 | Python | false | false | 1,122 | py | from flask import Blueprint
from flask_restful import Api,Resource
from app.api.v2.views.officeview import Offices,Office,AdminOffices,AdminOffice
from app.api.v2.views.partyview import Parties,Party,AdminParties,AdminParty
from app.api.v2.views.userview import Users,LogIn
from app.api.v2.views.candidateview import ... | [
"murugilinet59@gmail.com"
] | murugilinet59@gmail.com |
45a7d8aa8c2879c3e254909d49a601280b71570d | c10f8437f7213b557ed6137acfba226cabac8b0f | /Exo 39.py | 5b42c8cb88d7d15f46ad83fca5ce65e444716b0c | [] | no_license | JonathanDegardin/Python | bda4fa3d29448f2a1c3900a3fc7c9b791e4060be | b10ed3a417c0c5daf63d119a024a9d4e9fe6c669 | refs/heads/main | 2023-01-06T23:01:41.589479 | 2020-11-09T15:51:52 | 2020-11-09T15:51:52 | 311,285,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | a = input("Saisissez votre chaine : ").split();
nombreMots = len(a)
print("Le nombre de mot de la chaine s est : ", nombreMots) | [
"noreply@github.com"
] | JonathanDegardin.noreply@github.com |
3e2b3e440c367a0dce18a7da4eec2d26d83ecec4 | 789f39d4c4549f789c9e13ad4906c1734e6e1235 | /versionOne/boilerpipe_crawler.py | a3f5669280cf762a7a9fa866918af47b832d67c4 | [] | no_license | alfredt/pj0304 | 2123f84d65ee9a1336c8cb653e96a1f989da3dcf | 82bfba26b85335c8d1637df9647ee71bbd0c4ddf | refs/heads/master | 2021-01-18T22:16:57.188306 | 2017-05-08T09:19:32 | 2017-05-08T09:19:32 | 87,042,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,908 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Mar 02 17:07:12 2017
@author: user
"""
import logging
import random
from boilerpipe.extract import Extractor
import mongodb as mg
import time
import urllib2, httplib
import socket
formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(messa... | [
"xuanmin89@gmail.com"
] | xuanmin89@gmail.com |
8761dc0b473dfb89286389d7ac2ef261e4d02b25 | 2af1201d44509192cf2aa40259ff40dde414b966 | /backend/example/tests.py | 8c96b1371e4e6a28fb39f62eae54316dd3e62b97 | [] | no_license | yzoo1008/swpp-integration-sample | d1a1416308bcf04d94fb60e88c72954e8f9f7fc6 | 5cc7c6977fc1eb4730867d50f6c3dbb07f0a6e5d | refs/heads/master | 2021-07-25T08:13:03.986437 | 2017-10-31T19:10:05 | 2017-11-05T10:40:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | from django.test import TestCase
class SampleTest(TestCase):
def test_sample(self):
self.assertEqual(1, 1)
| [
"lastone817@gmail.com"
] | lastone817@gmail.com |
83d0005b39649353219e521fbdcd008c9e74952c | 4577cf96a2a310e8fdbc52f9116a5a85fb0ca474 | /tests/corral/test_grab_versions.py | 214e2b70c29ad9a4d3a0d8400f8e205656326e49 | [
"Apache-2.0"
] | permissive | NASA-PDS/pds-github-util | 02ad8c2cdebd018194d018a5cfcc57f8656ab44c | c9019a0e306ab4fd70521339ad4a8a622960b627 | refs/heads/main | 2023-08-05T03:30:08.095378 | 2023-07-19T19:33:05 | 2023-07-19T19:33:05 | 248,794,079 | 0 | 3 | NOASSERTION | 2023-05-12T19:15:05 | 2020-03-20T15:49:39 | Python | UTF-8 | Python | false | false | 458 | py | import os
import unittest
from pds_github_util.corral.cattle_head import CattleHead
from pds_github_util.utils.tokens import GITHUB_TOKEN
class MyTestCase(unittest.TestCase):
def test_get_changelog_signet(self):
cattle_head = CattleHead("validate", "https://github.com/nasa-pds/validate", "validate PDS form... | [
"thomas.loubrieu@jpl.nasa.gov"
] | thomas.loubrieu@jpl.nasa.gov |
9a43267dbbdafd79d1d85ad3e5f0e7e1c0f6c45c | 0bc777a57e39c466a9482af9a6eda698ab3c1437 | /HeavyIonsAnalysis/JetAnalysis/python/jets/akPu3CaloJetSequence_pp_mc_cff.py | aff7ca13e96eaddbc54eaf85c952dc344474f154 | [] | no_license | stahlleiton/cmssw | 3c78d80b9372fdf2a37f424372504b23c9dc4f78 | fcfda663dc8c315b505eb6bcc7e936401c01c4d1 | refs/heads/EWQAnalysis2017_8030 | 2023-08-23T13:50:40.837198 | 2017-11-09T17:45:31 | 2017-11-09T17:45:31 | 45,795,305 | 0 | 3 | null | 2021-04-30T07:36:28 | 2015-11-08T19:28:54 | C++ | UTF-8 | Python | false | false | 15,003 | py |
import FWCore.ParameterSet.Config as cms
from HeavyIonsAnalysis.JetAnalysis.patHeavyIonSequences_cff import patJetGenJetMatch, patJetPartonMatch, patJetCorrFactors, patJets
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetPr... | [
"marta.verweij@cern.ch"
] | marta.verweij@cern.ch |
5a687e1eec6ceb70d09965e140275751b92511b7 | b95178ffeb0afea34a44f231b707ac94dfae0fa2 | /page/search_page.py | bde55896892df4e67d4f0de64771bb586a3370a8 | [] | no_license | python342987903/Test_mobile | 84ea219e8085a2320744404ed0c0833b7c265107 | c9d2e90fe411c97f04a44e5e9ff3707d75ef7a29 | refs/heads/master | 2020-04-18T11:52:10.166833 | 2019-01-26T10:21:22 | 2019-01-26T10:21:22 | 167,515,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 863 | py | from selenium.webdriver.common.by import By
from base.base import Base
class SearchPage(Base):
def __init__(self,driver): # 子类重写父类初始化方法,传入的还是父类的driver驱动
Base.__init__(self,driver) # 强制调用执行父类方法
# 抽取页面元素
self.search_btn = (By.ID,"com.android.settings:id/search") # 搜索按钮
self.search_in... | [
"342987903@qq.com"
] | 342987903@qq.com |
a79101a49de4afb66b84ddb3a6e381fc39285681 | c0f5907e569cd0566393eeabb2e54e5a6b30ddd0 | /flow1.0/src/flow-site/smsUtil.py | 9aefc21e342737161cf800594a00d227e638b4ab | [] | no_license | Kudo/flow-platform | 91c4321b4d89dde8be8daa5c90096c94730ef618 | a761e7b507151794d9cca1603caa2e573760b197 | refs/heads/master | 2021-01-23T08:39:59.160528 | 2009-04-26T18:00:03 | 2009-04-26T18:00:03 | 32,502,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,042 | py | # coding=big5
import logging,datetime,re
import urllib
from db import ddl
def sendSms(strPhoneNumber,objUniContent):
smsSettings=getSmsSettings()
strUrl='http://api.twsms.com/send_sms.php'
dicData={'username':smsSettings.account,
'password':smsSettings.password,
'type':'... | [
"camgelo@56b9cbb4-a45a-11dd-a8c6-677c70d10fe4"
] | camgelo@56b9cbb4-a45a-11dd-a8c6-677c70d10fe4 |
eae9fe86013176d3229dc82ad074aa3021232838 | ec150425363d28904206a9ad7c9eadb71b37d168 | /Gallery/models.py | dba481f300b47fb039455c0e642f39a4cd408b14 | [] | no_license | Avin-Pathak/Website-AKS | 1c24ed2d6a924d744d73bb0d449261b9023b877f | 4ff5619533596fe5baa9777e8297e578e9c0cb65 | refs/heads/main | 2023-08-03T05:52:31.999540 | 2021-09-21T17:31:40 | 2021-09-21T17:31:40 | 408,915,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 360 | py | from django.db import models
# Create your models here.
class PhotoModel(models.Model):
category = models.CharField(max_length = 100)
caption = models.CharField(max_length = 1000)
image = models.ImageField(upload_to='gall', blank=True)
video = models.FileField(upload_to='gall', blank=True)
def __s... | [
"pathakavin26@gmail.com"
] | pathakavin26@gmail.com |
3e763827c1e2ec7494c23cb46035a5c2a8ee41f2 | 2e0f8a1d92c28f4ec95af4f25f68f8840cb18b4d | /mxonline/apps/courses/migrations/0001_initial.py | b464b070227a09c508f85cafae6a13e91af64762 | [] | no_license | sure1840s/django_mxwang | 66b6aff1931e8fc80d4a47a84223ac6ec4631816 | 7c593b358b3cf50956fcfdb9bbd8d18a08c9bc71 | refs/heads/master | 2021-01-24T20:14:57.699438 | 2018-03-02T14:49:08 | 2018-03-02T14:49:08 | 123,248,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,802 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.8 on 2018-02-26 09:57
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
... | [
"lllagentina@163.com"
] | lllagentina@163.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.