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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f7fe4d6a04dfbfa4abc2c316b83f7cfbcaa30e5e | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/wikipedia/testcase/interestallcases/testcase6_022_1.py | 64a6c615586113f38ef615001e76c1bd64bd8f23 | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,077 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
c27074644766ba4228e511a9a1c884d8ec0e431b | ea262de505a1dd5ae1c7b546b85184309c3fdd35 | /src/models/modules/scales.py | 78234592ac2641e1791aa6240573f86204bde16e | [
"MIT"
] | permissive | Runki2018/CvPytorch | 306ff578c5f8d3d196d0834e5cad5adba7a89676 | 1e1c468e5971c1c2b037334f7911ae0a5087050f | refs/heads/master | 2023-08-25T09:48:48.764117 | 2021-10-15T05:11:21 | 2021-10-15T05:11:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # !/usr/bin/env python
# -- coding: utf-8 --
# @Time : 2021/3/29 9:22
# @Author : liumin
# @File : scales.py
import torch
import torch.nn as nn
class Scale(nn.Module):
"""
A learnable scale parameter
"""
def __init__(self, scale=1.0):
super(Scale, self).__init__()
se... | [
"569793357@qq.com"
] | 569793357@qq.com |
3835bd462d27894a5442d6a412b2dd67de3d593d | 675cdd4d9d2d5b6f8e1383d1e60c9f758322981f | /supervised_learning/0x03-optimization/2-shuffle_data.py | 1fc0ce20d6f011ea71c6f64624e3d65b15d7e653 | [] | no_license | AndresSern/holbertonschool-machine_learning-1 | 5c4a8db28438d818b6b37725ff95681c4757fd9f | 7dafc37d306fcf2ea0f5af5bd97dfd78d388100c | refs/heads/main | 2023-07-11T04:47:01.565852 | 2021-08-03T04:22:38 | 2021-08-03T04:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | #!/usr/bin/env python3
"""
Shuffles the data points in two matrices the same way
"""
import numpy as np
def shuffle_data(X, Y):
"""
Shuffles the data points in two matrices the same way
"""
i = np.random.permutation(np.arange(X.shape[0]))
return X[i], Y[i]
| [
"bouzouitina.hamdi@gmail.com"
] | bouzouitina.hamdi@gmail.com |
f8fccfa10aaf61b927be76184af448a1b5c565f6 | 75fa11b13ddab8fd987428376f5d9c42dff0ba44 | /metadata-ingestion/tests/integration/snowflake/common.py | 43f5e04fbc89fcd2cb4b24d5cc32c9cf6600679d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause",
"MIT"
] | permissive | RyanHolstien/datahub | 163d0ff6b4636919ed223ee63a27cba6db2d0156 | 8cf299aeb43fa95afb22fefbc7728117c727f0b3 | refs/heads/master | 2023-09-04T10:59:12.931758 | 2023-08-21T18:33:10 | 2023-08-21T18:33:10 | 246,685,891 | 0 | 0 | Apache-2.0 | 2021-02-16T23:48:05 | 2020-03-11T21:43:58 | TypeScript | UTF-8 | Python | false | false | 22,993 | py | import json
from datetime import datetime, timezone
from datahub.configuration.time_window_config import BucketDuration
from datahub.ingestion.source.snowflake import snowflake_query
from datahub.ingestion.source.snowflake.snowflake_query import SnowflakeQuery
NUM_TABLES = 10
NUM_VIEWS = 2
NUM_COLS = 10
NUM_OPS = 10
... | [
"noreply@github.com"
] | RyanHolstien.noreply@github.com |
5ce264684ee8cc4bdf3fe7fa5259b05e6e179cd9 | 381b75fe68a4da258e2e60a97105b66ac47214e4 | /qa/rpc-tests/rawtransactions.py | 0ac80a49539a555d1b868ed4d8ea36442667ff7f | [
"MIT"
] | permissive | lipcoin/lipcoin | 3a5997dfc9193ee7dee6f9fa0adc1cb5fb8c92a3 | 7afc0a02d63620e5a5601474cca131cb0cf3bbe4 | refs/heads/master | 2021-01-24T07:57:56.248620 | 2018-03-17T19:04:38 | 2018-03-17T19:04:38 | 112,155,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,666 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2016 The LipCoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""rawtranscation RPCs QA test.
# Tests the following RPCs:
# - createrawtransaction
# - signrawtra... | [
"support@lipcoins.org"
] | support@lipcoins.org |
0b90df7dbd721ecc641998896bff6d7087d4c28c | ac0a583e4765f2b5b97e898f30d6df0fc71ea8f6 | /pyros_msgs/opt_as_nested/__init__.py | 4beab2c01e9a05fe2344eb3a0f0e64941a108eae | [
"MIT"
] | permissive | pyros-dev/pyros-msgs | 5ce9efaa246ffa94396552fd6034c0eeacddeb76 | 28d9d6aa3cfbb42d154360f16eea1900be518f74 | refs/heads/master | 2022-07-06T15:53:16.764600 | 2018-02-17T15:03:36 | 2018-02-17T15:03:36 | 67,676,303 | 1 | 3 | MIT | 2022-06-21T21:19:34 | 2016-09-08T06:45:37 | Python | UTF-8 | Python | false | false | 347 | py | from __future__ import absolute_import
from __future__ import print_function
"""
pyros_msgs.opt_as_nested is a module that declares optional fields as a specific message type.
This is useful if you want to express an optional field in a message without any ambiguity.
"""
from .opt_as_nested import duck_punch
__al... | [
"asmodehn@gmail.com"
] | asmodehn@gmail.com |
d0dade868cb00ef5e103594ae46c0d072fcbd126 | e94d22cdb7c73b8a55262d5a6c2c7b0d75f3b63e | /snussum/analytics/management/commands/createanalytics.py | 6aae31665b387f93092ff96a50482be7c680c3e8 | [] | no_license | dobestan/snussum | 594d1169cc6a0a799c8104135dc028d65a3967d0 | 4f1f092a4c5cebd913a64c5a0d7f12b3e061552f | refs/heads/master | 2021-01-18T18:25:00.237448 | 2015-06-01T06:03:29 | 2015-06-01T06:03:29 | 34,576,643 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | from django.core.management.base import BaseCommand, CommandError
from analytics.models.demographic import Demographic
class Command(BaseCommand):
help = "Create Analytics Data"
def add_arguments(self, parser):
pass
def handle(self, *args, **options):
demograhic = Demographic.objects.cr... | [
"dobestan@gmail.com"
] | dobestan@gmail.com |
d457f176565b80c978bfb00733dec4d02f4861d8 | 256644d14bd15f8e1a3e92c95b1655fd36681399 | /pure_python/ga+ppm/main/utilities.py | a07447f3183438919021284b04c4c34a872f020c | [] | no_license | mfbx9da4/neuron-astrocyte-networks | 9d1c0ff45951e45ce1f8297ec62b69ee4159305a | bcf933491bdb70031f8d9c859fc17e0622e5b126 | refs/heads/master | 2021-01-01T10:13:59.099090 | 2018-06-03T12:32:13 | 2018-06-03T12:32:13 | 12,457,305 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,262 | py | import random
import math
from pylab import zeros, where, array, empty_like
def crossover(m1, m2, NN):
# Maybe could be sped up using flatten/reshape output?
net = NN()
r = random.randint(0, net.wi.size + net.wo.size)
output1 = [empty_like(net.wi), empty_like(net.wo)]
output2 = [empty_like(net.wi... | [
"dalberto.adler@gmail.com"
] | dalberto.adler@gmail.com |
a775e4b0f818ac2bdd927c36c645d58aea22d114 | 389d95ee1f8d4ba992114e36c5fc427d02ba2a6c | /flexmessage_project/settings.py | ef5e0ea9c78442b5078ec03584e4b733d9fc65ac | [
"MIT"
] | permissive | adepeter/sleekmessage | d7a6b4279f6a60659cf8a98897136ca22c1b830a | 64621842cb9b0d707523e87f8bd6549d4e2d8433 | refs/heads/master | 2022-11-16T23:58:18.477628 | 2020-07-15T15:50:16 | 2020-07-15T15:50:16 | 265,276,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,406 | py | """
Django settings for flexmessage_project project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
... | [
"adepeter26@gmail.com"
] | adepeter26@gmail.com |
0e11d74b63a525a47ac0423bcedf37d6db871a31 | 6e47be4e22ab76a8ddd7e18c89f5dc4f18539744 | /venv/openshift/lib/python3.6/site-packages/kubernetes/client/models/v1_security_context.py | 4be4451ac2cdd63dad12dfb4d7fa91b4d3b660a7 | [] | no_license | georgi-mobi/redhat_ocp4.5_training | 21236bb19d04a469c95a8f135188d3d1ae473764 | 2ccaa90e40dbbf8a18f668a5a7b0d5bfaa1db225 | refs/heads/main | 2023-03-30T10:47:08.687074 | 2021-04-01T05:25:49 | 2021-04-01T05:25:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,971 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.12.11
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import r... | [
"student@workstation.lab.example.com"
] | student@workstation.lab.example.com |
c5a506c058d8d1a23c61352ae6ad017163387afd | d2e2f05f8b894e32f43dac8a45819da54888109f | /0x01-python-if_else_loops_functions/9-print_last_digit.py~ | 726544fbcc4abd272721ae61b076e57545212c2f | [] | no_license | wolf-coder/holbertonschool-higher_level_programming | 1b249a63c77156fcb25dda616497dd1abc272e75 | a81ac6c7b7e59210b19f413bd413f999ed599d2c | refs/heads/master | 2023-05-31T20:47:54.785063 | 2021-07-09T14:21:47 | 2021-07-09T14:21:47 | 259,362,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | #!/usr/bin/python3
def print_last_digit(number):
return (5)
| [
"cuore.fakhri@gmail.com"
] | cuore.fakhri@gmail.com | |
f53f414f7ee5fbc8b13847a32418970ec312c561 | 4af454bced0f99e4ed8269d71e97284f0ef13afb | /loginserver/keys/rsa.py | 02c4c9811d4e423b0a531fa48b9e687d9ba12cbd | [] | no_license | L2jBrasil/L2py | c46db78238b4caf272a2399f4e4910fc256b3cca | d1c2e7bddb54d222f9a3d04262c09ad70329a226 | refs/heads/master | 2022-11-19T01:39:02.019777 | 2020-07-24T20:07:15 | 2020-07-24T20:07:15 | 292,115,581 | 1 | 1 | null | 2020-09-01T21:53:54 | 2020-09-01T21:53:54 | null | UTF-8 | Python | false | false | 2,315 | py | from Cryptodome.PublicKey import RSA
from M2Crypto import BIO
from M2Crypto import RSA as M2RSA
from common.helpers.bytearray import ByteArray
class L2RsaKey(RSA.RsaKey):
def scramble_mod(self) -> bytes:
n = ByteArray(self.n_bytes)
# step 1: 0x4d - 0x50 <-> 0x00 - 0x04
for i in range(4)... | [
"yurzs@icloud.com"
] | yurzs@icloud.com |
3ed03f450ecd93b825fa1583fb79154b40c83ff4 | 70d4ef0863906b3ca64f986075cd35b8412b871e | /packages/blueking/component/apis/sops.py | 9446f23f6bd7a4629b842b45ea8ea69b7a4e32f0 | [
"MIT",
"BSD-3-Clause",
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | selinagyan/bk-sops | 72db0ac33d9c307f51769e4baa181ceb8e1b279e | 39e63e66416f688e6a3641ea8e975d414ece6b04 | refs/heads/master | 2020-05-07T16:44:33.312442 | 2019-04-11T02:09:25 | 2019-04-11T02:09:25 | 180,696,241 | 0 | 0 | null | 2019-04-11T02:07:11 | 2019-04-11T02:07:10 | null | UTF-8 | Python | false | false | 2,426 | py | # -*- coding: utf-8 -*-
"""
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
Copyright (C) 2017-2019 THL A29 Limited, a Tencent company. All rights reserved.
Licensed under the MIT License (the "License"); you may not use this file except in co... | [
"pagezhou@tencent.com"
] | pagezhou@tencent.com |
602d5661471469217459de0236ec43a9a1f0e8de | 81344c55ed60bf12818d1a0ec246f3c24c79cb4c | /力扣习题/8字符串转整数/atoi.py | 73fb9e626ac6852e2287bfbded03dddd0161775c | [
"MIT"
] | permissive | lollipopnougat/AlgorithmLearning | 7d5c4a37bd5c814c5caea6963e81fbe0cb44b7b7 | cb13caa0159f0179d3c1bacfb1801d156c7d1344 | refs/heads/master | 2023-05-11T04:47:09.758889 | 2023-05-07T06:55:48 | 2023-05-07T06:55:48 | 194,078,151 | 7 | 2 | MIT | 2023-03-25T01:23:44 | 2019-06-27T10:53:08 | Python | UTF-8 | Python | false | false | 144 | py | class Solution:
def myAtoi(self, str: str) -> int:
return max(min(int(*re.findall('^[\+\-]?\d+', str.lstrip())), 2**31 - 1), -2**31) | [
"ab2defg145@gmail.com"
] | ab2defg145@gmail.com |
889a29dd98a7786a22e8d2fbde68e5a1ce2d4137 | a6ed0c42659f54f88024a9171c353e7cbe51328e | /Python/flask_MySQL/emailval/server.py | 1d9d6e7aa490bb6f47f766d7b83b106c0677f317 | [] | no_license | tomama1/Practice | c4a44a044fe67b3f4eb34dca0a0dd9ea38f4c766 | 8adecd0ee985db06497578a11d067ac16502da7b | refs/heads/master | 2021-09-05T04:32:42.020673 | 2018-01-24T05:51:16 | 2018-01-24T05:51:16 | 104,159,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,746 | py | from flask import Flask, request, redirect, render_template, flash
from mysqlconnection import MySQLConnector
import re
app = Flask(__name__)
app.secret_key = ("CodingDojo")
mysql = MySQLConnector(app,'listserv')
@app.route('/')
def index():
return render_template('index.html')
@app.route('/process', methods=['PO... | [
"matthewtoma123@gmail.com"
] | matthewtoma123@gmail.com |
ea0207d1f4614c56c66b011cec3e7d9ecefe2d10 | 58f6184fbfe4782bccf7803fbb978b5a5f93bb50 | /src/scs_analysis/cmd/cmd_sample_tally.py | a7dff9ca4f518978eee941ce646bb2796fd1ea4b | [
"MIT"
] | permissive | seoss/scs_analysis | d41db35a1c7d97d75776a797df099749dbced824 | c203093fd6728eafe576a1798bd9040ca18c73f8 | refs/heads/master | 2020-04-04T20:14:48.026665 | 2018-11-05T12:51:23 | 2018-11-05T12:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | """
Created on 22 Aug 2017
@author: Bruno Beloff (bruno.beloff@southcoastscience.com)
"""
import optparse
# --------------------------------------------------------------------------------------------------------------------
class CmdSampleTally(object):
"""unix command line handler"""
def __init__(self):... | [
"bruno.beloff@southcoastscience.com"
] | bruno.beloff@southcoastscience.com |
d470117b87c20044939b34206f9e9d67c89cc690 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=2.0_rd=0.5_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=76/params.py | 29fdaca73a9d96a41ddea9479708049d1a27dfc2 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | {'cpus': 4,
'duration': 30,
'final_util': '2.010214',
'max_util': '2.0',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.5',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 76,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
629585562843f773778c17fec9276488963e4e18 | 515e7d6e5756e3922df0b874b241c8b0744b4570 | /packs/python_packs.py | 1d34ff441b4097d542aca3c6d08a9dd2b0ef7e4d | [] | no_license | mjgpy3/udm_script | d77f4904df62e33c72f690cdf4049a1118be105b | d04802d21797fa6ed03cfc35c955bcc6d028f1c2 | refs/heads/master | 2021-01-23T11:40:25.415072 | 2013-07-30T16:53:31 | 2013-07-30T16:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | #!/usr/bin/env python
# Created by Michael Gilliland
# Date: Fri Jan 25 16:47:44 EST 2013
#
#
from package_container import PackageContainer
packages = {'Pygame': 'python-pygame',
'Sympy': 'python-sympy',
'Numpy': 'python-numpy',
'Scipy': 'python-scipy',
'Virtualenv... | [
"mjg.py3@gmail.com"
] | mjg.py3@gmail.com |
e36f86f692711d3516598a57f325dc3781d9a3e0 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/task/deployctx.py | 5ec363019c9a320d6f2cdd11ef473a166e344841 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,835 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
306169c51708eb9ebd6f3a4715d52aaf5b2f46c0 | 09c87fe780df6d1f9eb33799ed516a0bbd7ab1e3 | /Research/async play/wxasync1.py | 938fa1c468981bdc521f7644434f52312729c2b3 | [] | no_license | abulka/pynsource | 8ad412b85dc1acaeb83d7d34af8cc033c6baba91 | 979436525c57fdaeaa832e960985e0406e123587 | refs/heads/master | 2023-04-13T12:58:02.911318 | 2023-04-11T09:56:32 | 2023-04-11T09:56:32 | 32,249,425 | 271 | 46 | null | 2022-10-10T04:36:57 | 2015-03-15T07:21:43 | Python | UTF-8 | Python | false | false | 1,429 | py | import wx
from wxasync import AsyncBind, WxAsyncApp, StartCoroutine
import asyncio
from asyncio.events import get_event_loop
import time
class TestFrame(wx.Frame):
def __init__(self, parent=None):
super(TestFrame, self).__init__(parent)
vbox = wx.BoxSizer(wx.VERTICAL)
button1 = wx.Button(s... | [
"abulka@gmail.com"
] | abulka@gmail.com |
24f2de63f6fe12b2e69518221df7bc7cef282fb6 | 078e35f6b03e4e7a9616f2335a740109d8292176 | /examples/adwords/v201609/advanced_operations/add_ad_customizer.py | f3c8da4ffc6854a0fdba2a28bd13a0f160fd0adb | [
"Apache-2.0"
] | permissive | parander/googleads-python-lib | 5f5b09e8adf7d733bddca314f6aa624b60c5abde | bc1bdff2d58fdc7cf4f09b879c68757c5b9b3abc | refs/heads/master | 2021-01-12T16:36:44.861582 | 2017-02-27T04:27:18 | 2017-02-27T04:27:18 | 71,418,777 | 0 | 0 | null | 2016-10-20T02:38:33 | 2016-10-20T02:38:32 | null | UTF-8 | Python | false | false | 7,140 | py | #!/usr/bin/python
#
# Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required b... | [
"msaniscalchi@users.noreply.github.com"
] | msaniscalchi@users.noreply.github.com |
f160905d816728acf5ab28b38fe37cd56249ef23 | a95aebf977058d32fa4298e35939fb5813f11276 | /nn/layers.py | f339ba6e01b645a013632b3b8d3cd2e47a1ae2a2 | [
"MIT"
] | permissive | CV-IP/uqvi | f6e595c60ab86eb00c3b221d24f7300a4f872839 | 2534c26c41a4745e98d4b12d66270691002d1a5f | refs/heads/master | 2022-12-22T20:47:44.140964 | 2020-10-03T17:40:17 | 2020-10-03T17:40:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,452 | py | import os
import math
import numpy as np
import pandas as pd
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.modules.utils import _pair, _triple
from nn.bayes_conv import BayesConv3d, BayesConv2d
class ConvBlock(nn.Module):
def __init__(self, in_channels, out_channels, kernel, s... | [
"noreply@github.com"
] | CV-IP.noreply@github.com |
daffcd2c71e1aa642d272207dca6fb0e42a37757 | d94b6845aeeb412aac6850b70e22628bc84d1d6d | /smith/bert/tokenization.py | dc88d1b4e3bbfaae01a5a7e0f295c7f14bd70f27 | [
"CC-BY-4.0",
"Apache-2.0"
] | permissive | ishine/google-research | 541aea114a68ced68736340e037fc0f8257d1ea2 | c1ae273841592fce4c993bf35cdd0a6424e73da4 | refs/heads/master | 2023-06-08T23:02:25.502203 | 2023-05-31T01:00:56 | 2023-05-31T01:06:45 | 242,478,569 | 0 | 0 | Apache-2.0 | 2020-06-23T01:55:11 | 2020-02-23T07:59:42 | Jupyter Notebook | UTF-8 | Python | false | false | 13,084 | py | # coding=utf-8
# Copyright 2023 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 |
c441260c06dae91d6641ae9d9d73cf55928c8d6e | 3f0a446f493951693af0e6f44fa8076b7522a2fb | /ga_v3.py | a55948cf4f0a5f235cdd9c4537673fda6923a895 | [] | no_license | by-student-2017/eam_database_fit | f74fb2c8504f709e677b1a2c4c9e34c688a3930c | a74006c402bd46550b67dc27a9284c7dd1d262e2 | refs/heads/master | 2023-03-24T07:12:44.277706 | 2021-03-02T03:49:50 | 2021-03-02T03:49:50 | 281,506,054 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,809 | py | import random
from deap import creator, base, tools, algorithms
import numpy
import numpy as np
import commands
import sys
#----------------------------------------------------------------------
file_tmp = 'EAM_code.tmp'
file_inp = 'EAM_code'
lammps_adress = "lmp"
cif2cell_adress = "cif2cell"
commands.ge... | [
"studentsctest@gmail.com"
] | studentsctest@gmail.com |
a98861179cec2687753f1bbd895f2aea1f551798 | 1aefa304f794c1ed9e06ce71248206098c756cf3 | /Django_Assignments/userauth_assignment/userauth_assignment/urls.py | 2ff85cdcbde74c5815e5277909f196ebe52546f4 | [] | no_license | dilipksahu/django_class | 333233bbced5491d886687b5990c8836dac2f145 | a044c4a079c61a6a6de05674103e8a9ba2b4d28c | refs/heads/master | 2023-01-10T07:40:44.713361 | 2020-11-10T15:26:33 | 2020-11-10T15:26:33 | 282,398,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 808 | py | """userauth_assignment URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')... | [
"sahud048@gmail.com"
] | sahud048@gmail.com |
a0e0bfbddd2d9003785d592b78d9b8475e63b70c | 097eae4e0190da97570ae7db748fca306f977fbd | /py/learn/test/class/example.py | f8642e40064bba601cac875200d08370551f363f | [] | no_license | jiaolj/other | 42257c593495d97ab98b9a9af00d3791ccce7a57 | 78d0366cbd599f4dde7bf6e44ca4cfc373132418 | refs/heads/master | 2021-05-24T04:14:03.829126 | 2016-08-28T07:40:49 | 2016-08-28T07:40:49 | 64,064,262 | 0 | 1 | null | 2020-07-23T17:05:36 | 2016-07-24T12:25:56 | JavaScript | UTF-8 | Python | false | false | 358 | py | # -*- coding: utf-8 -*-
class b(object):
def __init__(self):
self.t=2
def getb(self):
self.t+=1
class a(b):
#----如果不声明init函数,会继承基类init属性。声明init是为了加一些自定义属性
def __init__(self):
b.__init__(self)
def get(self):
print 1
temp=a()
temp.getb()
print temp.t | [
"841232468@qq.com"
] | 841232468@qq.com |
54bbd219f19c1ed9466ccdbb26db23e887394dba | 6cb11cb804f316d16efa083effb3def1c2cab57c | /22.py | c55af12e976c5a84557d4af19a98af4e455b732f | [] | no_license | davemolk/python_practice | 8879cd5bdcb77c3d84ff5c7f961fda1cd48b2f93 | 91d3e411b32f3a4a29d60148b352b91ce8e1d11b | refs/heads/main | 2023-08-01T12:57:45.779824 | 2021-09-18T16:54:11 | 2021-09-18T16:54:11 | 400,767,618 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | '''
return True if array has two consecutive 2s, otherwise return false
'''
import re
def has22(nums):
pattern = r"[2]{2}"
regex = re.compile(pattern)
match = regex.findall(("".join(str(el) for el in nums)))
return True if match else False
print(has22([1, 2, 2])) | [
"davemolk@gmail.com"
] | davemolk@gmail.com |
f3d109ee8baa41ca18eaa3f3d511d490209b0c12 | 0619b1ba176456c4b62d78d6a72fc4d9a9084287 | /thesite/communication_app/forms.py | 4eabf764b1d1037b42e5497319e87205eb1f6f36 | [
"Apache-2.0"
] | permissive | jacinda/petwitter | c13dd43a5b76786f5d5c5c3f29420153cb5a16c7 | ea7ffa16b8d8b1207f04ace619b31dba4efc45bc | refs/heads/master | 2021-01-13T06:38:31.439749 | 2015-04-15T17:25:03 | 2015-04-15T17:25:03 | 33,678,730 | 0 | 0 | null | 2015-04-09T16:02:42 | 2015-04-09T16:02:40 | Python | UTF-8 | Python | false | false | 699 | py | from django import forms
import communication_app.models
class PetForm(forms.ModelForm):
class Meta:
model = communication_app.models.Pet
fields = ['name']
def __init__(self, *args, **kwargs):
super(PetForm, self).__init__(*args, **kwargs)
self.fields['name'].widget = forms.Te... | [
"asheesh@asheesh.org"
] | asheesh@asheesh.org |
55bf5b769ce8bafe053fe39564ed13cc2e3360c2 | 974c5a4f101d0e6f4dfa5fc2f7c641c9d2bd8184 | /sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2022_10_01_preview/operations/_component_containers_operations.py | 53f9c4e0361d8779eb7f2a89e6c4f5d84f60bf39 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | gaoyp830/azure-sdk-for-python | 4816f04c554dcffb7510a6b7044b0c86a2dd32e1 | 1c66defa502b754abcc9e5afa444ca03c609342f | refs/heads/master | 2022-10-20T21:33:44.281041 | 2022-09-29T17:03:13 | 2022-09-29T17:03:13 | 250,355,505 | 0 | 0 | MIT | 2020-03-26T19:42:13 | 2020-03-26T19:42:12 | null | UTF-8 | Python | false | false | 22,292 | 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"
] | gaoyp830.noreply@github.com |
7e1029ad59d5a3c4e3e7636aa5802f22953086cd | e15d63ccde04e7458bff5af1bdad63a5c699b489 | /example/Transformer_vision/2dpose/vit/multi_branch/config.py | 5582a68fa5d82c8142ce319cab34a1901077d3e7 | [
"WTFPL"
] | permissive | ddddwee1/TorchSUL | 775b6a2b1e4ab7aac25a3f0411de83affc257af5 | 6c7cd41b14fc8b746983e8b981d1ba4d08370ca2 | refs/heads/master | 2023-08-21T15:21:24.131718 | 2023-08-18T09:37:56 | 2023-08-18T09:37:56 | 227,628,298 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | import numpy as np
# size
inp_size = 224
out_size = 56
base_sigma = 2.5
num_pts = 17
pairs = [[0,1], [1,2],[2,3], [0,4], [4,5],[5,6], [0,7],[7,8],[8,9],[9,10], [8,11],[11,12],[12,13],[8,14],[14,15],[15,16]]
# augmentation
rotation = 0
min_scale = 1 # this controls largest size
max_scale = 1 # this controls smalle... | [
"cy960823@outlook.com"
] | cy960823@outlook.com |
10b0d6c77a5a22b76ba2d6593ccd3657539ce9fd | 4a36b5979b0753b32cff3956fd97fb8ed8b11e84 | /1.0/_downloads/469209d8040c0923f6b4f925074d58d7/evoked_topomap.py | f677e3d7f02abfe8f6f3546a99379b408253479f | [] | permissive | mne-tools/mne-tools.github.io | 8aac7ae10bf2faeeb875b9a351a5530dc0e53154 | 495e878adc1ef3374e3db88604504d7542b01194 | refs/heads/main | 2023-09-03T07:06:00.660557 | 2023-09-03T04:10:18 | 2023-09-03T04:10:18 | 35,639,371 | 12 | 16 | BSD-3-Clause | 2023-05-05T19:04:32 | 2015-05-14T22:04:23 | HTML | UTF-8 | Python | false | false | 5,921 | py | # -*- coding: utf-8 -*-
"""
.. _ex-evoked-topomap:
========================================
Plotting topographic maps of evoked data
========================================
Load evoked data and plot topomaps for selected time points using multiple
additional options.
"""
# Authors: Christian Brodbeck <christianbrodb... | [
"dan@mccloy.info"
] | dan@mccloy.info |
c157b99f15cf4b7b2d4bd05ea5b0e5f89507cf3a | 07bb913fea5e0f1e65e35a7ca5c594fa1d144eb8 | /publishconf.py | ab389e79f3df4349f62293bf934b3def399eb94a | [] | no_license | jbzdak/pwzn-lessons | 8373552fabb260593cf612a27bf821d7b70b452d | 5ca58dba6220259b170c8a689a10338122c4eefd | refs/heads/master | 2021-04-05T20:48:56.447870 | 2020-03-19T20:36:08 | 2020-03-19T20:36:08 | 248,600,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals
# This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
#ITEURL = 'http://pwzn.s3-website-us-east-1.amazonaws.co... | [
"jbzdak@gmail.com"
] | jbzdak@gmail.com |
86a3a8b7517688b3d439381f7baf7469c0eb82a9 | 9f2a231557a9aabc181ed388faaf2f0b3b59c530 | /Testcode/spellCheck.py | 5be1f5b0fa649c1d809ee849a078538109829c13 | [] | no_license | abhashjain/DIC_Project | 7e379cd5ef99d1fc31d414985e1b04388b475fe0 | 329f8da2f61e95410292a3062c68ed06845ec6ac | refs/heads/master | 2020-04-25T14:49:58.508999 | 2018-12-11T04:36:09 | 2018-12-11T04:36:09 | 172,855,829 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | import os, time, re
os.getcwd()
startTime = time.time()
wordFile = open("..\\src\\words.txt","r")
words = wordFile.read()
print("Words in dictionary:",len(words))
inputDoc = open("..\\src\\guten.txt", "r", encoding="utf-8")
doc = inputDoc.read().split()
print("Words in file:",len(doc))
## Processing ... | [
"nobody@ncsu.edu"
] | nobody@ncsu.edu |
2f1462be3f29b5ddc93d058062150d802f915cac | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinciDev_v38r1p1/InstallArea/x86_64-slc6-gcc49-opt/python/StrippingArchive/Stripping23/StrippingQEE/StrippingH24Mu.py | f8c83a16c95755164e65577006aff13f275fff10 | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,741 | py | '''
Module for construction of h-->MuMuMuMu stripping selection
Exported symbols (use python help!):
- H24MuLineConf
Based on Bsmumu stripping lines
'''
__author__ = ['Xabier Cid Vidal']
__date__ = '11/22/2013'
__all__ = ('H24MuLineConf',
'default_name',
'default_config'
)
from ... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
44d7b163937a1cc756b6f3918b58cb04e955dc93 | 04aacfdb9944e6d796671198835394e07db98ecf | /pythonz/commands/locate.py | 939aedb0faee04842dfa3a3a10a968e88396ce8c | [] | no_license | rmoorman/pythonz | ea86f302c70b67440c2829d4a0a9161d4a006ccc | 3d43172cae190284cf0b620aa28c0f794f770497 | refs/heads/master | 2021-01-12T19:51:39.057258 | 2014-10-16T07:20:06 | 2014-10-16T07:20:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,006 | py |
import os
from pythonz.commands import Command
from pythonz.define import PATH_PYTHONS
from pythonz.util import Package, is_installed
from pythonz.log import logger
class LocateCommand(Command):
name = "locate"
usage = "%prog [options] VERSION"
summary = "Locate the given version of python"
def __i... | [
"saghul@gmail.com"
] | saghul@gmail.com |
82af4577975f944ba39e44d7f9a294e05163755e | eb9c3dac0dca0ecd184df14b1fda62e61cc8c7d7 | /google/cloud/dialogflow/cx/v3beta1/dialogflow-cx-v3beta1-py/google/cloud/dialogflowcx_v3beta1/types/intent.py | ab7d83589724b82269ef2d692eaaf2e0c46698b6 | [
"Apache-2.0"
] | permissive | Tryweirder/googleapis-gen | 2e5daf46574c3af3d448f1177eaebe809100c346 | 45d8e9377379f9d1d4e166e80415a8c1737f284d | refs/heads/master | 2023-04-05T06:30:04.726589 | 2021-04-13T23:35:20 | 2021-04-13T23:35:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,442 | py | # -*- coding: utf-8 -*-
# Copyright 2020 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 o... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
d7e6fb902bb4d82e45d61c4cff79935749eb6882 | 60f75884ced267a5f0f09a0b43f68e7d8c5c7a14 | /tester/test_handlers/test_page_handler.py | 25b3ed3218c1b9b75b71fae6e6b25697c3bb7901 | [
"MIT"
] | permissive | liusheng6982/TorCMS | b0fa1fe96a814c10dc7163b127672e1076d19e02 | cb5ee651ece0cff28eae1dcde9013edf28387073 | refs/heads/master | 2021-01-19T04:31:54.221405 | 2017-04-04T11:41:50 | 2017-04-04T11:41:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 284 | py | # -*- coding:utf-8 -*-
from torcms.handlers.page_handler import PageHandler
from torcms.handlers.page_ajax_handler import PageAjaxHandler
def Test():
urls = [
("/label/(.*)", PageAjaxHandler, dict()),
("/label/(.*)", PageHandler, dict()),
]
assert urls
| [
"bukun@osgeo.cn"
] | bukun@osgeo.cn |
9adcc12b7ba970cf3f19bbad83bbd0ecb835aa85 | f15c8b3a6b093c3b70a900221f485d74a1bc1f95 | /0_joan_stark/golf.py | 2f646ee459477d0f80708844a426c3b1cdd2b1bf | [
"MIT"
] | permissive | wang0618/ascii-art | 2955023e47b988f491b9d46bc8a300ba4a6cdd60 | 7ce6f152541716034bf0a22d341a898b17e2865f | refs/heads/master | 2023-07-17T23:17:31.187906 | 2021-09-04T12:46:31 | 2021-09-04T12:46:31 | 400,987,004 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,978 | py | # Hole in One!
# https://web.archive.org/web/20000307135811/http://geocities.com/SoHo/Gallery/6446/golfanim.htm
duration = 200
name = "Golf"
frames = [
" \n" +
" |>18>>\n" +
" |\n" +
" O ... | [
"wang0.618@qq.com"
] | wang0.618@qq.com |
efe1227c94da541154a41caa2ddbf5eddd02211b | 6371acdb640e62e4e6addac2ba1aa70002a8c1b1 | /Algorithms/pySINDy/pySINDy/sindybase.py | b8faf881ff1a71bfc9d1b60c2251129f08263c46 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | M-Vause/SEED | 263307152ebac1e4f49cd81dcd5207ecbdf51139 | cda94a02a5ef47a1e9a885d330eef2821301ebed | refs/heads/master | 2022-12-13T20:11:58.893994 | 2020-04-27T16:10:09 | 2020-04-27T16:10:09 | 252,790,026 | 3 | 3 | MIT | 2022-12-08T01:52:05 | 2020-04-03T16:55:10 | Jupyter Notebook | UTF-8 | Python | false | false | 18,773 | py | """
Base Module for SINDy: 'fit' method must be implemented in inherited classes
"""
import numpy as np
import matplotlib.pyplot as plt
class SINDyBase(object):
"""
Sparse Identification of Nonlinear Dynamics base class
"""
def __init__(self, name='SINDy model'):
self.name = name
self... | [
"58262117+M-Vause@users.noreply.github.com"
] | 58262117+M-Vause@users.noreply.github.com |
845e06146026e7a00fd10824220dd35e50e2ccab | 127d8c209b00978f4f660534363e95eca3f514f2 | /backend/home/migrations/0002_load_initial_data.py | 110b21901b630cf3f96ad807523e091bfc8ac157 | [] | no_license | crowdbotics-apps/sitespace-19938 | afd070e64d32ab455f9b2b05e376152e9e28e5ad | 416b5cef0bdb25018ec3b634bf3096e61fe8b662 | refs/heads/master | 2022-12-10T15:52:58.601025 | 2020-09-02T15:20:15 | 2020-09-02T15:20:15 | 292,319,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Sitespace"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
348fc47cef3dc9dc96c748af7cf91394fd8222e7 | 2d7c21a793c8080a090ce8c9f05df38f6477c7c7 | /tests/data_templates/test_field_definitions.py | c4f05eb9f57000460d8661f4d47b2a554f7826ea | [
"Apache-2.0"
] | permissive | kids-first/kf-api-study-creator | c40e0a8a514fd52a857e9a588635ef76d16d5bc7 | ba62b369e6464259ea92dbb9ba49876513f37fba | refs/heads/master | 2023-08-17T01:09:38.789364 | 2023-08-15T14:06:29 | 2023-08-15T14:06:29 | 149,347,812 | 3 | 0 | Apache-2.0 | 2023-09-08T15:33:40 | 2018-09-18T20:25:38 | Python | UTF-8 | Python | false | false | 5,204 | py | import os
import json
import pytest
import pandas
from marshmallow import ValidationError
from pprint import pprint
from creator.data_templates.models import TemplateVersion
from creator.data_templates.field_definitions_schema import (
coerce_number,
coerce_bool,
FieldDefinitionSchema,
FieldDefinition... | [
"dukedesi22@gmail.com"
] | dukedesi22@gmail.com |
19caab41b1e7e5822d71d8e70217b1ac6dda3b67 | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/Sudoku_II_005_20180620141234.py | 396d0dea7f396d2fdc9165bfceb7cd75b20f3c37 | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,622 | py | from random import randint
sudoku1 = [
[5, 9, 8, 6, 1, 2, 3, 4, 7],
[2, 1, 7, 9, 3, 4, 8, 6, 5],
[6, 4, 3, 5, 8, 7, 1, 2, 9],
[1, 6, 5, 4, 9, 8, 2, 7, 3],
[3, 2, 9, 7, 6, 5, 4, 1, 8],
[7, 8, 4, 3, 2, 1, 5, 9, 6],
[8, 3, 1, 2, 7, 6, 9, 5, 4],
[4, 7, 2, 8, 5, 9, 6, 3, 1],
[9, 5, 6, 1,... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
ba508a2958f5325258855671103405bc641ebe97 | a5e591dc09e11e88af56fb5a881fae064fb9c495 | /recruitment/recruitment/doctype/interview/interview.py | 0449ed7ff48f9261f3c429e7522f6aad25c3b49d | [
"MIT"
] | permissive | barathprathosh/recruitment | 6b61dd1ee9c0b9d7851b0b3e5bab307f7ee2d1b5 | 9660944856e72288e47960e6802ec97a220a656d | refs/heads/master | 2020-04-29T03:03:51.722972 | 2019-03-15T08:58:32 | 2019-03-15T08:58:32 | 175,794,797 | 0 | 0 | NOASSERTION | 2019-03-15T10:00:32 | 2019-03-15T10:00:31 | null | UTF-8 | Python | false | false | 250 | py | # -*- coding: utf-8 -*-
# Copyright (c) 2015, VHRS and contributors
# For license information, please see license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
class Interview(Document):
pass
| [
"abdulla.pi@voltechgroup.com"
] | abdulla.pi@voltechgroup.com |
cac8cca8bbafc756a771cbbd21f316a640e98cd7 | 6b4a48fb6142789326654c48d32acda3eb5e7b08 | /formationproject/wsgi.py | a9ea3c0a982ffb7af95cba5e2211d90796a89dd1 | [] | no_license | mwesterhof/formationproject | 0d9795c218b5010bfbb716216d3d8f4fa5bd4799 | 1b4a057b996829609e308c78721aca840ec58ee7 | refs/heads/master | 2023-08-19T00:08:58.282341 | 2021-10-08T16:19:18 | 2021-10-08T16:19:18 | 401,425,998 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for formationproject 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJA... | [
"m.westerhof@lukkien.com"
] | m.westerhof@lukkien.com |
433dc5780c6bf966236e507e8947e87df83870a2 | 43e900f11e2b230cdc0b2e48007d40294fefd87a | /Amazon/VideoOnsite/926.flip-string-to-monotone-increasing.py | d4efde64ddbe2e4540f93d5acfa3516e947730ab | [] | no_license | DarkAlexWang/leetcode | 02f2ed993688c34d3ce8f95d81b3e36a53ca002f | 89142297559af20cf990a8e40975811b4be36955 | refs/heads/master | 2023-01-07T13:01:19.598427 | 2022-12-28T19:00:19 | 2022-12-28T19:00:19 | 232,729,581 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | #
# @lc app=leetcode id=926 lang=python3
#
# [926] Flip String to Monotone Increasing
#
# @lc code=start
class Solution:
def minFlipsMonoIncr(self, s: str) -> int:
n = len(s)
cnt0 = s.count('0')
cnt1 = 0
res = n - cnt0
for i in range(n):
if s[i] == '0':
... | [
"wangzhihuan0815@gmail.com"
] | wangzhihuan0815@gmail.com |
89b1685f529264b86004c272eb59419b27a1315b | 4a42fefd8945c73402ddf36f8943e011cd9c4151 | /projects/myhellowebapp/hellowebapp/wsgi.py | 2b6fe00b6b8875c39ed849cf147b0eb94f51d25b | [] | no_license | momentum-cohort-2018-10/hello-web-app-SowmyaAji | c2c1374b460232822ff91fc1d034f1d89a400332 | 2cfe7fd6d22db4f9b9ac0d8fdc611787cb1372c5 | refs/heads/master | 2020-04-06T11:53:35.991478 | 2018-11-18T20:48:49 | 2018-11-18T20:48:49 | 157,434,877 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for hellowebapp 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.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"sowmya.aji@gmail.com"
] | sowmya.aji@gmail.com |
c718408ccc29e4bca88b5deef7e84bb586acddfc | ea0c0b8d67a42086f840149b3dbe1c0e4f58e56f | /members_area/forms.py | 06d19b868f16f535ae4172f3cc5f191a2c75b8b0 | [
"MIT"
] | permissive | AzeezBello/raodoh | 78b27e0886f8882144a4def160d9c3f53bcc6af9 | 296bd44069bd750557bf49995374601f5052d695 | refs/heads/master | 2022-05-03T05:07:21.632642 | 2020-02-26T10:16:08 | 2020-02-26T10:16:08 | 235,878,080 | 0 | 0 | MIT | 2022-04-22T23:01:27 | 2020-01-23T20:15:39 | JavaScript | UTF-8 | Python | false | false | 194 | py | from django.forms import ModelForm
from .models import Lesson
class LessonForm(ModelForm):
class Meta:
model = Lesson
fields = ('title', 'course', 'body', 'url', 'video')
| [
"azeez@scholarx.co"
] | azeez@scholarx.co |
91ea1c1fcfcc6577bf717c2abd059bc968643776 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/pyglet/libs/darwin/cocoapy/runtime.py | b692ce130d04d7d7af0a3e1daa11e437a71c142c | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 51,751 | py | # objective-ctypes
#
# Copyright (c) 2011, Phillip Nguyen
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above copyright
# notice, this list o... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
e78a07d5a9ac0d6375bab50be733a669fac273ff | e5b6d2e79d6593587fa8f5854def9ebf4d47a9e1 | /djangocli/wsgi.py | 8e9c0ba06187289fb8d23d2abffc8b6bcf5721d6 | [] | no_license | redeyed-archive/DjangoSiteCheckerExample | 35756664f0b9667e151d4608c6ebd5d279523534 | e53b2fad15d2a768e75bc853c69113c0d54c2ed2 | refs/heads/master | 2023-03-17T06:22:46.129989 | 2019-02-17T05:48:43 | 2019-02-17T05:48:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for djangocli 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
16d37fe91e6e6174ecc5ebf06d10063687980ee8 | 97e54e4b18c1d696926678f1e320b2fc9cef5436 | /jaraco/text/strip-prefix.py | 761717a9b9e1f837eeacf0e888822f6fad881361 | [
"MIT"
] | permissive | jaraco/jaraco.text | 8ff2d7d49b3af0ca5e98c1cb337562bde9d3ba72 | 460dc329b799b88adb32ea95435d3a9e03cbdc00 | refs/heads/main | 2023-09-04T06:57:23.624303 | 2023-07-30T01:01:42 | 2023-07-30T01:01:42 | 48,551,451 | 15 | 8 | MIT | 2023-07-30T14:52:20 | 2015-12-24T17:20:06 | Python | UTF-8 | Python | false | false | 412 | py | import sys
import autocommand
from jaraco.text import Stripper
def strip_prefix():
r"""
Strip any common prefix from stdin.
>>> import io, pytest
>>> getfixture('monkeypatch').setattr('sys.stdin', io.StringIO('abcdef\nabc123'))
>>> strip_prefix()
def
123
"""
sys.stdout.writeline... | [
"jaraco@jaraco.com"
] | jaraco@jaraco.com |
2bc4f1ab2384a7e76f74641976a53715c495cc2a | b0c528e2650dec1ff011215537fc5ea536627966 | /main/urls.py | 58a80f586c83f786718a9f83bb105e9b11210f7e | [] | no_license | trinhgliedt/Python_Great_number_game | 9cb84a1bd95333df15140cc2e1c466d0911b7b19 | 8358c84012981b8dfaafb9017fc9a92450a98e7b | refs/heads/master | 2023-02-08T21:14:23.124896 | 2021-01-01T06:18:02 | 2021-01-01T06:18:02 | 325,926,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index),
path('result/', views.process_form),
] | [
"chuot2008@gmail.com"
] | chuot2008@gmail.com |
dc72573a696b1184ae2cf899bda0ecd956d49f9d | 0931b32140ba932b3ba02f5109a087c6c70a244d | /frappe/desk/desk_page.py | fc7281e06c18d9766c2efcb8f939fa6938c5c494 | [
"MIT"
] | permissive | cstkyrilos/frappe | b60ed4e95ce929c74c2fc46000080d10b343190e | 27d9306bc5924c11c2749503454cc6d11a8cc654 | refs/heads/main | 2023-03-23T10:35:42.732385 | 2021-03-22T21:55:58 | 2021-03-22T21:55:58 | 350,292,784 | 0 | 0 | MIT | 2021-03-22T10:01:08 | 2021-03-22T10:01:07 | null | UTF-8 | Python | false | false | 1,569 | py | # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
# MIT License. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.translate import send_translations
@frappe.whitelist()
def get(name):
"""
Return the :term:`doclist` of the `Page` specified by `name`
"""
page =... | [
"cst.kyrilos@gmail.com"
] | cst.kyrilos@gmail.com |
c9a91552c1b8f4b8a2ff609676b81cd11cf08ead | 48df99f4358be7a51becd3d685e1ec825d295ba4 | /dentalstate/models.py | 36c642462ac4cabb367d2fe592fdd0be94d557a6 | [
"Apache-2.0"
] | permissive | kuyesu/tscharts | 21d2aedeea4aad3b126defaa1703f60f44f14de6 | 9ed4e4bb0a6d296e1156afca5b55d0f71dfb894b | refs/heads/master | 2023-06-03T04:50:15.282855 | 2021-06-12T19:50:51 | 2021-06-12T19:50:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,258 | py | #(C) Copyright Syd Logan 2020
#(C) Copyright Thousand Smiles Foundation 2020
#
#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 a... | [
"slogan621@gmail.com"
] | slogan621@gmail.com |
a650fcc83f32dd0898f953ec683b1b54eb77b733 | 233f97c6f360d478bf975016dd9e9c2be4a64adb | /guvi3.py | 6dd143242eb16cf5b6ec3091f1ddba172fd1f82f | [] | no_license | unknownboyy/GUVI | 3dbd1bb2bc6b3db52f5f79491accd6c56a2dec45 | d757dd473c4f5eef526a516cf64a1757eb235869 | refs/heads/master | 2020-03-27T00:07:12.449280 | 2019-03-19T12:57:03 | 2019-03-19T12:57:03 | 145,595,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | def check(n):
count = 0
for i in str(n):
count+=int(i)
if str(count)[0]=='1':
return count
else:
return False
n = int(input())
l = [8]
c = 0
diff = 2
curr = 800
while curr+diff<=n:
curr+=diff
w = check(curr)
if w!=False:
l.append(w)
diff+=2
c+=1
print(... | [
"ankitagrawal11b@gmail.com"
] | ankitagrawal11b@gmail.com |
24ebdd333e00edb3f74ccd4677e9ab43d5c096e3 | c03d7a4e03c581d4be98b6363003cddb9c213ec0 | /pets/migrations/0007_auto_20180910_0016.py | 6228879999e3df790cc687d09ad854b059402325 | [] | no_license | hernandavidc/plataforma | b333e4f06290713072d8dc609c27d4ce8af1d9df | 4316e2a59db76e74f1e6106958631ad4a7a653c7 | refs/heads/master | 2020-04-06T17:08:21.019355 | 2019-04-09T04:41:00 | 2019-04-09T04:41:00 | 157,648,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # Generated by Django 2.1 on 2018-09-10 05:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('pets', '0006_auto_20180910... | [
"hernandavidc@hotmail.com"
] | hernandavidc@hotmail.com |
a3eefa3f23a8dfe00c158170d73f421c29d1e373 | c79737296bdf4b3a969ab5ceb69198daf66def0e | /python/solutii/bogdan_iacoboae/caesar/caesar.py | 315bde89ddbea8afd9d78e0152861ba4b9c51fa0 | [
"MIT"
] | permissive | ilieandrei98/labs | 96c749072b6455b34dc5f0bd3bb20f7a0e95b706 | cda09cbf5352e88909f51546c2eb360e1ff2bec1 | refs/heads/master | 2020-04-26T03:23:48.220151 | 2019-03-01T08:56:43 | 2019-03-01T08:56:43 | 173,265,757 | 0 | 0 | MIT | 2019-03-01T08:37:14 | 2019-03-01T08:37:14 | null | UTF-8 | Python | false | false | 1,939 | py | # coding=utf-8
# from __future__ import print_function
"""Împăratul a primit serie de mesaje importante pe care este
important să le descifreze cât mai repede.
Din păcate mesagerul nu a apucat să îi spună împăratul care au fost
cheile alese pentru fiecare mesaj și tu ai fost ales să descifrezi
misterul.
Informații:
... | [
"mmicu@cloudbasesolutions.com"
] | mmicu@cloudbasesolutions.com |
989528ac7820dca22e21aec571ce43ed89e4c1a0 | e3e3071e5f01f75ba3716ac229abef484e8c051a | /mnist.py | f9639c963cb10a4bdcfc9a82659ccfe73a01289c | [] | no_license | schmit/dictlearning | 9efc9e15e73a99f840db71d81925dbe7c0bd22d0 | 14c37631aa4d330d58fc174b2294866e2484d5d0 | refs/heads/master | 2021-01-10T04:06:33.899917 | 2013-03-15T18:40:33 | 2013-03-15T18:40:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | import numpy as np
import scipy.io as sio
import dictionary
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
from multiOGD import *
from kernels import *
import sys
import argparse
import utility
sys.stdout = utility.Logger()
print 'Starting run of MNIST.py'
parser = argparse.ArgumentParser(descriptio... | [
"schmit@stanford.edu"
] | schmit@stanford.edu |
c735627231131ebf3d41f8b0d0b2c4e1b2f91659 | 26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f | /exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/kubevirt_vm.py | ddcab20e9863af4105ed6489bcd7c4e7021b0e5a | [
"GPL-3.0-only",
"MIT",
"GPL-3.0-or-later",
"CC0-1.0",
"GPL-1.0-or-later"
] | permissive | tr3ck3r/linklight | 37814ed19173d893cdff161355d70a1cf538239b | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | refs/heads/master | 2021-04-11T04:33:02.727318 | 2020-03-25T17:38:41 | 2020-03-25T17:38:41 | 248,992,437 | 0 | 0 | MIT | 2020-03-21T14:26:25 | 2020-03-21T14:26:25 | null | UTF-8 | Python | false | false | 16,645 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# Copyright: (c) 2019, Ansible Project
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"joshuamadison+gh@gmail.com"
] | joshuamadison+gh@gmail.com |
a98677c79904384ea4f9182f45560317822060b0 | 1eb50735e3861cde4bca8f4feab5afc730003078 | /future/flags_threadpool.py | 68c2812cf5337155961672ac7f2d7ec0945eca02 | [] | no_license | chinaylssly/fluent-python | 442e6458215e3c5a74c4d34d020b714da108f81d | 126c1d3e7853628c4a2c0e6ff475362b7d7fe33a | refs/heads/master | 2020-04-17T13:58:03.534184 | 2019-02-01T14:40:42 | 2019-02-01T14:40:42 | 166,637,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 924 | py | # -*- coding: utf-8 -*-
import random,sys
from time import sleep,time
from concurrent import futures
MAX_WORKERS= 20
tl=[i*0.01 for i in range(20)]
def do_one(t=0.2):
# print (t)
sleep(t)
return t
def do_many(tl=tl):
workers=min(len(tl),MAX_WORKERS)
with futures.ThreadPoolExecutor(worke... | [
"chinaylssly@qq.com"
] | chinaylssly@qq.com |
25a966ceab5d2deb560acac18c7d2c9729e93236 | be999cad30c28d0370a57b73057cb734fdffbf23 | /workshop_corona19/corona19_07_여행력.py | 899ed6dd8d5552a0e7aa1dc68988569ffc65f5fa | [] | no_license | choicoding1026/ML | 341181d5b1088f48fa0336a6db773ed7cfbecc21 | 69db5fcd559a7a41ce9fb0ece543d3cf9b44d5bb | refs/heads/master | 2023-01-01T07:35:09.655664 | 2020-10-15T07:41:50 | 2020-10-15T07:41:50 | 303,907,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,833 | py | '''
서울시 코로나19 데이터 수집 및 분석
26. 여행력
'''
import pandas as pd
import numpy as np
file_name = "seoul_corona_10_11_.csv"
df = pd.read_csv(file_name, encoding="utf-8") # 한글처리
# 1. '연번' 기준으로 오름차순 정렬
df = df.sort_values(by="연번", ascending=False)
print("1. '연번' 기준으로 오름차순 정렬:\n", df.head())
# 2. 확진일의 빈도수 ==> 어느 날짜에 가장 ... | [
"justin6130@gmail.com"
] | justin6130@gmail.com |
218da19b57c5712555289e34068f1467c2a0dd69 | 16047f965a69893a8cd2c8d18fbd7b9c86a07eb3 | /src/networkx/algorithms/tree/mst.py | b7b8c1d9326cb3ad5fb75cc1770917b253928b1e | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | guctum/aws-kube-codesuite | 9ce2cc02fe5fa15c2e175fb697138014fb162f1e | 5d62beaadc13bec745ac7d2fc18f07805e91cef3 | refs/heads/master | 2021-05-24T10:08:00.651840 | 2020-04-23T20:21:46 | 2020-04-23T20:21:46 | 253,511,083 | 0 | 0 | Apache-2.0 | 2020-04-06T13:48:14 | 2020-04-06T13:48:13 | null | UTF-8 | Python | false | false | 21,167 | py | # -*- coding: utf-8 -*-
# Copyright (C) 2017 NetworkX Developers
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# Loïc Séguin-C. <loicseguin@gmail.com>
# All rights reserved.
# BSD license.
"""
Algorithms for calculating min/max spanning trees/f... | [
"olari@784f435df7a4.ant.amazon.com"
] | olari@784f435df7a4.ant.amazon.com |
156d6f7fc512c8f3ba50b7135ffd548e1d30f08e | 8e75843fc2b27d50e1f8a95f0367a3a96a3dae30 | /Code/python_quote.py | a1cb9f69bbba8935805a704b36ca94ea7291b786 | [] | no_license | franklin-phan/CS-2-Tweet-Generator | 5f122e2aab7a6ee749feb888d094c8057671a7ee | fedb9ba46be3f31a1586f8d64986ec92c58296b6 | refs/heads/master | 2021-07-14T14:37:13.404088 | 2020-03-06T07:08:03 | 2020-03-06T07:08:03 | 236,772,553 | 0 | 0 | null | 2021-03-20T02:58:02 | 2020-01-28T15:47:39 | Python | UTF-8 | Python | false | false | 332 | py | import random
quotes = ("It's just a flesh wound.",
"He's not the Messiah. He's a very naughty boy!",
"THIS IS AN EX-PARROT!!")
def random_python_quote():
rand_index = random.randint(0, len(quotes) - 1)
return quotes[rand_index]
if __name__ == '__main__':
quote = random_python_quote(... | [
"franklin.phan123@gmail.com"
] | franklin.phan123@gmail.com |
7e6aaa5e69e03122dd3e0dec7476a9bc38d155c2 | 971e0efcc68b8f7cfb1040c38008426f7bcf9d2e | /tests/artificial/transf_Difference/trend_MovingMedian/cycle_7/ar_/test_artificial_128_Difference_MovingMedian_7__20.py | 3857b72f05dfa8e9071a105b318bb037455121e2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | antoinecarme/pyaf | a105d172c2e7544f8d580d75f28b751351dd83b6 | b12db77cb3fa9292e774b2b33db8ce732647c35e | refs/heads/master | 2023-09-01T09:30:59.967219 | 2023-07-28T20:15:53 | 2023-07-28T20:15:53 | 70,790,978 | 457 | 77 | BSD-3-Clause | 2023-03-08T21:45:40 | 2016-10-13T09:30:30 | Python | UTF-8 | Python | false | false | 268 | py | import pyaf.Bench.TS_datasets as tsds
import tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 128 , FREQ = 'D', seed = 0, trendtype = "MovingMedian", cycle_length = 7, transform = "Difference", sigma = 0.0, exog_count = 20, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
e39687a83d7901840b63d3e947089e5c408f944d | 11137bde91389c04a95df6f6fdaf64f7f49f5f80 | /secondTest/introduction_MIT2/5_1.py | 47272dfbccb9fef4086d3fd1feaa61aff6aa3068 | [] | no_license | starschen/learning | cf3c5a76c867567bce73e9cacb2cf0979ba053d9 | 34decb8f9990117a5f40b8db6dba076a7f115671 | refs/heads/master | 2020-04-06T07:02:56.444233 | 2016-08-24T08:11:49 | 2016-08-24T08:11:49 | 39,417,895 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | #encoding:utf8
def findDivisors(n1,n2):
divisors=()
for i in range(1,min(n1,n2)+1):
if n1%i==0 and n2%i==0:
divisors=divisors+(i,)
return divisors
divisors=findDivisors(20,200)
# print divisors
total=0
for d in divisors:
total+=d
# print total
def findExtremeDivisors(n1,n2):
d... | [
"stars_chenjiao@163.com"
] | stars_chenjiao@163.com |
c3a82f8ae4512e4c66cb1f0c074facd96d2a4bf3 | e89a3a203bd4b433c0f1acc05b2e3c89a7020a9f | /src/robots/descriptions/cheetah_simu/cheetah_sim/ros_package/cheetah_core/src/leg_control/__init__.py | 88699440d88fb79604aa080b53b86fcbe3df9d3b | [] | no_license | JJHbrams/QuadrupedMotionPlanning | 03e5dfdd8410710a26553441aa557e9585b5f10f | cf83de83776b8215b2e94dbc2afa5f59039e6d4d | refs/heads/master | 2023-01-12T11:30:38.202023 | 2020-11-11T10:52:20 | 2020-11-11T10:52:20 | 311,865,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26 | py | __all__=["legController"]
| [
"dpswpfrhdid@naver.com"
] | dpswpfrhdid@naver.com |
f72ea5adb6bb93fb22ed43dc90bdc32c3d350e5e | e9c9e38ed91969df78bbd7f9ca2a0fdb264d8ddb | /lib/python3.8/site-packages/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_pkg_firewall_policy6.py | 4e8e6249ef88271ad42c8c22653a3b534363cbf7 | [] | no_license | Arceusir/PRELIM_SKILLS_EXAM | 882fcf2868926f0bbfe1fb18d50e5fe165936c02 | b685c5b28d058f59de2875c7579739c545df2e0c | refs/heads/master | 2023-08-15T07:30:42.303283 | 2021-10-09T01:27:19 | 2021-10-09T01:27:19 | 415,167,192 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80,550 | py | #!/usr/bin/python
from __future__ import absolute_import, division, print_function
# Copyright 2019-2021 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the ... | [
"aaronchristopher.dalmacio@gmail.com"
] | aaronchristopher.dalmacio@gmail.com |
6c42121e14c982c244c5e02c8719f1cf0456c50b | 00829e1ff78f73dab073a201d68139960c1d1922 | /tools/toolset/tool/rigging/beam/core/maths/color.py | dc40bd6d1cd95c9443bd68690d5e0cbba7ef7e09 | [] | no_license | liangyongg/Beam_Tools | a021ceb4187107508536c46726da5b9629ffd1cf | 21b5d06e660f058434e589ae4f672f96296b7540 | refs/heads/master | 2018-11-04T04:43:02.523654 | 2018-08-26T12:33:09 | 2018-08-26T12:33:09 | 115,005,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,953 | py | """Kraken - maths.color module.
Classes:
Color -- Color object.
"""
import random
import math
from rigging.beam.core.beam_system import bs
from math_object import MathObject
class Color(MathObject):
"""Vector 4 object."""
def __init__(self, r=0.0, g=0.0, b=0.0, a=1.0):
"""Initializes r, g b and a ... | [
"hhhh"
] | hhhh |
b3659978c254246c6d5f9ff0bb961a8029d82c3e | 30e2a85fc560165a16813b0486a862317c7a486a | /tensorflow/test/misc/graph.py | f141c134d6cf1435e3b25c0f9515954553e7ee26 | [] | no_license | muryliang/python_prac | 2f65b6fdb86c3b3a44f0c6452a154cd497eb2d01 | 0301e8f523a2e31e417fd99a968ad8414e9a1e08 | refs/heads/master | 2021-01-21T11:03:48.397178 | 2017-09-18T04:13:27 | 2017-09-18T04:13:27 | 68,801,688 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | import tensorflow as tf
g1 = tf.Graph()
with g1.as_default():
v = tf.get_variable(
"v", initializer=tf.zeros_initializer(shape=[1]))
g2 = tf.Graph()
with g2.as_default():
v= tf.get_variable(
"v", initializer=tf.ones_initializer(shape=[1]))
with tf.Session(graph=g1) as sess:
tf.ini... | [
"muryliang@gmail.com"
] | muryliang@gmail.com |
2d28abd02b655286a0b2762b8b7f33ce1e3ce5c8 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/8/u19.py | 44f8d26c2e4a9b7cdc3d42f29e4fe1307c540b0c | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
ad62f9feb1c07f0e0d3a9a0db8defb334439b636 | a2fdcd5252741bdd3ad96f20944c07d80bd57dc8 | /class_sample.py | ca23e1669eeab4e7a15a44c5a304dc1c92735155 | [] | no_license | chaossky/Python2019 | 7cd11aab7cecf23acb42b7635f8bfb506555c856 | fd63563f6a175a6aef1f3248aefb3f754f6658e1 | refs/heads/master | 2021-07-31T09:15:14.430835 | 2019-08-16T12:13:45 | 2019-08-16T12:13:45 | 200,347,544 | 0 | 0 | null | 2019-08-05T21:54:10 | 2019-08-03T07:43:34 | Python | UTF-8 | Python | false | false | 365 | py | class Ball:
color=""
speed=0
def setSpeed(self,value):
self.speed=value
ball01=Ball()
ball01.color="Red"
ball01.setSpeed(10)
ball02=Ball()
ball02.color="Blue"
ball02.setSpeed(20)
print("Ball01 color:%s" %ball01.color)
print("Ball01 speed:%s" %ball01.speed)
print("Ball02 color:%s" %ball02.col... | [
"user@email.mail"
] | user@email.mail |
38910cfa0d829421a6d14748e1081970a606abe0 | 2734b77a68f6d7e22e8b823418ad1c59fe1a34af | /opengever/dossier/upgrades/20170307184059_reindex_searchable_text_for_dossier_templates/upgrade.py | 436c02f98340c2800590927a5f6bf366f0ad4ab2 | [] | no_license | 4teamwork/opengever.core | 5963660f5f131bc12fd0a5898f1d7c8f24a5e2b1 | a01bec6c00d203c21a1b0449f8d489d0033c02b7 | refs/heads/master | 2023-08-30T23:11:27.914905 | 2023-08-25T14:27:15 | 2023-08-25T14:27:15 | 9,788,097 | 19 | 8 | null | 2023-09-14T13:28:56 | 2013-05-01T08:28:16 | Python | UTF-8 | Python | false | false | 365 | py | from ftw.upgrade import UpgradeStep
class ReindexSearchableTextForDossierTemplates(UpgradeStep):
"""Reindex SearchableText for dossier templates.
"""
def __call__(self):
self.install_upgrade_profile()
self.catalog_reindex_objects(
{'portal_type': 'opengever.dossier.dossiertemp... | [
"david.erni@4teamwork.ch"
] | david.erni@4teamwork.ch |
0c9d8876bb93f2c786e18e37dc1213e7ef6c6c2d | 8e8260d109d6b3680e3ce966e9baaa540393db8b | /xadmintest/settings.py | ff250650fd023fd3bc87381d949c7e0e1b6833b0 | [] | no_license | loveguan/xadmintest | 4472c13bd68f4b4ae47479449f4319e6f50df4fc | f20093afe25216154861fd8f6f061bcfee7269f2 | refs/heads/master | 2020-09-04T23:24:06.094513 | 2019-11-06T05:57:04 | 2019-11-06T05:57:04 | 219,922,499 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,286 | py | """
Django settings for xadmintest project.
Generated by 'django-admin startproject' using Django 2.0.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os... | [
"zhouguanjie@qq.com"
] | zhouguanjie@qq.com |
49f3e7d823cd9ee17a9c42cca9f6a42c42a6c33e | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /ENJTPoWCyEGgnXYjM_18.py | 35efe9177850a3a6a90e03c5f007d2d7ec0fb8cc | [] | 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 | 125 | py |
def percent_filled(box):
return str(round((''.join(box).count('o') / ((len(box[0]) - 2) * (len(box) - 2))) * 100)) + '%'
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
445c2230f975dd0e1e6f4f7c980b766500609f3a | 6c37d1d2437a08e43b13d621d4a8da4da7135b3a | /yt_dlp/extractor/mirrativ.py | 0a8ee0c3a52eeff28f2d9e679e0ae5913bc34970 | [
"Unlicense",
"GPL-2.0-or-later",
"MPL-2.0",
"BSD-3-Clause",
"GPL-3.0-or-later",
"LGPL-2.1-only",
"BSD-2-Clause",
"MIT"
] | permissive | yt-dlp/yt-dlp | be040bde10cc40258c879c75ab30215686352824 | d3d81cc98f554d0adb87d24bfd6fabaaa803944d | refs/heads/master | 2023-09-05T21:15:21.050538 | 2023-09-05T20:35:23 | 2023-09-05T20:35:23 | 307,260,205 | 52,742 | 5,376 | Unlicense | 2023-09-14T05:22:08 | 2020-10-26T04:22:55 | Python | UTF-8 | Python | false | false | 4,880 | py | from .common import InfoExtractor
from ..utils import (
ExtractorError,
dict_get,
traverse_obj,
try_get,
)
class MirrativBaseIE(InfoExtractor):
def assert_error(self, response):
error_message = traverse_obj(response, ('status', 'error'))
if error_message:
raise Extracto... | [
"noreply@github.com"
] | yt-dlp.noreply@github.com |
7d50401e7f1cf6286d23132c3ea577467c6a556e | 84caee3f7b0e9811f91da65f59c93b08f76453f3 | /later/task.py | a201c2d1487a33d00572d896156b06435581c5c9 | [
"Apache-2.0"
] | permissive | thatch/later | 541492ca2ebd77d4b5859c00ff46247847a1d1a5 | 29c614c8a14eb290555bd1708fafea6542365e60 | refs/heads/master | 2021-01-09T16:10:39.247170 | 2020-02-19T01:33:45 | 2020-02-19T01:36:01 | 242,367,315 | 0 | 0 | null | 2020-02-22T15:46:40 | 2020-02-22T15:46:39 | null | UTF-8 | Python | false | false | 11,199 | py | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ap... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4403759cc3a6535b10eb3e09928d293cb9555aad | bb151500b0fc5bb9ef1b1a9e5bba98e485b4b34d | /problemSet/591C_Median_Smoothing.py | 9436f6108c5e3ab88ea40e68a7cd92378f7749a0 | [] | no_license | yamaton/codeforces | 47b98b23da0a3a8237d9021b0122eaa498d98628 | e0675fd010df852c94eadffdf8b801eeea7ad81b | refs/heads/master | 2021-01-10T01:22:02.338425 | 2018-11-28T02:45:04 | 2018-11-28T03:21:45 | 45,873,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,697 | py | """
Codeforces Round #327 (Div. 2)
Problem 591 C. Median Smoothing
@author yamaton
@date 2015-11-06
"""
def reduce_consec(iterable):
"""
[1, 2, 3, 6, 7, 9, 10, 11, 12, 13, 20]
--> [(1, 3), (6, 2), (9, 5), (20, 1)]
Detect consecutive part and (starting_value, length) pair
:param xs: List of int
... | [
"yamaton@gmail.com"
] | yamaton@gmail.com |
c8bca5286d0a9ad049f59155f5a9114d8f06dd8c | b92eee41d665314bc42043d1ff46c608af5ffdfd | /sesion_3/prog.4.py | eda17bf266e753571861d3d45fc42db362032da6 | [] | no_license | badillosoft/python-economics | 40efe8326558a8fb93f84fdbd2137428844ee5f3 | 82af43c7a47297ce186dc0e23e30620d46e6693a | refs/heads/master | 2021-01-11T18:55:15.762752 | 2017-05-09T01:15:59 | 2017-05-09T01:15:59 | 79,656,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 278 | py | from openpyxl import load_workbook
from geg import *
wb = load_workbook("puntos.xlsx")
ws = wb.active
puntos = automatic_load_data(ws, "A2")
def f(x, y):
return x**2 + y**2
for p in puntos:
x = p["X"]
y = p["Y"]
z = f(x, y)
print "%f, %f, %f" %(x, y, z) | [
"kmmx@hsoft.local"
] | kmmx@hsoft.local |
713e56b0dfc1b28ab55d67e75f8720cff692e593 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-mrsp.0/mrsp_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=49/params.py | fcbfbdfe45d4c06dbfe8c250d00b2d4aa9ae3364 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.557024',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.5',
'res_nmb': '4',
'res_weight': '0.06',
'scheduler': 'RUN',
'trial': 49,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
c0cf0962495662ae563a1a6b07d1ec6c2b8f5619 | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/9549174/snippet.py | 312f68f442a31f1ee8acc642c7594905cdeb8ac0 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 3,652 | py | import random
import sys
def print_grid(grid):
print ("\n%s\n" % "+".join([('-' * 4)] * 4)).join(
["|".join(["%4d" % item if item > 0 else " " * 4 for item in line]) for line in grid])
def get_available_cells(grid):
return [(y, x) for y in range(4) for x in range(4) if not grid[y][x]]
def insert_n... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
87481f971aab378f0cea55dabcddcedecfdce3f5 | 4c704c60dcd8bba658f4e0cdc85f299c01f2058e | /002/for1.py | 9727ffbd6c0fcc9cbb45013575fc2759408bb8fa | [] | no_license | steveq1/py2016 | acd6c80595637fb3be7f1f3378bbdca8d2dcf8cc | fb9b2708d49790efe03d84315442d7e93a7cc6d6 | refs/heads/master | 2021-01-17T13:00:25.787387 | 2016-07-18T16:28:07 | 2016-07-18T16:28:07 | 63,125,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | for x in range(0,10):
if x >=3:
is_break = False
break
print('x={0}'.format(x))
if is_break:
break
| [
"root@localhost.localdomain"
] | root@localhost.localdomain |
19a873e4e3896df4714cebbd65d8a78cd02da923 | 773aef0de494fde01ea5a444b0cfdf57deb88b10 | /puchowebapp/urls.py | 925ea082cf610643223dc59a8d2e26160968a8dc | [] | no_license | gk90731/Pucho_Web | 44c509f92950dc7f35cd5dfd6cf3e42fb6b2d720 | 041239934cd9303120e67d613b2ae90f23c17f20 | refs/heads/master | 2022-12-10T19:47:43.400760 | 2020-04-04T14:28:29 | 2020-04-04T14:28:29 | 253,017,818 | 0 | 0 | null | 2022-12-08T03:59:01 | 2020-04-04T14:26:52 | HTML | UTF-8 | Python | false | false | 383 | py | from django.urls import path,include
from . import views
urlpatterns = [
path('',views.index ,name="home"),
path('what_we_do/',views.what_we_do ,name="what_we_do"),
path('about/',views.about ,name="about"),
path('protfolio/',views.protfolio ,name="protfolio"),
path('gallery/',views.gallery ,name="ga... | [
"gk90731@gmail.com"
] | gk90731@gmail.com |
91f683f5ae10fa0d17fac5d8d2ed8efc7e5b63a8 | fc1c1e88a191b47f745625688d33555901fd8e9a | /meraki_sdk/models/universal_search_knowledge_base_search_enum.py | eeb90cdd62bbd16c19b2fcca21e1750437564fb5 | [
"MIT",
"Python-2.0"
] | permissive | RaulCatalano/meraki-python-sdk | 9161673cfd715d147e0a6ddb556d9c9913e06580 | 9894089eb013318243ae48869cc5130eb37f80c0 | refs/heads/master | 2022-04-02T08:36:03.907147 | 2020-02-03T19:24:04 | 2020-02-03T19:24:04 | 416,889,849 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | # -*- coding: utf-8 -*-
"""
meraki_sdk
This file was automatically generated for meraki by APIMATIC v2.0 ( https://apimatic.io ).
"""
class UniversalSearchKnowledgeBaseSearchEnum(object):
"""Implementation of the 'UniversalSearchKnowledgeBaseSearch' enum.
The universal search box always... | [
"api-pm@meraki.com"
] | api-pm@meraki.com |
d0b8df90a505c6ce70739548052cf57d31f3c545 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/422/usersdata/328/89006/submittedfiles/lecker.py | 646555fee493b246ee37fbf271bb339645a2e877 | [] | 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 | 251 | py | n1=int(input('n1:'))
n2=int(input('n2:'))
n3=int(input('n3:'))
n4=int(input('n4:'))
if n1 >n2 and n4<n3:
print('S')
elif n2 >n1> n3 and n4<n3 :
print('S')
elif n3>n4>n2 and n1<n2:
print('S')
elif n4>n3 :
print('S')
else:
print('N') | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
5f5b4e4172a9aafe394060657cf1b1bd9a055427 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5631572862566400_0/Python/ugo/c.py | fc210345694d8b61a3644358a93468fbce72a716 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,899 | py |
def get_candidates(bffs):
ret = []
for i in range(len(bffs)):
for j in range(i+1, len(bffs)):
if bffs[i] == j and bffs[j] == i:
ret.append((i, j))
return ret
def longest(n, dontgo, edges):
print 'longest', n, dontgo
ret = 1
for nb in edges[n]:
if nb != dontgo:
ret = max(ret, longest(nb, dontgo, ed... | [
"alexandra1.back@gmail.com"
] | alexandra1.back@gmail.com |
f59015df0fd96a8dc9105e2b9aec3f31d216ca8f | df7b40e95718ac0f6071a0ba571b42efc81cf6de | /configs/dnlnet/dnl_r50-d8_512x512_160k_ade20k.py | 5305689d09b944f6e37aa85567ce3f29fc6974a7 | [
"Apache-2.0"
] | permissive | shinianzhihou/ChangeDetection | 87fa2c498248e6124aeefb8f0ee8154bda36deee | 354e71234bef38b6e142b6ba02f23db958582844 | refs/heads/master | 2023-01-23T20:42:31.017006 | 2023-01-09T11:37:24 | 2023-01-09T11:37:24 | 218,001,748 | 162 | 29 | Apache-2.0 | 2022-11-03T04:11:00 | 2019-10-28T08:41:54 | Python | UTF-8 | Python | false | false | 249 | py | _base_ = [
'../_base_/models/dnl_r50-d8.py', '../_base_/datasets/ade20k.py',
'../_base_/default_runtime.py', '../_base_/schedules/schedule_160k.py'
]
model = dict(
decode_head=dict(num_classes=150), auxiliary_head=dict(num_classes=150))
| [
"1178396201@qq.com"
] | 1178396201@qq.com |
08e64277223c06c607a305f6816878e91c7112f9 | 3b6b76aae93eb8a2c738a1364e923d3bad20e0a6 | /articles/wsgi-intro/twill-wsgi-example.py | c8d9450fb8f6a4c7610666f7a9687e7e5a2e8ccb | [] | no_license | ctb/ivory.idyll.org | 24e4a0f67fbbde399118aff3c27a03bac304aa8f | 88df5f33361e6e13eda248ee55f1e4e460b998d9 | refs/heads/master | 2020-04-10T10:42:00.111811 | 2018-12-08T19:54:05 | 2018-12-08T19:54:05 | 160,973,601 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | #! /usr/bin/env python
import twill
def simple_app(environ, start_response):
status = '200 OK'
response_headers = [('Content-type','text/plain')]
start_response(status, response_headers)
return ['Hello world!\n']
if __name__ == '__main__':
print '*** installing WSGI intercept hook ***\n'
twill.add_w... | [
"titus@idyll.org"
] | titus@idyll.org |
bd7f88508e67dbfcf5ecffbf0562f7a05eb1619b | e49a07ad215172e9c82cb418b10371bf0ce1c0f7 | /第1章 python基础/Python基础08/10-异常传递.py | a53af9d709038f15ce320e9490696f4377f4e232 | [] | no_license | taogangshow/python_Code | 829c25a7e32ead388c8b3ffa763cb9cf587bfd7b | 4b3d6992ec407d6069f3187ca7e402a14d863fff | refs/heads/master | 2022-12-16T01:26:17.569230 | 2018-11-16T10:07:59 | 2018-11-16T10:07:59 | 157,832,985 | 0 | 1 | null | 2022-11-25T09:55:32 | 2018-11-16T08:00:13 | Python | UTF-8 | Python | false | false | 405 | py | def test1():
print("---test1-1---")
print(num)
print("---test1-2---")
def test2():
print("---test2-1---")
test1()
print("---test2-2---")
def test3():
try:
print("---test3-1---")
test1()
print("---test3-2---")
except Exception as result:
print("捕获到了异常,信... | [
"cdtaogang@163.com"
] | cdtaogang@163.com |
f4c50198426a22de4657d97af5065df4920d777b | 4f111dfacab0acc93900e7746538f85e0b3d8d78 | /day3/01关系运算符.py | 7daa883448340f101de2cd7477971865e50ce034 | [] | no_license | ljxproject/basecode | 5541f25cfe90d5fad26eac0b6e72802aa1fad1f4 | 485e4b41593839bfc61e67261247fb88dc80cc1d | refs/heads/master | 2020-03-26T16:16:26.422617 | 2018-08-17T08:05:11 | 2018-08-17T08:05:11 | 145,091,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | '''
关系元算符与关系表达式
关系运算符有:
> < == != >= <=
格式: 表达式1 关系运算符 表达式2
功能: 运算表达式1与表达式2的值,
值: 如果关系成立,则返回True,否则False
'''
num1 = 2
num2 = 5
mum3 = num1 != num2
print(mum3)
print(num1 != num2)
| [
"403496369@qq.com"
] | 403496369@qq.com |
8e4afde0ad3d7cdf9500900a9d52568869e8ccec | b9d7194bb50a01e7e56d19ba2f3c048084af54b5 | /_OLD_/bottle.py | 8171ee3221df8251f6911cd57ccc179a1fc2edcf | [] | no_license | BernardoGO/TCC---2017 | 099e72d788974446b58fe5f409a2df25e3613cc5 | 75025e095956624470c22d8f3118441d5c28bdd7 | refs/heads/master | 2018-12-04T10:53:07.809161 | 2018-09-06T04:59:30 | 2018-09-06T04:59:30 | 64,803,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,571 | py | import numpy as np
from keras.preprocessing.image import ImageDataGenerator
from keras.models import Sequential
from keras.layers import Dropout, Flatten, Dense
from keras import applications
from keras.models import save_model, load_model
# dimensions of our images.
img_width, img_height = 150, 150
top_model_weights... | [
"bernardo.godinho.oliveira@gmail.com"
] | bernardo.godinho.oliveira@gmail.com |
e7e3f19d55f167659b9939895e3c7c8b47ad52da | c6818c06aacb1eca1fffa8bbc51b6f3aac25c177 | /acre/asgi.py | 7a5ee240ac0ce6bd5657ed8a2e6ac3c7e5f609cc | [] | no_license | Acon94/ACRE | 2d0769780c9f81eba05085ffd8b0af225666d6de | 73622a6dc4ba0f30e8d3e90b02d23c8efd14a5e1 | refs/heads/master | 2022-08-02T02:07:53.004308 | 2020-05-29T15:25:50 | 2020-05-29T15:25:50 | 267,840,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | """
ASGI config for acre project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETTINGS... | [
"andrew@Andrews-MacBook-Pro.local"
] | andrew@Andrews-MacBook-Pro.local |
def00a2abdbb12ba52b231da7124685b93516b93 | 23ef81cb94356fd321c07f06dab2877e04131b4d | /yiyuanduobao_shop/migrations/0058_item_proxy_sale_qr_code.py | da3d99780c61df4a84d1c939d53fdc4bb41fd205 | [] | no_license | dongshaohui/one_dolor | 0c688787d8cee42957bec087b74b5ea353cc80fc | 13dea458568152a3913c6f70ecd9a7e1f6e9514e | refs/heads/master | 2020-07-03T03:12:22.409542 | 2016-11-21T08:15:06 | 2016-11-21T08:15:06 | 74,202,604 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('yiyuanduobao_shop', '0057_item_winner_customer'),
]
operations = [
migrations.AddField(
model_name='item',
... | [
"405989455@qq.com"
] | 405989455@qq.com |
0b231fcc73526c6bd8bb5185239f91dd9e68d7cf | 13edd8f1bc3b86fd881f85fbeafe94811392d7fc | /fourth_module/多线程多进程/new/多线程/01 开启线程的两种方式.py | cbdb541d1193f3e8f003cc5d85896cfbaa111812 | [] | no_license | ryan-yang-2049/oldboy_python_study | f4c90c9d8aac499e1d810a797ab368217f664bb1 | 6e1ab7f217d9bf9aa7801266dee7ab4d7a602b9f | refs/heads/master | 2022-07-22T23:49:28.520668 | 2019-06-11T13:26:25 | 2019-06-11T13:26:25 | 129,877,980 | 0 | 1 | null | 2022-07-18T17:12:54 | 2018-04-17T09:12:48 | HTML | UTF-8 | Python | false | false | 643 | py | # -*- coding: utf-8 -*-
"""
__title__ = '01 开启线程的两种方式.py'
__author__ = 'yangyang'
__mtime__ = '2018.02.07'
"""
from threading import Thread
import os,time
# def task(name):
# print("%s is running,PID: %s" % (name,os.getpid()))
#
# if __name__ == '__main__':
# p = Thread(target=task,args=('ryan',))
# p.start()
# pri... | [
"11066986@qq.com"
] | 11066986@qq.com |
00d288a2b6044bd45e41cb8a04842120a28cf531 | 90047daeb462598a924d76ddf4288e832e86417c | /chromecast/browser/DEPS | c273dc2c7d0751e9b9e547fd0285090933fa1b4b | [
"BSD-3-Clause"
] | permissive | massbrowser/android | 99b8c21fa4552a13c06bbedd0f9c88dd4a4ad080 | a9c4371682c9443d6e1d66005d4db61a24a9617c | refs/heads/master | 2022-11-04T21:15:50.656802 | 2017-06-08T12:31:39 | 2017-06-08T12:31:39 | 93,747,579 | 2 | 2 | BSD-3-Clause | 2022-10-31T10:34:25 | 2017-06-08T12:36:07 | null | UTF-8 | Python | false | false | 990 | include_rules = [
"+cc/base/switches.h",
"+chromecast/common",
"+chromecast/graphics",
"+chromecast/app/grit/chromecast_settings.h",
"+chromecast/app/resources/grit/shell_resources.h",
"+chromecast/media",
"+chromecast/net",
"+chromecast/service",
"+components/cdm/browser",
"+components/crash",
"+... | [
"xElvis89x@gmail.com"
] | xElvis89x@gmail.com | |
26e94e33c7d3dda0924333d6df8e6e72572d6ac1 | a842f224d1b0c2e74b2043e8d03f49e3298086df | /grep_scales.py | 2b83cfe14e04d138314104c9309a15a7056c7411 | [] | no_license | ronsengupta/grep-scales | 68f8037171cdfd3f43c02d3d77f4f633e4196856 | 5740902b4694ae8d1cdee04e213f41c3d99bc428 | refs/heads/master | 2020-06-12T23:00:48.071262 | 2016-04-10T08:48:04 | 2016-04-10T08:48:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,232 | py | from shutit_module import ShutItModule
class grep_scales(ShutItModule):
def build(self, shutit):
afile = r'''THIS LINE IS THE 1ST UPPER CASE LINE IN THIS FILE.
this line is the 1st lower case line in this file.
This Line Has All Its First Character Of The Word With Upper Case.
Two lines above this line is empty.
... | [
"ian.miell@gmail.com"
] | ian.miell@gmail.com |
f76d667d0fdea002d1fd512d3a7f98728174a0a4 | 2ece848b37f7fa6f13ce0e94ddfd0fbd46c72b8f | /backend/utils/crawl_mode.py | c0224bad7279761898d0187465fdb7edceb18649 | [
"Apache-2.0"
] | permissive | rockeyzhu/eastmoney | 1a2d2db18bd658abe8e65875bf863f1cfcefd545 | c8aa33a69ebee54c64f22a8edbcf30ed0f29b293 | refs/heads/master | 2023-03-06T12:20:03.896607 | 2021-02-20T07:20:53 | 2021-02-20T07:20:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | import configparser
def get_crawl_mode():
config = configparser.ConfigParser()
config.sections()
config.read("config.ini")
return config['CRAWL_MODE']['crawl_mode']
| [
"1397991131@qq.com"
] | 1397991131@qq.com |
bc770a4a78f1a3e117c15af7a3ea4c7b4937bf1e | 63b0fed007d152fe5e96640b844081c07ca20a11 | /ABC/ABC200~ABC299/ABC291/c.py | 468e2709c60f01b71d7144cca09a88563e9ae6c3 | [] | no_license | Nikkuniku/AtcoderProgramming | 8ff54541c8e65d0c93ce42f3a98aec061adf2f05 | fbaf7b40084c52e35c803b6b03346f2a06fb5367 | refs/heads/master | 2023-08-21T10:20:43.520468 | 2023-08-12T09:53:07 | 2023-08-12T09:53:07 | 254,373,698 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from collections import defaultdict
N = int(input())
S = input()
d = defaultdict(lambda: False)
d[(0, 0)] = True
nx, ny = 0, 0
ans = 'No'
for i in range(N):
s = S[i]
if s == 'R':
nx += 1
elif s == 'L':
nx -= 1
elif s == 'U':
ny += 1
else:
ny -= 1
if d[(nx, ny)]:
... | [
"ymdysk911@gmail.com"
] | ymdysk911@gmail.com |
860e1b6b4199edd993d0f6b16cdc645e43a2bee9 | 4cef505611a04383310ce6556fac7acb02dbc8a1 | /Unmapped content SE/Unmapped content SE/checking_unmapped_content_SE_api_new1.py | 9ba60d429c9bc2219b1ffb1ca9dea5b0474b5f8b | [] | no_license | Sayan8981/Projectx | 9d8727eec144da35f2acffc787f3c769beef02e1 | bcf93fe885e4cd68bb2c30c408a3b03e785965c3 | refs/heads/master | 2022-03-26T18:13:02.831185 | 2020-01-16T06:52:31 | 2020-01-16T06:52:31 | 187,637,492 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,452 | py | """writer:Saayan"""
from fuzzywuzzy import fuzz
from fuzzywuzzy import process
import MySQLdb
import collections
from pprint import pprint
import sys
import urllib2
import json
import os
from urllib2 import HTTPError
from urllib2 import URLError
import csv
import urllib
import os
import pymysql
import datetime
import ... | [
"noreply@github.com"
] | Sayan8981.noreply@github.com |
7fc78a96811a0f46faa2e7fdc489c6ccfdf5de20 | b7f1b4df5d350e0edf55521172091c81f02f639e | /components/arc/video_accelerator/DEPS | be1c9c99ce26a0e5b89f2611421f734fc2f70e77 | [
"BSD-3-Clause"
] | permissive | blusno1/chromium-1 | f13b84547474da4d2702341228167328d8cd3083 | 9dd22fe142b48f14765a36f69344ed4dbc289eb3 | refs/heads/master | 2023-05-17T23:50:16.605396 | 2018-01-12T19:39:49 | 2018-01-12T19:39:49 | 117,339,342 | 4 | 2 | NOASSERTION | 2020-07-17T07:35:37 | 2018-01-13T11:48:57 | null | UTF-8 | Python | false | false | 296 | include_rules = [
"+components/arc/common",
"+gpu/command_buffer/service/gpu_preferences.h",
"+media/video",
"+media/base/video_frame.h",
"+media/base/video_types.h",
"+media/gpu",
"+mojo/edk/embedder",
"+services/service_manager/public/cpp",
"+ui/gfx",
"+ui/ozone/public",
]
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
00728e4101b62fa2bf7ba2c3784d4576344c6cc3 | d5b3de6729e165bddcc17b8c3c285df808cd9fd0 | /application/modules/fonction/views_fct.py | 209fd03dd4976dbac54b11d2915ca69f51eb9231 | [] | no_license | wilrona/Gesacom | 907848d44d9fa1a285b5c7a452c647fc6cbbc2fa | 31ec26c78994030844f750039a89a43a66d61abf | refs/heads/master | 2020-04-06T15:00:36.522832 | 2016-09-08T13:19:06 | 2016-09-08T13:19:06 | 49,956,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,146 | py | __author__ = 'Ronald'
from ...modules import *
from models_fct import Fonction
from forms_fct import FormFonction
# Flask-Cache (configured to use App Engine Memcache API)
cache = Cache(app)
prefix = Blueprint('fonction', __name__)
@prefix.route('/fonction')
@login_required
@roles_required([('super_admin', 'fonctio... | [
"wilrona@gmail.com"
] | wilrona@gmail.com |
da0c2a1cf4183a389e9a794b268a35920914e270 | 226be49a7396e7c6004ba4de567f6c22b5b245c0 | /packaging/fremantle/.py2deb_build_folder/gread/src/opt/GRead/views/basic/utils/toolbar.py | ce31b63c1a91f4abdca09d651a501e4d2d0b2425 | [] | no_license | twidi/GRead | 0e315c0c924fa169cb5d16e927c6b54e79e25bd9 | 51429189762b706fbe8ca1b927d89071a556d51e | refs/heads/master | 2021-01-10T19:54:43.098022 | 2010-11-23T00:41:17 | 2010-11-23T00:41:17 | 1,146,572 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,891 | py | # -*- coding: utf-8 -*-
"""
Lib to manage toolbars which appear on mousedown(maemo) or mousemove(not maem0)
and stay visible a few seconds
"""
from PyQt4.QtGui import *
from PyQt4.QtCore import *
import time
class ToolbarOwnerEventFilter(QObject):
def __init__(self, *args, **kwargs):
super(ToolbarOwnerEv... | [
"s.angel@twidi.com"
] | s.angel@twidi.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.