blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e487f15efe7b9383e9f8e34e2b22deb1e0ffbaea | 7ea1beb4e0442cc494b53700a9494c4eb05ad9bb | /flaskboot/ConfigProject/config.py | 54a8a203ae0f7654037344553388184142909fd3 | [] | no_license | liwei123o0/FlaskBBS | 9fd26bcd133a16d57903cbcd5d66c412babb3a1a | 92360a7d8bf8667d314ca6d0839323346f314bf8 | refs/heads/master | 2020-11-26T16:33:02.668878 | 2015-09-28T08:48:14 | 2015-09-28T08:48:14 | 42,153,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | # -*- coding: utf-8 -*-
#! /usr/bin/env python
import os
basedir = os.path.abspath(os.path.dirname(__file__))
class Config:
SECRET_KEY = 'liweiCDK'
SQLALCHEMY_COMMIT_ON_TEARDOWN = True
FLASK_MAIL_SUBJECT_PREFIX = '[ConfigProject]'
FLASK_MAIL_SENDER = 'liweijavakf@163.com'
FLASK_ADMIN = 'liwei'
... | [
"877129310@qq.com"
] | 877129310@qq.com |
e44fc1f322c7a90cc9b2e7b0aaace1324bb3de3f | 6bb80d482bfd0cd5feb6f2d37c7235a27b3466d6 | /pretrained-model/tts/fastspeech2/fastspeech2-female.py | 56bbeb54f559a80c3b1728ea952fe26a7fa3979b | [
"MIT"
] | permissive | dakmatt/malaya-speech | deadb00e1aa8a03593721c26457f35158e67d96d | 957cfb1952760c30d3b4a2a2e60b7f142394cbd3 | refs/heads/master | 2023-04-03T13:56:53.675046 | 2021-04-19T03:31:40 | 2021-04-19T03:31:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,872 | py | import os
os.environ['CUDA_VISIBLE_DEVICES'] = '2'
import tensorflow as tf
import numpy as np
from glob import glob
from itertools import cycle
import tensorflow as tf
import malaya_speech
import malaya_speech.train
import malaya_speech.config
import malaya_speech.train as train
from malaya_speech.train.model import ... | [
"husein.zol05@gmail.com"
] | husein.zol05@gmail.com |
885459dea8753a0fa00de87c86459898fdf2ae8c | 491f9ca49bbb275c99248134c604da9fb43ee9fe | /P4_Mini_Project_NEURON/CaHVA_Allen/SK_Allen/plot_caproperties.py | 341397e1b2367ed75c37814b6a32e6e17ed72645 | [] | no_license | KineOdegardHanssen/PhD-subprojects | 9ef0facf7da4b2a80b4bea9c890aa04f0ddcfd1a | c275539689b53b94cbb85c0fdb3cea5885fc40e9 | refs/heads/Windows | 2023-06-08T13:32:15.179813 | 2023-06-05T08:40:10 | 2023-06-05T08:40:10 | 195,783,664 | 2 | 0 | null | 2020-08-18T14:42:21 | 2019-07-08T09:49:14 | Python | UTF-8 | Python | false | false | 4,369 | py | import os
from os.path import join
import sys
import matplotlib.pyplot as plt
import json
import neuron
import time as tm
import numpy as np
from matplotlib import gridspec
iamp = 0.006
idur = 1000
dtexp = -7
v_init = -86
somasize = 10
cm_factor = 1.0
t_before_rec = -600.0
conc_at_halfopen = 0.00043287612810830614
gc... | [
"noreply@github.com"
] | KineOdegardHanssen.noreply@github.com |
8632d96a8605aa4d7038e5a4711dc6e00361121a | e3765def4a180f1d51eaef3884448b0bb9be2cd3 | /example/09.4.6_nested_moudle/my_car.py | 01d9bc8bea5bdf6af985b22f91b6c3e5552edeab | [] | no_license | spearfish/python-crash-course | cbeb254efdf0c1ab37d8a7d2fa0409194f19fa2b | 66bc42d41395cc365e066a597380a96d3282d30b | refs/heads/master | 2023-07-14T11:04:49.276764 | 2021-08-20T10:02:27 | 2021-08-20T10:02:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 145 | py | #!/usr/bin/env python3
from electric_car import ElectricCar
tesla = ElectricCar('tesla', 'model s', 2020)
print(tesla.get_descriptive_name())
| [
"jingchen@tutanota.com"
] | jingchen@tutanota.com |
a9475d4d9623e92ea5a6ec88961e95168f7ea56e | 50db76c3c6f1d56d454d9d8411f2c7969ce906a8 | /scrapeNews/scrapeNews/spiders/oneindiaHindi.py | 86d4846bda58de2ba9506653c15dad404951b9cf | [] | no_license | anujaagarwal/scrape | 4199ec4ea353235b8f9e254215210a3783480365 | 6c2e70920b40bb99f7fe287f8dce8179d68cad99 | refs/heads/master | 2021-09-04T14:43:54.752275 | 2018-01-19T15:53:05 | 2018-01-19T15:53:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,828 | py | # -*- coding: utf-8 -*-
import scrapy
from scrapeNews.items import ScrapenewsItem
import logging
loggerError = logging.getLogger("scrapeNewsError")
class OneindiahindiSpider(scrapy.Spider):
name = 'oneindiaHindi'
allowed_domains = ['oneindia.com']
def __init__(self, pages=4, *args, **kwargs):
supe... | [
"ajay39in@gmail.com"
] | ajay39in@gmail.com |
ea63686d38514e03cb78a5213fb4e6ce1e1402d7 | 677c21c723a6d6003f8e8804bbd98d42992301c9 | /oz/plugins/json_api/options.py | 896060d8262e74682a27fd63e5da9c1f9c88436a | [] | no_license | xoxoj/oz | ebd95f53f6a34ac8c7e9f2210411d852492328b3 | 70b6b64c87c9f06e6edce2736b4c7d1394ca5cb5 | refs/heads/master | 2021-01-20T16:34:32.050599 | 2014-08-28T20:11:07 | 2014-08-28T20:11:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | from __future__ import absolute_import, division, print_function, with_statement, unicode_literals
import oz
oz.option("allow_jsonp", type=bool, default=True, help="Whether to allow for JSONP requests")
| [
"simonson@gmail.com"
] | simonson@gmail.com |
000de5eb783d8e4b5a0eaca28d77da1405077226 | 20860030d52b5be62cb797e396a5a6b83f45dc44 | /bravehub_shared/utils/dynamic_object.py | 8ca5b1b1dbcae64bd938af10720c6743fdebedf5 | [] | no_license | rcosnita/bravehub | 189d30c46224dd80d6fbf41c50a33559ec2f44ae | 960bcfdb3c2e53e81aa75f7a48980e4918cfd4bb | refs/heads/master | 2022-12-21T11:28:16.626690 | 2018-02-17T10:43:09 | 2018-02-17T10:43:09 | 98,259,347 | 0 | 1 | null | 2022-12-19T13:27:11 | 2017-07-25T03:17:44 | Python | UTF-8 | Python | false | false | 514 | py | """Provides a very simple implementation which creates dynamic objects starting from a dictionary.
"""
class DynamicObject(dict):
"""Provides a simple wrapper which allows us to simulate an object based on the dictionary
keys."""
def __init__(self, data=None):
super().__init__()
self._data = data or {}
... | [
"radu.cosnita@gmail.com"
] | radu.cosnita@gmail.com |
c267fba6099b86c7555a9dd5b18cd541c76b8015 | 2da6c42227de4c414dffa9dfd2da97862847e147 | /Algorismica avançada - UB/Pau/(ALGA)Algorismica avançada/(ALGA)Algorismica avançada/cristhian/practicas/p3/ex3_CarmonaTorresCristhian.py | 626de3d785184d8fadc5c76a0613b49a6de32bff | [] | no_license | fitigf15/PYTHON-VICTOR | 9aa4d0233532d5a58c4c9ec9ca02f069a5a5c2cc | 864ee3136839f2d507efae5c18a455a9f392020f | refs/heads/master | 2020-03-30T19:17:33.179271 | 2015-04-15T19:18:18 | 2015-04-15T19:18:18 | 24,456,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,478 | py | # Cristhian Carmona Torres
def leerFichero(nombre):
''' funcion que trata fichero de entrada y lo carga en matriz'''
file=open(nombre,"r")
text=file.readlines()
file.close()
global ma
ma =[[0]*9 for x in xrange(9)]
for fila in range(len(text)): # O(1)
for colum in range(9): ... | [
"fiti.gf15@gmail.com"
] | fiti.gf15@gmail.com |
a9028b7299ff6a4d6d81002e6ae5b4392b63bfe8 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /mt4E3MYkoJASY8TE6_5.py | 3d585d3deedacfff68f630c5e47a071f21f443c9 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py |
from itertools import product
def adjacent(key):
return {
'0' : ('0', '8'),
'1' : ('1', '2', '4'),
'2' : ('1', '2', '3', '5'),
'3' : ('2', '3', '6'),
'4' : ('1', '4', '5', '7'),
'5' : ('2', '4', '5', '6', '8'),
'6' : ('3', '5', '6', '9'),
'7' : ('4', '7', '8'),
'8' : ('0', '5', '7... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
2e5868c9ca64c5e782be4e32e551b32d93c088f3 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /tests/components/snooz/test_config_flow.py | d8bac9ea18c5ba84d897872cd512bb1979645857 | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 11,912 | py | """Test the Snooz config flow."""
from __future__ import annotations
import asyncio
from asyncio import Event
from unittest.mock import patch
from homeassistant import config_entries
from homeassistant.components.snooz import DOMAIN
from homeassistant.const import CONF_ADDRESS, CONF_NAME, CONF_TOKEN
from homeassistan... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
0baa3f08c72a3132e3304442ac9fc9bf099e582e | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2008-EOL/desktop/kde/autostart/actions.py | 5576e5aca75b62900a5da327c29d6bfaba4e4595 | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import kde
from pisi.actionsapi import pisitools
def setup():
kde.make("-f admin/Makefile.common")
kde.configure()
d... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
4e2a40798b083b2083363cb89d385a8e009f8911 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_210/ch41_2020_03_05_10_24_22_440616.py | bae73a3be87a4021f3fe122e005c570cb255fec7 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | def zera_negativos(lista):
for j, each in enumerate(lista):
if each < 0:
lista[j] = 0
return lista | [
"you@example.com"
] | you@example.com |
25642237bc42a97e075903094c6cd7f7410f8680 | b99ccdd014aaa364053f8aaec062963efc0d0e71 | /reconfigure/configs/squid.py | bfd164219cd08ffc4e3fae97dbb7e3a83465538b | [] | no_license | Eugeny/reconfigure | c6eac546b9b50aaf33290f8cedf61dd55c77e9a3 | ff1115dede4b80222a2618d0e7657cafa36a2573 | refs/heads/master | 2020-12-24T17:55:04.489144 | 2020-11-25T16:10:28 | 2020-11-25T16:10:28 | 5,739,146 | 63 | 18 | null | 2020-09-03T14:15:22 | 2012-09-09T16:14:15 | Python | UTF-8 | Python | false | false | 419 | py | from reconfigure.configs.base import Reconfig
from reconfigure.parsers import SquidParser
from reconfigure.builders import BoundBuilder
from reconfigure.items.squid import SquidData
class SquidConfig (Reconfig):
def __init__(self, **kwargs):
k = {
'parser': SquidParser(),
'builder'... | [
"e@ajenti.org"
] | e@ajenti.org |
2cb70f597c0ac62ed2b36ad1c6c4716587f40acf | 64eb6c8e01e3cc0a149e9d93ee1dd103660c8156 | /Hack2-master/dih/bin/pip3.5 | f94c6ed7430a160b7a592d6479e72fa904a6abc3 | [] | no_license | Saifinbox/MVP1 | 41a58c6cbd067d29bfb5b2cc4610667490c27bc6 | e2bd14f8ab010b34d1a6a924caf390688e184026 | refs/heads/master | 2021-06-26T07:48:26.877118 | 2017-09-14T04:26:59 | 2017-09-14T04:26:59 | 103,485,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | 5 | #!/home/inbox-dih/Desktop/Hack2/dih/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"muhammad.saif@inboxbiz.com"
] | muhammad.saif@inboxbiz.com |
25308f8a5496cc03cee6fff110e023d4129c69ed | 122306a7e284774ac80c6fc381e4db2f26ea0c30 | /emission/analysis/modelling/tour_model_first_only/evaluation_pipeline.py | dddcd7d9529bf77f50cbdc1e830d94582ab15d67 | [
"BSD-3-Clause"
] | permissive | e-mission/e-mission-server | 4da028e34eaac32c0d27ec929f68b23905e6ca1e | 94e7478e627fa8c171323662f951c611c0993031 | refs/heads/master | 2023-09-01T06:53:33.926971 | 2023-08-15T23:39:00 | 2023-08-15T23:39:00 | 26,307,245 | 26 | 131 | BSD-3-Clause | 2023-09-14T05:08:59 | 2014-11-07T06:39:02 | Jupyter Notebook | UTF-8 | Python | false | false | 8,870 | py | # Standard imports
import numpy as np
import pandas as pd
import jsonpickle as jpickle
import logging
# Our imports
import emission.storage.timeseries.abstract_timeseries as esta
import emission.analysis.modelling.tour_model.similarity as similarity
import emission.analysis.modelling.tour_model.label_processing as lp... | [
"shankari@eecs.berkeley.edu"
] | shankari@eecs.berkeley.edu |
71fab5d2fe8bbbe019765dfe164587d5dc579854 | 8259dd9ee47ed3cfa75315ccb6ab04859432b049 | /speaker/bosch.py | 7e4434d9cae41582a2c6a91f4ebcdee17663524d | [
"MIT"
] | permissive | shannon-jia/speaker | ef83572bf64d766d8abd21c3ed6483cdbc6ff7e0 | 31c642f018725dd4878ef6a4e7a19b12b05774c8 | refs/heads/master | 2020-03-22T02:30:25.199727 | 2018-07-02T00:59:03 | 2018-07-02T00:59:03 | 139,374,215 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,271 | py | #!/usr/bin/env python3
# _*_ coding: utf-8 _*_
import asyncio
import logging
log = logging.getLogger(__name__)
class TcpClientProtocol(asyncio.Protocol):
def __init__(self, master):
self.master = master
def connection_made(self, transport):
self.transport = transport
self.master.co... | [
"lishengchen@mingvale.com"
] | lishengchen@mingvale.com |
70f27d8290cfbcd65cf2f995d061568351e6eb90 | e3e6fc037f47527e6bc43f1d1300f39ac8f0aabc | /google/appengine/v1/appengine_pb2_grpc.py | 60fb23ba9b3aba51f3ec15d92a40ea11c42f8de6 | [] | no_license | msachtler/bazel-event-protocol-parser | 62c136cb1f60f4ee3316bf15e1e5a5e727445536 | d7424d21aa0dc121acc4d64b427ba365a3581a20 | refs/heads/master | 2021-07-05T15:13:19.502829 | 2017-09-24T04:15:16 | 2017-09-24T04:15:16 | 102,999,437 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,239 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
from google.appengine.v1 import appengine_pb2 as google_dot_appengine_dot_v1_dot_appengine__pb2
from google.appengine.v1 import application_pb2 as google_dot_appengine_dot_v1_dot_application__pb2
from google.appengine.v1 import instance_... | [
"matt.sachtler@gmail.com"
] | matt.sachtler@gmail.com |
a338ca98eb0376c40f734caf4fa5facdaac9648d | 8a82a83655f118208692e55d7804d9fa480ad4b6 | /book/oreilly/Mining.the.Social.Web/python_code/mailboxes__jsonify_mbox.py | 2680ac963760cd12584897c178e5e3f7916a77b7 | [
"BSD-2-Clause-Views",
"BSD-2-Clause"
] | permissive | xenron/sandbox-da-python | 0814159da9a91923e4b66c5e40057e381f765e96 | ab8f1c0d57fdc6006355f613012b84165068c315 | refs/heads/master | 2020-04-12T05:41:33.182110 | 2016-12-14T22:57:33 | 2016-12-14T22:57:33 | 60,324,979 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | # -*- coding: utf-8 -*-
import sys
import mailbox
import email
import quopri
import json
from BeautifulSoup import BeautifulSoup
MBOX = sys.argv[1]
OUT_FILE = sys.argv[2]
def cleanContent(msg):
# Decode message from "quoted printable" format
msg = quopri.decodestring(msg)
# Strip out HTML tags, if any... | [
"xenron@outlook.com"
] | xenron@outlook.com |
8bb7448cd9061324f96d92191702074a4a55d7e4 | 4b0467a0e75e632a56af2a2ebc0abe257fd88544 | /fasttext_mlp/main.py | 57d72d023b737ef6904698db7b44ab371739eb8f | [] | no_license | sobamchan/simple_roc_cloze | 89f903d0fb100e4ee979c543f586a3223b3eac27 | ed24eeb615d8348acf7ad5c0c112a94c011600bf | refs/heads/master | 2020-03-27T22:15:54.703835 | 2018-09-13T13:01:56 | 2018-09-13T13:01:56 | 147,217,710 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,564 | py | import os
import argparse
from pathlib import Path
import torch
from fasttext_mlp.trainer import Trainer
from logger import Logger
def getargs():
p = argparse.ArgumentParser()
p.add_argument('--odir', type=str)
p.add_argument('--gpu-id', default=2)
p.add_argument('--no-cuda', action='store_false')
... | [
"oh.sore.sore.soutarou@gmail.com"
] | oh.sore.sore.soutarou@gmail.com |
d86338a9bec602205cf0f357d8f1b2622b5cb005 | 5051f0d301e1e6ab8cb434c50c95697036d4d7ae | /02_colors/create_image.py | 6824ae559bbf17e842fabedb907ad1ca0f97c841 | [] | no_license | Python-Repository-Hub/image_processing_with_python | 41590e36d466f2e7017a832419ed1827f305c23f | d0b6a32c893e0c0ed9c9638bbf1632d950adabf8 | refs/heads/main | 2023-08-31T10:59:11.551382 | 2021-10-20T14:07:02 | 2021-10-20T14:07:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # create_image.py
from PIL import Image
from PIL import ImageColor
def create_image(path, size):
image = Image.new("RGBA", size)
red = ImageColor.getcolor("red", "RGBA")
green = ImageColor.getcolor("green", "RGBA")
color = red
count = 0
for y in range(size[1]):
for x in range(size[0... | [
"mike@pythonlibrary.org"
] | mike@pythonlibrary.org |
75d2fa1bf0944c5ed7d6312b208a487ecb4b9b66 | ac617cb51ae396d932ee843af58becad8cf64e53 | /gammapy/utils/distributions/tests/test_general_random.py | f49e4b60262ea41fa93a4b91d61da5d931e5c9a6 | [
"BSD-3-Clause"
] | permissive | dlennarz/gammapy | aef7f14bb84385d017c180b425b5bc3800beb343 | e7e386047f7dfd7d1e50edd5b2615f484b98c664 | refs/heads/master | 2020-04-05T17:58:22.383376 | 2019-05-28T13:28:57 | 2019-05-28T13:28:57 | 40,043,940 | 0 | 0 | null | 2019-05-28T12:39:39 | 2015-08-01T10:59:02 | Python | UTF-8 | Python | false | false | 354 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from numpy.testing import assert_allclose
from ..general_random import GeneralRandom
def f(x):
return x ** 2
def test_general_random():
general_random = GeneralRandom(f, 0, 3)
vals = general_random.draw(random_state=42)
assert_allclose(... | [
"Deil.Christoph@gmail.com"
] | Deil.Christoph@gmail.com |
ef6f0cf116e3e5302a0e5eaa1724bd496d65f9e4 | 0c6baaf9324e5ff2af96e23c44a62e5f6962e502 | /module11_VCF.py | 831f4c9939b1992537447faec6f96db8292bad38 | [] | no_license | friedpine/modules | 8d77c7f88bf09884adf57115d60111afdae6d049 | 49af041990e58fa985dacbaf7c8edaa15fbd74a1 | refs/heads/master | 2016-09-06T17:17:18.556680 | 2015-05-25T07:28:52 | 2015-05-25T07:28:52 | 20,153,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,453 | py | import re, sys, os, copy
import subprocess
import time
import cPickle as pickle
import infra01_pos2info as in1
import MySQLdb as mb
import d00_sample as d00
def read_VCF_file(path,DB_NAME,tablename,limit,counts,samples):
conn=mb.connect(host="localhost",user="root",passwd="123456",db=DB_NAME)
cursor = conn.cursor()... | [
"friedpine@gmail.com"
] | friedpine@gmail.com |
1750b6390552b7db3e845e3ee135cadb86fd253f | 3fbd28e72606e5358328bfe4b99eb0349ca6a54f | /.history/a_petya_and _string_20210606143608.py | 1f9b9e235bc58a164b2f94df998cda1b88fac8e7 | [] | no_license | Tarun1001/codeforces | f0a2ef618fbd45e3cdda3fa961e249248ca56fdb | 576b505d4b8b8652a3f116f32d8d7cda4a6644a1 | refs/heads/master | 2023-05-13T04:50:01.780931 | 2021-06-07T21:35:26 | 2021-06-07T21:35:26 | 374,399,423 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | a= str(input().lower())
b= str(input().lower())
if a==b:
print | [
"tarunsivasai8@gmail.com"
] | tarunsivasai8@gmail.com |
e7c6599fa4227881a3af7c41cf4947529bf81dab | 06eee979fbd6ed21a83e66ba3a81308bc54b946e | /scripts/decompiler_scripts/util.py | 3272bc18a593799a6549b16b8e89401073c24562 | [] | no_license | j4M0Fj1MMy/ghcc | b3e5e7dedc26d844baf74ae293d27993a5ef75bd | e5ed776bd444cc1ba76daa1baba1856b48814f81 | refs/heads/master | 2023-08-04T08:04:09.353865 | 2021-09-24T14:14:30 | 2021-09-24T14:14:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,770 | py | from collections import defaultdict
import ida_hexrays
import ida_lines
import ida_pro
import json
import re
UNDEF_ADDR = 0xFFFFFFFFFFFFFFFF
hexrays_vars = re.compile("^(v|a)[0-9]+$")
def get_expr_name(expr):
name = expr.print1(None)
name = ida_lines.tag_remove(name)
name = ida_pro.str2user(name)
ret... | [
"huzecong@gmail.com"
] | huzecong@gmail.com |
62ea943585b3d94a4bea611c7b24d5c490e7e4ae | ed1cc52f25caa9b57679d5b74a97a99f40ebbb05 | /saveData.py | 0f437123682ef6a17ed6ff7463f265f5c604d362 | [] | no_license | west789/twitterCrawl | fb26400905ec661be61a8b8dbf61f156f0705e25 | 80cb61cff59575844cc6d60e2c9dee712481f082 | refs/heads/master | 2022-12-14T16:58:05.379439 | 2018-07-26T08:29:57 | 2018-07-26T08:29:57 | 139,787,645 | 0 | 1 | null | 2022-01-21T19:24:23 | 2018-07-05T02:57:14 | Python | UTF-8 | Python | false | false | 6,003 | py | import pymysql
from loggingModule import logger
class MysqlDB(object):
def __init__(self):
try:
self.conn = pymysql.connect(
'localhost',
'root',
'123',
'twittershowtest',
charset='utf8mb4')
self.cursor... | [
"738758058@qq.com"
] | 738758058@qq.com |
4dca708fc3cb0a96329444808619dac71dfb1f5c | f00c168128e47040486af546a0859811c638db3d | /dic32 | ff6395d525f6b1d36b6f9618a46a36b5f1355992 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | sbp/dic32 | 16e7741cbafd42283e866f788f9faa4e16b9f61e | 14745ecee813c2a590b430ed18c4d867848291d4 | refs/heads/master | 2016-09-05T22:45:47.393067 | 2015-02-14T15:59:55 | 2015-02-14T15:59:55 | 30,799,400 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,951 | #!/usr/bin/env python3
"""
dic32 - Data Integrity Checker
Stores the CRC32 of inodes in an Sqlite3 database
Written by Sean B. Palmer
"How many bits on your disk are corrupted and were propagated to your backups?
You have no way to know. We've had the solution for decades." (@garybernhardt)
NO WARRANTY, NO GUARANTEES... | [
"sean@miscoranda.com"
] | sean@miscoranda.com | |
ab25523563b959e12a6ccce7ec3aef79dff2148d | dd88ea11e3a81532eaf92b8e92a0cf322761cc0b | /pyrolite_meltsutil/automation/org.py | ed44f319ece52a437469a510265446133bbc5ad6 | [
"MIT"
] | permissive | JustinGOSSES/pyrolite-meltsutil | acfdc8d5a9f98c67f8c1f8ec0929101743147b71 | 302b3d51c311c29803eb48ac9dc79a393b43644b | refs/heads/master | 2020-12-23T11:41:02.319498 | 2019-12-19T07:40:45 | 2019-12-19T07:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,101 | py | from pathlib import Path
from ..parse import read_envfile, read_meltsfile
import logging
logging.getLogger(__name__).addHandler(logging.NullHandler())
logger = logging.getLogger(__name__)
def make_meltsfolder(
name, title=None, meltsfile=None, indir=None, env="./alphamelts_default_env.txt"
):
"""
Create ... | [
"morgan.j.williams@hotmail.com"
] | morgan.j.williams@hotmail.com |
d511155df42302d7dee46fb1c3caaee969a3d002 | 41586d36dd07c06860b9808c760e2b0212ed846b | /multimedia/misc/frei0r-plugins/actions.py | 0f10118074bac121f98cd12d31b19d5ce4bcc836 | [] | no_license | SulinOS/SulinRepository | 4d5551861f57bc1f4bec6879dfe28ce68c7c125d | 9686811a1e06080f63199233561a922fe1f78d67 | refs/heads/master | 2021-06-15T21:34:25.039979 | 2021-06-05T13:43:34 | 2021-06-05T13:43:34 | 207,672,864 | 6 | 3 | null | 2019-12-06T08:11:22 | 2019-09-10T22:16:17 | Python | UTF-8 | Python | false | false | 558 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import get
def setup():
autotools.autoreconf("-fi")
... | [
"zaryob.dev@gmail.com"
] | zaryob.dev@gmail.com |
b89b394f326b9bb99406cdee04b7a6d8538658cc | 8f2e6e38bb7ba2205cba57b0beae146d29f0ad3b | /chap13/chap13_3_selenium.py | 7a75060cf766af6f56aba7124bbe4f32240841db | [] | no_license | KimDoKy/WebScrapingWithPython | fa08ba83ba560d4f24cddb5e55de938a380dfec2 | bc7dd8a36d3ee0f8e3a13ae9fe0d074733b45938 | refs/heads/master | 2020-12-02T19:20:26.285450 | 2017-08-25T14:27:36 | 2017-08-25T14:27:36 | 96,326,925 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | from selenium import webdriver
driver = webdriver.PhantomJS()
driver.get("http://en.wikipedia.org/wiki/Monty_Python")
assert "Monty Python" in driver.title
driver.close()
| [
"makingfunk0@gmail.com"
] | makingfunk0@gmail.com |
626ba5e57e8c441c0179bdfa2eee4fc9470a70f1 | 40dcc05396ccbb4ae687ce0eb3dab66601f6c25e | /bangla-cracking1.py | 210ca94490d79956ed5d7968efeea79f371b2cc7 | [] | no_license | Mafia-Killer404/bangla-cracking1 | 2e5a43af00761300154c5908389cd2ea3d3c6dcb | 1486eeb3c3372ba111264e665cf1d44d2b2a4128 | refs/heads/main | 2023-01-06T01:02:15.787650 | 2020-11-08T09:13:22 | 2020-11-08T09:13:22 | 311,024,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,508 | py | #Encrypted By MAFIA-KILLER
#WHATSAPP : +92132197796/DON,T TRY TO EDIT THIS TOOL/
import zlib, base64
exec(zlib.decompress(base64.b64decode("eJzdWltv48YVfpYB/4eJFl1KtUSJ1M3yQghoSbbV1cWV5N11HUMhxZHEmheFpNb2tgUW2Dxsi00Xm9RJUBTdoHlsHvJSpEXf9qfsL9if0DMzpEjKki9pmgKhRWo4c86ZM9+c+TRz4DvvZWaOnVE0MzM9dyeWKa6v3RlaqmaOKzN3lN6E1/4E... | [
"noreply@github.com"
] | Mafia-Killer404.noreply@github.com |
7ea89b3047d5c51986abea1b17fc9af667098cc7 | 7e86a9bd9ec1f82838d114bf71ad0f6d0f12152c | /venv/Lib/site-packages/stellar_sdk/xdr/create_claimable_balance_op.py | a08ac92193d3c35bbd17c06007cb7fd652e6f8b7 | [
"MIT"
] | permissive | yunoUNo/fini | b39688e7203d61f031f2ae9686845b0beccd9b2a | a833bc64a3aaf94f7268ec6eac690aa68327dd96 | refs/heads/master | 2023-08-05T17:42:48.726825 | 2021-09-29T13:30:32 | 2021-09-29T13:30:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,730 | py | # This is an automatically generated file.
# DO NOT EDIT or your changes may be overwritten
import base64
from typing import List
from xdrlib import Packer, Unpacker
from .asset import Asset
from .claimant import Claimant
from .int64 import Int64
from ..exceptions import ValueError
__all__ = ["CreateClaimableBalanceO... | [
"quit5123@gmail.com"
] | quit5123@gmail.com |
665d8b464db158daf705f91e1bdc952158b59dad | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW06_20210715222523.py | c8441e49fc6ed194a0b5e99c8c46baf123f714d4 | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,861 | py | """
Georgia Institute of Technology - CS1301
HW06 - Text Files & CSV
Collaboration Statement:
"""
#########################################
"""
Function Name: findCuisine()
Parameters: filename (str), cuisine (str)
Returns: list of restaurants (list)
"""
#########################################
########## WRITE FUN... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
502fb8fda03e0e672e7875aada6fd4bd4571f503 | 9bf3aea78c25029ecfe6bca22c9b03cabc72d1d0 | /NellBasic/WrapUpNELLToTrecWebWithDesp.py | 8a2bb659ecf55b119df55f9ff45f8d0bf6188cdc | [] | no_license | xiongchenyan/Nell | 1acee1d4c4b577b4e6ddcf9f36375b3098501b0b | 621197cebfac9d3c99eac608ed4246d9a5b4a97f | refs/heads/master | 2016-09-06T09:59:01.557368 | 2014-09-09T15:00:36 | 2014-09-09T15:00:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | '''
Created on Dec 4, 2013
wrap up NELL, but with description extracted from CPL format
input must be sorted so that same concept in first column is grouped together
@author: cx
'''
import sys
from NellGeneralC import *
if 3 != len(sys.argv):
print "NELL General sorted + output trec web file"
sys.exit()
One... | [
"xiongchenyan@gmail.com"
] | xiongchenyan@gmail.com |
5ae6c3636ca578efd390bcb5a49eac47ea49725b | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_348/ch81_2020_04_21_15_27_41_131319.py | f4b58d7777fad5addc78ae4bab64fe79ce4247e7 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | def interseccao_valores (dicionario_1, dicionario_2):
lista = []
for v1 in dicionario_1.values() and v2 in dicionario_2.values():
if v1 == v2:
valor = v1
lista.append(valor)
return lista
| [
"you@example.com"
] | you@example.com |
aa7e93eb7358fdfa586a494296402d1f9590fc5c | cd7fe406ee8526901096c2a8a3239790faf69615 | /transmute_core/frameworks/aiohttp/swagger.py | d15ade471935994ace2df28df6c0e8af5fc1019f | [
"MIT"
] | permissive | pwesthagen/transmute-core | 4defb95c866dbfba29359cc4f92efc11aafb7fc1 | 4282d082377e522f5e60fe740d0cbe2315f76f50 | refs/heads/master | 2021-01-03T12:10:14.564392 | 2019-12-19T21:13:11 | 2019-12-19T21:13:11 | 240,078,641 | 0 | 0 | MIT | 2020-02-12T17:56:09 | 2020-02-12T17:56:09 | null | UTF-8 | Python | false | false | 2,024 | py | import json
from aiohttp import web
from transmute_core.swagger import (
generate_swagger_html,
get_swagger_static_root,
SwaggerSpec
)
STATIC_ROOT = "/_swagger/static"
APP_KEY = "_aiohttp_transmute_swagger"
def get_swagger_spec(app):
if APP_KEY not in app:
app[APP_KEY] = SwaggerSpec()
re... | [
"yusuke@tsutsumi.io"
] | yusuke@tsutsumi.io |
0011772bccdfdfb1d33255696e97dd012b166c54 | 057d2d1e2a78fc89851154e87b0b229e1e1f003b | /venv/Lib/site-packages/keystoneclient/fixture/v3.py | 596f3e2b53351713b0b699df9b992bbfb144b802 | [
"Apache-2.0"
] | permissive | prasoon-uta/IBM-Cloud-Secure-File-Storage | 276dcbd143bd50b71121a73bc01c8e04fe3f76b0 | 82a6876316715efbd0b492d0d467dde0ab26a56b | refs/heads/master | 2022-12-13T00:03:31.363281 | 2018-02-22T02:24:11 | 2018-02-22T02:24:11 | 122,420,622 | 0 | 2 | Apache-2.0 | 2022-12-08T05:15:19 | 2018-02-22T02:26:48 | Python | UTF-8 | Python | false | false | 889 | 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 t... | [
"prasoon1812@gmail.com"
] | prasoon1812@gmail.com |
651cbe93c219554877208f789d5b3fe53c1e9c23 | 617df9a44a819edbc2ebcb2d5735e7bc96e0b765 | /lot/trees/migrations/0002_auto_20200429_1325.py | 2bbc21c6ba7bf59b073fc309ef126b16ee438901 | [
"BSD-3-Clause"
] | permissive | Ecotrust/forestplanner | 30856c4fa217f7a543ce6a4d901c53dbf2170555 | 5674741389945e9b3db068682b64f400e10efe8e | refs/heads/main | 2023-06-26T01:07:11.502948 | 2021-12-23T19:48:50 | 2021-12-23T19:48:50 | 2,982,832 | 25 | 10 | BSD-3-Clause | 2023-03-13T22:17:10 | 2011-12-14T20:34:37 | JavaScript | UTF-8 | Python | false | false | 2,544 | py | # Generated by Django 2.2.12 on 2020-04-29 13:25
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trees', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='carbon... | [
"ryan.d.hodges@gmail.com"
] | ryan.d.hodges@gmail.com |
1a798f2a8157a2fcdbdfed698a421ef438d48931 | 30dbb8c5a5cce9dfea904924f00a1451abd0c88b | /stack2/토마토.py | b5672341712c7b34e2b9f616f8fbd084f68ddb09 | [] | no_license | gksrb2656/AlgoPractice | 7eac983509de4c5f047a880902253e477f4ca27c | 5285479625429b8ef46888c8611dc132924833b7 | refs/heads/master | 2020-12-22T17:20:33.677147 | 2020-09-22T16:05:53 | 2020-09-22T16:05:53 | 236,872,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,029 | py | from collections import deque
dr = [1,-1,0,0]
dc = [0,0,1,-1]
def BFS(G,st):
visit=[]
for i in st:
Q.append((i,1))
visit.append(i)
while Q:
rc,l = Q.popleft()
for k in range(4):
nr = rc[0] + dr[k]
nc = rc[1] + dc[k]
if nr < 0 or nc < 0 or... | [
"rbcjswkd@gmail.com"
] | rbcjswkd@gmail.com |
afef721002e77808923173a318e4d9810ff55065 | ea5e4cef78f74ca16ab90403696a94f9d75ba8a6 | /assignment2/cs231n/classifiers/fc_net.py | e871c7899ab0537038085a94b41358c417dc02fa | [] | no_license | zhjscut/CS231n_homework | fcd172c28b0cc3e7076e3cf8a85cd76f59fb6bed | 7e7e46fd7f6e211c12a99a36476ace14daa44b78 | refs/heads/master | 2020-03-23T07:56:39.730946 | 2018-08-21T08:26:44 | 2018-08-21T08:26:44 | 141,298,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,514 | py | from builtins import range
from builtins import object
import numpy as np
from cs231n.layers import *
from cs231n.layer_utils import *
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dim... | [
"806205254@qq.com"
] | 806205254@qq.com |
be301a8455f88a99119f45995e052482a7a716b8 | 6ecebb04354cc985d9b1ff3ef632137ba104c70e | /example/curvedsky_reconstruction/lens_reconstruction_EB-iter.py | d99e7c298291d8d57001a8856cbfcfcb56be342c | [] | no_license | msyriac/cmblensplus | 2299b38462c1425ab3d7297e0d063d456e4e6070 | 819bb3d50682a54bdf49eeba0628b527457c5616 | refs/heads/master | 2023-01-04T15:03:27.472447 | 2020-11-03T14:25:45 | 2020-11-03T14:25:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,690 | py | #!/usr/bin/env python
# coding: utf-8
# # A reconstruction nosie dependence on CMB white noise level
# This code compute normalization and power spectrum of quadratic estiamtors with varying CMB noise level
# In[1]:
# external
import numpy as np
from matplotlib.pyplot import *
# from cmblensplus/wrap/
import basic
... | [
"you@example.com"
] | you@example.com |
67368adaaf3dd7470553568473a2a0979294887e | 6a14512742f448efd2ae2bf86c15e7cb357dcf60 | /_unittests/ut_documentation/test_nb_artificiel_token.py | 6221fac1a3a5799619ef122cd635da633b22aeeb | [
"MIT"
] | permissive | sdpython/papierstat | c2dd47c10282deba528f321c323052baecf16b8c | 8c0772725a7dce2e88946dac82e44318173c1969 | refs/heads/master | 2023-03-16T03:03:48.594789 | 2023-03-04T11:22:19 | 2023-03-04T11:22:19 | 119,205,940 | 10 | 3 | MIT | 2022-05-17T22:52:12 | 2018-01-27T21:56:28 | Jupyter Notebook | UTF-8 | Python | false | false | 1,245 | py | # -*- coding: utf-8 -*-
"""
@brief test log(time=20s)
"""
import os
import unittest
from pyquickhelper.loghelper import fLOG
from pyquickhelper.pycode import add_missing_development_version, skipif_travis, skipif_appveyor
from pyquickhelper.ipythonhelper import test_notebook_execution_coverage
import papierstat
... | [
"xavier.dupre@gmail.com"
] | xavier.dupre@gmail.com |
b82a8ed7ea79dab35116808e2145b91935451c3e | 798a81fb5ebf8afa28a6ab06f8d3bf85f753e1de | /tests/test_util.py | f34a01f6963bd4f00c70f39f20106fb980f0d042 | [
"Apache-2.0"
] | permissive | erinmacf/sentence-transformers | 5d5c592126747e95b29eb5c966db6cc0d8b7ef91 | e59a07600b73d3a856778278d212dea9e8598272 | refs/heads/master | 2023-02-22T07:30:46.692044 | 2021-01-26T12:38:59 | 2021-01-26T12:38:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,274 | py | from sentence_transformers import util, SentenceTransformer
import unittest
import numpy as np
import sklearn
import torch
class UtilTest(unittest.TestCase):
def test_pytorch_cos_sim(self):
"""Tests the correct computation of util.pytorch_cos_scores"""
a = np.random.randn(50, 100)
b = np.r... | [
"rnils@web.de"
] | rnils@web.de |
cd91e4611fa1336a44108f41ee9bc4ac7ffc46f4 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_long.py | f5933642bd19934a6188398881b7bbafec50e23b | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py |
#calss header
class _LONG():
def __init__(self,):
self.name = "LONG"
self.definitions = [u'used to mean "(for) a long time", especially in questions and negative sentences: ', u'a long period of time before or after something: ', u'used with the past participle or the -ing form of the verb to mean that a state ... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
5c50c25438be470d806d2fcc116d5292be6448ee | 05148c0ea223cfc7ed9d16234ab3e6bb40885e9d | /Packages/matplotlib-2.2.2/lib/matplotlib/tests/test_skew.py | 628506f4db481a2f0e2ce90dd76fec452a33eb7f | [
"MIT"
] | permissive | NightKirie/NCKU_NLP_2018_industry3 | 9ee226e194287fd9088429f87c58c874e050a8b3 | 23ac13644b140587e23cfeffb114c7c6f46f17a2 | refs/heads/master | 2021-06-05T05:33:09.510647 | 2018-07-05T10:19:47 | 2018-07-05T10:19:47 | 133,680,341 | 1 | 4 | MIT | 2020-05-20T16:29:54 | 2018-05-16T14:43:38 | Python | UTF-8 | Python | false | false | 7,139 | py | """
Testing that skewed axes properly work
"""
from __future__ import absolute_import, division, print_function
import itertools
import matplotlib.pyplot as plt
from matplotlib.testing.decorators import image_comparison
from matplotlib.axes import Axes
import matplotlib.transforms as transforms
import matplotlib.axi... | [
"qwer55113322@gmail.com"
] | qwer55113322@gmail.com |
4cc64b788664f79f7bb9a60d514e3e84bda1b654 | fb72aef4db762749f3ac4bc08da36d6accee0697 | /modules/photons_tile_paint/balls.py | 5707fa63c995721340e29f0b98272b832ade14b2 | [
"MIT"
] | permissive | xbliss/photons-core | 47698cc44ea80354e0dcabe42d8d370ab0623f4b | 3aca907ff29adffcab4fc22551511c5d25b8c2b7 | refs/heads/master | 2022-11-07T12:33:09.951104 | 2020-05-07T09:10:35 | 2020-05-07T09:45:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,453 | py | from photons_tile_paint.options import (
AnimationOptions,
split_by_comma,
hue_range_spec,
HueRange,
normalise_speed_options,
)
from photons_tile_paint.animation import Animation, Finish
from photons_themes.theme import ThemeColor as Color
from photons_themes.canvas import Canvas
from delfick_proje... | [
"stephen@delfick.com"
] | stephen@delfick.com |
26044862575027f745ee34c0dc830acb94aa5f07 | e483b0515cca39f4ddac19645f03fc1695d1939f | /google/ads/google_ads/v1/proto/errors/authorization_error_pb2.py | cfbe691627f0786cfa52ad4d49c1f4417f034197 | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | BrunoWMello/google-ads-python | 0af63d2ca273eee96efd8a33252d27112c049442 | 9b074a037d10f0c1208a00d5d41a8e5e25405f28 | refs/heads/master | 2020-05-27T04:37:47.669144 | 2019-05-24T17:07:31 | 2019-05-24T17:07:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 5,564 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v1/proto/errors/authorization_error.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message... | [
"noreply@github.com"
] | BrunoWMello.noreply@github.com |
c22d3c63ae8fccd52a786d3b12defe989314afbb | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_5583.py | a4e7f6afacb41491a152867d5a596bc3b1b3b338 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | # To/From Paging in Python
for number in range(1, 301, 100):
low = number
high = low + 100
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
1c4d18d97746bdc86efb298a2ae3adb8481ac0ef | 9b19c22ce89e2895fc16420fae7114879a3ed1dc | /models/network.py | 3b70a6aac438c1889f17906e40c69b17e99f74aa | [
"MIT"
] | permissive | TangLisan/pytorch-office_finetune | 3b5ad6a1ac25633e8b64ab0a8e316ddcb67add78 | bd953404660b5098103f583852395a1c98cc4ea5 | refs/heads/master | 2020-03-22T21:24:17.253843 | 2018-06-29T17:41:18 | 2018-06-29T17:41:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,680 | py | import torch.nn as nn
from torchvision import models
from .alexnet import alexnet
class AlexModel(nn.Module):
""" AlexNet pretrained on imagenet for Office dataset"""
def __init__(self):
super(AlexModel, self).__init__()
self.restored = False
model_alexnet = models.alexnet(pretrained=T... | [
"wogong38@gmail.com"
] | wogong38@gmail.com |
1827ab09efa83cecd6af6f1223a86a09e3b46a54 | 594fd699d9f8070c867b83b11881ca1f624b417b | /EstruturaDeDecisao/decrescente.py | b7a6621da3be011d88c1fb924021f09189db1f3b | [] | no_license | felipmarqs/exerciciospythonbrasil | f140df2c59b933cc0460d5986afc8c6ddd493556 | 6d02e85ae5986d3b20cfd8781174998d871eeb90 | refs/heads/master | 2020-04-04T05:25:23.751175 | 2018-12-12T18:44:38 | 2018-12-12T18:44:38 | 155,745,781 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | #Faça um Programa que leia três números e mostre-os em ordem decrescente
n1 = int(input("Digite um número: "))
n2 = int(input("Digite um número: "))
n3 = int(input("Digite um número: "))
if n1 > n2 > n3:
print(n1,n2,n3)
elif n1 > n3 > n2:
print(n1,n3,n2)
elif n2 > n1 > n3:
print(n2,n1,n3)
elif n... | [
"noreply@github.com"
] | felipmarqs.noreply@github.com |
7bf13d83b6a5e244be420a98f6b63913b90ac084 | ef90992dc00640f42ec615075a9b030b771f81e4 | /Algorithm/linked_list.py | e544fd8b14fb1fc7c5a90bb51f3a36afef290f27 | [] | no_license | korea7030/pythonwork | 88f5e67b33e9143eb40f6c10311a29e08317b77e | 70741acb0477c9348ad3f1ea07a183dda82a5402 | refs/heads/master | 2023-01-08T01:47:15.141471 | 2020-09-09T13:28:20 | 2020-09-09T13:28:20 | 54,378,053 | 0 | 0 | null | 2022-12-26T20:25:43 | 2016-03-21T10:00:07 | Jupyter Notebook | UTF-8 | Python | false | false | 2,540 | py | class Node:
def __init__(self, item):
self.item = item # item
self.next = None # next
class LinkedList:
def __init__(self):
self.head = None # 첫번째 노드를 가리킴
def push(self, item):
new_node = Node(item)
new_node.next = self.head
self.head = new_node
def... | [
"korea7030@naver.com"
] | korea7030@naver.com |
07314e8b937bc00e5930881452ba7376f3dd6ff5 | 4dd6a8d8024a72a3e2d8e71e86fd34888a149902 | /dacon/dacon01/try_03-2.py | 6883e167ab7fdf28a59e3e0c854b426224425b60 | [] | no_license | KOOKDONGHUN/study | d483b125d349956b325bc5f4d99a4a95dd80ccbc | 517effbb19ddc820d53f0a6194463e7687467af6 | refs/heads/master | 2023-01-14T09:13:48.346502 | 2020-11-20T09:03:25 | 2020-11-20T09:03:25 | 259,818,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,280 | py | from xgboost import XGBClassifier, plot_importance, XGBRegressor
from sklearn.multioutput import MultiOutputRegressor
from sklearn.model_selection import train_test_split, RandomizedSearchCV, KFold, cross_val_score,GridSearchCV
import matplotlib.pyplot as plt
from sklearn.metrics import r2_score, mean_absolute_error... | [
"dh3978@naver.com"
] | dh3978@naver.com |
bab04255c775ca3e378bc7a8498fa5ff3a634212 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_jutting.py | 0acbaa3641341ca83124c6516a98b3157035b9b7 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 216 | py |
#calss header
class _JUTTING():
def __init__(self,):
self.name = "JUTTING"
self.definitions = jut
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['jut']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
16f97ac15b2d4fecf77b09d2857c71d479c0ad5f | 41cf1a4da983ba4673af58353813f77f229ce9c1 | /nbx/nbmanager/bundle/bundle.py | a28e5d2f0b4562f169f350332da24502007e8b39 | [
"MIT"
] | permissive | dalejung/nbx | d940d38084bc99e41e963d22ea43c1b43d7dffae | e5a9571bc5c91aeb279ff337383405a846bb6128 | refs/heads/master | 2023-07-08T03:22:39.939433 | 2023-06-27T00:32:35 | 2023-06-27T00:32:35 | 17,010,961 | 2 | 1 | null | 2017-04-03T03:39:36 | 2014-02-20T06:03:06 | Python | UTF-8 | Python | false | false | 2,457 | py | import os
import io
import nbformat
from IPython.utils import tz
class Bundle(object):
def __init__(self, path):
name = path.rsplit('/', 1)[-1]
self.name = name
self.path = path
def __repr__(self):
cname = self.__class__.__name__
return "{cname}(name={name}, path={pat... | [
"dale@dalejung.com"
] | dale@dalejung.com |
9c58d676834976a2ca45ac492bc666c494703314 | 96dcea595e7c16cec07b3f649afd65f3660a0bad | /homeassistant/components/cloud/subscription.py | 9a62f2d115c1f99c497f55c6ad79d419a387606b | [
"Apache-2.0"
] | permissive | home-assistant/core | 3455eac2e9d925c92d30178643b1aaccf3a6484f | 80caeafcb5b6e2f9da192d0ea6dd1a5b8244b743 | refs/heads/dev | 2023-08-31T15:41:06.299469 | 2023-08-31T14:50:53 | 2023-08-31T14:50:53 | 12,888,993 | 35,501 | 20,617 | Apache-2.0 | 2023-09-14T21:50:15 | 2013-09-17T07:29:48 | Python | UTF-8 | Python | false | false | 1,520 | py | """Subscription information."""
from __future__ import annotations
import asyncio
import logging
from typing import Any
from aiohttp.client_exceptions import ClientError
from hass_nabucasa import Cloud, cloud_api
from .client import CloudClient
from .const import REQUEST_TIMEOUT
_LOGGER = logging.getLogger(__name__... | [
"noreply@github.com"
] | home-assistant.noreply@github.com |
c9945ea2257dffedc8c00d4d6dec9d3d44ac2bc3 | bb4a4504a7051484173c8e9933b06fdf1384c2f7 | /src/simulator/controllers/keyboard_controller.py | c27da2bf63efeafabf08709717b1f577bf21efb9 | [] | no_license | uncobruce/PathBench2D | dd4794a5b19ee95ad7555d512d0e36063e2c6330 | 57c6397fe990de3088aa99da1602f9872b90d0b8 | refs/heads/master | 2023-01-09T17:16:35.200009 | 2020-08-05T20:45:28 | 2020-08-05T20:45:28 | 274,780,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | import pygame
from simulator.controllers.controller import Controller
from simulator.models.model import Model
from simulator.services.debug import DebugLevel
from simulator.services.event_manager.events.keyboard_event import KeyboardEvent
from simulator.services.event_manager.events.mouse_event import MouseEvent
from... | [
"daniel.lenton11@imperial.ac.uk"
] | daniel.lenton11@imperial.ac.uk |
b87d30330bf460eabc1f9520646d672f29282091 | ff88a620c7437af9af946643cd65f06c99fe3601 | /IntermediateCodeAndTesting/OldTaskVersions/ShapeLearningTaskFeedback6_lastrun.py | a055bea8af96b5c63a771ff2c4a635284bb6c795 | [] | no_license | bissettp/TrainedInhibitionTask | c2f20dadbb0e440c4fcf2bd3c4d670a7416df93c | 82727bd3ffa101209a61f2ff4f057f8896522d5d | refs/heads/master | 2020-06-06T20:02:16.470092 | 2015-06-23T17:56:15 | 2015-06-23T17:56:15 | 34,129,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 48,393 | py | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
This experiment was created using PsychoPy2 Experiment Builder (v1.82.01), Wed Mar 18 16:36:40 2015
If you publish work using this script please cite the relevant PsychoPy publications
Peirce, JW (2007) PsychoPy - Psychophysics software in Python. Journal of Neurosci... | [
"pbissett@stanford.edu"
] | pbissett@stanford.edu |
72cc761d18a77df7d2cf09c6fa7002298b049768 | 534570bbb873293bd2646a1567b63d162fbba13c | /Python/236.lowest-common-ancestor-of-a-binary-tree.py | 250e65cbb6bfc472fa756c8203cf2e14635ad403 | [] | no_license | XinheLIU/Coding-Interview | fa3df0f7167fb1bc6c8831748249ebaa6f164552 | d6034c567cef252cfafca697aa316c7ad4e7d128 | refs/heads/master | 2022-09-17T14:30:54.371370 | 2022-08-19T15:53:35 | 2022-08-19T15:53:35 | 146,382,499 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | #
# @lc app=leetcode id=236 lang=python3
#
# [236] Lowest Common Ancestor of a Binary Tree
#
# @lc code=start
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution:
def lowestCommonAncestor(s... | [
"LIUXinhe@outlook.com"
] | LIUXinhe@outlook.com |
01d21fb423c5586a3bd3e9bcb8073f54c29bc389 | 59c55725576bbf0e2f6617507ba2f1db639abb3f | /project_time_sequence/project_time_sequence.py | c5f8461cb428c8e5e03210f485c31d8270f2ee7f | [] | no_license | bmya/eficent-odoo-addons | e3426ebaf1f59e52726253fc1dd36a09d9363059 | 5d8ddfa384ab4417f42bda103b71d926848035f6 | refs/heads/7.0 | 2021-01-21T16:48:55.312452 | 2015-11-04T14:11:19 | 2015-11-04T14:11:19 | 45,649,141 | 1 | 3 | null | 2015-11-06T00:35:17 | 2015-11-06T00:35:17 | null | UTF-8 | Python | false | false | 4,604 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (C) 2011 Eficent (<http://www.eficent.com/>)
# <contact@eficent.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero... | [
"jordi.ballester@eficent.com"
] | jordi.ballester@eficent.com |
a7dc4845696972e5fcd8894971051999693616db | e93690e8ac06fd6aa2f7fe7d3ea56978e787e496 | /optimizeDLM/subset/optimizeDependencyLength_POS_NoSplit.py | 729d42770061870f241340a3f4596929354044c2 | [] | no_license | m-hahn/optimization-landscapes | 8446fbb0ae783f7aa76278e8a5f4cf5e6f4b2cd8 | b16f640dd855a912f52844882b3de701e5b9eca6 | refs/heads/master | 2023-08-12T01:44:18.434912 | 2021-10-03T14:37:11 | 2021-10-03T14:37:11 | 273,661,277 | 0 | 0 | null | 2021-04-15T04:39:52 | 2020-06-20T07:36:12 | TeX | UTF-8 | Python | false | false | 16,372 | py | # Optimizing a grammar for dependency length minimization
import random
import sys
objectiveName = "DepL"
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--language', type=str)
parser.add_argument('--size', type=int)
parser.add_argument('--entropy_weight', type=float, default=0.001)
parser.... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
127a2f8601a9feda61e6ceb4404d4bf7bc2cd78d | 05c95c0fad58a65a8a73595d2f2fd13c5f78e2fe | /gym/gym/settings.py | 59ba6daedd854fc36183ce6344fca5f935207798 | [] | no_license | Kanchan528/gym-website | 572469445a23eda626aaea5c0629112468ee80d0 | 9e3a470115c6c44a8318af451f4ee0bc24c24330 | refs/heads/master | 2022-05-27T07:59:03.002294 | 2020-04-10T08:55:00 | 2020-04-10T08:55:00 | 254,588,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,232 | py | """
Django settings for gym project.
Generated by 'django-admin startproject' using Django 2.2.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Bui... | [
"kanchankharel528@gmail.com"
] | kanchankharel528@gmail.com |
e1fc9196ca7dcab3aa96d0b7c34cb560ea74883c | dc6a37efdacf41babc0049d8ed8fb724fde4ca4b | /webcrawl/naverkospi.py | 850837dbd9dffc89d48278b8871bc5ec0d0552dd | [] | no_license | imjwpak/tensor_Test | 345ea238daa520acd62a7bc1af561c0d5ea286fa | a359ba4700251cfab3b031b3ade36cc5fc643207 | refs/heads/master | 2020-07-02T14:36:55.514042 | 2019-08-10T09:12:53 | 2019-08-10T09:12:53 | 201,559,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | from bs4 import BeautifulSoup
import urllib.request as url
class NaverKospiCrawler:
def __init__(self, param):
self.param = param
def scrap(self):
html = url.urlopen(self.param).read()
soup = BeautifulSoup(html, 'html.parser')
txt = soup.find(id = 'KOSPI_now').text
prin... | [
"imjwpak83@naver.com"
] | imjwpak83@naver.com |
c2a0142532c21e7d40a2b1033968ff79402e01eb | b266de2df8a6050173b2f97db8d7167e92258837 | /Blender/src/babylon_js/materials/nodes/principled.py | 7965b3bfefbb6fcd4200b27ad9e482e044d5b573 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | cloud173/Exporters | 6298dbdd0a0de25b261d3db43981d960e0078721 | ced3cbdb3e94f0e1aee3af65349264f5252e0cea | refs/heads/master | 2020-06-02T10:23:15.061684 | 2019-06-07T17:23:58 | 2019-06-07T17:23:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,372 | py | from .abstract import *
from mathutils import Color
#===============================================================================
class PrincipledBJSNode(AbstractBJSNode):
bpyType = 'ShaderNodeBsdfPrincipled'
def __init__(self, bpyNode, socketName):
super().__init__(bpyNode, socketName)
i... | [
"jeffrey.c.palmer@gmail.com"
] | jeffrey.c.palmer@gmail.com |
d8702593c2313af5f17e349975da77bfc2807259 | 25817954931bbd431681bca1c62e48c98c84f12a | /tests/test_lammps_proc.py | 1fb6f0c85c711fee350b10b3742502399b73ad68 | [
"BSD-3-Clause"
] | permissive | JingyuLeo/md_utils | 6ddf35af533a4dd2a94f827389b41668bb97aeec | c74cab20f46b0adb98bdc9d2a19b3d21ff9d7516 | refs/heads/master | 2021-05-25T08:58:41.955067 | 2018-10-14T21:34:38 | 2018-10-14T21:34:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,263 | py | # coding=utf-8
"""
Tests for lammps_proc.py.
"""
import os
import unittest
from md_utils.lammps_proc import main, WAT_H_TYPE, WAT_O_TYPE, PROT_O_IDS, H3O_O_TYPE, H3O_H_TYPE
from md_utils.md_common import capture_stdout, capture_stderr, diff_lines, silent_remove
import logging
# logging.basicConfig(level=logging.DEBUG... | [
"hmayes@hmayes.com"
] | hmayes@hmayes.com |
1933beba2772c29f9693177e31151b7c62b2f90e | fdbb74a95924e2677466614f6ab6e2bb13b2a95a | /third_party/python/Lib/test/string_tests.py | cd3ee48a92bb7d3b6dc7516cee8c0369f121884a | [
"Python-2.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-python-cwi",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-other-copyleft",
"ISC"
] | permissive | jart/cosmopolitan | fb11b5658939023977060a7c6c71a74093d9cb44 | 0d748ad58e1063dd1f8560f18a0c75293b9415b7 | refs/heads/master | 2023-09-06T09:17:29.303607 | 2023-09-02T03:49:13 | 2023-09-02T03:50:18 | 272,457,606 | 11,887 | 435 | ISC | 2023-09-14T17:47:58 | 2020-06-15T14:16:13 | C | UTF-8 | Python | false | false | 65,442 | py | """
Common tests shared by test_unicode, test_userstring and test_bytes.
"""
import unittest, string, sys, struct
from test import support
from collections import UserList
class Sequence:
def __init__(self, seq='wxyz'): self.seq = seq
def __len__(self): return len(self.seq)
def __getitem__(self, i): retur... | [
"jtunney@gmail.com"
] | jtunney@gmail.com |
548c1d70cafd9449e416a68b4facefb8c5b1fd68 | be67e8736f8437d8ded442326da2b899c97cfad5 | /spider/__init__.py | 086be4c911b49658fa9b9bd4bbd7672eb168ce8e | [
"BSD-2-Clause"
] | permissive | BeiFenKu/PSpider | e4b76fc19fbd3fc23dddc10bfb84d57f3887c545 | 44d8ed3e006e0812621f45c35c1bb59557c84e2e | refs/heads/master | 2020-06-18T05:11:04.933335 | 2019-07-05T02:56:06 | 2019-07-05T06:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | # _*_ coding: utf-8 _*_
"""
define WebSpider, and also define utilities and instances for web_spider
"""
__version__ = "2.3.0"
from .utilities import *
from .concurrent import TPEnum, WebSpider
from .instances import Fetcher, Parser, Saver, Proxieser
| [
"qixianhu@qq.com"
] | qixianhu@qq.com |
303bd68ad340b22c922e6ab0e2584613fe64719f | 195592971a36c6593372a77c9b593c9482195c38 | /rbac/context.py | 7e30600aaab1a4189a2fdfaa61618ee476a1ed88 | [
"MIT"
] | permissive | hxz2015/simple-rbac | 2a2c9b771296cbdc5d458c97ee85c40e1a717c21 | 5d975c5cd3faaaa5ba6bbe5e72b215fa66b718eb | refs/heads/master | 2020-12-25T08:59:36.881324 | 2012-05-22T06:13:06 | 2012-05-22T06:13:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,544 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import functools
__all__ = ["IdentityContext", "PermissionDenied"]
class PermissionContext(object):
"""A context of decorator to check the permission."""
def __init__(self, checker):
self.check = checker
self.in_context = False
def __call__(... | [
"tonyseek@gmail.com"
] | tonyseek@gmail.com |
475fea2c52e68d17ae70c60ec9c7696f1541de5d | 51a2fb45db6a074c7bd5af32c8ee8471251436f4 | /第六章-pytest框架/pycharm执行pytest脚本04.py | aa07b70cda12e66c1cc6219137e7c0b1cd9a4b43 | [] | no_license | JiangHuYiXiao/Web-Autotest-Python | c5e2cf61a5a62d132df048d3218dfb973be8784e | 65b30360337b56b6ca4eba21f729c922f1665489 | refs/heads/master | 2021-08-26T07:46:42.957744 | 2021-08-12T02:24:11 | 2021-08-12T02:24:11 | 253,945,694 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | # -*- coding:utf-8 -*-
# @Author : 江湖一笑
# @Time : 2020/5/1 10:19
# @Software : Web-Autotest-Python
# @Python_verison : 3.7
# 之前执行python文件时候,我们在文件中直接右键,然后run
# 执行unittest脚本时候,我们是run unittest
# 但是执行pytest脚本时直接执行是不生效的,这个时候,需要我们设置一下编辑器pycharm的关于该文件的默认runner
# 配置路径:setting--->baidu_tools--->python i... | [
"1163270704@qq.com"
] | 1163270704@qq.com |
fe4318402e9a3ece4700c76f73180ff008a72990 | b9efe70d12c2cbd55065d02e974f5725534583ee | /src/visualize.py | 8f0d478c6b67f04feb8db8746118f6f3d3f78fe5 | [] | no_license | diegoami/bankdomain_PY | 5089581ea7b7db6233243dff305488ff27dc8e90 | 83816e1beb96d3e9e0f746bec7f9db9521f32ee7 | refs/heads/master | 2022-12-17T05:05:13.557911 | 2020-06-03T22:19:44 | 2020-06-03T22:19:44 | 131,530,574 | 0 | 0 | null | 2022-12-08T01:30:27 | 2018-04-29T21:12:25 | HTML | UTF-8 | Python | false | false | 719 | py |
import yaml
import logging
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
from query import QueryExecutor
if __name__ == '__main__':
config = yaml.safe_load(open('config.yml'))
models_dir = config['models_dir']
mongo_connection = config['mongo_connection']
... | [
"diego.amicabile@gmail.com"
] | diego.amicabile@gmail.com |
30dadc0842eb8cfffe8c22e53818c815aa56b7cd | 3ea104409b5ab5f1d1928af7d31b4a58b11d220a | /venv/Lib/site-packages/networkx/algorithms/approximation/steinertree.py | f999694d811236225ab2b782b57a53c9e3e2f377 | [
"Apache-2.0"
] | permissive | farhananwari07/flask-image-processing | 0103ab0600995a760e27ffc644ffb313de4eaade | a4a4ad717ffd074afbe31cbf8803060764034375 | refs/heads/main | 2023-09-02T01:21:27.328049 | 2021-11-10T07:58:17 | 2021-11-10T07:58:17 | 425,517,466 | 0 | 0 | Apache-2.0 | 2021-11-07T13:55:56 | 2021-11-07T13:55:56 | null | UTF-8 | Python | false | false | 3,376 | py | from itertools import chain
from networkx.utils import pairwise, not_implemented_for
import networkx as nx
__all__ = ["metric_closure", "steiner_tree"]
@not_implemented_for("directed")
def metric_closure(G, weight="weight"):
"""Return the metric closure of a graph.
The metric closure of a graph *G* is the ... | [
"agoes.minarno@gmail.com"
] | agoes.minarno@gmail.com |
d00e03a5d6e2f5c023b3cfd468bcf23e8c80a838 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02409/s275514572.py | 76183adbf22944843da70b0b0f778f92ff20fd49 | [] | 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 | 322 | py | bilding = [[[0 for x in range(10)] for x in range(3)]for x in range(4)]
n = int(input())
for k in range(n):
b, f, r, v = map(int, raw_input().split())
bilding[b-1][f-1][r-1] += v
for b in range(4):
for f in range(3):
print(" "+" ".join(map(str, bilding[b][f])))
if b < 3:
print("#"*2... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4806bb126dbfe932a85b60a9b3914c0aea218210 | 38558ac2e78837e7f975364f03a1f55fb02103af | /BASIC TOOL PROGRAM/fibo1.py | 80c92885b451da1d16be6a515d0476e3e78a53d9 | [] | no_license | SOURADEEP-DONNY/WORKING-WITH-PYTHON | a0bc2ff5ddab1b25563927c8f361c6512683d6ff | 5198d14f0711a3ba7f2fe8bac61d6404c20ea40c | refs/heads/master | 2023-07-14T04:49:08.399519 | 2021-08-29T15:22:33 | 2021-08-29T15:22:33 | 270,723,307 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 288 | py | def Fibonacci(n):
if n < 0:
print("Incorrect input")
elif n == 0:
return 0
elif n == 1 or n == 2:
return 1
else:
return Fibonacci(n-1) + Fibonacci(n-2)
number=int(input())
for i in range(0,number+1,1):
print(Fibonacci(i))
| [
"noreply@github.com"
] | SOURADEEP-DONNY.noreply@github.com |
6a31fc78953cf06d9acabfb6b9b2db3def13b768 | 34b94033b5bbb43c5ffd1c7e9672e46ce735ebf7 | /.circleci/checklhe/lhefile.py | ff69dcc10b63de537987cd49e8d241f81ae7e819 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | JHUGen/JHUGen | c85329874bf3778954c4b8061a3098eea1a926ef | 2854cbfc3d82122fbfce22dcea2e83ca4312f7f3 | refs/heads/master | 2023-09-01T03:39:35.212476 | 2023-08-28T20:50:59 | 2023-08-28T20:50:59 | 38,982,074 | 4 | 18 | Apache-2.0 | 2023-08-29T14:21:26 | 2015-07-12T23:29:19 | Fortran | UTF-8 | Python | false | false | 6,111 | py | import collections
import ROOT
import config
import globalvariables
import event
import particle
class LHEFile:
def __init__(self, filename):
globalvariables.init()
if filename[-4:] != ".lhe":
raise ValueError(filename + " does not end in .lhe")
self.filename = filename
... | [
"jroskes1@jhu.edu"
] | jroskes1@jhu.edu |
338fab704d4d753f954d7a50cb2cd98a24a2f00e | f40cc44ebfc337326577c91cd88d0c1dd845b098 | /LuminarPythonPrograms/LoopingProgram/printEven.py | 681b99cde15812529009265a2004a2f511ba6e06 | [] | no_license | Aswin2289/LuminarPython | 6e07d6f9bf6c8727b59f38f97f5779a33b2fab0d | ba633a276dd79bbf214cfceac2413c894eaa1875 | refs/heads/master | 2023-01-01T07:52:41.598110 | 2020-10-13T04:34:49 | 2020-10-13T04:34:49 | 290,109,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | #program to print up to rabge
i=int(input("Enter ur Lower Limit"))
num=int(input("Enter ur range"))
while(i<=num):
if (i % 2 == 0):
print(i)
i+=1 | [
"aswinabraham4@gmail.com"
] | aswinabraham4@gmail.com |
e12f42185cab421d33cb53913f513b98dac13e7f | 3f13885fdb0649374d866d24a43f86ccc6b4c782 | /apps/workflow/api/app.py | 9d58254a7068da6ba7bf6ec51644b3c0e2badd4c | [] | no_license | linkexf/oneops | 426b271c00c5b4b4c55d1d91bf42030dab29623a | 64a9c7fd949b6220234a276614ab6555dc8cc17c | refs/heads/master | 2020-12-10T04:45:55.681731 | 2019-11-28T09:02:30 | 2019-11-28T09:02:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,417 | py | # -*- coding: utf-8 -*-
import uuid
import requests
import simplejson as json
from pprint import pprint
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import View
from common.mixins import JSONResponseMixin
from common.utils.zabbix_api import get_access_token, get_host_ids, get_moni... | [
"andykaiyu@163.com"
] | andykaiyu@163.com |
d1cf5a4253fa7bcd261e49182c6b3867f11c3dca | 5bb1ae9b9e6592def632b8a95def32b3a2d742d5 | /movie_wish/test.py | 2fe8adc8befd22f8eebf640259ea2602a1fec457 | [] | no_license | fiso0/my_python | af1132637a4ad92036ea0a949fa93df6f904b190 | 391def01ecdb97b8e3008235910a596bb5a9b52c | refs/heads/master | 2021-01-17T15:52:36.745999 | 2016-10-29T08:37:51 | 2016-10-29T08:37:51 | 58,641,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | import csv
with open('test1.csv',newline='') as f:
spamreader = csv.reader(f)
for line in spamreader:
print(line[0])
| [
"fiso0@126.com"
] | fiso0@126.com |
0dbf5d407aa3f004da79893bc38e9e510244c139 | 1c25798a9ae17ca228383fcd04a1e801415a78e7 | /Chapter 5 Loops/Ex_26_27_Sum of series.py | 760239321ae5adb7938fc99cbc0a019b58c4dfe3 | [] | no_license | padamcs36/Introduction_to_Python_By_Daniel | 688c56fff598617e979a5f71e9a48e50844ad7ea | 8b8f00c9d93428c58df9c90e5edd8f75a1662647 | refs/heads/main | 2023-02-22T08:11:01.450054 | 2021-01-28T09:45:01 | 2021-01-28T09:45:01 | 333,700,411 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 748 | py | import math
import time
#1/3 + 3/5 + 5/7+......+97//99
#2n-1/2n+1
sum = 0
for i in range(1, 100, 2):
k = i / (i+2)
sum += k
print(format(sum, ".2f"))
#Compute Value of PI
sum = 0
startTime = time.time()
for i in range(1, 100000+1):
numerator = math.pow(-1, i+1)
denomenator = 2 * i - 1
... | [
"noreply@github.com"
] | padamcs36.noreply@github.com |
654bc050b5ccc23d7d0daef531faeee8f08d0ec6 | a86bca3e88fc3012bc9805c74c2e752262370326 | /AI/test_22.py | 2e8f98cc381cba052ae8f1f7c79db162df538d4e | [
"MIT"
] | permissive | osamhack2021/AI_NoYoutube_60Duo | 4921f7c838776305d8dc00d6ceb04b2190565916 | c1e34b7b506b43c9be6c39da3211fac49bfbcd14 | refs/heads/main | 2023-08-11T19:24:45.560000 | 2021-10-13T15:00:38 | 2021-10-13T15:00:38 | 405,925,929 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | print('hello')
| [
"noreply@github.com"
] | osamhack2021.noreply@github.com |
884d30f7edf976714898409cef9a4c40addf737a | a2d36e471988e0fae32e9a9d559204ebb065ab7f | /huaweicloud-sdk-projectman/huaweicloudsdkprojectman/v4/model/custom_field.py | f8a5aeca1f2ddc517de2d87bccbe37aa652592cb | [
"Apache-2.0"
] | permissive | zhouxy666/huaweicloud-sdk-python-v3 | 4d878a90b8e003875fc803a61414788e5e4c2c34 | cc6f10a53205be4cb111d3ecfef8135ea804fa15 | refs/heads/master | 2023-09-02T07:41:12.605394 | 2021-11-12T03:20:11 | 2021-11-12T03:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,492 | py | # coding: utf-8
import re
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class CustomField:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
19f2ccbf1a31225761a59aaa8e647b1c518ebff7 | 11aac6edab131293027add959b697127bf3042a4 | /findTheDistanceValue.py | bf05470d870073c26a25a66b2d735dd8220abcf5 | [] | no_license | jdanray/leetcode | a76b3436002b31865967b757b73c85992636383b | fd736af3e79899b86dac89d4d925d5bd985944ad | refs/heads/master | 2023-08-15T01:20:05.110565 | 2023-08-14T00:25:58 | 2023-08-14T00:25:58 | 148,686,493 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | # https://leetcode.com/problems/find-the-distance-value-between-two-arrays/
class Solution(object):
def findTheDistanceValue(self, arr1, arr2, d):
dist = 0
for n1 in arr1:
if not any(abs(n1 - n2) <= d for n2 in arr2):
dist += 1
return dist
| [
"jdanray@users.noreply.github.com"
] | jdanray@users.noreply.github.com |
cee25608874f37bd66b4725cf44924e0d439e5e8 | 0f7cf365e00e3e116deca345ceb53588a0aee152 | /src/collective/jazzport/interfaces.py | dc33b605b2b04ec04c62ef85cb2436223579b31b | [] | no_license | datakurre/collective.jazzport | d66c59556a1055d46843c672babb4d8764732e19 | cf9d46dd50e40ea0437f6059ed9bc7ee57bb24f2 | refs/heads/master | 2023-06-11T03:42:09.980698 | 2023-05-26T06:37:17 | 2023-05-26T06:37:17 | 23,119,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
from zope import schema
from zope.i18nmessageid import MessageFactory
from zope.interface import Interface
_ = MessageFactory('collective.jazzport')
class IJazzportLayer(Interface):
"""Marker interface that defines a Zope 3 browser layer"""
class IJazzportSettings(Interface):
porta... | [
"asko.soukka@iki.fi"
] | asko.soukka@iki.fi |
0f41d9dff29f888d64ce2cea72375459185714ae | fbe05017b477a8b6c3603be3f2003c4a80854868 | /src/Ner_tag.py | c985de37f08fe224ed29a7391ead1068256d594b | [] | no_license | enningxie/user-level | 7cb8e9a30090adabea085bde046049c52c86cf84 | a3ef1c2b51b39eceef0f95c3f251a810e2bae801 | refs/heads/master | 2020-08-08T08:44:50.514365 | 2019-10-31T06:52:31 | 2019-10-31T06:52:31 | 213,796,188 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,740 | py | """
################################Ner_tag.py################################
程序名称: Ner_tag.py
功能描述: 实体标注
创建人名: wuxinhui
创建日期: 2019-07-12
版本说明: v1.0
################################Ner_tag.py################################
"""
import numpy as np
import re
from random import shuffle
import copy
im... | [
"enningxie@163.com"
] | enningxie@163.com |
f5159f6728ae1c9e4c5fe4a4bb1dd66b6e175470 | b3eb6f6144017e84e727bb65ba945916b6f5363c | /tests/integration_tests/explore/permalink/api_tests.py | a44bc70a7b49a7a0dd213871dc1f46d264ed564e | [
"Apache-2.0",
"OFL-1.1"
] | permissive | mistercrunch/superset | f838bd80144c48ea4dc27ae29db1df2521ef1bd5 | f144de4ee2bf213bb7e17f903bd3975d504c4136 | refs/heads/master | 2023-06-07T13:16:36.674565 | 2022-05-06T10:11:41 | 2022-05-06T10:11:41 | 56,703,070 | 17 | 6 | Apache-2.0 | 2023-03-04T00:13:28 | 2016-04-20T16:28:49 | TypeScript | UTF-8 | Python | false | false | 4,726 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"noreply@github.com"
] | mistercrunch.noreply@github.com |
2f713e0dd1eb4f9a24282abd34f0cd299d4f793e | 564d6a4d305a8ac6a7e01c761831fb2081c02d0f | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_06_01/operations/_express_route_ports_operations.py | cccf62982af78ecf2653e1deea059c7298802791 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | paultaiton/azure-sdk-for-python | 69af4d889bac8012b38f5b7e8108707be679b472 | d435a1a25fd6097454b7fdfbbdefd53e05029160 | refs/heads/master | 2023-01-30T16:15:10.647335 | 2020-11-14T01:09:50 | 2020-11-14T01:09:50 | 283,343,691 | 0 | 0 | MIT | 2020-07-28T22:43:43 | 2020-07-28T22:43:43 | null | UTF-8 | Python | false | false | 30,025 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | paultaiton.noreply@github.com |
d28962804b2abad424e448abfdee8dd9f2b68f69 | 06cc07502c88cfda7335a7605eef7e8ec0043c01 | /app.py | dfa30cd22cd10f084ddb6cfb501479e4bd6336f8 | [] | no_license | sumayah20-meet/Y2-Individual-Project-yl1920 | 16f2b767a9f485b585b2a49e65fc54c74bbae543 | 2e9d06774feeb80b2c625972d1db700de87428fd | refs/heads/master | 2020-12-23T05:31:36.609884 | 2020-01-30T14:52:15 | 2020-01-30T14:52:15 | 237,051,980 | 0 | 0 | null | 2020-01-29T18:20:09 | 2020-01-29T18:20:08 | null | UTF-8 | Python | false | false | 1,359 | py | from flask import Flask, request, redirect, url_for, render_template
from flask import session as login_session
from databases import *
app=Flask(__name__)
app.secret_key="MY_SUPER_SECRET_KEY"
@app.route('/', methods =["GET","POST"])
def signIN():
if request.method == "GET":
return render_template('signi... | [
"myname21@meet.mit.edu"
] | myname21@meet.mit.edu |
d99790c7a7ab62bf4ceef5930255e68034969f27 | 49f81640f961e74668116b2600fe3c77646cc94d | /notebooks/howtofit/chapter_phase_api/src/plot/dataset_plots.py | c4d3eae50801dbc3904c5646a13ff71e9d385c1e | [] | no_license | knut0815/autofit_workspace | 5b97b37f5cf28f6b723c7cca73fa6b9a95e8ffc2 | 4a4fdacf62614150f500716cc8eca1613ae2e4af | refs/heads/master | 2023-03-01T23:32:06.681456 | 2021-02-08T19:48:18 | 2021-02-08T19:48:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,225 | py | import matplotlib.pyplot as plt
from os import path
from src.dataset import dataset as ds
from src.plot import line_plots
"""
These functions are simple matplotlib calls that plot components of our Line class, specifically its data and
noise-map. We additional include a function that plots the dataset on a si... | [
"james.w.nightingale@durham.ac.uk"
] | james.w.nightingale@durham.ac.uk |
8a29a1d2704b98046bf0712111e3b92806c18cd4 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/ajbrock_Neural-Photo-Editor/Neural-Photo-Editor-master/NPE.py | 4aac4ab06b4f040bf7e295f5827912de3c7781c5 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 16,656 | py | ### Neural Photo Editor
# A Brock, 2016
## Gui tests
# Note: THe width of the edge of the window in X is 8, the height of the top of the window in y is 30.
# TO DO: Go through and fix all the shit we've broken, lol
# TO DO: Try and remember the change we wanted to make for imgradRGB that involved not passing a fat ... | [
"659338505@qq.com"
] | 659338505@qq.com |
5345f42313ef7de64d8be3c515006672cfbe3f6a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02623/s047885182.py | 44b5644e8a45249917468d9e82d48b09397b8cd8 | [] | 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 | 370 | py | n, m, k =map(int, input().split())
a=list(map(int, input().split()))
b=list(map(int, input().split()))
ta=sum(a)
a.append(0)
tb=0
ans=0
j=0
for i in range(n+1):
ta -= a[n-i]
if ta>k:
continue
while tb + ta<=k:
if j ==m:
ans=max(ans,n-i+j)
break
ans=max(ans,n-... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d291ae309bf15bcef30a1347c7e5b7ae95daa964 | 9fadff638a2a381e662ef7cb8b943b3a4622db2f | /RootTools/python/samples/samples_13TeV_RunIIAutumn18MiniAOD.py | 59655a278c3adaf741a54509a2b18a1fb07d7db3 | [] | no_license | cmg-xtracks/cmgtools-lite | 34c92bae02f5f19ce2a1f8384f873780636e9bf5 | 147c61f72ab4d118cfa5d938d7527c3e22e295bf | refs/heads/94X_dev | 2021-06-05T22:43:44.887643 | 2019-03-28T17:04:35 | 2019-03-28T17:04:35 | 142,139,866 | 1 | 0 | null | 2019-05-16T16:26:07 | 2018-07-24T09:59:33 | Python | UTF-8 | Python | false | false | 17,726 | py | #
# How to get here:
# -> https://twiki.cern.ch/twiki/bin/viewauth/CMS/PdmV2018Analysis
# -> https://cmsweb.cern.ch/das/request?view=list&limit=50&instance=prod%2Fglobal&input=%2F*%2FRunIIAutumn18MiniAOD*102X_upgrade2018_realistic_v15*%2FMINIAODSIM
#
# COMPONENT CREATOR
from CMGTools.RootTools.samples.ComponentC... | [
"massironi.andrea@gmail.com"
] | massironi.andrea@gmail.com |
adca2c6960f7bbac282ee2b716b6491ccc961149 | ce0a3a73c7825f7327b8319fb2593b6b01659bb0 | /django2/django2/urls.py | 595e965be38913aca0dabcf5b90b553d7fa2b72b | [] | no_license | soccergame/deeplearning | 28b0a6ed85df12e362b3a451050fab5a2a994be7 | cbc65d3eba453992a279cfd96a9d3640d8fe6b9f | refs/heads/master | 2020-03-28T22:38:26.085464 | 2018-08-31T11:22:39 | 2018-08-31T11:22:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | from django.conf.urls import url
from django.contrib import admin
from . import view, testdb, search, search2
urlpatterns = [
url(r'^admin/', admin.site.urls),
url(r'^hello$', view.hello),
url(r'^testdb$', testdb.testdb),
url(r'^search-form$', search.search_form),
url(r'^search$', search.search),
... | [
"18811442380@163.com"
] | 18811442380@163.com |
f0e1b3caf276b73936a22e0d07640e6442fe1083 | 43e5441f74359d620be6f7f80c99622769ea9774 | /apps/userprofile/views.py | 7e593193b5d5447e4364e51d60e04116950e793b | [] | no_license | 33Da/deeplearn_eassy | 96f1bd09fe3df907c650378215eb686e4ab2801e | 82d60c5ec3aec60822d68d13f11ef1320d0bba2e | refs/heads/master | 2023-02-07T15:02:00.202693 | 2021-01-05T05:03:22 | 2021-01-05T05:03:22 | 326,892,905 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,884 | py | import re
from rest_framework import mixins
from rest_framework import viewsets
from rest_framework.exceptions import ValidationError
from rest_framework.permissions import IsAuthenticated
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from rest_f... | [
"764720843@qq.com"
] | 764720843@qq.com |
55cecae7878e380607863d0d4a5958f4b2b29c5c | 3b8fd5b73337b3cd70b283644c266d4ec962ad54 | /2020-2021/DEV1/Chapter 4/BA6.py | ad6e0f0204c3089a9327ecfeed2c4cd9e16c8dd4 | [] | no_license | Andy00097/hrinf-development | 20f4604ca5637c710d9d25e7e218a2ae1233498b | 464ca039537d6b8ca04bf95ba070b8f1f7b81188 | refs/heads/main | 2023-01-09T03:52:54.214472 | 2020-11-11T10:11:57 | 2020-11-11T10:11:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | x = 7
y = 8
z = 5
print()
if x < y and x < z:
minimum = x
minStr = 'min is x : ' + str(x)
if y < x and y < z:
minimum = y
minStr = 'min is y : ' + str(y)
if z < x and z < y:
minimum = z
minStr = 'min is z : ' + str(z)
print() | [
"stijn@kolkies.dev"
] | stijn@kolkies.dev |
ce9d21a2b5baf0bcf9b3667360ecdff5b94a9ce4 | acd41dc7e684eb2e58b6bef2b3e86950b8064945 | /res/packages/scripts/scripts/client/notification/BaseNotificationView.py | bd3e9ecdba53e2b53b7572bb7e917edc3733fb4d | [] | no_license | webiumsk/WoT-0.9.18.0 | e07acd08b33bfe7c73c910f5cb2a054a58a9beea | 89979c1ad547f1a1bbb2189f5ee3b10685e9a216 | refs/heads/master | 2021-01-20T09:37:10.323406 | 2017-05-04T13:51:43 | 2017-05-04T13:51:43 | 90,268,530 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 1,429 | py | # 2017.05.04 15:27:34 Střední Evropa (letní čas)
# Embedded file name: scripts/client/notification/BaseNotificationView.py
from debug_utils import LOG_ERROR
class BaseNotificationView(object):
def __init__(self, model = None):
super(BaseNotificationView, self).__init__()
self._model = None
... | [
"info@webium.sk"
] | info@webium.sk |
dda5436c28630a5d24d25127b608204ac8621153 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/leetcode/LeetcodePythonProject_with_solution/leetcode_0551_0600/LeetCode555_SplitConcatenatedStrings.py | 1611f5635c66d3a1c0372441ef57cf5e8dacf617 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 874 | py | '''
Created on Aug 24, 2017
@author: MT
'''
c_ Solution(o..
___ splitLoopedString strs
"""
:type strs: List[str]
:rtype: str
"""
res N..
arr [m..(s, s[::-1]) ___ s __ strs]
___ i, s __ e..(arr
___ start __ (s, s[::-1]
___ j __ r.... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
e45c68224c72d2987f3a4acb7dbc4ce2ca5d0784 | 7c615414af2591146f2898444fb68f60e00a8482 | /8-20/flask-test/runserver.py | dbb9fd623641a4e7a706257506126f99569bc4a7 | [] | no_license | guulyfox/Demonkeyse-Manell | 15da1db0f0abf734cd638184d46015357de02612 | 745e552ac956c5bf087943dd3f075dede9c212ac | refs/heads/master | 2021-01-01T04:37:29.080726 | 2019-03-11T00:43:40 | 2019-03-11T00:43:40 | 97,210,987 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | from main import app
from controller import user_role
from conf.config import listen_port
from main import api
api.add_resource(user_role.Userinfo,'/getpage/')
app.run(debug = True, host ="192.168.0.73", port =5001, threaded = True)
| [
"www.hubiwu.com@qq.com"
] | www.hubiwu.com@qq.com |
4bc1cd2926d306da1aee5a69062e99ace95c5840 | 4ba5b11860b7f046622b3ece7db4e5213efcec6e | /odoo/custom/src/private/faf_sale_project/__manifest__.py | fab3b7e7c338655cd14fe20e027298ca1fb6dcc2 | [
"BSL-1.0",
"AGPL-3.0-only",
"AGPL-3.0-or-later"
] | permissive | newtratip/faf | 94719c3558f65791caf6be4fb084ce1d7bd28fae | bf22486d5d6849c94db9f56f90dd05c0563fce28 | refs/heads/master | 2023-03-29T14:37:54.968201 | 2021-04-08T11:33:26 | 2021-04-08T11:33:26 | 328,696,058 | 0 | 0 | BSL-1.0 | 2021-04-08T11:33:27 | 2021-01-11T14:48:13 | HTML | UTF-8 | Python | false | false | 635 | py | # Copyright 2021 Ecosoft Co., Ltd. (http://ecosoft.co.th)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "FAF - Sale Project",
"summary": "Enhance sale_project module",
"version": "14.0.1.0.0",
"category": "FAF",
"website": "http://ecosoft.co.th",
"author": "Thar... | [
"tharathip.chaweewongphan@gmail.com"
] | tharathip.chaweewongphan@gmail.com |
3028f4140ed5f9dc3677bd9696eb0a366ad48b9a | a32b09a9a17c081c134d770d1da16d36dfef8951 | /ptah/testing.py | 673d0c5e4b51ab096994e799cd31b39fae0dafd4 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | webmaven/ptah | 8c1b01506736a51d25e09a79dbd648ce4891429b | 98b3afc35e2b21f0b5faed594030ddf9d7297d2e | refs/heads/master | 2021-01-18T03:46:27.575850 | 2012-05-09T05:08:51 | 2012-05-09T05:08:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,828 | py | """ base class """
import sys
import sqlalchemy
import transaction
import pkg_resources
from zope.interface import directlyProvides
from pyramid import testing
from pyramid.interfaces import \
IRequest, IAuthenticationPolicy, IAuthorizationPolicy
from pyramid.interfaces import IRouteRequest
from pyramid.view impor... | [
"fafhrd91@gmail.com"
] | fafhrd91@gmail.com |
4df11f774fd9e4ab12f02cd8057cf8221675aafc | 58afefdde86346760bea40690b1675c6639c8b84 | /leetcode/masking-personal-information/408960920.py | 32a0c0921e5ec105e0cd3e61b1685ed224acbd4c | [] | no_license | ausaki/data_structures_and_algorithms | aaa563f713cbab3c34a9465039d52b853f95548e | 4f5f5124534bd4423356a5f5572b8a39b7828d80 | refs/heads/master | 2021-06-21T10:44:44.549601 | 2021-04-06T11:30:21 | 2021-04-06T11:30:21 | 201,942,771 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # title: masking-personal-information
# detail: https://leetcode.com/submissions/detail/408960920/
# datetime: Thu Oct 15 14:44:30 2020
# runtime: 24 ms
# memory: 14.1 MB
class Solution:
def maskPII(self, S: str) -> str:
at = S.find('@')
if at >= 0:
return (S[0] + '*' * 5 + S[at - 1:]).... | [
"ljm51689@gmail.com"
] | ljm51689@gmail.com |
b017fa7e894b1aedb746f2fb6f1be61407cce1f2 | 058f6cf55de8b72a7cdd6e592d40243a91431bde | /tests/clang_plugin/dynamic/test_fp32_overflow_found/test_fp32_overflow_found.py | c78364d0304f5e18ea782535a92d541c87185be2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LLNL/FPChecker | 85e8ebf1d321b3208acee7ddfda2d8878a238535 | e665ef0f050316f6bc4dfc64c1f17355403e771b | refs/heads/master | 2023-08-30T23:24:43.749418 | 2022-04-14T19:57:44 | 2022-04-14T19:57:44 | 177,033,795 | 24 | 6 | Apache-2.0 | 2022-09-19T00:09:50 | 2019-03-21T22:34:14 | Python | UTF-8 | Python | false | false | 1,816 | py | #!/usr/bin/env python
import subprocess
import os
def setup_module(module):
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
os.chdir(THIS_DIR)
def teardown_module(module):
cmd = ["make clean"]
cmdOutput = subprocess.check_output(cmd, stderr=subprocess.STDOUT, shell=True)
# returns: tuple (erro... | [
"ilaguna@llnl.gov"
] | ilaguna@llnl.gov |
d1ed81e74acd860b2a60472a9908d5c19b953515 | 5dac0010edb884cd6d412954c79b75fa946e252d | /101-AWS-S3-Hacks/last_modified.py | b91aeb13f0761f01f9f3703ebe255acf10820cb1 | [] | no_license | ralic/aws_hack_collection | c1e1a107aa100e73b6e5334ed9345576057bdc9d | 7b22018169e01d79df7416dd149c015605dea890 | refs/heads/master | 2023-01-09T04:31:57.125028 | 2020-02-06T11:21:39 | 2020-02-06T11:21:39 | 90,350,262 | 3 | 1 | null | 2022-12-26T20:03:05 | 2017-05-05T07:39:34 | Python | UTF-8 | Python | false | false | 460 | py | #!/usr/bin/python
"""
- Author : Nag m
- Hack : List all the objects last modified timestamp in Zulu format
- Info : List all the objects last modified timestamp in Zulu format
* 101-s3-aws
"""
import boto
def modified(name):
bucket = conn.get_bucket(name)
lt = bucket.list()
for obj in lt:
... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
1f3e6552b2041938ee45c8f4cf410cbcd65fad3d | 7ca4838ab8871cb78e2fcf119a252d23e2bc89c5 | /samples/generated_samples/logging_v2_generated_config_service_v2_update_view_sync.py | 33014bf236582bd759d03fd778342ff3867a3036 | [
"Apache-2.0"
] | permissive | googleapis/python-logging | abb25a7a34306527c37bb68e98bfb4d6f1647e1b | 1037afccd1436a152aa229fa98f35ec83c723d06 | refs/heads/main | 2023-08-31T10:06:49.191395 | 2023-08-29T13:28:36 | 2023-08-29T13:28:36 | 226,992,562 | 109 | 56 | Apache-2.0 | 2023-09-12T16:13:25 | 2019-12-10T00:09:45 | Python | UTF-8 | Python | false | false | 1,814 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# 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... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.