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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e48b036b804b5b19e1e4bd9da499b64f55ab174e | fcc955fd5b3fc997f5b1651c5c8b9032a6b9b177 | /bqskit/passes/search/generator.py | e9d081a87e21f8745e3f3d6b693ef54e11204717 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | BQSKit/bqskit | cf393d75b26349f7258e9caf9d5c8fa37d0c8de6 | c89112d15072e8ffffb68cf1757b184e2aeb3dc8 | refs/heads/main | 2023-09-01T04:11:18.212722 | 2023-08-29T17:34:38 | 2023-08-29T17:34:38 | 331,370,483 | 54 | 18 | NOASSERTION | 2023-09-14T14:33:26 | 2021-01-20T16:49:36 | OpenQASM | UTF-8 | Python | false | false | 926 | py | """This module implements the LayerGenerator base class."""
from __future__ import annotations
import abc
from bqskit.compiler.passdata import PassData
from bqskit.ir.circuit import Circuit
from bqskit.qis.state.state import StateVector
from bqskit.qis.state.system import StateSystem
from bqskit.qis.unitary.unitaryma... | [
"edyounis123@gmail.com"
] | edyounis123@gmail.com |
5856221a71dc642ec3f93b8731bbf1ea07fa2377 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03806/s174409855.py | f3f10e7dddb189ad08ecede3f07387e8d52479df | [] | 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 | 696 | py | import sys
input = sys.stdin.buffer.readline
N, Ma, Mb = map(int, input().split())
ABC = [list(map(int, input().split())) for _ in range(N)]
sumA = sum([ABC[i][0] for i in range(N)])
sumB = sum([ABC[i][1] for i in range(N)])
INF = 10 ** 15
dp = [[INF for j in range(sumB + 1)] for i in range(sumA + 1)]
dp[0][0] = 0
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
4348f18e7053dec8ee530cf954bd323e2780a2a6 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-drds/aliyunsdkdrds/request/v20190123/DescribeDbInstancesRequest.py | 4fc670ea5087265f9b54638259b120fe48033076 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,127 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
429edffa026b5304c1b8fa929f0ee668951964d3 | 43e2e801f6df426a9b923828e8ee3c0b0f022c66 | /vocab.py | ea1b9279eff7d539a5a6955ac364e0923c3847ee | [
"MIT"
] | permissive | mrdrozdov/knnlm | 0333eadbd1d0c6e16521475dc07d57d7dce8b02e | 61419077eb7f79c3ba7a196b4cc7cf722f4ba8f4 | refs/heads/master | 2023-04-19T14:13:58.242980 | 2021-05-20T02:34:17 | 2021-05-20T02:34:17 | 317,321,152 | 0 | 0 | MIT | 2021-01-26T17:44:06 | 2020-11-30T19:12:33 | null | UTF-8 | Python | false | false | 5,773 | py | import collections
class Dictionary(object):
"""
A mapping from symbols to consecutive integers.
Taken from fairseq repo.
"""
def __init__(
self,
pad="<pad>",
eos="</s>",
unk="<unk>",
bos="<s>",
extra_special_symbols=None,
):
self.unk_w... | [
"andrew@mrdrozdov.com"
] | andrew@mrdrozdov.com |
0ec7be58bdfad20324b305d2f182ce221998241b | 721406d87f5086cfa0ab8335a936ece839ab2451 | /.venv/lib/python3.8/site-packages/opencensus/trace/config_integration.py | a0d8e5d3c146b4424f29d79fecff324c6344b651 | [
"MIT"
] | permissive | MarkusMeyer13/graph-teams-presence | 661296b763fe9e204fe1e057e8bd6ff215ab3936 | c302b79248f31623a1b209e098afc4f85d96228d | refs/heads/main | 2023-07-09T03:34:57.344692 | 2021-07-29T07:16:45 | 2021-07-29T07:16:45 | 389,268,821 | 0 | 0 | MIT | 2021-07-29T07:16:46 | 2021-07-25T05:23:08 | Python | UTF-8 | Python | false | false | 1,330 | py | # Copyright 2017, OpenCensus Authors
#
# 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... | [
"meyer_markus@gmx.de"
] | meyer_markus@gmx.de |
fd29d423ff124d7289cca464d2dbd43fdc7dae05 | 8f6cc0e8bd15067f1d9161a4b178383e62377bc7 | /__OLD_CODE_STORAGE/tensorflow_PLAYGROUND/lessons/from_internet/uuuuu.py | 3fc0fc1f64c4d43958978fe8396f928cf7251a2f | [] | no_license | humorbeing/python_github | 9c4dfc61a3cefbb266fefff335f6b28d05797e5e | e4b4b49bee7e7e3843c6874717779ce8d619bd02 | refs/heads/master | 2023-01-22T21:51:20.193131 | 2020-01-26T21:47:23 | 2020-01-26T21:47:23 | 163,707,778 | 0 | 0 | null | 2022-12-27T15:37:48 | 2019-01-01T01:58:18 | Python | UTF-8 | Python | false | false | 2,703 | py | import numpy as np
import tensorflow_playground as tf
from tensorflow_playground.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets("MNIST_data/", one_hot=True)
image_size = 28
labels_size = 10
learning_rate = 0.05
steps_number = 1000
batch_size = 100
tf.logging.set_verbosity(tf.logging.IN... | [
"geemguang@gmail.com"
] | geemguang@gmail.com |
1535301b3f78a727e980c0c4e00988e46ff1b61a | 268c588de53d48f2e48c694535e27c1be104229d | /Decorator_Pattern.py | dbbacb277861f380541934a98021297ec79ff1d3 | [] | no_license | wax8280/Python_Design_Patterns | def64b1662924807946a9847ac1bf0437382a716 | 88fb08ad3605fb06166bf45d814f5b85a37364b5 | refs/heads/master | 2021-01-11T01:21:14.964828 | 2016-10-14T15:40:42 | 2016-10-14T15:40:42 | 70,715,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,105 | py | # coding:utf-8
import functools
def memoize(fn):
known = dict()
@functools.wraps(fn)
def memoizer(*args):
if args not in known:
known[args] = fn(*args)
return known[args]
return memoizer
@memoize
def nsum(n):
'''Returns the sum of the first n numbers'''
assert (... | [
"wax8280@163.com"
] | wax8280@163.com |
bea389a719f322ce117b6f02b2fbd03de15d243f | 5dac0010edb884cd6d412954c79b75fa946e252d | /101-AWS-S3-Hacks/createobject.py | b2b8a10c68fbf4ae56917a6656cd95a009038b7b | [] | 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 | 396 | py | #!/usr/bin/python
"""
- Author : Nag m
- Hack : Create a new object in S3
- Info : Create a object named
- myfile.txt
"""
import boto
def createaobject():
bucket = conn.get_bucket("101-s3-aws")
obj = bucket.new_key("myfile.txt")
obj.set_contents_from_string("This is my first object created in S3") ... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
e5202820096b9831f3b03b5f13d7933f9f22108b | ac611b732321d2496862b0c4d7368d37eb1ead5c | /Blog/blogDevMedia/migrations/0001_initial.py | 5fefcd9aed347aa33b619b4e5c85f6a7e6ab79a2 | [] | no_license | WellingtonIdeao/django-admin-miniblog | 85e0c61f186b75a4b11675a6d973dde73d0c1720 | a47ee8d6bbefac4280d6d0abbee1fb43ab030087 | refs/heads/master | 2020-09-15T16:18:30.319187 | 2019-11-22T23:25:20 | 2019-11-22T23:25:20 | 223,501,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | # Generated by Django 2.2.7 on 2019-11-11 16:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Postagem',
fields=[
('id', models.AutoField... | [
"wellington.ideao@gmail.com"
] | wellington.ideao@gmail.com |
4d369e4a896df1bf1b0412392fc0f664e190cedd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_fore.py | 4ee9f0775ec26099d96243967f7acf17c2d722c6 | [
"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 | 396 | py |
#calss header
class _FORE():
def __init__(self,):
self.name = "FORE"
self.definitions = [u'(especially on ships) towards or in the front']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adverbs'
def run(self, obj1, obj2):
self.jsondata[obj2] = {}
s... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
c0bc4d868d66841eeac3f734176734a63f8f00b7 | 93713f46f16f1e29b725f263da164fed24ebf8a8 | /Library/lib/python3.7/site-packages/bokeh-1.4.0-py3.7.egg/bokeh/themes/_dark_minimal.py | 65ceb00baefed17600816474b78dad06a1826a14 | [
"BSD-3-Clause"
] | permissive | holzschu/Carnets | b83d15136d25db640cea023abb5c280b26a9620e | 1ad7ec05fb1e3676ac879585296c513c3ee50ef9 | refs/heads/master | 2023-02-20T12:05:14.980685 | 2023-02-13T15:59:23 | 2023-02-13T15:59:23 | 167,671,526 | 541 | 36 | BSD-3-Clause | 2022-11-29T03:08:22 | 2019-01-26T09:26:46 | Python | UTF-8 | Python | false | false | 2,451 | py | #-----------------------------------------------------------------------------
# Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors.
# All rights reserved.
#
# The full license is in the file LICENSE.txt, distributed with this software.
#--------------------------------------------------------------... | [
"nicolas.holzschuch@inria.fr"
] | nicolas.holzschuch@inria.fr |
efeebd47dc1709a52f66c0796785c9d4a18d99ff | 062fa6891dfe2278bcfa36a00cc8bed4356e9f5b | /examples/remote_store/remote_server.py | 242a24cdda02f56be9be607eb765873d9c12fabd | [
"Apache-2.0"
] | permissive | sepidehhosseinzadeh/mlflow-cpp | f43ffb1dba0e57b9b67fad696966bae683328527 | 724eeaeafbee829201859033315a9d2ebf314844 | refs/heads/master | 2022-12-12T13:41:28.825923 | 2020-06-10T20:42:55 | 2020-06-10T20:42:55 | 158,026,349 | 2 | 0 | Apache-2.0 | 2022-12-08T05:37:42 | 2018-11-17T21:27:07 | Makefile | UTF-8 | Python | false | false | 1,236 | py | from __future__ import print_function
import os
import shutil
import sys
import random
import tempfile
import mlflow
from mlflow import log_metric, log_param, log_artifacts, get_artifact_uri, active_run,\
get_tracking_uri, log_artifact
if __name__ == "__main__":
print("Running {} with tracking URI {}".format... | [
"sepideh.hosseinzadeh.h@gmail.com"
] | sepideh.hosseinzadeh.h@gmail.com |
bb8457345e260777ed69b1380a60010f582f86d4 | d24cef73100a0c5d5c275fd0f92493f86d113c62 | /SRC/tutorials/movenode.py | 5575fd4201c1203ed4c8f638e857d7127c92c355 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | rlinder1/oof3d | 813e2a8acfc89e67c3cf8fdb6af6b2b983b8b8ee | 1fb6764d9d61126bd8ad4025a2ce7487225d736e | refs/heads/master | 2021-01-23T00:40:34.642449 | 2016-09-15T20:51:19 | 2016-09-15T20:51:19 | 92,832,740 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,396 | py | # -*- python -*-
# $RCSfile: movenode.py,v $
# $Revision: 1.19.18.8 $
# $Author: langer $
# $Date: 2014/09/27 22:34:44 $
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities a... | [
"faical.congo@nist.gov"
] | faical.congo@nist.gov |
32c59c5f3c4f7a20d5ebdf417eb2394978f5db44 | 573932f2fc40e94001a3659043b902db4d70a912 | /4-Data-Visualization/dash/components/dash-core-components/tests/integration/dropdown/test_clearable_false.py | f72043bfd1dabb347829ce6ff1b5db07011999a1 | [
"MIT"
] | permissive | BioInformatica-Labs/My-Data-Science-Journey | 69f441f88e9e106975ec27de873d82af2dd351c7 | 92e04aa2e3612a198dc213f2dbd13b5df404bfbe | refs/heads/main | 2023-08-28T05:22:56.970894 | 2021-11-08T20:05:10 | 2021-11-08T20:05:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,397 | py | from dash import Dash, Input, Output, dcc, html
from selenium.webdriver.common.keys import Keys
def test_ddcf001_clearable_false_single(dash_duo):
app = Dash(__name__)
app.layout = html.Div(
[
dcc.Dropdown(
id="my-unclearable-dropdown",
options=[... | [
"viannaandresouza@gmail.com"
] | viannaandresouza@gmail.com |
f74908b36da0518e5973c25583984c0da8eb4ef5 | e64c14456007aa67fbde67ad15ea145492579eac | /2tom/10_tuple.py | 7aa13028d3222a5f187ff61346eb0eff63bcacfc | [] | no_license | 2tom/python_study | 47ef0fbf8aa0a2242e0a8867bee54d63b44b9577 | 0488003bce763fd89fa65c3a7cca291be307dde9 | refs/heads/master | 2020-05-18T13:32:38.689670 | 2015-10-02T04:20:47 | 2015-10-02T04:20:47 | 37,230,139 | 2 | 3 | null | 2015-09-28T07:22:35 | 2015-06-11T00:30:10 | Python | UTF-8 | Python | false | false | 123 | py | # coding: UTF-8
a = (2, 5, 8)
#print a * 3
#a[2] = 10
b = list(a)
print b
b[2] = 10
print b
c = tuple(b)
print c
| [
"admin@example.com"
] | admin@example.com |
238376f177e037da9767d1712ce0b0903e21778b | b338d3a594a4b1e4731a4d5949694101eea016fd | /MHDWaveHarmonics/GetFieldLine.py | 997a0b1f6e85a2c0e4b785e42c30a7b95e13e02d | [
"MIT"
] | permissive | mattkjames7/MHDWaveHarmonics | ad65f4c5a93cfd9742c1118207cd75302606d8bd | ac8fcc5bf9190d300774c4e114a6ec4be865f014 | refs/heads/master | 2022-05-18T10:21:10.719998 | 2022-04-26T23:12:55 | 2022-04-26T23:12:55 | 159,176,825 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,787 | py | import numpy as np
from FieldTracing import RK4 as rk4
import inspect
from scipy.interpolate import InterpolatedUnivariateSpline
from scipy.optimize import minimize
from .DipoleField import TraceField
import copy
from . import Globals
try:
import KT17 as kt17
except:
try:
import Models.KT17 as kt17
except:
prin... | [
"mattkjames7@gmail.com"
] | mattkjames7@gmail.com |
b54a31ae9d0c919895d7e4849e0c88033c079784 | 3fd8a3e3f37f9db258df63d8565239b8b8be0f24 | /basic_python/recursive1.py | 0f193c317a780debbb813484ea13ccb457dd86e4 | [] | no_license | raveena17/workout_problems | 713a3e1a6ec513c1ee8b878519171150c6858aa4 | 004812cb7abf096d6f5d20181a29c16f8daaac55 | refs/heads/master | 2021-03-12T19:27:08.013266 | 2017-09-08T16:11:32 | 2017-09-08T16:11:32 | 102,878,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 133 | py | def fact(n):
if n==1:
return 1
else:
return n*fact(n-1)
#fact(8)-----40320
# fact(5)-----120
| [
"linuxuser@5gws004-linux.fifthgentech.local"
] | linuxuser@5gws004-linux.fifthgentech.local |
210cf835a8be8b9d470daf96cd61f49319e29fe2 | 0fd5793e78e39adbfe9dcd733ef5e42390b8cc9a | /python3/16_Web_Services/f_web_application/c_WSGI/a_simple_app.py | bbc45b452f311ac1047e899d9562b58b27dbb7e0 | [] | no_license | udhayprakash/PythonMaterial | 3ea282ceb4492d94d401e3bc8bad9bf6e9cfa156 | e72f44e147141ebc9bf9ec126b70a5fcdbfbd076 | refs/heads/develop | 2023-07-08T21:07:33.154577 | 2023-07-03T10:53:25 | 2023-07-03T10:53:25 | 73,196,374 | 8 | 5 | null | 2023-05-26T09:59:17 | 2016-11-08T14:55:51 | Jupyter Notebook | UTF-8 | Python | false | false | 530 | py | """
Purpose: To create a dynamic website
WSGI - Web Server Gateway Interface
- It is a specification that describes how web servers communicate with web applications.
- WSGI has been specified in PEP 3333.
"""
from wsgiref.simple_server import make_server
def hello_world_app(environ, start_response):
s... | [
"uday3prakash@gmail.com"
] | uday3prakash@gmail.com |
8c741bc818878bd6a70054719d84fc8bafd35448 | f1340e9051164cace1b2c8c884dd51be18651972 | /tests/unit/test__algebraic_intersection.py | b53e0df13098488a455d033979e656da103013ad | [
"Apache-2.0"
] | permissive | fudp/bezier | 250aa9481c50ab1bca13789bef6f742e65404878 | 4f941f82637a8e70a5b159a9203132192e23406b | refs/heads/master | 2020-04-30T14:28:34.566074 | 2018-12-06T20:19:09 | 2018-12-06T20:19:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,796 | 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under t... | [
"daniel.j.hermes@gmail.com"
] | daniel.j.hermes@gmail.com |
1b6ed3df6f5825b6934d6c29dfdaf515c683f87e | c31c8095ce4d4e9686e3e7ad6b004342e49671fa | /forum/migrations/0003_perso_image.py | 86a65ba4537fa1611bb7668b648b1dbee17b6a3e | [] | no_license | Lionalisk/arrakambre | 7bcc96dea2ca2a471572bfb1646256f1382ce25b | 2caece9be5eebf21ddfa87a6c821c32b5d5019a2 | refs/heads/master | 2020-12-07T19:31:24.471090 | 2020-01-09T10:14:29 | 2020-01-09T10:14:29 | 232,782,172 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 428 | py | # Generated by Django 2.1.1 on 2018-09-16 11:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('forum', '0002_remove_post_titre'),
]
operations = [
migrations.AddField(
model_name='perso',
name='image',
... | [
"lionel.varaire@free.fr"
] | lionel.varaire@free.fr |
d711316308d6bd168c770b41a387e488cf228ba6 | 9d0d4db62ebc84460c7d6f53ac28cbe315407592 | /py_files/lab10_mpc_reachability.py | df1dc97057fdf7da15f99a4e5d6c0ba9bceee7b7 | [] | no_license | ZionDeng/Advanced-Control-Design | c471c44b3044b94e197147ec566811be8d1a5ffd | 1e82cdd1b98e95a0d210808e89eff4536efc9e73 | refs/heads/master | 2023-01-29T07:50:21.805723 | 2020-12-09T15:48:56 | 2020-12-09T15:48:56 | 312,738,867 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,051 | py | # %%
# Lab 10: Reachability Analysis for Constrained Inverted Pendulum Model (Solution)
# x1 is the angle of the pendulum,
# x2 is the angular velocity of the pendulum, and
# u is the speed of the cart.
# %%
import numpy as np
import scipy.signal
import scipy.linalg
from scipy.integrate import solve_ivp
import m... | [
"569598401@qq.com"
] | 569598401@qq.com |
0e2dab9ebd7d156f7732efa45fc8ee01afb11ef1 | e5c3b3a044e826425dd0f783d5e38e5bfeb82626 | /diplomacy_research/proto/diplomacy_tensorflow/core/protobuf/checkpointable_object_graph_pb2.py | 3255cddedf2006b2317064a1650484e4912bd022 | [
"MIT"
] | permissive | JACKHAHA363/research | 04f67f98dcd238092941725d531517ae2a4ab47f | e752f02f34936bbae904815708904cabda554b57 | refs/heads/master | 2020-09-14T23:42:32.337085 | 2019-11-22T03:36:35 | 2019-11-22T03:36:35 | 223,296,172 | 0 | 0 | null | 2019-11-22T01:15:52 | 2019-11-22T01:15:51 | null | UTF-8 | Python | false | true | 13,585 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: diplomacy_tensorflow/core/protobuf/checkpointable_object_graph.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 _m... | [
"pcpaquette@gmail.com"
] | pcpaquette@gmail.com |
7e8eb6d990fb73c2f7395b292c849786ef41d25c | b333dc607a2f1556f6a8adb6d16dc88fa8a30c8b | /portal/libs/whoosh/highlight.py | 9b8c86059796099a3943031eb67825158392109a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hernan0216/utopia-cms | 6558f8f600620c042dd79c7d2edf18fb77caebb8 | 48b48ef9acf8e3d0eb7d52601a122a01da82075c | refs/heads/main | 2023-02-06T10:31:35.525180 | 2020-12-15T17:43:28 | 2020-12-15T17:43:28 | 321,775,279 | 1 | 0 | BSD-3-Clause | 2020-12-15T19:59:17 | 2020-12-15T19:59:16 | null | UTF-8 | Python | false | false | 13,779 | py | #===============================================================================
# Copyright 2008 Matt Chaput
#
# 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/li... | [
"apacheco@ladiaria.com.uy"
] | apacheco@ladiaria.com.uy |
7a90ed38676596e38929c75c713b6dd7cccfb522 | 9ce90f599ec7be83fbba56842381c1891f0801b2 | /examples/earm/earm_1_3_standalone.py | 5d68198b42749b5a89c08f8d47140c812c0027d0 | [
"BSD-2-Clause"
] | permissive | jmuhlich/bayessb | d55328cc022353118a5bb4f9184bf67bb5f39d85 | c9aea038d2984afd77185d18675e3c7caae85e93 | refs/heads/master | 2021-01-19T20:21:58.471316 | 2013-04-16T13:46:49 | 2013-04-16T13:46:49 | 4,274,758 | 3 | 1 | null | 2013-01-29T15:37:24 | 2012-05-09T18:00:14 | Python | UTF-8 | Python | false | false | 31,608 | py | """
EARM 1.3 (extrinsic apoptosis reaction model)
Gaudet S, Spencer SL, Chen WW, Sorger PK (2012) Exploring the Contextual
Sensitivity of Factors that Determine Cell-to-Cell Variability in
Receptor-Mediated Apoptosis. PLoS Comput Biol 8(4): e1002482.
doi:10.1371/journal.pcbi.1002482
http://www.ploscompbiol.org/articl... | [
"jmuhlich@bitflood.org"
] | jmuhlich@bitflood.org |
d39ace00459e163cdff4e3d6776bcfa7c4a230f4 | 6ae8717002f8fce4457cceb3375a114ddcb837df | /1-100/20. Valid Parentheses.py | b66f4412d2035e54f8a192c54000a27e0634fce7 | [] | no_license | SunnyMarkLiu/LeetCode | 31aea2954d5a84d11a1c4435f760c1d03c6c1243 | 852fad258f5070c7b93c35252f7404e85e709ea6 | refs/heads/master | 2020-05-30T07:17:33.992197 | 2018-03-29T03:57:51 | 2018-03-29T03:57:51 | 104,643,862 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | #!/home/sunnymarkliu/software/miniconda2/bin/python
# _*_ coding: utf-8 _*_
"""
1. 用栈来操作,将所有的字符依次入栈,当栈顶的括号和正要入栈的括号匹配时将栈顶的括号弹出且不入栈,否则入栈新的括号。
最后,只有当栈里没有括号时,才表明输入是有效的。
2. 实际上,通过观察可以发现:如果正要入栈的是右括号,而栈顶元素不是能与之消去的相应左括号,那么该输入字符串一定是无效的。
于是,可以大大加快判断过程。
@author: MarkLiu
@time : 17-11-21 下午8:16
"""
class Solution(objec... | [
"SunnyMarkLiu101@gmail.com"
] | SunnyMarkLiu101@gmail.com |
51b5ce98c2d3c454bb0212a899c1aa3f2f7b4148 | 930c207e245c320b108e9699bbbb036260a36d6a | /BRICK-RDFAlchemy/generatedCode/brick/brickschema/org/schema/_1_0_2/Brick/Heating_Supply_Air_Temperature_Proportional_Band_Setpoint.py | b48526f07713fd30d5de45bfc291f268cd171cad | [] | no_license | InnovationSE/BRICK-Generated-By-OLGA | 24d278f543471e1ce622f5f45d9e305790181fff | 7874dfa450a8a2b6a6f9927c0f91f9c7d2abd4d2 | refs/heads/master | 2021-07-01T14:13:11.302860 | 2017-09-21T12:44:17 | 2017-09-21T12:44:17 | 104,251,784 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 853 | py | from rdflib import Namespace, Graph, Literal, RDF, URIRef
from rdfalchemy.rdfSubject import rdfSubject
from rdfalchemy import rdfSingle, rdfMultiple, rdfList
from brick.brickschema.org.schema._1_0_2.Brick.Supply_Air_Temperature_Heating_Setpoint import Supply_Air_Temperature_Heating_Setpoint
from brick.brickschema.org.... | [
"Andre.Ponnouradjane@non.schneider-electric.com"
] | Andre.Ponnouradjane@non.schneider-electric.com |
200344d96cc290df7c5cf3b41775aa37cee6ea10 | 30150c7f6ed7a10ac50eee3f40101bc3165ebf9e | /src/ai/RemoveDeadTasks.py | 4f69a3614353cf178eb9fa00a568ccc56fbc93a1 | [] | no_license | toontown-restoration-project/toontown | c2ad0d552cb9d5d3232ae6941e28f00c11ca3aa8 | 9bef6d9f823b2c12a176b33518eaa51ddbe3fd2f | refs/heads/master | 2022-12-23T19:46:16.697036 | 2020-10-02T20:17:09 | 2020-10-02T20:17:09 | 300,672,330 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,692 | py | from . import RepairAvatars
from . import DatabaseObject
import time
# this removes all traces of a list of tasks from all avatars; if they are
# working on the task, it will disappear
class DeadTaskRemover(RepairAvatars.AvatarIterator):
# When we come to this many non-avatars in a row, assume we have
# reache... | [
"brianlach72@gmail.com"
] | brianlach72@gmail.com |
fda15d4d9037a68453de5a43d5f6e76a8e7721f6 | a80e9eb7ade3d43ce042071d796c00dd10b93225 | /ch_3/L3_flexible.py | 17eca2a9450b5b8399b92c5c76d17a05ea4d8359 | [] | no_license | ksjpswaroop/python_primer | 69addfdb07471eea13dccfad1f16c212626dee0a | 99c21d80953be3c9dc95f3a316c04b0c5613e830 | refs/heads/master | 2020-07-14T17:37:45.923796 | 2014-06-06T22:30:48 | 2014-06-06T22:30:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,018 | py | # Exercise 3.31
def L3(x, n=None, epsilon=None, return_n=False):
if (n is None and epsilon is None) or \
(n is not None and epsilon is not None):
print 'Error: Either n or epsilon must be given (not both)'
term = x / (1. + x)
s = term
if n is not None:
for i in range(2, n + 1... | [
"noahwaterfieldprice@gmail.com"
] | noahwaterfieldprice@gmail.com |
c7eb200876e8053297a5a2b32fbd8ecfb0abd3fb | c857d225b50c5040e132d8c3a24005a689ee9ce4 | /problem270.py | 51fe86bde94fcb1af98644897b073459c97c4db5 | [] | no_license | pythonsnake/project-euler | 0e60a6bd2abeb5bf863110c2a551d5590c03201e | 456e4ef5407d2cf021172bc9ecfc2206289ba8c9 | refs/heads/master | 2021-01-25T10:44:27.876962 | 2011-10-21T00:46:02 | 2011-10-21T00:46:02 | 2,335,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 628 | py | """
A square piece of paper with integer dimensions nn is placed with a corner at the origin and two of its sides along the x- and y-axes. then, we cut it up respecting the following rules:
we only make straight cuts between two points lying on different sides of the square, and having integer coordinates.
two cuts c... | [
"pythonsnake98@gmail.com"
] | pythonsnake98@gmail.com |
3b382c712e6e9267fcf983b30958256927465787 | 3679daa10ea95e90889e07e96e6c98c98f3751ea | /ipu/dummy_company/migrations/0003_auto_20170802_2227.py | 1ab5a35cc8a29af8b8748f4991d6c9e2dded39f4 | [] | no_license | rmn5124/ggsipu-placement-cell-portal | 0a8fef69c75ea444588046fcc7b38d7cf5c8e8e5 | 11876c2171bb07308719b205a69cd8330eb08052 | refs/heads/master | 2023-09-01T12:01:47.475984 | 2019-09-02T21:49:01 | 2019-09-02T21:49:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-08-02 16:57
from __future__ import unicode_literals
from decimal import Decimal
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dummy_company', '0002_auto_20170626_0... | [
"pratulyabubna@outlook.com"
] | pratulyabubna@outlook.com |
be9452319160a2be77ed98aa146eabfbc389b6cf | a1cf8c06ad8717d06833e81fa2d1241c8fe095a0 | /Multi_output/util/gendataloader.py | 8b33fe0e97fd50803aa3ff87887cb9a3e689701c | [] | no_license | webstorage119/Multi_iris_pattern_classification | 2ea5381ac77397df4b5bf52215e66de757eb6a6d | 1c1d204cf4e9961a5dead61cc546d4eb0a3db0a8 | refs/heads/master | 2022-11-11T07:50:11.896482 | 2020-06-30T02:07:47 | 2020-06-30T02:07:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,217 | py | from keras.preprocessing.image import ImageDataGenerator
from .constants import *
from tensorflow.python.keras.utils import Sequence
from sklearn.preprocessing import LabelBinarizer
from keras.preprocessing.image import img_to_array
import cv2
import os
import numpy as np
from CNNUtil import paths
class ImageGenerato... | [
"jslee_314@naver.com"
] | jslee_314@naver.com |
2e1bb1c09a79b09675def0d26be43ebc7146545c | ce372ecceda35faf0330d1e813a57babe9517687 | /Image/urls.py | 4a2fa2974c051112e5a8b8a9e1fccdc12e025163 | [] | no_license | Jyonn/Rizya | 9b92adafd563244f722c77e48e7ceb6334515901 | 5d7a1435adb14276c97ef65a120635c805857ad6 | refs/heads/master | 2023-05-28T19:59:01.695631 | 2021-06-17T09:17:16 | 2021-06-17T09:17:16 | 203,008,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 127 | py | from django.urls import path
from Image.views import IDView
urlpatterns = [
path('@<str:image_id>', IDView.as_view()),
]
| [
"lqj679ssn@qq.com"
] | lqj679ssn@qq.com |
98708c98148213ef45a019c8a4757116ef8de427 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_233/ch61_2020_03_11_10_58_49_976982.py | 168113a54572db24f2e8f462c85dc91c75d24631 | [] | 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 | 152 | py | def filtra_positivos(lista):
nova_lista = []
for i in lista:
if i > 0: nova_lista.append(i)
return nova_lista | [
"you@example.com"
] | you@example.com |
ad06e9622a82dfa853a1591d3b9c6356e7d42702 | 4c9c028936379c510cebfe4830f460817d9bc3c8 | /apartments/views/__init__.py | fd5d28f95da1e492d95e45828cc55e745f061a1a | [] | no_license | preciousidam/management-system | cd47d7c564fe0ff0ae459c702c63a3cb16eee8ab | c984012e2cbc7554b20b00fabafd24f3f5752ba8 | refs/heads/main | 2023-04-02T08:44:24.416866 | 2021-03-11T20:09:11 | 2021-03-11T20:09:11 | 341,899,263 | 0 | 0 | null | 2021-04-12T14:35:07 | 2021-02-24T12:50:41 | Python | UTF-8 | Python | false | false | 91 | py | from .views import TenancyViewSet, ApartmentViewSet
from .agreement import AgreementViewSet | [
"preciousidam@gmail.com"
] | preciousidam@gmail.com |
67ef7c330dffe15c88c23efd1072f43a6c9a5996 | d177addc1830153404c71fa115a5584f94a392c3 | /N941_ValidMountainArray.py | c19d2de2c95e45e68457fcbba8b25f8d89e4ebe1 | [] | no_license | zerghua/leetcode-python | 38a84452f60a360e991edf90c8156de03a949000 | 02726da394971ef02616a038dadc126c6ff260de | refs/heads/master | 2022-10-25T11:36:22.712564 | 2022-10-02T19:56:52 | 2022-10-02T19:56:52 | 61,502,010 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,378 | py | #
# Create by Hua on 5/10/22.
#
"""
Given an array of integers arr, return true if and only if it is a valid mountain array.
Recall that arr is a mountain array if and only if:
arr.length >= 3
There exists some i with 0 < i < arr.length - 1 such that:
arr[0] < arr[1] < ... < arr[i - 1] < arr[i]
... | [
"zerghua@gmail.com"
] | zerghua@gmail.com |
36d15f5608287176a5a9980524a7100216b6b6ff | a835dc3f52df8a291fab22e64e9e3e5cbecf0c6e | /lovelive_crawlin_api/lovelive_api/migrations/0015_auto_20181012_0306.py | 90b0a3ec55126030aca51e537659ef0bcc5dfb3d | [] | no_license | tails5555/lovelive_crawlin_project | 99d334bb7e3c892a59ae738158e954f4ad322296 | d0bd42ab183a8a75a07f52c0cf7ab30cb634b513 | refs/heads/master | 2020-03-30T04:12:00.102091 | 2018-11-27T08:04:40 | 2018-11-27T08:04:40 | 150,729,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # Generated by Django 2.1.2 on 2018-10-11 18:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lovelive_api', '0014_auto_20181012_0244'),
]
operations = [
migrations.AlterField(
model_name='cardimage',
name='img... | [
"tails5555@naver.com"
] | tails5555@naver.com |
c774eba8f762603582d1bd6169a68a91053f588c | 4b2229d6364c4f3919880ce24df0d40f1b1cff3c | /sequtus/tests/covers.py | 60f9513327305f411936b3d01736a3d621d81f89 | [] | no_license | Teifion/Sequtus-2 | 4960d3b3710bb24eb34bec23f8a639c7bb2922a3 | d7dd3a9fbdf50e8b7545e03cb39d3762b9bf2eb7 | refs/heads/master | 2020-04-06T06:46:23.958577 | 2012-05-12T19:46:39 | 2012-05-12T19:46:39 | 3,030,129 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,530 | py | """
This code is released as-is with no warranty of any sort.
You are welcome to alter and distribute though I'd
appreciate credit being given where possible.
Written by Teifion Jordan (http://woarl.com)
Usage: covers.get_coverage()
suite is expected to be a unittest.TestSuite
root_dir is the root directory to star... | [
"sarkalian@gmail.com"
] | sarkalian@gmail.com |
50baffaed091096a06ea1478956eb5c01a849c0e | aebe93e3c4d15f64b2611d9b8b5332ce05e37d72 | /Implement_Queue_Stacks.py | bdb5d00130ba64bf23c940741f172441f900585f | [] | no_license | liuwei881/leetcode | 37fa7d329df78f63a8aa48905096b46952533a95 | 33d329a7ce13aeeb1813b7471188cd689f91a1e8 | refs/heads/master | 2020-04-26T22:00:16.813430 | 2019-04-24T03:20:45 | 2019-04-24T03:20:45 | 173,858,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,036 | py | # coding=utf-8
"""
Implement the following operations of a queue using stacks.
push(x) -- Push element x to the back of queue.
pop() -- Removes the element from in front of queue.
peek() -- Get the front element.
empty() -- Return whether the queue is empty.
Example:
MyQueue queue = new MyQueue();
queue.push(1);
qu... | [
"liuweia@mail.open.com.cn"
] | liuweia@mail.open.com.cn |
5a4cb878245c61dc6dbbdffff2942db0a0164075 | 5ae98342461af8568aa03e6377f83efb649f6799 | /helper/javascript_completions/show_hint_parameters_command.py | fe014339f7e004793f69700b701748a9cc81fb11 | [
"MIT"
] | permissive | minimallinux/JavaScriptEnhancements | 30651ffb647848646c52138dc3c1a02577fe3210 | d9f578022d9cdf5ee6541319c6a129f896350bee | refs/heads/master | 2021-05-05T21:56:07.179554 | 2018-01-03T02:46:12 | 2018-01-03T02:46:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,253 | py | import sublime, sublime_plugin
class show_hint_parametersCommand(sublime_plugin.TextCommand):
def run(self, edit, **args):
view = self.view
scope = view.scope_name(view.sel()[0].begin()).strip()
meta_fun_call = "meta.function-call.method.js"
result = Util.get_region_scope_last_match(view, scope,... | [
"pichillilorenzo@gmail.com"
] | pichillilorenzo@gmail.com |
b2f89bafaa88589c3f1df86671f16797c3be58f1 | 20930fa97c20bc41a363782446c8939be47f7f98 | /promus/command/_reset.py | e8e214aeb2cb85e56d1ca1d29ee207d038b789b0 | [
"BSD-3-Clause"
] | permissive | jmlopez-rod/promus | 1018214b502eb1dc0c7a7e5e7fcfaae7666c3826 | 2d5b8ac54afe721298f6326f45fd3587bc00d173 | refs/heads/master | 2016-09-10T03:35:01.710952 | 2014-08-22T22:01:22 | 2014-08-22T22:01:22 | 21,441,146 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | """_RESET
This is an axilary function to fix the old repositories created with
the beta version of promus.
"""
import textwrap
import promus.core as prc
DESC = """
Reset the git hooks. Note that this version does not create a backup
of the current hooks. Also you must be in the git repository.
"""
def add_parse... | [
"jmlopez.rod@gmail.com"
] | jmlopez.rod@gmail.com |
f635881af6bfd767402839af0261703339e1f00a | 5a5bcfe21defcaf6b050b0c92e8ec03cee7eb50f | /gencrud/gen/utils/querystring_parser/tests.py | f7d30e10bcc5b7a4b736b41322d789a188308548 | [] | no_license | marychev/gencrud | dc146c570a81ed0665f6bec309f106d966be349a | d6dc478b9a079aba5589591fa2e79665179e28a2 | refs/heads/master | 2023-01-06T18:50:13.417451 | 2020-10-23T18:05:38 | 2020-10-23T18:05:38 | 262,617,213 | 2 | 0 | null | 2020-05-10T18:35:19 | 2020-05-09T16:55:28 | Python | UTF-8 | Python | false | false | 12,456 | py | # coding: utf-8
'''
Created on 2011-05-13
@author: berni
Updated 2012-03-28 Tomasz 'Doppler' Najdek
Updated 2012-09-24 Bernard 'berni' Kobos
'''
import sys
from .parser import (parse, MalformedQueryStringError)
from .builder import build
import unittest
class KnownValues(unittest.TestCase):
'''
Test output... | [
"marychevmihail3737@gmail.com"
] | marychevmihail3737@gmail.com |
e72a39d27f535fd09ff5275560423a14d4aeec5a | 8e2d9ad65441f92234ec3bf1dfbcb31535d21331 | /Baekjoon/11720_숫자의 합.py | 2805502314908415ccb5cec321a93a2b92b5eb2f | [] | no_license | taesu-park/PycharmProjects | 28671e7d4e27e2325ccbb4044e57db57ec27cc2a | 0c39769564a6e51a35ff33bb7a992a46dd2db0ba | refs/heads/master | 2020-07-06T15:32:52.980355 | 2020-03-18T19:09:32 | 2020-03-18T19:09:32 | 203,067,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | N = int(input())
arr = list(input())
sum = 0
for i in arr:
sum += int(i)
print(sum) | [
"tsoo1014@gmail.com"
] | tsoo1014@gmail.com |
203a44dd016c6c369edec9ac043147ed5e9b0d56 | 048df2b4dc5ad153a36afad33831017800b9b9c7 | /atcoder/abc003/abc003_2.py | 8d06191a63417901073e63aa87577afe758fc7c4 | [] | no_license | fluffyowl/past-submissions | a73e8f5157c647634668c200cd977f4428c6ac7d | 24706da1f79e5595b2f9f2583c736135ea055eb7 | refs/heads/master | 2022-02-21T06:32:43.156817 | 2019-09-16T00:17:50 | 2019-09-16T00:17:50 | 71,639,325 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | s = raw_input()
t = raw_input()
atcoder = set(list('atcoder@'))
for i in range(len(s)):
if s[i] == t[i]:
continue
if s[i] == '@' and t[i] in atcoder:
continue
if t[i] == '@' and s[i] in atcoder:
continue
print 'You will lose'
break
else:
print 'You can win'
| [
"nebukuro09@gmail.com"
] | nebukuro09@gmail.com |
d90c2a8eb4a3e0e16ee723fed99f987a006669e1 | 1af4ec17c474e5c05e4de1a471247b546f32c7c7 | /funcoes/gerador_html_v2.py | 4154f930334f5ab6d7483645c4e523224c07e1f7 | [] | no_license | ribeiro-rodrigo-exemplos/curso-python | 825d09bb4284e65c3ba67bed8dcf8b29ac1c90eb | 101c610161775d73b46cc64a668451dfa65abf7d | refs/heads/master | 2020-05-18T06:43:37.263995 | 2019-06-17T09:32:58 | 2019-06-17T09:32:58 | 184,241,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 421 | py | #!/usr/bin/python3
def tag_bloco(texto, classe='success', inline=False):
tag = 'span' if inline else 'div'
return f'<{tag} class="{classe}">{texto}</{tag}>'
if __name__ == '__main__':
print(tag_bloco('bloco'))
print(tag_bloco('inline e classe', 'info', True))
print(tag_bloco('inline', inline=Tru... | [
"ribeiro.rodrigo1989@gmail.com"
] | ribeiro.rodrigo1989@gmail.com |
42333d8e0b5efa7e7e6a23a038e8b16586645d8c | c80d264e1e7af78505af076da879c62cfa247d35 | /Vow_str.py | afa20822a95d536c5c957e93e792651fad8a9439 | [] | no_license | shanthivimalanataraajan01/Codekataplayer | f3679c365099d0f6dedf2fe6b93bd308c67bc485 | 2af9997a164daef213b1053f0becfc0327735f21 | refs/heads/master | 2020-05-23T12:00:19.855401 | 2019-05-05T07:20:07 | 2019-05-05T07:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | def vow(x):
c=0
v=['a','e','i','o','u']
for i in x:
if i in v:
c+=1
if c>=1:
a=1
else:
a=0
return a
n=int(input())
g=[]
d=0
for i in range(0,n):
g.append(input())
for i in g:
if vow(i)==1:
d+=1
if d==len(g):
print("yes")
else:
print("no")
| [
"noreply@github.com"
] | shanthivimalanataraajan01.noreply@github.com |
d7a436e6e55cf21fc9c78b8d1320284f36f44d69 | 37f1125544ac1b4800402d981ce030c82b4993d8 | /pythonitems/APIAutoTest20200304/demo/other/demo_unittest03.py | edd4364a6fec5462ef3dd21c08a57161179baf6c | [] | no_license | shixingjian/PythonItems | db6392451fda388ef4f4805aaf9991ec01bd36bd | 6b6a4e4bae2e727581c8805676422f28b8f6231f | refs/heads/master | 2022-11-21T01:17:23.607196 | 2020-07-22T08:37:44 | 2020-07-22T08:37:44 | 281,614,603 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | #-*-coding:utf-8-*-
#@Time:2020/4/910:02
#@Author:freya
#@File:dem0_unnittest03.py
from demo.other.demo_calculator import Calculator
import unittest
from ddt import ddt,data
from lib.excelManage import readExcel
import time
from lib.sendCourseRequest import SendCourceRequest
import json
"""
UnitTest结合DDT语法学习
"""
my... | [
"1440799763@qq.com"
] | 1440799763@qq.com |
f6834b518da6ec85721a33f3d0411fe0f27e0ce3 | 336a5f79d935c277be6d4b22cf3cc58e48c1344d | /tensorflow_probability/python/math/psd_kernels/psd_kernel_properties_test.py | 08b1970db617e8472a618484d6c93464c2dd7aff | [
"Apache-2.0"
] | permissive | fearghus-moloco/probability | 9300328febe09f18bf84e31b7588106588a60fbd | 4b675da7c431d7bb20029f9fdd28db859e6c025f | refs/heads/master | 2023-08-06T08:36:03.041624 | 2021-09-10T22:34:54 | 2021-09-10T22:41:07 | 288,120,063 | 0 | 0 | Apache-2.0 | 2020-08-17T08:04:39 | 2020-08-17T08:04:38 | null | UTF-8 | Python | false | false | 6,236 | py | # Copyright 2018 The TensorFlow Probability Authors.
#
# 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 o... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
37a541c1f5362364dd6c285b52b15dead97246ab | b7137589ec15f08f687fe4a56693be59e95e550f | /backend/blank_test_19535/wsgi.py | bb7e46c39a2636de4f8d656cfd59e9732578eb66 | [] | no_license | crowdbotics-apps/blank-test-19535 | 25391cac32119702065fcd1070fcc6bb32379138 | 849e0186882cf69fd9008bb58685fc0e187b4b77 | refs/heads/master | 2022-12-07T03:07:26.627979 | 2020-08-24T14:30:14 | 2020-08-24T14:30:14 | 287,266,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | """
WSGI config for blank_test_19535 project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
3265659206a20735c52f8a36a3d204d9ed935475 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02850/s650053544.py | 67d112724c3be08773f6d9bb68cb786210ef37d7 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,401 | py | from collections import Counter, defaultdict
import sys
sys.setrecursionlimit(10 ** 5 + 10)
# input = sys.stdin.readline
from math import factorial
import heapq, bisect
import math
import itertools
import queue
from collections import deque
from fractions import Fraction
def main():
num = int(input())
data =... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
85ced45bf2ef40af67c5cbb064e9619f7baac7cf | e063c54c9e73b393e6092d2d1510d1f942904528 | /src/cryptoadvance/specter/devices/generic.py | b4f00abda29ec6b7039f21dd6d5cddcd9ea04b63 | [
"MIT"
] | permissive | zndtoshi/specter-desktop | bd1633dc273c2a6a4eedae7f545fb715155bb8ec | 00c32b0fed4b49380de8e311d79a790756dacba5 | refs/heads/master | 2022-11-25T01:06:49.869265 | 2020-08-05T20:37:14 | 2020-08-05T20:37:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from ..device import Device
class GenericDevice(Device):
def __init__(self, name, alias, device_type, keys, fullpath, manager):
super().__init__(name, alias, 'other', keys, fullpath, manager)
self.sd_card_support = True
self.qr_code_support = True
def create_psbts(self, base64_psbt, wa... | [
"snigirev.stepan@gmail.com"
] | snigirev.stepan@gmail.com |
d4dd4d3745bb28e8388a448e33d8e736a4a10859 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/335/usersdata/303/99133/submittedfiles/matriz1.py | 8d6f119a5e174147ca17c1bd61a5ad1fbb6d2d1f | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | # -*- coding: utf-8 -*-
a=[]
m=int(input(''))
n=int(input(''))
for i in range(0,m,1):
linha=[]
for j in range(0,n,1):
linha.append(int(input('')))
a.append(linha)
#ANALISE SUPERIOR/INFERIOR
c=[]
for i in range(0,m,1):
if sum(a[i])>=1:
c.append(i)
break
for i in range(m-1,-1,... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
cd7f1750274d2977bd85d9c9c294caeca2215804 | 0649b25962931fe2b659e64b6580640b647b675c | /watson/auth/providers/abc.py | 2059353119b6f8ca6cbfee271ac4ed48938fc4b1 | [
"BSD-2-Clause"
] | permissive | watsonpy/watson-auth | 117994ef9bb2b45817955a002d77be2462be0337 | 44057e21e24f272f39414ff15a275cf6f9f009e2 | refs/heads/master | 2022-05-26T23:52:17.507355 | 2019-10-03T04:28:38 | 2019-10-03T04:28:38 | 16,093,607 | 0 | 0 | BSD-3-Clause | 2022-05-25T00:34:21 | 2014-01-21T05:29:44 | Python | UTF-8 | Python | false | false | 3,673 | py | import abc
from sqlalchemy.orm import exc
from watson.auth import crypto
from watson.auth.providers import exceptions
from watson.common import imports
from watson.common.decorators import cached_property
class Base(object):
config = None
session = None
def __init__(self, config, session):
self.... | [
"simon.coulton@gmail.com"
] | simon.coulton@gmail.com |
d5dc3061eb7cbe5b2f99bf91cb705fc72aec5fe0 | 5ad0dace59e449fb0928d7b302f386a84d634e05 | /MERFISH_probe_design/probe_design/quality_check.py | 5fe0f510f97bb6cde2f80a95246af7eb9d347da1 | [
"MIT"
] | permissive | r3fang/merfish_designer | 69784fcadebfb912b0a5557081f120abcc16f2d8 | c8ca3a1c825e6b381e0bbd9654ef7d3c9107bb9c | refs/heads/main | 2023-09-03T17:16:08.554990 | 2021-10-21T17:33:33 | 2021-10-21T17:33:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,471 | py | #!/usr/bin/env python3
import numpy as np
import pandas as pd
def check_and_standardize_transcriptome(transcriptome:pd.core.frame.DataFrame,
remove_non_standard_columns:bool=False):
'''Check the quality of the transcriptome and standardize it.
Return a standardized transcriptome.'''
standard_tra... | [
"xingjiepan@gmail.com"
] | xingjiepan@gmail.com |
aff49207e5329af6de37a0e3f5893be8c2d66c42 | e523652e0379f291f675e5cba4c1f667a3ac3b19 | /commands/on | 9338a7cc67189251954edfa16efecf5b8cb3426d | [
"Apache-2.0"
] | permissive | sbp/saxo | 735bac23c8d214b85ca48c5c43bc12b1531ce137 | 27030c57ed565db1aafd801576555ae64893d637 | refs/heads/master | 2023-09-01T09:08:13.633734 | 2023-08-29T12:51:40 | 2023-08-29T12:51:40 | 9,411,794 | 25 | 13 | Apache-2.0 | 2021-06-19T15:09:44 | 2013-04-13T10:06:52 | Python | UTF-8 | Python | false | false | 1,287 | #!/usr/bin/env python3
# http://inamidst.com/saxo/
# Created by Sean B. Palmer
import calendar
import datetime
import random
import re
import time
import saxo
months = "(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)"
r_arg = re.compile("(\d?\d %s)(?: (.*))?$" % months)
@saxo.pipe
def main(arg):
if not arg... | [
"sean@miscoranda.com"
] | sean@miscoranda.com | |
be586f969f0d8cca5ea9db4244f816c8061ed23c | f8d3f814067415485bb439d7fe92dc2bbe22a048 | /opencvlib/test/imgpipes/test_digikamlib.py | 90d8375bb93b17004e2cf311cbea6861fabd1708 | [] | no_license | gmonkman/python | 2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3 | 9123aa6baf538b662143b9098d963d55165e8409 | refs/heads/master | 2023-04-09T15:53:29.746676 | 2022-11-26T20:35:21 | 2022-11-26T20:35:21 | 60,254,898 | 0 | 2 | null | 2023-03-24T22:58:39 | 2016-06-02T10:25:27 | Python | UTF-8 | Python | false | false | 2,074 | py | # pylint: disable=C0103, too-few-public-methods, locally-disabled, no-self-use, unused-argument
'''unit tests for digikamlib which
is used to interact with the digikam
sqlite database'''
import unittest
from inspect import getsourcefile as _getsourcefile
import os.path as _path
import opencvlib.imgpipes.digikamlib ... | [
"gmonkman@mistymountains.biz"
] | gmonkman@mistymountains.biz |
9bd874f1f17f209339092465488af26b4baf5faa | 328ebfdbcef076ce0e930715f9bd786d7498185b | /lang/python/Complete-Python-Developer-in-2021-Zero-to-Mastery/1st pass/11-modules/newjokes/venv/lib/python3.9/site-packages/pip/_internal/commands/debug.py | 3abef1af9d27bfb72ac967279b93f6cc91d5dd33 | [] | no_license | pnowak2/learnjs | b618e6f9563b3e86be0b1a21d647698e289daec0 | f8842b4e9e5d2eae6fb4e0d663b6699d74c90e9c | refs/heads/master | 2023-08-30T05:04:00.227920 | 2023-08-18T10:58:24 | 2023-08-18T10:58:24 | 41,912,571 | 3 | 0 | null | 2023-03-31T06:58:40 | 2015-09-04T11:36:13 | Python | UTF-8 | Python | false | false | 13,934 | py | <<<<<<< HEAD
import locale
import logging
import os
import sys
import pip._vendor
from pip._vendor import pkg_resources
from pip._vendor.certifi import where
from pip._vendor.packaging.version import parse as parse_version
from pip import __file__ as pip_location
from pip._internal.cli import cmdoptions
from pip._int... | [
"p.nowak2@gmail.com"
] | p.nowak2@gmail.com |
d3d58a4b31205e7f350a10f5cafce63d2264d44f | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/era5_scripts/01_netCDF_extraction/erafive902TG/417-tideGauge.py | ab7076eb96dc93a1d051f0c632732ff5642fe508 | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,595 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 01 10:00:00 2020
ERA5 netCDF extraction script
@author: Michael Tadesse
"""
import time as tt
import os
import pandas as pd
from d_define_grid import Coordinate, findPixels, findindx
from c_read_netcdf import readnetcdf
from f_era5_subsetV2 import subsetter
def extrac... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
b3bbf241bc800e52afdc11e43aaefdfc56e938a5 | c9acc2aebb8ba0aa285c38a75e920073923670f9 | /tianyayingshi/src/sentiment/snownlp/normal/__init__.py | a4231e2b2e06164135a4b518fa72a3893c6fa28d | [] | no_license | taojy123/BySM | 4821d92b73c8d9d2bb38356e2d0fc1893fd8497a | 6988d7b33085f2d4ae8e4773f494ff18190318a5 | refs/heads/master | 2020-04-05T14:35:58.520256 | 2016-09-06T07:18:55 | 2016-09-06T07:18:55 | 27,417,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os
import re
import codecs
from . import zh
from . import pinyin
stop_path = os.path.join(os.path.dirname(os.path.abspath(__file__)),
'stop-words_chinese_1_zh.txt')
pinyin_path = os.path.join(os.path.dirname(os.path.abspa... | [
"taojy123@163.com"
] | taojy123@163.com |
0899c62e03a18f7bd82ee50637c5476d2490ef39 | 641ff82ed3dd80c20dcfffd44fd183350eb11836 | /PyFunceble/core/__init__.py | f80a742a6bb57d657e7de163d8e97846d22b84da | [
"MIT"
] | permissive | cargo12/PyFunceble | 3d338b0b6d8b4dbff30090dc694c54457cf1e65b | d6033601909e88495f5b102e45ee7d5a48dbe46a | refs/heads/master | 2021-02-05T08:20:34.229758 | 2020-02-02T20:27:42 | 2020-02-02T20:27:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,194 | py | """
The tool to check the availability or syntax of domains, IPv4, IPv6 or URL.
::
██████╗ ██╗ ██╗███████╗██╗ ██╗███╗ ██╗ ██████╗███████╗██████╗ ██╗ ███████╗
██╔══██╗╚██╗ ██╔╝██╔════╝██║ ██║████╗ ██║██╔════╝██╔════╝██╔══██╗██║ ██╔════╝
██████╔╝ ╚████╔╝ █████╗ ██║ ██║██╔██╗ ██║██║ ... | [
"contact@funilrys.com"
] | contact@funilrys.com |
79aa3263058778bc9d862d6e547ac28284d77218 | e073d58c135e4b27b861946a6e84aa5b2e0ae7f2 | /datastructure/double_pointer/ReverseString.py | aaa9f0f09a857e1e8fb20514e15fbc435fca632e | [] | no_license | yinhuax/leet_code | c4bdb69752d441af0a3bcc0745e1133423f60a7b | 9acba92695c06406f12f997a720bfe1deb9464a8 | refs/heads/master | 2023-07-25T02:44:59.476954 | 2021-09-04T09:07:06 | 2021-09-04T09:07:06 | 386,097,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author : Mike
# @Contact : 597290963@qq.com
# @Time : 2021/1/25 23:25
# @File : ReverseString.py
from typing import List
"""
编写一个函数,其作用是将输入的字符串反转过来。输入字符串以字符数组 char[] 的形式给出。
不要给另外的数组分配额外的空间,你必须原地修改输入数组、使用 O(1) 的额外空间解决这一问题。
你可以假设数组中的所有字符都是 ASCII 码表中的可打印字符。
作者:力扣... | [
"597290963@qq.com"
] | 597290963@qq.com |
e8885c3766b279cf42727722c441609806e35ff1 | c988a8856d2d3fb7771417b4c7810e528a197d2b | /restaurant py.py | 6e141d75b64eaccbbd3ff3c4f0ded38e66fb6987 | [] | no_license | arunekuriakose/MyPython | 0c8a9161fef20bf77f7ba31149ec4ba0fa79b0bd | 19f44819612a8490d430bafec0616f68ce109776 | refs/heads/master | 2022-01-20T07:56:48.505226 | 2019-07-22T06:26:52 | 2019-07-22T06:26:52 | 198,158,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | py |
def Ref():
x=random.randint(10908,500876)
randomRef=str(x)
rand.set(randomRef)
if (Fries.get()==""):
CoFries=0
else:
CoFries=float(Fries.get())
if (Noodles.get()==""):
CoNoodles=0
else:
CoNoodles=float(Noodles.get())
... | [
"noreply@github.com"
] | arunekuriakose.noreply@github.com |
1f2eee3ef88caeef047310f977d6057f636ec90e | 7f60d03d7326a2768ffb103b7d635260ff2dedd7 | /system/base/expat/actions.py | a7eacf5e14263dd9faa35ca3c6069079237186fe | [] | no_license | haneefmubarak/repository | 76875e098338143852eac230d5232f4a7b3c68bd | 158351499450f7f638722667ffcb00940b773b66 | refs/heads/master | 2021-01-17T17:51:22.358811 | 2014-03-24T19:41:12 | 2014-03-24T19:41:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 377 | py |
#!/usr/bin/python
# Created For SolusOS
from pisi.actionsapi import shelltools, get, autotools, pisitools
def setup():
autotools.configure ("--prefix=/usr --disable-static")
def build():
autotools.make ()
def install():
autotools.rawInstall ("DESTDIR=%s" % get.installDIR())
# Add the documentation
... | [
"ikey@solusos.com"
] | ikey@solusos.com |
e308b90da0b42e67a6db5c0131db265389a98250 | 567ecf4ea5afbd7eb3003f7e14e00c7b9289b9c6 | /ax/utils/common/tests/test_testutils.py | c86a3a1a299a37c71651c9a594ba17df307b3a09 | [
"MIT"
] | permissive | danielrjiang/Ax | f55ef168a59381b5a03c6d51bc394f6c72ed0f39 | 43014b28683b3037b5c7307869cb9b75ca31ffb6 | refs/heads/master | 2023-03-31T12:19:47.118558 | 2019-12-02T16:47:39 | 2019-12-02T16:49:36 | 225,493,047 | 0 | 0 | MIT | 2019-12-03T00:09:52 | 2019-12-03T00:09:51 | null | UTF-8 | Python | false | false | 2,254 | py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
import io
import sys
from ax.utils.common.testutils import TestCase
def _f():
e = RuntimeError("Test")
raise e
def _g():
_f() # Lines along the path are matched too
class TestTestUtils(TestCase):
def ... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
da4ba7f8e2bcf8f18cb88f0f33133479d6f3c350 | eb4119dda59e44fc418be51a33c11e5d32f29fd7 | /src/ssadmin/migrations/0002_auto_20161111_1238.py | ad31ef9ffd6873708716cc6852985b4aad46eac4 | [
"MIT"
] | permissive | daimon99/ssadmin | 4ee08f4d56bc8f27099f1e1caa72a3ca8b8b1b57 | 9a1470712bdca5b0db17895d4c8215555d6b1b04 | refs/heads/master | 2020-12-24T12:29:49.070231 | 2016-11-11T13:26:34 | 2016-11-11T13:26:34 | 72,992,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-11 12:38
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('ssadmin', '0001_initial'),
]
operations = [
... | [
"daijian1@qq.com"
] | daijian1@qq.com |
227540b49e24fa651eda6583afdce8ca0f953d93 | 5f40f48e6cb75278a746ca28aad8a2b7826678e1 | /passstatement.py | 8fc41cc66f823174c771125f712b8de48b40cb44 | [] | no_license | Techsrijan/kipmbsc | b5be3fe8a2693980f65e19b50b92036fbdfc85c0 | d766b4ec36bf7e4a31dbc388ddbcfb471d5c0700 | refs/heads/main | 2023-08-15T12:38:34.628808 | 2021-10-19T11:14:39 | 2021-10-19T11:14:39 | 406,292,625 | 0 | 18 | null | null | null | null | UTF-8 | Python | false | false | 79 | py | a=int(input("Enter First number"))
if a%2==0:
pass
else:
print("odd no") | [
"aswanibtech@gmail.com"
] | aswanibtech@gmail.com |
900b433e08f9ae6f6f1b68885f1633a7b7c47e66 | 3c0104047e826816f7e945434b718b33b7499629 | /sandbox/MP/fun.py | b08d78db857ed97a1ecad1a1fa8188ba5907855b | [] | no_license | larsendt/xhab-spot | 8080d6a213e407fb75cc246702e1dbbcd94eae57 | bd2bdfcb0414f8ed0cbb3be95a5ba13d9baf6b4b | refs/heads/master | 2021-01-19T11:02:49.250480 | 2014-05-06T17:29:30 | 2014-05-06T17:29:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | import lcddriver
import time
lcd=lcddriver.lcd()
lcd.lcd_print_char('X',2, 7)
lcd.lcd_print_char('-',2, 8)
lcd.lcd_print_char('H',2, 9)
lcd.lcd_print_char('A',2, 10)
lcd.lcd_print_char('B',2, 11)
lcd.lcd_print_char('2',3, 7)
lcd.lcd_print_char('0',3, 8)
lcd.lcd_print_char('1',3, 9)
lcd.lcd_print_char('4',3, 10)
lcd.... | [
"dane.t.larsen@gmail.com"
] | dane.t.larsen@gmail.com |
7c85e2f48091128f9c0e0f945e742828363d5869 | 9bcba8f3162eacea872dbadc9990a164f945f70a | /Packages/comandos/node_npm_install.py | 5c253d9822e9ba351460bbabafd8c34996310aff | [] | no_license | programadorsito/Packages | a4cb568219dbc10a69e15a2832ef52d19eb83061 | af748327f128ed90bb146dc12bb53b76ccb609fd | refs/heads/master | 2021-01-10T04:41:38.676159 | 2016-04-06T07:52:45 | 2016-04-06T07:52:45 | 55,560,324 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 375 | py |
import sublime, os, platform
import sublime_plugin
import subprocess
import webbrowser
from subprocess import PIPE, Popen
class NodeNpmInstallCommand(sublime_plugin.TextCommand):
def run(self, edit):
window=sublime.active_window()
view=window.active_view()
view.run_command("ejec... | [
"Mac@MacBook-de-Mac.local"
] | Mac@MacBook-de-Mac.local |
3a5508257210a35777bad02559099ad92ffc4f1b | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /fHwaeLLz2vN9XzFft_7.py | a8758fac440826142925a996fcd7c906f5aadd50 | [] | 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 | 56 | py |
def yen_to_usd(yen):
return round(yen / 107.5, 2)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7bfd8413070f139e0e99eef5b6377b13be31dc6e | 61f8733c7e25610d04eaccd59db28aa65897f846 | /dot blog/Built-in functions/sorted.py | 27db07a9356814e0017a97afc970ff639092283a | [] | no_license | masato932/study-python | 7e0b271bb5c8663fad1709e260e19ecb2d8d4681 | 03bedc5ec7a9ecb3bafb6ba99bce15ccd4ae29cc | refs/heads/main | 2023-03-27T13:32:05.605593 | 2021-03-21T10:45:16 | 2021-03-21T10:45:16 | 342,985,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | # x = [5, 8, 4, 1, 3, 2, 7, 6]
# y = sorted(x)
# print(y)
# x = [5, 8, 4, 1, 3, 2, 7, 6]
# y = sorted(x, reverse=True)
# print(y)
# x = (5, 8, 4, 1, 3, 2, 7, 6)
# y = sorted(x, reverse=True)
# print(y)
# x = {'b':20, 'c':30, 'a':9, 'd':10}
# y = sorted(x, reverse=True)
# print(y)
# x = {'b':20, 'c':20, 'a':40, 'd':... | [
"masatowada66@gmail.com"
] | masatowada66@gmail.com |
233fa2bcb9aae97ffdfc0577a2228c2fc29f90a1 | eb5e319b2e7052a007b645d200f810241a2dd07c | /backend/wma_22660/urls.py | 8ad2fe276469de71f56428bdadfbabe0cd4afacc | [] | no_license | crowdbotics-apps/wma-22660 | 206bb7c670385a65528a9b14f0783f354397a1a6 | da2a25ff937242eed2b2ab3dbec4fd690b3db0a1 | refs/heads/master | 2023-01-14T07:49:09.570432 | 2020-11-16T04:23:15 | 2020-11-16T04:23:15 | 313,189,080 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,578 | py | """wma_22660 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-bas... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
396dc83dbf9b54aab58f727e635fc95ce30d5f00 | 4216a5fbdea90359abd5597589a12876f02d002c | /2016-March/python/set_container.py | 8494241f9abdcf75a9b8283ae792f865c21e94eb | [] | no_license | tammachari/big-datascience | 014bfa26f37bb99e933a645aec0b2e8b2f74061f | 6e4d2cfffca73297e1284ea6c1498fb08637f641 | refs/heads/master | 2020-07-04T15:11:32.579219 | 2018-10-07T05:11:48 | 2018-10-07T05:11:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | #set container creation and access
animals = set(['cat', 'dog'])
'cat' in animals
'fish' in animals
animals.add('fish')
'fish' in animals
len(animals)
animals.add('cat')
len(animals)
animals.remove('cat')
len(animals)
#loops
animals = set(['cat', 'dog', 'fish'])
for animal in animals:
pr... | [
"info@algorithmica.co.in"
] | info@algorithmica.co.in |
d9b209934784709b9de630de941350bbf9018263 | 0961bff0127e0a71114876a0f6f76b92df720764 | /backend/manage.py | 5069bf5715b1bf4a8d5782467697d723a35b0dd6 | [] | no_license | crowdbotics-apps/ecommerce-22008 | 43e1744ff0c0a4b32aef2f0aa62dfe9d934d40f7 | fc4e5cb3b2e40cdc7fbbbc5cf096020f62b8a4a8 | refs/heads/master | 2022-12-31T05:04:15.885597 | 2020-10-27T10:45:11 | 2020-10-27T10:45:11 | 307,666,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "ecommerce_22008.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
rais... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
28f42444746b3833cfc883c113d802f3661801af | 115c43a6b9bb198d07003684692a37fc97bb626d | /tests/test_utils.py | 7d33d71bed289559ec953c02022d218261e27e48 | [
"BSD-3-Clause"
] | permissive | rodriguez-facundo/pyecore | c79fe8a900fdf4cd8b6ccad6253c2bd57f96ac9f | 22b67ad8799594f8f44fd8bee497583d4f12ed63 | refs/heads/master | 2020-05-17T11:43:04.227860 | 2019-04-19T15:27:00 | 2019-04-19T15:27:00 | 183,692,299 | 0 | 0 | BSD-3-Clause | 2019-07-08T20:14:49 | 2019-04-26T20:48:15 | Python | UTF-8 | Python | false | false | 3,133 | py | import pytest
from pyecore.ecore import *
from pyecore.utils import DynamicEPackage, original_issubclass, alias
import builtins
@pytest.fixture(scope='module')
def simplemm():
A = EClass('A')
B = EClass('B')
Root = EClass('Root')
pack = EPackage('pack', nsURI='http://pack/1.0', nsPrefix='pack')
pa... | [
"vincent.aranega@gmail.com"
] | vincent.aranega@gmail.com |
120081f44e650aa2d0ef6c904ee981f9df20e1cc | 6123df2ee8648c7977c99564197f7834c7ea83a1 | /DataPreprocessing/MobileDataProcess/Preprocess/processingData.py | f2fe7483745581748bd67caf8d397e825e24d04d | [] | no_license | JiaqiuWang/DataStatusPrediction | 2b66a24f992df64d93506f54e041d93282213c6e | 9eb3eff99f0f804857f3a1d70227f75c91a8258d | refs/heads/master | 2020-05-21T21:34:28.571549 | 2017-08-17T08:44:12 | 2017-08-17T08:44:12 | 84,649,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,202 | py | """
读入csv数据,到内存中
"""
import time
import pandas as pd
import DataPreprocessing.NaturalLanProcess as dpt4 # 引入自然语言处理
import pymongo
import codecs
import re
class ProcessingData:
# 类公有变量
nan_list = [] # 存放空值行的队列
# 构造函数
def __init__(self, file_path, db_name, collection_name, ip_address,
... | [
"wangjiaqiu186@icloud.com"
] | wangjiaqiu186@icloud.com |
bf0a7bbad9c3796914a9d05b6776b5e21c20e70f | 86137c14ebfef6f3cf0bc3af92f443f93f48ae7d | /dvrl/main_domain_adaptation.py | d5406d61435059b04741b615df7b809730994c99 | [
"Apache-2.0"
] | permissive | jisungyoon/google-research | 692a51a91df36022dba9eb9e439fb69c1b6035e7 | 8e4097cc7c9b7cc57d85fd2f57d0684e737c3fc3 | refs/heads/master | 2020-08-23T14:37:43.706773 | 2019-10-21T18:20:41 | 2019-10-21T18:24:43 | 216,641,313 | 1 | 0 | Apache-2.0 | 2019-10-21T18:46:49 | 2019-10-21T18:46:49 | null | UTF-8 | Python | false | false | 5,391 | py | # coding=utf-8
# Copyright 2019 The Google Research Authors.
#
# 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
f45993035beacee89af6f73781deef6bd4d70eb8 | 81d0bfe1262008587ddf5ac12ae034d6922b9747 | /.history/Smart/admin/routes_20201121105136.py | f9e3333b2e15b0050561af767aad2f7d7b4be435 | [] | no_license | elvinyeka/Smart-Mobile | 525fffac14b8c460e85002bbf154bf54b4a341fe | a32f557306ae1bfe3ae01f5a8beef93727cfbc47 | refs/heads/master | 2023-06-09T09:52:18.446572 | 2021-07-06T11:35:34 | 2021-07-06T11:35:34 | 313,988,596 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,102 | py | from flask import render_template,session,request,redirect, flash, url_for, flash
from Smart import app, db, bcrypt
from .forms import RegistrationForm, LoginForm
from .models import User
@app.route('/')
def index():
return render_template('index.html', title='home')
@app.route('/admin')
def admin():
ret... | [
"elvinyeka@gmail.com"
] | elvinyeka@gmail.com |
0168af70be6863c8cd4c801977ae32fd19efe41d | c210b5111fbe0bafda441bdc8fa12cd8eb77a20b | /vframe/src/settings/app_cfg.py | dd37e85e67f9ddcd6cec0a47ec42e1e41b7b9db6 | [
"MIT"
] | permissive | noticeable/vframe_workshop | 345fc214bf6f755042a5f8470d002fd9a244c1a7 | 7adf822a0687b5621b04bf790d2c9e77f3371284 | refs/heads/master | 2020-04-28T19:59:32.826001 | 2019-01-29T20:28:20 | 2019-01-29T20:28:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,390 | py |
from os.path import join
import logging
from src.settings import types
from src.utils import click_utils
# -----------------------------------------------------------------------------
# Enun lists used for custom Click Params
# -----------------------------------------------------------------------------
LogLevelV... | [
"adam@ahprojects.com"
] | adam@ahprojects.com |
ae043d66c4ad98c31097144126a59624e7599423 | 958b0471c52eff93415216cdd1a2b2ad3947a89b | /lmnet/tests/lmnet_tests/test_data_augmentor.py | a63bb7720eca4a9421a42ea46cf7657298739225 | [
"Apache-2.0"
] | permissive | fumihwh/blueoil | 4deb606e334b8456e7ace41e3f091ad6dc41afb6 | acb5a270f201f34fe5a5b27a4b395d9c3a838b27 | refs/heads/master | 2020-04-01T22:29:27.525697 | 2018-10-18T09:23:37 | 2018-10-18T09:23:37 | 153,711,347 | 1 | 0 | null | 2018-10-19T01:49:02 | 2018-10-19T01:49:02 | null | UTF-8 | Python | false | false | 8,978 | py | # -*- coding: utf-8 -*-
# Copyright 2018 The Blueoil Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unles... | [
"matsuda@leapmind.io"
] | matsuda@leapmind.io |
054bdccad3c52d4833d907224a62b801552fde4e | 4d892dc51e2dda0fcce246ac608fc4e0ce98c52b | /FirstStepsInPython/Fundamentals/Exercice/Lists Basics/01. Invert Values.py | 94485830d6ba2cdf174235b9aeba6a63d40b5521 | [
"MIT"
] | permissive | inovei6un/SoftUni-Studies-1 | 510088ce65e2907c2755a15e427fd156909157f0 | 3837c2ea0cd782d3f79353e61945c08a53cd4a95 | refs/heads/main | 2023-08-14T16:44:15.823962 | 2021-10-03T17:30:48 | 2021-10-03T17:30:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | str_nums = input()
some_list = str_nums.split(input())
result = []
for el in some_list:
result.append((int(el) * -1))
print(result)
# INPUT 1
# 1 2 -3 -3 5
# INPUT 2
# -4 0 2 57 -101
# INPUT END
| [
"lazar_off@yahoo.com"
] | lazar_off@yahoo.com |
43a0237619f79a2a4564f43277d436d2cd99c135 | ea24104edfb276f4db780638fcc8e6cf7f7dceb8 | /setup.py | fb5b5953ca8e448d8bacb6b06e3d65a80473b5a4 | [
"MIT"
] | permissive | jmoujaes/dpaste | 6e195dc7f3a53ae2850aa4615514876597b6564d | 27d608e5da4b045ea112823ec8d271add42fd89d | refs/heads/master | 2021-01-25T14:33:06.648359 | 2018-03-03T19:57:51 | 2018-03-03T19:57:51 | 123,708,048 | 0 | 0 | MIT | 2018-03-03T16:08:54 | 2018-03-03T16:08:54 | null | UTF-8 | Python | false | false | 1,704 | py | #!/usr/bin/env python
from sys import exit
from setuptools import find_packages, setup
from setuptools.command.test import test as TestCommand
class Tox(TestCommand):
def finalize_options(self):
TestCommand.finalize_options(self)
self.test_args = []
self.test_suite = True
def run_tes... | [
"martin@mahner.org"
] | martin@mahner.org |
de0326f435ffc96d79b974c8650e7f1ab6479947 | cdbb5bb7cbf188f8773a3a1425c2043f0af8a423 | /Attributes_and_Methods/gym_04E/project/gym.py | a1be11e84e7dfcd76026101a0fc75df9d371e352 | [
"MIT"
] | permissive | MihailMarkovski/Python-OOP-2020 | 72ac4f150907a6fa2fb93393cfcd2f36656e7256 | f0ac610bb758c2882e452684c8d7f533fcc33fe4 | refs/heads/main | 2023-01-31T18:24:53.184269 | 2020-12-17T09:39:01 | 2020-12-17T09:39:01 | 321,456,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,507 | py | # from Attributes_and_Methods.gym_04E.project.equipment import Equipment
# from Attributes_and_Methods.gym_04E.project.exercise_plan import ExercisePlan
# from Attributes_and_Methods.gym_04E.project.subscription import Subscription
# from Attributes_and_Methods.gym_04E.project.customer import Customer
# from Attributes... | [
"misho5071@gmail.com"
] | misho5071@gmail.com |
4d7318f876ee78f727ddf1f05e561ff13553e914 | 26b66f2d11b28bc5f859021e011d3b5d1e1ed8ee | /old-stuff-for-reference/nightjar-base/nightjar-src/python-src/nightjar/entry/central_configurator/process.py | e72b185f4fca333d13e8607059cce6c75f42dbc8 | [
"MIT"
] | permissive | groboclown/nightjar-mesh | 8f12c8b90a0b4dd5b6f871123e2d3d0c89001db2 | 3655307b4a0ad00a0f18db835b3a0d04cb8e9615 | refs/heads/master | 2022-12-13T13:04:02.096054 | 2020-08-12T23:30:30 | 2020-08-12T23:30:30 | 207,360,091 | 3 | 1 | MIT | 2022-12-13T11:13:30 | 2019-09-09T16:59:02 | Python | UTF-8 | Python | false | false | 1,516 | py |
"""
Process templates.
"""
from typing import Iterable
from ...backend.api.deployment_map import AbcDeploymentMap
from .content_gen import (
generate_content,
)
from .input_data_gen import load_service_color_data, load_namespace_data
from ...backend.api.data_store import (
AbcDataStoreBackend,
CollectorD... | [
"matt@groboclown.net"
] | matt@groboclown.net |
645e37cf5ff4fd8435a05cd045daca41fdaa7ae3 | cd0068a04a706aa902947d5f1233a7f07bec150c | /Python/function_practice/p1.py | d6bf1b18c9618753d720d712b4fdb9a3dd78f7ea | [] | no_license | eLtronicsVilla/Miscellaneous | b0c579347faad12cee64408c2a112b33b38a6201 | e83f44af985faad93336c1307aeae8694905c3e3 | refs/heads/master | 2021-11-28T04:22:08.278055 | 2021-08-14T19:53:29 | 2021-08-14T19:53:29 | 161,993,103 | 0 | 0 | null | 2021-08-14T19:53:29 | 2018-12-16T11:11:10 | C++ | UTF-8 | Python | false | false | 462 | py | #def myfuncs(a,b,c=0,d=0):
# return sum((a,b,c,d))*0.05
#print(myfuncs(1,2,3,4))
#def myfunc(*args):
# return sum(args) * 0.05
#print(myfunc(10,20,30,40))
'''
def myfunc(*args):
for item in args:
print(item)
print(myfunc(20,30,40,50,60))
'''
def myfunc(**kwargs):
print(kwargs)
if 'fruit' in kwargs:
print(... | [
"eltronicsvilla17@gmail.com"
] | eltronicsvilla17@gmail.com |
263693b9ffd66f4793977371b94af2600527b9f6 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2411/60610/283132.py | 096e0adccc969e68233bd1a8ca9eecae10d02711 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | num=int(input())
mid=[]
for i in range(num):
mid.append(list(map(int,input().split(","))));
count=0;
if(mid[0][0]!=mid[1][0]):
k0=(mid[0][1]-mid[1][1])/(mid[0][0]-mid[1][0]);
for i in range(2,len(mid)):
k1=(mid[0][1]-mid[i][1])/(mid[0][0]-mid[i][0]);
if(k0!=k1):
count=1;
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4d10a36856ffec58d86503f620e0a58e88e7c2fe | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-6789.py | 90e343f098ce06b0514dea3ebf740dba02f06941 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,289 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
b4d8cc119dc15ee7f84c18bfe77ddafd53fcd24d | 645050387b6d65986490045696a23b99484bfb07 | /week-15/course_management_system/course_management_system/lectures/urls.py | 073ec02e00ef9c31e4bba1d08f76b5ca8b9c2033 | [] | no_license | ViktorBarzin/HackBulgaria-Python | 73fd36299afd3fcbf5601c4a932780252db90001 | 7bae4528ded8ca3a33bb12c2a67123cc621d8b8f | refs/heads/master | 2020-12-25T15:08:23.345972 | 2017-06-07T01:19:36 | 2017-06-07T01:19:36 | 67,701,776 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from django.conf.urls import url, include
from django.contrib import admin
from course_management_system.lectures import views
urlpatterns = [
url(r'new/$', views.create_lecture),
url(r'edit/(?P<lecture_id>[0-9]+)', views.edit_lecture),
url(r'(?P<lecture_id>[0-9]+)', views.show_lecture)
]
| [
"vbarzin@gmail.com"
] | vbarzin@gmail.com |
958567a0c2066e663ecf210b5eb2888606d39a19 | b6aa9768dbac327943e0220df1c56ce38adc6de1 | /127_word-ladder.py | 9008bcaef54814bc92db08d538d8421e074a2a43 | [] | no_license | Khrystynka/LeetCodeProblems | f86e4c1e46f70f874924de137ec5efb2f2518766 | 917bd000c2a055dfa2633440a61ca4ae2b665fe3 | refs/heads/master | 2021-03-17T00:51:10.102494 | 2020-09-28T06:31:03 | 2020-09-28T06:31:03 | 246,954,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,128 | py | # Problem Title: Word Ladder
from collections import defaultdict, deque
class Solution(object):
def ladderLength(self, beginWord, endWord, wordList):
"""
:type beginWord: str
:type endWord: str
:type wordList: List[str]
:rtype: int
"""
L = len(beginWord)
... | [
"khrystyna@Khrystynas-MacBook-Pro.local"
] | khrystyna@Khrystynas-MacBook-Pro.local |
59483881abc2212735a5b71e41b3c45117bcc327 | c34308d9e283d3689baeade246b69dad13eea0c1 | /cn/wensi/file/osDemo.py | 02f4fc3e0382fce16dfa0eab109f7456893718ad | [] | no_license | michaelChen07/studyPython | d19fe5762cfbccdff17248d7d5574939296d3954 | 11a2d9dd0b730cad464393deaf733b4a0903401f | refs/heads/master | 2021-01-19T00:20:27.347088 | 2017-05-13T08:43:44 | 2017-05-13T08:43:44 | 73,004,133 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | #encoding=utf-8
import os
#获取当前工作目录
print os.getcwd()
#更改当前目录
os.chdir(r"D:\workspace\PycharmProjects\studyPython\cn\wensi\practice")
print os.getcwd()
#当前工作目录下的文件
print os.listdir(os.getcwd())
#指定目录下的文件
print os.listdir(r"D:\test")
#返回当前目录
print os.curdir
#创建指定级数的目录
def create_multiple_dir(dir_path,depth,dir_na... | [
"286522215@qq.com"
] | 286522215@qq.com |
90940afeec0ca4c91817d149ca18e38d03b93486 | 2781ffdb7dd131c43d5777d33ee002643c839c28 | /DataCamp Practice/Supervised Learning With Scikit Learn/03-fine-tuning-your-model/01-metrics-for-classification.py | 0a3ce40f7a5a2daa30330b0f25b204d57c35c593 | [] | no_license | AbuBakkar32/Python-Essential-Practice | b5e820d2e27e557b04848b5ec63dd78ae5b554c4 | 8659cf5652441d32476dfe1a8d90184a9ae92b3b | refs/heads/master | 2022-11-13T23:07:16.829075 | 2020-06-27T18:46:52 | 2020-06-27T18:46:52 | 275,432,093 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,799 | py | '''
Metrics for classification
In Chapter 1, you evaluated the performance of your k-NN classifier based on its accuracy. However, as Andy discussed, accuracy is not always an informative metric. In this exercise, you will dive more deeply into evaluating the performance of binary classifiers by computing a confusion ... | [
"abu35-1994@diu.edu.bd"
] | abu35-1994@diu.edu.bd |
734fb833af5a331b634893629da08f294d27f864 | 3953a4cf5dee0667c08e1fe1250a3067090e3f24 | /mural/config/urls.py | cdebfe9af3dc61e698750dae88078701104bb273 | [] | no_license | DigitalGizmo/msm_mural_project | 41960242c84050ee578da90afabcb7f9bc1923df | 5566a2b6f7445dc53d8aaf96cf7d24236fd5ed96 | refs/heads/master | 2020-03-07T11:04:49.633149 | 2019-02-13T18:10:44 | 2019-02-13T18:10:44 | 127,447,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | """mural URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based v... | [
"donpublic@digitalgizmo.com"
] | donpublic@digitalgizmo.com |
bd186ab2c1021b3099528a8ac1bc3737cae828d1 | 7738e950c103fb23b48d5e004eddcf108ea71fa1 | /Cursoemvideo/Mundo1/exercise022.py | b16615322ed621abdab7671f36f3fe2f08ba44ed | [] | no_license | pedrottoni/Studies-Python | c9bdbaf4b4aaa209bf32aa93d6ee4814a0a39c53 | f195bcb4c6868689ec0cf05c34cd4d5a6c7b3ea1 | refs/heads/master | 2021-09-26T05:23:02.398552 | 2020-02-12T04:48:23 | 2020-02-12T04:48:23 | 203,452,221 | 0 | 0 | null | 2021-09-22T18:21:51 | 2019-08-20T20:48:07 | Python | UTF-8 | Python | false | false | 899 | py | '''
Crie um programa que leia o nome completo de uma pessoa e mostre:
- O nome com todas as letras maiúsculas e minúsculas.
- Quantas letras ao todo(sem considerar espaços).
- Quantas letras tem o primeiro nome.
'''
name = str(input("Digite seu nome completo: "))
name_up = name.upper()
name_low = name.lower()
name_len_... | [
"pedrottoni@outlook.com"
] | pedrottoni@outlook.com |
61669adcae1d0c4f10ad7a70ae68b63f3087dc03 | 060ce17de7b5cdbd5f7064d1fceb4ded17a23649 | /fn_exchange_online/fn_exchange_online/components/exchange_online_move_message_to_folder.py | 61835d74a362f1bd66d5ce67124b3febefa59fb1 | [
"MIT"
] | permissive | ibmresilient/resilient-community-apps | 74bbd770062a22801cef585d4415c29cbb4d34e2 | 6878c78b94eeca407998a41ce8db2cc00f2b6758 | refs/heads/main | 2023-06-26T20:47:15.059297 | 2023-06-23T16:33:58 | 2023-06-23T16:33:58 | 101,410,006 | 81 | 107 | MIT | 2023-03-29T20:40:31 | 2017-08-25T14:07:33 | Python | UTF-8 | Python | false | false | 4,764 | py | # (c) Copyright IBM Corp. 2010, 2021. All Rights Reserved.
# -*- coding: utf-8 -*-
# pragma pylint: disable=unused-argument, no-self-use
"""Function implementation"""
import logging
from resilient_circuits import ResilientComponent, function, handler, StatusMessage, FunctionResult, FunctionError
from resilient_lib imp... | [
"shane.curtin@ie.ibm.com"
] | shane.curtin@ie.ibm.com |
ecb1ca3c00d1db51f7132f218cca24f0f9be33af | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/clouds_20200703185904.py | 374d79f890156c551577f693e911a567575c824b | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 772 | py | def jumpingClouds(c):
i = 0
jumps = 0
lastCloud = len(c)-1
while i < lastCloud:
# if i+1 == lastCloud:
# jumps +=1
# i+=1
# elif c[i+2] == 0:
# jumps +=1
# i = i + 2
# else:
# jumps +=1
# i +=1
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
2f4e1ef39e3ec5bc5cfffda8e34746dd2360f9c5 | 7c3116ca951c1c989fcc6cd673993ce6b1d4be5a | /modules/Eventlog/lv1_os_win_event_logs_registry_handling.py | caa2035832bf5a5e3814ef9a90fbad9d90f81c82 | [
"Apache-2.0"
] | permissive | Kimwonkyung/carpe | c8c619c29350d6edc464dbd9ba85aa3b7f847b8a | 58a8bf7a7fc86a07867890c2ce15c7271bbe8e78 | refs/heads/master | 2022-12-15T13:51:47.678875 | 2020-09-11T05:25:43 | 2020-09-11T05:25:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,234 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import os, sys, re
from datetime import datetime
from utility import database
class Registry_Handling_Information:
par_id = ''
case_id = ''
evd_id = ''
task = ''
time = ''
registry_path = ''
registry_value_name = ''
old_v... | [
"jbc0729@gmail.com"
] | jbc0729@gmail.com |
6ca185cdacbd5790f016b989c1bb9f28545a4402 | bd185738ea6a74d1e76d9fc9d8cbc59f94990842 | /helpline/migrations/0012_hotdesk_user.py | 9440e21db2fcbf2a8064e17c7132565c9c0001c3 | [
"BSD-2-Clause"
] | permissive | aondiaye/myhelpline | c4ad9e812b3a13c6c3c8bc65028a3d3567fd6a98 | d72120ee31b6713cbaec79f299f5ee8bcb7ea429 | refs/heads/master | 2020-12-22T05:32:59.576519 | 2019-10-29T08:52:55 | 2019-10-29T08:52:55 | 236,683,448 | 1 | 0 | NOASSERTION | 2020-01-28T07:50:18 | 2020-01-28T07:50:17 | null | UTF-8 | Python | false | false | 667 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.13 on 2018-08-28 13:12
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_depend... | [
"patrickmithamo@gmail.com"
] | patrickmithamo@gmail.com |
95ab68d99f08e0ae94963ea25c02f5a805fb9b4c | 5b058d332251bcf5fe6eafb8e98c0132ab9a4e36 | /pimr/studentapp/views.py | add5bec511e507ce3b58c30a09de43b00a7c6c6a | [] | no_license | shivaconceptsolution/DJANGO6-7-BATCH-PALAASIA | fcfa708c212966f57445361a0d23eafdcd4fcbcb | 8b1a0707cd2837efa6ccfac2ccc6385084e69770 | refs/heads/master | 2020-06-28T13:02:04.798925 | 2019-08-26T13:44:31 | 2019-08-26T13:44:31 | 200,240,920 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,240 | py | from django.shortcuts import redirect,render
from django.http import HttpResponse
from .models import Student,Reg
def index(request):
return render(request,"studentapp/index.html")
def reg(request):
s = Student(rno=request.GET['txtrno'],sname=request.GET['txtname'],branch=request.GET['txtbranch'],fees=requ... | [
"noreply@github.com"
] | shivaconceptsolution.noreply@github.com |
dbdf6c8369d0743ee83ab81a07ca6a51dbbe400f | b4a1037c86a1ef04f3172746b98a68bfb42e8361 | /fileupload/views.py | 094ad790b7db4c5ec490959f931475b1a7120508 | [] | no_license | Gathiira/authentication-system- | b51abb074d9d6f526857cbed98417ab1e42f53be | 5b0ceebc5bf0b7ca9f3eb00835a3e4f3e16ab31f | refs/heads/main | 2023-06-11T21:30:36.960821 | 2021-06-08T11:14:15 | 2021-06-08T11:14:15 | 367,470,745 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | from rest_framework import generics, permissions, status
from rest_framework.response import Response
from fileupload.models import UploadFile
from fileupload.serializers import FileDetailSerializer
import os
class UploadFileView(generics.CreateAPIView):
queryset = UploadFile.objects.all()
serializer_class ... | [
"mwangyjose@gmail.com"
] | mwangyjose@gmail.com |
9a6833424861ef79177af3855dd81b325de3b4de | 685f4474699d769dae88537c69f5517ac13a8431 | /EL64.py | 0e76bdbf387850b49ca63c3ad464c238a486b1da | [] | no_license | Pumafied/Project-Euler | 7466f48e449b7314598c106398c0be0424ae72d5 | 0c3e80a956893ce1881a9694131d52b156b9d3d8 | refs/heads/master | 2016-09-05T22:45:09.733696 | 2013-04-20T04:46:48 | 2013-04-20T04:46:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,772 | py | # All square roots are periodic when written as continued fractions and can be written in the form:
# N = a0 +
# 1
# a1 +
# 1
# a2 +
# 1
# a3 + ...
# For example, let us consider 23:
# 23 = 4 + 23 — 4 = 4 +
# 1
# = 4 +
# 1
# 1
# 23—4
# 1 +
# 23 – 3
# 7
# If we continue ... | [
"pumafied@gmail.com"
] | pumafied@gmail.com |
e51dfa0c0743c4bb60091b16980b697214e98e70 | 039f2c747a9524daa1e45501ada5fb19bd5dd28f | /AGC033/AGC033b.py | 6f0b0176bcb0b9a0e4cfa3997f1de464dd155b2e | [
"Unlicense"
] | permissive | yuto-moriizumi/AtCoder | 86dbb4f98fea627c68b5391bf0cc25bcce556b88 | 21acb489f1594bbb1cdc64fbf8421d876b5b476d | refs/heads/master | 2023-03-25T08:10:31.738457 | 2021-03-23T08:48:01 | 2021-03-23T08:48:01 | 242,283,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | #AGC033b
def main():
import sys
input=sys.stdin.readline
sys.setrecursionlimit(10**6)
# map(int, input().split())
if __name__ == '__main__':
main() | [
"kurvan1112@gmail.com"
] | kurvan1112@gmail.com |
25dc6353c69fd55923f4ed203e084e1c14265a36 | cbcdf195338307b0c9756549a9bffebf3890a657 | /django-stubs/contrib/contenttypes/fields.pyi | 1b80e2e17b7a9b55545f5f6df39adf35106323a8 | [
"MIT"
] | permissive | mattbasta/django-stubs | bc482edf5c6cdf33b85005c2638484049c52851b | 8978ad471f2cec0aa74256fe491e2e07887f1006 | refs/heads/master | 2020-04-27T08:38:22.694104 | 2019-03-06T09:05:08 | 2019-03-06T09:05:24 | 174,178,933 | 1 | 0 | MIT | 2019-03-06T16:18:01 | 2019-03-06T16:18:00 | null | UTF-8 | Python | false | false | 4,573 | pyi | from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union, Generic
from django.contrib.contenttypes.models import ContentType
from django.core.checks.messages import Error
from django.db.models.base import Model
from django.db.models.fields.related import ForeignObject
from django.db.models.fields.rel... | [
"maxim.kurnikov@gmail.com"
] | maxim.kurnikov@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.