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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bc3c434190c692ff3c0094d20db9185411b09b8e | 3caa6e43e3da18858a719c51dc9c63eb11014035 | /build/LawnMowerRobot/hrp/am_loopmap/catkin_generated/pkg.installspace.context.pc.py | 85b851e7aaef81366a23f89a188a48a8c38bea1b | [] | no_license | rh-chen/catkin_ws | 2ab5050340e7e62f818681d1c86b222f2b867ce9 | 102203a9c5b870862d5c4fcf465f3bf88247a007 | refs/heads/master | 2020-06-03T10:28:31.749952 | 2016-06-02T21:43:10 | 2016-06-02T21:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/agneev/catkin_ws/install/include".split(';') if "/home/agneev/catkin_ws/install/include" != "" else []
PROJECT_CATKIN_DEPENDS = "nav_msgs;roscpp;std_msgs;tf;am_driver".replace(';', ' ')
PKG_CONFI... | [
"[email protected]"
] | |
51c49fc3154deee52d0c8f7793fbddac1737f209 | 70bfc97fb0ff98d817f72f27775a7b467ae66c39 | /firmware/python_modules/sha2017/dashboard/installer.py | 2bd071a428f17b60fb027c5bec3caf6cb46245ee | [
"Apache-2.0"
] | permissive | zakx/ESP32-platform-firmware | ae6ab2d023c06598dc6a9010fb4bfcf3a2d6710f | 3593865602c2aba1f5a066a333ff864d9eaae4a3 | refs/heads/master | 2020-07-03T03:19:04.964007 | 2019-08-10T17:05:16 | 2019-08-10T17:05:16 | 201,767,805 | 0 | 0 | null | 2019-08-11T13:24:42 | 2019-08-11T13:24:42 | null | UTF-8 | Python | false | false | 5,351 | py | import orientation, dashboard.resources.woezel_repo as woezel_repo, term, easydraw, system, time, gc, ugfx, wifi, uos, json, sys, woezel, display
repo = woezel_repo
orientation.default()
def showMessage(msg, error=False, icon_wifi=False, icon_ok=False):
term.header(True, "Installer")
print(msg)
if error:
easydr... | [
"[email protected]"
] | |
853dc52871c3cacc341de2c08d13e6f8f092c466 | 91406a8a39d4cf9c9db57d57c13b74ea6a50b31d | /backend/theadvrou_19084/settings.py | b1326c53deb98ee4d1d5405cc5757874998d7f98 | [] | no_license | crowdbotics-apps/theadvrou-19084 | 9fb5d3ebb645f946ed70469daf0c8770e8692723 | ecb1356777441578fafd5816638c4056bdaa8c21 | refs/heads/master | 2022-11-25T06:13:56.853550 | 2020-07-22T10:03:51 | 2020-07-22T10:03:51 | 281,493,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,806 | py | """
Django settings for theadvrou_19084 project.
Generated by 'django-admin startproject' using Django 2.2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
impo... | [
"[email protected]"
] | |
38ef0f1184875790dfef82c9ee5d3fb8e86bdc73 | 53bf080b397fb1250fc9be30b5978f7b14276fd8 | /app/http/controllers/WelcomeController.py | 3fde2bcb917796a4e3efb76d49a6dcee323fcfbc | [] | no_license | afdolriski/masonite-starter | 0297aea952ba6ca9bf86de8436bc33157af12292 | 1e61170e5ac0b40fba2c3022aaab4a5a8e6fe467 | refs/heads/master | 2021-05-12T18:43:34.160655 | 2018-01-10T03:15:27 | 2018-01-10T03:15:27 | 117,072,009 | 1 | 0 | null | 2018-01-11T08:30:10 | 2018-01-11T08:30:09 | null | UTF-8 | Python | false | false | 330 | py | ''' A Module Description '''
from masonite.view import view
from config import application
class WelcomeController(object):
''' Controller for welcoming the user '''
def __init__(self):
pass
def show(self, request):
''' Show Welcome Template '''
return view('welcome', {'app': appl... | [
"[email protected]"
] | |
a80448101f8374c1c17802dfdd3ad542417d37a9 | 17cbe826892d06dc5aee4e4c2a5747e10933f2d0 | /allennlp/scripts/train_fixtures.py | 35f92b290cdb557c4bb1ba9ff665094925d8b8a5 | [
"Apache-2.0",
"MIT"
] | permissive | rahular/joint-coref-srl | 3fdd0e37a56e3be894f3da4ceeb030a599ff4388 | cd85fb4e11af1a1ea400ed657d0a4511c1d6c6be | refs/heads/main | 2023-02-16T21:53:11.721014 | 2021-01-18T15:31:47 | 2021-01-18T15:31:47 | 330,708,579 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,821 | py | #!/usr/bin/env python
import glob
import logging
import os
import re
import shutil
import sys
import tempfile
sys.path.insert(0, os.path.dirname(os.path.abspath(os.path.join(__file__, os.pardir))))
from allennlp.commands.test_install import _get_module_root
from allennlp.commands.train import train_model_from_file, t... | [
"[email protected]"
] | |
1eb118f5187ab4a3c4a08f6e93c8c1611df906d2 | 7b4cf9df77a8f5f716dece430c9465b1de137a30 | /src/rubricsampling/short_answer_test.py | 392581f97870dcfcb6c025aa236fdcdf982e71d0 | [] | no_license | willcrichton/generative-grading | b440074e64c36a1fd982b4331e2d4ea36cbd57e4 | a36e0c91f778817f8b79d36a06e4b982b1f30245 | refs/heads/master | 2020-06-06T16:27:02.103847 | 2019-07-04T21:22:40 | 2019-07-04T21:22:40 | 192,791,584 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,536 | py | #!/usr/bin/env python
import pickle
import os.path
import sys
import generatorUtils as utils
from pprint import pprint
from tqdm import tqdm
from engine import Engine
from engineTempered import EngineTempered
from engineGuidedInference import EngineGuided
from src.datasets.citizenship_labels import CitizenshipLabels
... | [
"[email protected]"
] | |
e1c77a2d0b8f06a83ef2a11dbfb21d51589e4ba3 | 77ab53380f74c33bb3aacee8effc0e186b63c3d6 | /5180_constrained_subset_sum.py | 323b9c395febde884a579570cf9771cc9a0c10dc | [] | no_license | tabletenniser/leetcode | 8e3aa1b4df1b79364eb5ca3a97db57e0371250b6 | d3ebbfe2e4ab87d5b44bc534984dfa453e34efbd | refs/heads/master | 2023-02-23T18:14:31.577455 | 2023-02-06T07:09:54 | 2023-02-06T07:09:54 | 94,496,986 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,829 | py | '''
Given an integer array nums and an integer k, return the maximum sum of a non-empty subset of that array such that for every two consecutive integers in the subset, nums[i] and nums[j], where i < j, the condition j - i <= k is satisfied.
A subset of an array is obtained by deleting some number of elements (can be z... | [
"[email protected]"
] | |
51f2b3c70763ec2c0eae169ef31a20b8bdcc1dc2 | 081b33ead95b323e77bdce3717af0a5790e34a1e | /backend/apps/league/migrations/0001_initial.py | 791e1d76b4e75f218d5bd9686461819c8acd89b0 | [] | no_license | alexmon1989/afliga | 81ea3b32b18040bb8baa4e8af14a73003fb9a89f | 661da30c0a5aa6b9975eb7dea9c9a031529d2dbb | refs/heads/master | 2023-02-23T11:12:45.608118 | 2023-02-11T12:12:41 | 2023-02-11T12:12:41 | 105,630,198 | 0 | 0 | null | 2023-02-15T20:50:12 | 2017-10-03T08:36:15 | Python | UTF-8 | Python | false | false | 7,519 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.5 on 2017-10-26 09:05
from __future__ import unicode_literals
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operatio... | [
"[email protected]"
] | |
dedfb1d33115d91728996501c76df18a4c9b57b9 | 4c5cbde4ff3af3a74aec4ecef3048c93dcd2e5e1 | /alphamind/data/engines/sqlengine.py | 9208a3c4821f3eff6c9e11b21af4b1cf02c0157a | [
"MIT"
] | permissive | GehirnW/alpha-mind | 7a6f049d65f5250b52440b35be9b673f03bbddad | 6eccbae8f9dadfabcbbf79e567a8d9ba53a9deaf | refs/heads/master | 2021-08-22T07:44:21.487565 | 2017-11-29T17:12:33 | 2017-11-29T17:12:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,890 | py | # -*- coding: utf-8 -*-
"""
Created on 2017-7-7
@author: cheng.li
"""
from typing import Iterable
from typing import List
from typing import Dict
from typing import Tuple
from typing import Union
import numpy as np
import pandas as pd
import sqlalchemy as sa
import sqlalchemy.orm as orm
from sqlalchemy import select,... | [
"[email protected]"
] | |
43c33309ccced89d49211dc1029a296d823cd9cf | d69a933c30e45d2bf97d4e01ca0a7956daebb089 | /src/rdfextras/sparql2sql/bison/QName.py | 90844bfe5fe52ca3574aa9b05adf6c9b94e334f9 | [] | no_license | agarrido/ro-manager | d83af466abbf9bb27952f238f4e036810a45e447 | 9229b435d67825ce71bb2a7bd9855119d4f02c58 | refs/heads/master | 2021-01-17T11:58:32.133634 | 2011-10-19T12:33:50 | 2011-10-19T12:33:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | from rdflib.term import Identifier
class QName(Identifier):
__slots__ = ("localname", "prefix")
def __new__(cls,value):
try:
inst = unicode.__new__(cls, value)
except UnicodeDecodeError:
inst = unicode.__new__(cls, value,'utf-8')
inst.prefix,inst.localname = val... | [
"[email protected]"
] | |
1ca683547437674bf5d5f76e7114ff272e379d08 | 3bb301688bfd5b31f762dbe3ffead0a345a09401 | /main.py | 7e1582dfd4c9db3de14ebdd93f488c96c0b2f990 | [] | no_license | wudangqibujie/3.-24 | 5a03ef051dfaf543d788382215610016a4514e44 | d29a0ed76ef5bb8c2b253f775d2ad0dad0b93f4c | refs/heads/master | 2021-04-15T14:39:11.034821 | 2018-03-24T12:38:13 | 2018-03-24T12:38:13 | 126,597,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | import master
import redis_or
import slave
from lxml import etree
# a=master.Master_Spider("shenzhen")
# html = a.get_html("https://www.xin.com/beijing/benchi/i3/")
# urls=a.get_detail_url(html)
q = redis_or.Redis_Data()
# for url in urls:
# q.set_into_data("test_car_urls",url)
for i in range(1,11):
... | [
"[email protected]"
] | |
098a19b480464b71fd30f91f96b12deccd2b1286 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/MT5_ID4146_for_PyTorch/transformers/src/transformers/models/hubert/__init__.py | ee06be214ac55b024c5eba4b6ae5f0f737581f55 | [
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 2,332 | py | # flake8: noqa
# There's no way to ignore "F401 '...' imported but unused" warnings in this
# module, but to preserve other warnings. So, don't check this module at all.
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except ... | [
"[email protected]"
] | |
a9b1421809818a57810ce42c5b458c0686040d19 | 2760effda15d884af413ca2a35809d03fabea377 | /lc-94.py | d3a1d65ec14db010713ce89de3a52e712e346568 | [] | no_license | UtsavRaychaudhuri/leetcode | 31943b98ad89d96d72ee4b6b1d1c8d70429d1e1f | 77a13580fd6231830558b1cf8c84f8b3b62b99d0 | refs/heads/master | 2020-11-27T18:02:23.712639 | 2020-09-29T19:39:49 | 2020-09-29T19:39:49 | 229,552,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 546 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def __init__(self):
self.my_list=[]
def inorderTraversal(self, root):
"""
:type root: TreeNod... | [
"[email protected]"
] | |
577c9dd804a8656c8b35188d217681bc4516d0ac | c981cc8c8dfe05fc5a57915e9b4d8479a9a6bbf2 | /py/lvmspec/bootcalib.py | 91003626b0f86de4e277dcc8432285166c3fbcfa | [
"BSD-3-Clause"
] | permissive | sdss/lvmspec | af25dae6ae87ea1355aa8f9075e2e174e4599eb7 | befd6991537c4947fdf63ca262937f2bb845148f | refs/heads/master | 2021-06-25T02:13:27.038449 | 2019-10-28T20:35:38 | 2019-10-28T20:35:38 | 102,514,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65,452 | py | """
lvmspec.bootcalib
==================
Utility functions to perform a quick calibration of DESI data
TODO:
1. Expand to r, i cameras
2. QA plots
3. Test with CR data
"""
from __future__ import print_function, absolute_import, division
import numpy as np
import copy
import pdb
import imp
import yaml
import glob
imp... | [
"[email protected]"
] | |
e5f75c282a91efceab67452309899a392be1f731 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/304/68337/submittedfiles/testes.py | ef1b112bb914f1155a9ca8d3cbd194b2db577544 | [] | 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 | 1,807 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
########AULA DO DIA 06/09/2017########
"""
idade = int(input('Digite sua idade: '))
print('A idade do indivíduo é',idade,'!')
if int(idade) < 18:
print('Você tem menos de 18 anos')
elif int(idade) == 18:
print('Você tem 18 anos')
else:
print('Você tem... | [
"[email protected]"
] | |
021870ba7e83cd49d113645f14d918b18cc9157b | a9063fd669162d4ce0e1d6cd2e35974274851547 | /test/test_inline_response20072_plan_base.py | a7ee91720c79393327a18f8d2b9bb2083c8bfc00 | [] | no_license | rootalley/py-zoom-api | 9d29a8c750e110f7bd9b65ff7301af27e8518a3d | bfebf3aa7b714dcac78be7c0affb9050bbce8641 | refs/heads/master | 2022-11-07T14:09:59.134600 | 2020-06-20T18:13:50 | 2020-06-20T18:13:50 | 273,760,906 | 1 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,508 | py | # coding: utf-8
"""
Zoom API
The Zoom API allows developers to safely and securely access information from Zoom. You can use this API to build private services or public applications on the [Zoom App Marketplace](http://marketplace.zoom.us). To learn how to get your credentials and create private/public appli... | [
"[email protected]"
] | |
85c0f14b868a22e23e5e3fd51fe3cc1e84759e72 | 5d3a6f5d1731d32479c3cd65748c58eefa614b07 | /tests/test_models.py | 8bef9f492bb207d37d8955f5b49e2f5693b413af | [] | permissive | timgates42/django-rest-localflavor | fde435f0f07775ccf48187f68e7f29ad9d2a793f | 844f86dbed5be126706b8d65678ed7e1fc9cfed0 | refs/heads/master | 2023-03-17T08:04:59.020065 | 2020-12-30T12:25:36 | 2020-12-30T12:25:36 | 246,013,020 | 0 | 0 | BSD-3-Clause | 2020-03-09T11:04:03 | 2020-03-09T11:04:02 | null | UTF-8 | Python | false | false | 377 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
test_django-rest-localflavor
------------
Tests for `django-rest-localflavor` models module.
"""
from django.test import TestCase
from rest_localflavor import models
class TestRest_localflavor(TestCase):
def setUp(self):
pass
def test_something(s... | [
"[email protected]"
] | |
1644cc8eed28893ea0314b6a735bb23190e45faa | 8a38bb4e40a78afc69eed06c3d88d45e5995a336 | /jax/experimental/gda_serialization/serialization.py | 438f108293d7b1dc0bc9a3f97dc7ce9aad711ed9 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | MichaelMarien/jax | 979a808ab6ea1698d2f03b1e9aeb826f59955543 | bf3c658114703e955f0b06642c53c6b64c5b2df3 | refs/heads/master | 2023-02-13T00:45:04.056207 | 2022-02-15T19:25:26 | 2022-02-15T19:25:26 | 216,413,853 | 0 | 0 | Apache-2.0 | 2023-02-06T07:02:48 | 2019-10-20T19:13:38 | Python | UTF-8 | Python | false | false | 4,185 | py | # Copyright 2021 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"[email protected]"
] | |
1fccb8fb07eda6f838b5b01854800df046dde04d | 01548099ec20976d31cca7a720102c11c56fc9be | /scripts/handle_mysql.py | e9b295986da2e42b703e109bceae62db0fa7fd71 | [] | no_license | OMEN001/Lemon_Api_Test | 6a27a9a9ccf28623006b465a107d53b17ad30404 | 373c9f1a1f1f3160bbe8edcc4b5740f9779947ae | refs/heads/master | 2023-02-25T22:31:39.824908 | 2021-01-24T14:22:52 | 2021-01-24T14:22:52 | 329,324,658 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,651 | py | # -*- coding: utf-8 -*-
# @Time : BaLiang
# @Author : 86187
import pymysql
import random
from scripts.handle_yaml import do_yaml
class HandleMysql:
def __init__(self):
# 创建连接对象
self.conn = pymysql.connect(host=do_yaml.read('mysql', 'host'), # mysql服务器ip或者域名
u... | [
"[email protected]"
] | |
5d8433435bfdcf5f87e885ef711187b442bf55db | ecd9cbfa2c30e1bc39cf442e3302c4cb3cf1ea03 | /bin/calculate_phylocsf.py | 767ee44799121f64903399942d84fbb0d1288a98 | [] | no_license | lixin856/proteogenomics-analysis-workflow | 087c84971ab8386ef06d031244da37fd895e82f5 | 0b0a02dfb93cc5806ef9c951d1674d82f454ec29 | refs/heads/master | 2023-05-01T17:13:44.293272 | 2021-05-11T07:23:14 | 2021-05-11T07:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,579 | py | #!/usr/bin/env python3
'''
the script is modified from Mikael Hussius @ SciLifeLab, https://github.com/hussius/gff-phylocsf-human
download the following bigwig files first
# wget https://data.broadinstitute.org/compbio1/PhyloCSFtracks/hg19/latest/PhyloCSF+0.bw
# wget https://data.broadinstitute.or... | [
"[email protected]"
] | |
490c3ff06f2d1f0ec763b0b33cbe461f3ce4c015 | c5c95aee3c04ab89f1aa3505f45768d15994be53 | /myScript.spec | bac2683370cf6c59b42d84e6187d2d5590501df2 | [] | no_license | snagavamsi123/Banking-Bot | 16f55a9cad523ca63fb1bf47a1a802236adcd164 | 9745e51a2c3c8a2cf614d3052a3577fce40a74c0 | refs/heads/master | 2023-03-27T18:54:35.585541 | 2021-04-03T11:31:49 | 2021-04-03T11:31:49 | 354,273,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['myScript.py'],
pathex=['C:\\Projects @tp\\Banking Bot\\BankingBot (1)\\BankingBot'],
binaries=[],
datas=[],
hiddenimports=['pandas._libs.tslibs.timedeltas'],
hookspath=[],
... | [
"[email protected]"
] | |
f9610abf23be1a086309f79e6e949e757fd77148 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/Remi05/RevengeOfPancakes.py | fd169dd8bcbd41b26d7a608b5f9048070362f40d | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 824 | py | import sys
import itertools
def formatOutput(n, result):
return 'Case #' + str(n) + ': ' + result + '\n'
file = open(sys.argv[1])
output = open('output.txt', 'w')
nTests = int(file.readline())
HAPPY = '+'
SAD = '-'
testNb = 1
for line in itertools.islice(file, 0, nTests+1):
stack = line... | [
"[[email protected]]"
] | |
494970626e046ba086e9f9147e5adae928f73dd6 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2464487_1/Python/Andrew510/prob1.py | c9fc74984a7c57248747efda818c0b13b2a96b5c | [] | 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 | 455 | py | #!/usr/bin/python
import math
import sys
infile = sys.stdin
T = int(infile.readline())
for n in range(T):
r, t = map(int, infile.readline().split())
b = 2*r - 1
xx = int(math.sqrt(b*b + 8*t))
sol = (-b + xx) / 4
#XXX
need = 2*sol*sol + sol*b
#print need, t
while need > ... | [
"[email protected]"
] | |
d103f044e4b88a589318d2a3495451a5c29d7e4e | b19f1a0ed3b26f0b5cbc2a0b7db2141edc955901 | /auto_test/Case_rbm/ftp_check_user/message.py | b6bd2eb9ef1d8977d9c1f2fee0b164c6ac7656c4 | [] | no_license | wangqian0818/auto_test_platform | 5a1f04cbf6007e6ff3dbb74e838981de53491526 | 64e32099ac2d79fb70d3727b085465aac0e49d3f | refs/heads/master | 2023-04-26T23:39:04.232001 | 2021-05-22T12:23:02 | 2021-05-22T12:23:02 | 368,116,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,098 | py | import time
from common import baseinfo
from ftp_check_user import index
datatime = time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))
proxy_ip = baseinfo.gwServerIp
ftp_ip = baseinfo.ftp_ip
username = index.username
case2_allow_user = index.case2_allow_user
addftp = {
'AddAgent':{
"MethodName":"AddAgent"... | [
"[email protected]"
] | |
1a8534c747ce64a7d53d310af6a6610ca5a802de | b7dd07413c05a13207988535b755b7d28dbc5663 | /Chapter_11/name_function.py | ff49f2a5f8b4c33b8d0e85a0b57ace81dc09e227 | [] | no_license | GrnTeaLatte/AlienInvasion | b671a87cd730c3d4b31a8e8d760d2d02d576cfb3 | d60e8e65adb79e54a1e1c579825827355a7e85ea | refs/heads/main | 2023-02-26T03:55:26.799446 | 2020-11-03T00:42:06 | 2020-11-03T00:42:06 | 336,111,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | def get_formatted_name(first, last, middle=''):
"""Generate a neatly formatted full name."""
if middle:
full_name = first + ' ' + middle + ' ' + last
else:
full_name = first + ' ' + last
return full_name.title()
| [
"[email protected]"
] | |
ba139b91da3b1c9b90d16903405e283f9fc3ed5e | 63b364ad79288be56c55c83b7d78785b60be3a2e | /ssm/core.py | 67c2527f8918067c2a1d811cbbe165edf9664ffd | [
"MIT"
] | permissive | quliuwuyihmy/ssm | 65b69ce0e62ac65a3b99f1d20fc92a99b6769492 | 7d4e8830cfc7f30f8e1429149e239b823478cc14 | refs/heads/master | 2020-04-01T22:42:07.580301 | 2018-10-17T19:55:51 | 2018-10-17T19:55:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,937 | py | import copy
import warnings
from functools import partial
import tqdm
import autograd.numpy as np
import autograd.numpy.random as npr
from autograd.scipy.misc import logsumexp
from autograd.misc.optimizers import sgd, adam
from autograd.tracer import getval
from autograd import grad
from ssm.primitives import hmm_nor... | [
"[email protected]"
] | |
8a3240dd4912d714f1b093941c011621f9e39570 | 1ee3dc4fa096d12e409af3a298ba01f5558c62b5 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/statistics/statistics.py | dc0d25842e6752902a80cfea75ca7c0ec4747a1a | [
"MIT"
] | permissive | parthpower/ixnetwork_restpy | 321e64a87be0a4d990276d26f43aca9cf4d43cc9 | 73fa29796a5178c707ee4e21d90ff4dad31cc1ed | refs/heads/master | 2020-07-04T13:34:42.162458 | 2019-08-13T20:33:17 | 2019-08-13T20:33:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,933 | py | # MIT LICENSE
#
# Copyright 1997 - 2019 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, modify,... | [
"[email protected]"
] | |
7cd000559400fe32194070d58464cca0aa9ce297 | bdc0b8809d52933c10f8eb77442bd0b4453f28f9 | /build/nav_msgs/rosidl_generator_py/nav_msgs/msg/_map_meta_data.py | df3dc46c9436798500483901a5ad8cffd380adde | [] | no_license | ClaytonCalabrese/BuiltRos2Eloquent | 967f688bbca746097016dbd34563716bd98379e3 | 76bca564bfd73ef73485e5c7c48274889032e408 | refs/heads/master | 2021-03-27T22:42:12.976367 | 2020-03-17T14:24:07 | 2020-03-17T14:24:07 | 247,810,969 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,517 | py | # generated from rosidl_generator_py/resource/_idl.py.em
# with input from nav_msgs:msg/MapMetaData.idl
# generated code does not contain a copyright notice
# Import statements for member types
import rosidl_parser.definition # noqa: E402, I100
class Metaclass_MapMetaData(type):
"""Metaclass of message 'MapMe... | [
"[email protected]"
] | |
8cf6fd89ee600098c8692b913af978be39e9889e | da9a5b53d41474dfc588e7b8a14e0192e81bdb47 | /GUI Programming with Python and Kivy BOOK/slugrace107/accident.py | 5dc107fe1f66fade5a6c85d846a0a1bddf0a81bc | [] | no_license | prospero-apps/python | 1c0bdded512c8e73360511118f7ba643772af774 | 67719d8c25f6f13f21ba0c260aadf43beb8de99d | refs/heads/master | 2021-11-28T16:22:55.108106 | 2021-11-17T22:13:24 | 2021-11-17T22:13:24 | 173,511,053 | 5 | 8 | null | null | null | null | UTF-8 | Python | false | false | 10,139 | py | # File name: accident.py
from abc import ABC, abstractmethod
from kivy.core.audio import SoundLoader
class Accident(ABC):
intro = 'BREAKING NEWS: '
def __init__(self, name,
headlines,
sound,
position = 0,
slug = None,
... | [
"[email protected]"
] | |
075ab43e3a0a41cba1a3ddc5516d4f2be053423a | bb2120075f05463160e7ad9a3986f18848733563 | /tests/test_vec2d.py | aabcdfc7d592e0bd89fc791e9d20daec1d79e802 | [
"MIT"
] | permissive | pablodiegoss/pytaon | b443d6a86773c691383aa607b7b1497bcfa7bc3b | 0c5def531249331871197377338471521cf8de2c | refs/heads/master | 2022-12-31T10:51:13.762691 | 2020-10-07T18:09:24 | 2020-10-07T18:09:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,504 | py | """
Módulo de testes para a classe Vec2d.
Utiliza os vetores u = <3,4>, v = <1,1>, ii=<1,0> e jj=<0,1> definidos em conftest.
"""
import pytest
import random
from math import pi, sqrt
from pytaon import Vec2d
def similar(x, y, tol=1e-6):
return abs(x - y) <= tol
class TestVec2d:
def test_angle(self, u, v)... | [
"[email protected]"
] | |
0e12c4c1d236ff6bcd3ab8cc64c14f44a5fe1dda | 32eee26d7747ab272a51e9918a5d2dc1bc10f98b | /src/classic_models/training/data_loader.py | a0b8aa0fbf9a94b169ecf4539bbf07dd73df33e9 | [
"Apache-2.0"
] | permissive | David082/daguan_competition_2021_codes | 5d61ec1c88c0be401212490ad2fc61cb4e5132b3 | b488dbab35d8914bc8f19a086b200ca2418d66f8 | refs/heads/master | 2023-07-26T23:36:53.290387 | 2021-09-13T11:36:16 | 2021-09-13T11:36:16 | 402,744,920 | 0 | 0 | Apache-2.0 | 2021-09-13T11:36:17 | 2021-09-03T11:21:40 | Python | UTF-8 | Python | false | false | 8,865 | py | import os
import copy
import json
import logging
import torch
from torch.utils.data import TensorDataset
from src.classic_models.training.utils import get_labels
logger = logging.getLogger(__name__)
class InputExample(object):
"""
A single training/test example for simple sequence classification.
Args... | [
"[email protected]"
] | |
d4da526b1b6a2167f6447cb28620af606f1feff5 | 58f38f1d69d4bfc650ad18e0045c36ae29c9d84a | /Django基础部分代码/chapter03/template_if_demo/template_if_demo/settings.py | 6480e6ae4c0c6464a93e7c33669bcc9dbf62e816 | [] | no_license | zjf201811/DjangoWebProject | 0670c61b89387901089bf67cf2423d9341f69913 | fab15784fb326ba4517951e180418ea54de03afe | refs/heads/master | 2020-04-18T12:03:08.798484 | 2019-05-06T03:59:46 | 2019-05-06T03:59:46 | 167,522,193 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,162 | py | """
Django settings for template_if_demo project.
Generated by 'django-admin startproject' using Django 2.0.2.
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/
"""
imp... | [
"[email protected]"
] | |
5e03884088e7112a4fe74cab90f05bd21fd61391 | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /DaVinciDev_v38r1p1/Phys/StrippingArchive/python/StrippingArchive/Stripping17/StrippingLambdac2PKPiForXSec.py | d220bbc13f2a976b45ccebde6e2a9d69ff4e73dd | [] | 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 | 7,182 | py | '''
Lambdac cross-section lines
Adapted to current stripping framework by P. Spradlin.
'''
__author__ = ['Francesca Dordei', 'Francesco Dettori', 'Patrick Spradlin']
__date__ = '2010/07/15'
__version__ = '$Revision: 1.3 $'
__all__ = ( 'StrippingLambdac2PKPiForXSecConf',
'makeLambdac2PKPi',
'd... | [
"[email protected]"
] | |
fe464ac5b360f982dd7e65eb0bbded553f4417b3 | 674a48ab817fb841417d72de7197a84b2d2b71b7 | /wav_mixed/wavelet_composite_no_overlap_parallax_dominant.py | 935c279e67758e93f07bf6484059e2f43710e447 | [] | no_license | cornkle/proj_CEH | 0d1556bbb5992e663257841ada333f32e6da3e22 | 790ad1aa7e7a8c6593a21ee53b2c946b2f7a356b | refs/heads/master | 2023-09-01T01:26:58.669089 | 2023-08-23T14:22:47 | 2023-08-23T14:22:47 | 55,054,763 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,560 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Aug 4 10:15:40 2016
@author: cornkle
"""
import numpy as np
import xarray as xr
from wavelet import util
from utils import u_arrays as ua
from scipy import ndimage
import matplotlib.pyplot as plt
import matplotlib
from eod import tm_utils
import matplotlib as mpl
import mul... | [
"[email protected]"
] | |
b6b66a4cef930e66539a9b62c88a7eb8347904bc | 55bcc8b6d5eb2878405f71ad5559cc3c80f5edc9 | /nlpAnylise/nlpctrTwo.py | 30735dfca102be6fd889b08ca03eb4fb2bde0a4d | [
"Apache-2.0"
] | permissive | chenwangwww/ppython | 2989026d5ef6d8a733e8b62ef6d4d7bcd2783b38 | 13a2f1193714133701743bfdf1a8add61a29dd4c | refs/heads/master | 2023-05-03T01:15:01.828534 | 2021-05-13T06:13:55 | 2021-05-13T06:13:55 | 343,254,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,587 | py | #主语
# 谓语
# 宾语
# 主语的定语数组(定语的状语+介宾关系数组)[attStru, ...]
# 宾语的定语数组(定语的状语+介宾关系数组)
# 谓语的状语数组(状语+介宾关系数组) [{'adv': 谓语的状语, 'pob': 介宾关系},...]
# 并列谓语数组(并列谓语的宾语、宾语的定语数组、宾语的定语的状语+介宾关系数组)
# [[并列谓语, 宾语, [attStru, ...]], ...]
# 并列主语数组(并列主语的定语数组、定语的状语+介宾关系数组)
# [[并列主语, [attStru, ...]], ...]
# 并列宾语数组(并列宾语的定语数组、定语的状语+介宾关系数组)
# ---------... | [
"[email protected]"
] | |
3718b80b3f210bd3e22c1c5a08f559e56bad00df | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp/sblp_ut=3.5_rd=0.5_rw=0.06_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=65/sched.py | c840f1d8aaa51cee48681dfe3e4420cbfb56d305 | [] | 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 | 401 | py | -S 0 -X RUN -Q 0 -L 4 86 250
-S 0 -X RUN -Q 0 -L 4 83 400
-S 0 -X RUN -Q 0 -L 4 72 400
-S 1 -X RUN -Q 1 -L 3 60 300
-S 1 -X RUN -Q 1 -L 3 58 175
-S 2 -X RUN -Q 2 -L 2 55 200
-S 2 -X RUN -Q 2 -L 2 48 200
-S 3 -X RUN -Q 3 -L 1 37 125
-S 3 -X RUN -Q 3 -L 1 31 125
-S 4 30 125
-S 4 26 1... | [
"[email protected]"
] | |
49ddd274a9c8562c1cb9e1fedb9abbbc9ea96f2f | 649bd422025e421d86025743eac324c9b882a2e8 | /exam/1_three-dimensional_atomic_system/dump/phasetrans/temp190_1000.py | 7fa715a9823977e00b8a404e111fa2054431a5e0 | [] | no_license | scheuclu/atom_class | 36ddee1f6a5995872e858add151c5942c109847c | 0c9a8c63d9b38898c1869fe8983126cef17662cd | refs/heads/master | 2021-01-21T10:52:28.448221 | 2017-03-07T23:04:41 | 2017-03-07T23:04:41 | 83,489,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68,714 | py | ITEM: TIMESTEP
1000
ITEM: NUMBER OF ATOMS
2048
ITEM: BOX BOUNDS pp pp pp
-1.6496218340970648e+02 2.1216218340975081e+02
-1.6496218340970648e+02 2.1216218340975081e+02
-1.6496218340970648e+02 2.1216218340975081e+02
ITEM: ATOMS id type xs ys zs
1671 1 0.804029 0.0718461 0.000845276
868 1 0.414143 0.0913991 0.00812121
131... | [
"[email protected]"
] | |
9075dd1014f657925ce2124e438848edeafc5986 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/network/aaz/latest/network/lb/inbound_nat_pool/_create.py | d0545878bf25bb35ef2c3afc23da82bba846e82e | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 121,667 | py | # --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------... | [
"[email protected]"
] | |
79daec963e10fb204d7c5820ecf5dfa742767c35 | 208bc8b87cb20fc6e57c8c8846cbe947b2eec1f3 | /pyocd/core/memory_interface.py | 0bd655b77628999f3cd190bde3c656e1c7f96830 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | canerbulduk/pyOCD | 28c545f25ef9b2949a1cd49c00faeeda986a26fe | a61e8b8dc2050309510d9fe7ca63680aafe06749 | refs/heads/main | 2023-08-24T21:10:52.427697 | 2021-11-09T15:13:48 | 2021-11-09T15:13:48 | 426,275,463 | 0 | 0 | Apache-2.0 | 2021-11-09T15:08:22 | 2021-11-09T15:08:21 | null | UTF-8 | Python | false | false | 4,837 | py | # pyOCD debugger
# Copyright (c) 2018-2020 Arm Limited
# SPDX-License-Identifier: Apache-2.0
#
# 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... | [
"[email protected]"
] | |
75738732f1f444b4a8f55db79e8378fbee80e1dc | 46577285b990bb2711cc718b99a24f78c53a7da7 | /파이썬 알고리즘_4기/자물쇠와 열쇠 사본/solution.py | 2f4518155d216a95b0238d57febf454450496e5c | [] | no_license | suwonraison900206/TIL | 890f02ff768c3a7d6ed647a27ba8da96b0cc06b4 | 2153623238bcc6965ec6983df9e7b207cc5aa361 | refs/heads/master | 2022-06-08T09:51:12.289608 | 2022-05-18T12:04:56 | 2022-05-18T12:04:56 | 235,004,266 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | def solution(key, lock):
answer = True
def turn_key(key):
key_lst = []
for i in range(len(key)):
a = []
for j in range(len(key)-1, -1, -1):
a.append(key[j][i])
key_lst.append(a)
return key_lst
lst = [[0] * (len(lock) * 3) for __ i... | [
"[email protected]"
] | |
bfd99852e69fe7ffaa50887a79dd2443937aae29 | 26f6313772161851b3b28b32a4f8d255499b3974 | /Books/CrackingtheCodingInterview/1708_CircusTowerLCCI.py | e0a049aefcf9028bc196ec5e00e061eeb6f66683 | [] | no_license | here0009/LeetCode | 693e634a3096d929e5c842c5c5b989fa388e0fcd | f96a2273c6831a8035e1adacfa452f73c599ae16 | refs/heads/master | 2023-06-30T19:07:23.645941 | 2021-07-31T03:38:51 | 2021-07-31T03:38:51 | 266,287,834 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,429 | py | """
有个马戏团正在设计叠罗汉的表演节目,一个人要站在另一人的肩膀上。出于实际和美观的考虑,在上面的人要比下面的人矮一点且轻一点。已知马戏团每个人的身高和体重,请编写代码计算叠罗汉最多能叠几个人。
示例:
输入:height = [65,70,56,75,60,68] weight = [100,150,90,190,95,110]
输出:6
解释:从上往下数,叠罗汉最多能叠 6 层:(56,90), (60,95), (65,100), (68,110), (70,150), (75,190)
提示:
height.length == weight.length <= 10000
来源:力扣(LeetCode)
链接:h... | [
"[email protected]"
] | |
89673a5966ae7356ef9eff43e2a87a6420672288 | ded10c2f2f5f91c44ec950237a59225e8486abd8 | /.history/3/ising2d_microstates_run_20200506001321.py | 7e09e413f76c69e16147063ce74e71d6947cc7bc | [] | no_license | jearistiz/Statistical-Physics-Projects | 276a86407b32ded4e06b32efb2fadbd8eff8daed | d9c5b16a50856e148dc8604d92b6de3ea21fc552 | refs/heads/master | 2022-11-05T03:41:23.623050 | 2020-06-28T06:36:05 | 2020-06-28T06:36:05 | 254,909,897 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,809 | py | from ising2d_microstates import *
################################################################################################
# PANEL DE CONTROL
################################################################################################
# Decide si corre algoritmo matrix squaring con aproximación de trotte... | [
"[email protected]"
] | |
65ac4195a5a3a9edf018eb3a67a7ce8033813f0e | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp/Wellfleet-TI-RUI-MIB.py | 4cb13fe3eac166af78ef58402f7f017088e83a71 | [
"Apache-2.0"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 3,080 | py | #
# PySNMP MIB module Wellfleet-TI-RUI-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-TI-RUI-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:35:28 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (defau... | [
"[email protected]"
] | |
103da40cbb391b6592cac3e559ff96bfbd0bcadf | dbe1f4110921a08cb13e22ea325d503bd5627195 | /chuhuo_2.7_clickhouse/bluedon/bdwafd/newscantools/plugins/ChckDeadLinksScript.py | 624b61e9bc42c1fa2dd55d579de07834790dac83 | [] | no_license | Hehouhua/waf_branches | 92dc1b1cbecba20f24ef6c7372dde7caa43f9158 | ca76f3a1ed8150b423474c9e37aee37841a5ee35 | refs/heads/main | 2023-01-07T11:33:31.667688 | 2020-11-03T06:58:33 | 2020-11-03T06:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from lib.common import *
import httplib2
import urlparse
import re
def run_url(http,ob,item):
try:
result=[]
url=item['url']
detail=u''
detail=detail.encode('utf8')
parse=urlparse.urlparse(url)
path=parse.path
if p... | [
"[email protected]"
] | |
46cff41cf2f4186df4da0d2a9bc67633ba43561b | 2436422e8d584f1dd9fc27a403e02a5571b033b2 | /server/rest/views.py | 2635af1999df24bf3511af493d4d3a08bd53aa07 | [] | no_license | yhs3434/Study-Room | 20657a7d068edbc24cb27ddef49c6e18890a0fcb | 8b6804f02ba47517aa8e725f5531b7e0e5ac7315 | refs/heads/master | 2020-04-04T17:19:28.954492 | 2020-02-05T17:09:43 | 2020-02-05T17:09:43 | 156,116,178 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,511 | py | from django.shortcuts import render
from django.http import HttpResponse, JsonResponse
from rest_framework.decorators import api_view
from rest_framework.renderers import JSONRenderer
from rest_framework.parsers import JSONParser
from .models import User, Group, Subject, Tendency
from .models import User_Group, User_Su... | [
"[email protected]"
] | |
5dbca4f77abbcf27decc3fc2b15a7295c0496a74 | 7fae23d734356d2016f13f231673ee9ea1b6efd5 | /catkin_ws/devel/lib/python2.7/dist-packages/gazebo_msgs/srv/_GetLinkState.py | f4f9e09cc9915ae8a183933b57272e86be88a698 | [] | no_license | Tidu09/Eyantra | 57c4fd01a39305ff01758ed021643d894e61e60f | 2bca1cdce1742e79f1550b832cda086dc22e946f | refs/heads/main | 2023-01-12T07:57:54.356909 | 2020-11-22T05:41:40 | 2020-11-22T05:41:40 | 306,226,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | /home/tidu/catkin_ws/devel/.private/gazebo_msgs/lib/python2.7/dist-packages/gazebo_msgs/srv/_GetLinkState.py | [
"[email protected]"
] | |
df6ed0a656f9ec810d286b827144bf78ca8db30a | 2da6133f3cd5c5fc19355292d60253b8c0dbcd49 | /.history/antz/views_20200404012439.py | 3dfd28a5bafc973ee616d892836f17b28524ad88 | [] | no_license | mirfarzam/python-advance-jadi-maktabkhooneh | b24f5c03ab88e3b12c166a439b925af92f50de49 | d9bcecae73fd992f1290c6fd76761683bb512825 | refs/heads/master | 2021-05-25T21:33:37.782734 | 2020-04-07T22:39:28 | 2020-04-07T22:39:28 | 253,927,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | from django.shortcuts import render
def index(request):
return
| [
"[email protected]"
] | |
2561a47c4d7afb0c4bf31d06192529c574366797 | 2fa016eeb6d4d4cc61fb0d43aa9f0fd1ad4ef2e3 | /python/函数/quadratic.py | 236d535788afe5e6a4ac3ede0dd3b40f57f946f1 | [] | no_license | juechen-zzz/learngit | 521e0d2c13d97248f6f8b1f2096f718dc497351b | 513d3e57f4e0fce72ca4ecd1f30be2d261ee9260 | refs/heads/master | 2021-07-04T17:20:58.456812 | 2020-08-27T02:08:05 | 2020-08-27T02:08:05 | 163,482,583 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | # -*- coding: utf-8 -*-
##一元二次方程求解
import math;
def quadratic(a,b,c):
m = b*b - 4*a*c;
x1 = (-b + math.sqrt(m))/(-2*a);
x2 = (-b - math.sqrt(m))/(-2*a);
return x1,x2
r = quadratic(1,6,9);
print(r); | [
"[email protected]"
] | |
f16744f50e18e59f1326b83f02cb864a6192f983 | d554b1aa8b70fddf81da8988b4aaa43788fede88 | /5 - Notebooks e Data/1 - Análises numéricas/Arquivos David/Atualizados/logDicas-master/data/2019-1/226/users/4137/codes/1836_2604.py | 2d39fb44f590d1ffec7a63f648064058d2d0a792 | [] | no_license | JosephLevinthal/Research-projects | a3bc3ca3b09faad16f5cce5949a2279cf14742ba | 60d5fd6eb864a5181f4321e7a992812f3c2139f9 | refs/heads/master | 2022-07-31T06:43:02.686109 | 2020-05-23T00:24:26 | 2020-05-23T00:24:26 | 266,199,309 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | from numpy import*
from numpy.linalg import*
n = array(eval(input("Pagamentos:")))
for i in range(shape(n)[0]):
print(max(n[i]))
| [
"[email protected]"
] | |
b0cf9febae60c6a97766768835e4a2dd26a5c061 | e24db52fb64c06e859e36122008fe27d7f2b7a81 | /model/fixed_length_pqueue.py | c1d5e99db2b86d1534e97d1221d61c221a000d05 | [] | no_license | zhuowangsylu/sklearn-sknnsuite | 1cd7f46d4f0f54190db8262a35e987cf103e62d4 | 22fe386be643e309d6491e9a408711e3472e396d | refs/heads/master | 2020-12-08T09:20:49.940874 | 2017-06-10T20:24:56 | 2017-06-10T20:24:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | import itertools
import heapq
class FixedLengthPQueue(object):
def __init__(self, length):
"""
:param length: max length of queue. Should be greater then 0
"""
self.pq = [] # list of entries arranged in a heap
self.entry_finder = {} # ... | [
"[email protected]"
] | |
55d758c86721b7858d56921aa5add18d6ae86097 | 6be845bf70a8efaf390da28c811c52b35bf9e475 | /windows/Resources/Python/Core/Lib/email/_parseaddr.py | 853096ece7f0c40a593e0fe0820a7588fca4ed1f | [] | no_license | kyeremalprime/ms | 228194910bf2ed314d0492bc423cc687144bb459 | 47eea098ec735b2173ff0d4e5c493cb8f04e705d | refs/heads/master | 2020-12-30T15:54:17.843982 | 2017-05-14T07:32:01 | 2017-05-14T07:32:01 | 91,180,709 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 14,230 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 3.6.0b2 (default, Oct 11 2016, 05:27:10)
# [GCC 6.2.0 20161005]
# Embedded file name: _parseaddr.py
"""Email address parsing code.
Lifted directly from rfc822.py. This should eventually be rewritten.
"""
__all__ = [
'mktime_tz',
'p... | [
"[email protected]"
] | |
5cb01c05221174a919960232eb3fdbabe308c355 | fb94faa56d5763607be6566925132f4957d751cf | /pyroms_toolbox/pyroms_toolbox/zview.py | 508a6b3ba23f1910f4321953d47cf1b4eeea0055 | [
"BSD-3-Clause"
] | permissive | csherwood-usgs/pyroms | 44e684ec0b20e242cf3743d128332be330209289 | be5e40a1720561bb18698f08a2c74b1906c73bab | refs/heads/master | 2021-01-24T23:51:00.789744 | 2013-12-30T20:46:15 | 2013-12-30T20:46:15 | 16,179,889 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,825 | py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib import cm, colors
from mpl_toolkits.basemap import Basemap
import pyroms
import pyroms_toolbox
def zview(var, tindex, depth, grid, filename=None, \
cmin=None, cmax=None, clev=None, clb_format='%.2f', \
fill=False, contour=False, d... | [
"[email protected]"
] | |
cf67d8266fd1c7b49d932b7a0d593bdefd4d6ab8 | a67a987ed078da0a1de2908c8c0e08070dee65b1 | /genice/lattices/sTprime.py | 16592d7d2a4fb71ae63cafd4bb23059714c8213e | [] | no_license | Python3pkg/GenIce | ef1ce7ee2997c10e08dde75ac36050a653cd4fc5 | 1e9458b7bf8e0fd2ad5d0c4f8987cea0ae7ca0b0 | refs/heads/master | 2021-01-21T17:31:51.595858 | 2017-05-21T14:09:32 | 2017-05-21T14:09:32 | 91,962,047 | 0 | 0 | null | 2017-05-21T14:09:28 | 2017-05-21T14:09:28 | null | UTF-8 | Python | false | false | 1,457 | py | """
Data source: Smirnov, G. S. & Stegailov, V. V. Toward Determination of the New Hydrogen Hydrate Clathrate Structures. J Phys Chem Lett 4, 3560-3564 (2013).
"""
density = 1.2 #default density
bondlen = 1.2 #bond threshold
celltype = "rect"
cell="""
4.04345643838 3.18400949048 3.18412710497
"""
#esti... | [
"[email protected]"
] | |
e02234ba0c5b8cd9dfb2f91ac9dc4b789beb104e | a0e5418d4f79587dd8ea6f9425a84ded3351d139 | /src/actions/conquer_action.py | 917e56d82ffd6f263150995370328040c06b611b | [] | no_license | thydungeonsean/Shinar_Genesis | db99f17c8d6afbf69a4950b46223b586e55c83cf | ac21f324c11db7c1a722f029a8186c5dc45c9097 | refs/heads/master | 2020-03-15T22:07:48.281124 | 2018-06-07T21:09:18 | 2018-06-07T21:09:18 | 116,487,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | from military_action import MilitaryAction
from src.enum.actions import CONQUER_ACTION
from map_tools import get_army_movement_options, get_conquered_points, in_player_domain
from src.enum.object_codes import *
class ConquerAction(MilitaryAction):
def __init__(self, state, player):
MilitaryAction.__init... | [
"[email protected]"
] | |
33f386fa4ae0cf685ab62da52fc7c8b759b4cd0d | 48c65330f577d11cedb29fd970aee35788ab72c6 | /model_flfact_tpv__eg_cupones.py | 6f28705bd6ef39f7f6e6d8c6c9eafc90d2a08dcc | [] | no_license | yeboyebo/elganso_sync | 309ecbaba3127493abe001cd1704cc7098234baa | 66f033a0e27a05c1fc6704ec6ba2bd474d204b7e | refs/heads/master | 2023-07-22T00:17:48.201252 | 2023-07-19T07:48:40 | 2023-07-19T07:48:40 | 173,096,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # @class_declaration interna_eg_cupones #
import importlib
from YBUTILS.viewREST import helpers
from models.flfact_tpv import models as modelos
class interna_eg_cupones(modelos.mtd_eg_cupones, helpers.MixinConAcciones):
pass
class Meta:
proxy = True
# @class_declaration elganso_sync_eg_cupones #
... | [
"[email protected]"
] | |
cfb35bf471134268b39e963d38b5d44009cbd811 | f92dff3781ce21b5a1fd18f30ab52a3976d254f5 | /backend/wallet/api/v1/urls.py | 4befa8658a0e2aa3f590ee382d837b3ab9016fa4 | [] | no_license | crowdbotics-apps/test-24800 | 41270507a49b02bc43fc89822b541cd99cb84005 | 6e7d5bb77af12c5d2c6e3f9f46b7d4d39d185267 | refs/heads/master | 2023-03-11T22:27:56.763867 | 2021-03-02T07:29:45 | 2021-03-02T07:29:45 | 343,671,693 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .viewsets import (
PaymentTransactionViewSet,
TaskerPaymentAccountViewSet,
TaskerWalletViewSet,
PaymentMethodViewSet,
CustomerWalletViewSet,
)
router = DefaultRouter()
router.register("taskerpaymentaccount",... | [
"[email protected]"
] | |
322a37cf0131836f7a7093c2ddcb5b15b9851a03 | a50e73d880fcea987cd2ddd4cc059a67cd7e22e0 | /day06/求区间的整数和函数版.py | 400f1072c91905899a2f52dd43cd1e51e98234c1 | [] | no_license | Icecarry/learn | 31bed60d5b61201d30bfbaaf520e4e0146e10863 | 2af301b92c9143def9b4c278024d6d2d6e21f0b9 | refs/heads/master | 2021-04-06T07:45:11.938995 | 2018-03-13T06:40:54 | 2018-03-13T06:40:54 | 124,759,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # 编写一段代码,求1-100之间所有整数的和
# def sum1(m, n):
# return summer
# sum1(1, 50)
# 用户输入
num1 = int(input("请输入起始数:"))
num2 = int(input("请输入结束的数:"))
# print("%d - %d 之间的所有整数和为:" % (num1, num2), sum1(num1, num2))
# 运用循环累加
summer = 0
for x in range(num2 + 1):
if x >= num1:
summer += x
else:
continue
pri... | [
"[email protected]"
] | |
419c2a5f336d46136d581b7847fb23c29400c2e3 | fe62d139012bdde8431b1b9c2b36b2a1491c6ad6 | /temps1series0213plot.py | 011f2b595599cef85f2ad0777247c5330ad45954 | [] | no_license | Gattocrucco/locs12 | 923467db0f49b3bf9e45c6a45c548751c972b130 | fa99528fadc2d8e745486e427319ec67527cf866 | refs/heads/master | 2023-03-28T21:40:22.385179 | 2021-04-08T21:52:11 | 2021-04-08T21:52:11 | 356,057,491 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,782 | py | import numpy as np
from matplotlib import pyplot as plt
from scipy import interpolate
import textbox
inphotons = 2 # in [3, 7, 10, 15, 20, 30, 40]
idcr = 1 # in [25, 250] cps/pdm
rate = 100 # cps
table = np.load('temps1series0213.npy')
figkw = dict(clear=True, sharex=True, figsize=[9, 7])
figs = []
axs = []
for wna... | [
"[email protected]"
] | |
4ac44ea7572c0f7f3ccbbb100cda5acbab08db23 | 70e75a0b0ca56fd8318606cc093e13fe3d700227 | /Programmers/2020_카카오_상반기_공채/src/3.자물쇠와열쇠.py | ac042fd66fc62a187dd6c8ce877832ab61ec41db | [] | no_license | hanameee/Algorithm | ba4632797ff8ea999f37d2578f32c3c00da02b0f | bf1203544e1b44d2bbf929fd729e263278260313 | refs/heads/master | 2023-02-04T19:22:44.845863 | 2023-01-27T17:05:26 | 2023-01-27T17:05:26 | 220,486,014 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,486 | py | from copy import deepcopy
def is_solved(graph, m, n):
for i in range(m-1, m-1+n):
for j in range(m-1, m-1+n):
if graph[i][j] != 1:
return False
return True
def rotate(key):
new_key = [[0]*len(key[0]) for _ in range(len(key[0]))]
for i in range(len(key)):
f... | [
"[email protected]"
] | |
8af58098a16f7c4b58e3049f703029d17be1afe1 | c475cd8531a94ffae69cc92371d41531dbbddb6c | /Projects/bullet3-2.89/examples/pybullet/gym/pybullet_data/laikago/laikago.py | 149c67714cd0441b6c31e290b2f2dca76dd6b712 | [
"Apache-2.0",
"LicenseRef-scancode-free-unknown",
"Zlib"
] | permissive | WolfireGames/overgrowth | 72d3dd29cbd7254337265c29f8de3e5c32400114 | 594a2a4f9da0855304ee8cd5335d042f8e954ce1 | refs/heads/main | 2023-08-15T19:36:56.156578 | 2023-05-17T08:17:53 | 2023-05-17T08:20:36 | 467,448,492 | 2,264 | 245 | Apache-2.0 | 2023-05-09T07:29:58 | 2022-03-08T09:38:54 | C++ | UTF-8 | Python | false | false | 3,056 | py | import pybullet as p
import time
p.connect(p.GUI)
plane = p.loadURDF("plane.urdf")
p.setGravity(0,0,-9.8)
p.setTimeStep(1./500)
#p.setDefaultContactERP(0)
#urdfFlags = p.URDF_USE_SELF_COLLISION+p.URDF_USE_SELF_COLLISION_EXCLUDE_ALL_PARENTS
urdfFlags = p.URDF_USE_SELF_COLLISION
quadruped = p.loadURDF("laikago_toes.urd... | [
"[email protected]"
] | |
2bb89f735b7789b3fe3c0e3995cc2bbf484329da | 986a8c617725cb707dd21c5bd1487dd9d46adaa0 | /mutation/example_2.py | a9d60729aa1d8151f26eee7697bd93132e37abce | [] | no_license | tohfaakib/python_playground | 6ee497cc7011be798e68f74ce331c24bd7a4edab | 13f2b2e179e2c4f4198ac99965c53e1ddcf436e0 | refs/heads/master | 2020-09-16T09:46:24.231034 | 2019-12-24T05:06:24 | 2019-12-24T05:06:24 | 223,732,363 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | def add_to(num, target=[]):
target.append(num)
return target
print(add_to(1))
# output: [1]
print(add_to(2))
# output: [1, 2]
print(add_to(3))
# output: [1, 2, 3]
def add_to_2(num, target=None):
if target is None:
target = []
target.append(num)
return target
print(add_to_2(1))
# output... | [
"[email protected]"
] | |
1aa3293f0f6dade194eb63b0104f6ef1b168dc27 | 654f400751dfb180a937e0f18f6b722119a5b4f1 | /tests/unitario/zend_django/parametros/test_parametro_models.py | 8756743f0a08311b89c4a2e539506ed56101ebbb | [] | no_license | imagilex/tereapps | fae8bcb18ad4276f09a6ef6887d0c685c7a5522a | 51d4da8dab1d184cb7dcfe144ac8d2405a179028 | refs/heads/main | 2023-07-04T12:19:32.943411 | 2021-08-10T19:41:00 | 2021-08-10T19:41:00 | 343,847,920 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,310 | py | import pytest
from django.contrib.auth.models import User
from django.test import TestCase
from zend_django.models import ParametroSistema
from zend_django.models import ParametroUsuario
from zend_django.models import ParametroUsuarioValor
from zend_django.parametros_models import PARAM_TYPES
from zend_django.paramet... | [
"[email protected]"
] | |
931b28badc8e29c492e27998419342b19c1db54c | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok_div/ch032/wiColorJ/Sob_k05_s001_EroM/pyr_Tcrop255_p60_j15/pyr_1s/L5/step09_1side_L5.py | 7219559e641a143505af65d8a2b9b3627b574ddb | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,182 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"[email protected]"
] | |
f8ea905f492854fd8ecc472ff5ac65bb0b66c53f | 2aa5d0ae8f74ebb0026c715f8c871388bed4427c | /nurse/tests.py | 71daa82205d698b13836a4c9030dcb85e07285e1 | [] | no_license | surajit003/valentis | 1614c46b77c5827ea187b47284f49d46584d7291 | 53fd97bd17f36ce14b2be28bb08d5b65abde8d82 | refs/heads/master | 2022-11-26T23:18:41.982907 | 2020-08-09T10:16:39 | 2020-08-09T10:16:39 | 285,679,287 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,319 | py | import unittest
from django.urls import reverse
from django.test import Client
from .models import Nurse
from django.contrib.auth.models import User
from django.contrib.auth.models import Group
from django.contrib.contenttypes.models import ContentType
def create_django_contrib_auth_models_user(**kwargs):
... | [
"[email protected]"
] | |
b113374c074f9ff48b5efb71f0783554bc365763 | 3dd23bd87205ccb425709f3ec9dea6341425526d | /examples/texture_font.py | 9b5c4485c97860269b20fc0031f5afa8e653cd47 | [
"BSD-3-Clause"
] | permissive | titusz/freetype-py | ff05faef474534c24f20eaf0f53c9ce091c8eef0 | 72ac4c442251bc2b0d5617c5703eb48d3348e804 | refs/heads/master | 2021-01-18T08:26:04.215075 | 2012-05-21T14:59:29 | 2012-05-21T14:59:29 | 2,360,409 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,752 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
#
# FreeType high-level python API - Copyright 2011 Nicolas P. Rougier
# Distributed under the terms of the new BSD license.
#
# ---------------------------------------------------------------... | [
"[email protected]"
] | |
fc593f18e687cb291d60be67c2b8038adda0ff0a | c3c7398ec14865ea34c7f03aa5e012ddb19f0d5b | /app/models.py | e35cb5a4cf60d86793de1766edc457b72c9f70fa | [] | no_license | mzm5466/blog | 0e022f0ce85a0079cb72ffd9f472c7684f94d9fb | 13625fe7028a0df11a30d7de32751e34d681de00 | refs/heads/master | 2021-01-23T16:51:58.296591 | 2018-11-17T06:05:50 | 2018-11-17T06:05:50 | 102,748,039 | 0 | 0 | null | 2018-11-12T23:28:57 | 2017-09-07T14:36:32 | JavaScript | UTF-8 | Python | false | false | 1,318 | py | #!/usr/bin/python
#-*- coding:utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from DjangoUeditor.models import UEditorField
from django.core.urlresolvers import reverse
KIND_CHOICES=(
('python','python'),
('c++','c++'),
('java','java'),
('javascript','javascript'),
('html','ht... | [
"[email protected]"
] | |
cc47cf7d57fa133086e9fd19950f7804b7feb362 | 2f2d2ceb7eb79e1d441ed278a92ea484dee8501e | /analysis/python/scattering/gb_scatt_fit.py | a4edccd2010cf300912f2ac406c7cc461027e8bc | [] | no_license | rtreharne/SZO | b20943b1afaa10f0e4fc032a1f2955eda4fd54b5 | 2fb71f85cd3c19f46782c528d7357a1ae5dc49e5 | refs/heads/master | 2021-01-10T04:28:13.662690 | 2015-12-17T10:16:28 | 2015-12-17T10:16:28 | 48,166,656 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,927 | py | #! /usr/bin/env python
from numpy import *
from pylab import *
from math import *
from pylab import *
from matplotlib.widgets import Slider
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import matplotlib.mlab as mlab
import tkFileDialog
import numpy as np
import nvsmob
import nelmin
from matplotlib.font_m... | [
"[email protected]"
] | |
21f24ea6ddca2a3fb1ffdbb15429ef55979c5e7d | 439f3bbc4b9a84b27052b2d1d5ea166bca2e1498 | /setup.py | dff003eddf7047204a0ae39f94ca37da91cabe76 | [
"Apache-2.0"
] | permissive | zeroyou/AndroidViewClient | dc52c821b11e96decf6066b670165c154101bc81 | 06cefca324d3ab255e4367990a5d1389b0a39d3d | refs/heads/master | 2022-12-25T00:57:29.432351 | 2020-09-20T00:41:47 | 2020-09-20T00:41:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | #!/usr/bin/env python
from setuptools import setup, find_packages
setup(name='androidviewclient',
version='20.0.0b5',
description='''AndroidViewClient is a 100% pure python library and tools
that simplifies test script creation providing higher level
operations and the ability of obtaining... | [
"[email protected]"
] | |
a55eb2498c338eae709672405c5607d332a40235 | c81d7dfef424b088bf2509a1baf406a80384ea5a | /venv/Lib/site-packages/whitenoise/middleware.py | f359321a7b53c64e2d2620204bde7381490358d6 | [] | no_license | Goutham2591/OMK_PART2 | 111210d78fc4845481ed55c852b8f2f938918f4a | cb54fb21ebf472bffc6ee4f634bf1e68303e113d | refs/heads/master | 2022-12-10T01:43:08.213010 | 2018-04-05T02:09:41 | 2018-04-05T02:09:41 | 124,828,094 | 0 | 1 | null | 2022-12-07T23:43:03 | 2018-03-12T03:20:14 | Python | UTF-8 | Python | false | false | 1,545 | py | from __future__ import absolute_import
from django.http import FileResponse
from whitenoise.django import DjangoWhiteNoise
class WhiteNoiseMiddleware(DjangoWhiteNoise):
"""
Wrap DjangoWhiteNoise to allow it to function as Django middleware, rather
than WSGI middleware
This functions as ... | [
"[email protected]"
] | |
34ae4058e8b7b076fbec0cd6c034ebe978798f7f | 1dacbf90eeb384455ab84a8cf63d16e2c9680a90 | /pkgs/tornado-4.4.1-py27_0/lib/python2.7/site-packages/tornado/test/tcpserver_test.py | c01c04ddfb2baf903a76fbf5dfa182c3c2d21172 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | wangyum/Anaconda | ac7229b21815dd92b0bd1c8b7ec4e85c013b8994 | 2c9002f16bb5c265e0d14f4a2314c86eeaa35cb6 | refs/heads/master | 2022-10-21T15:14:23.464126 | 2022-10-05T12:10:31 | 2022-10-05T12:10:31 | 76,526,728 | 11 | 10 | Apache-2.0 | 2022-10-05T12:10:32 | 2016-12-15T05:26:12 | Python | UTF-8 | Python | false | false | 1,361 | py | from __future__ import absolute_import, division, print_function, with_statement
import socket
from tornado import gen
from tornado.iostream import IOStream
from tornado.log import app_log
from tornado.stack_context import NullContext
from tornado.tcpserver import TCPServer
from tornado.testing import AsyncTestCase, E... | [
"[email protected]"
] | |
048da83cda17a4a360c09c39781995cf2d3af27f | 3691259d4be62b60d8d52f38b36d6a24e5fd4536 | /docs/examples/compute/cloudsigma/create_vlan_subscription.py | a29e2394267225a7fe1141d0ed6edefb84091bdc | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | chenjiang1985/libcloud | f385fac278777c2bbfedaf440d353c9ad9eb5c69 | 587212da626dfe0e2936737108bcc49d666cf4b4 | refs/heads/master | 2021-07-16T14:29:21.821490 | 2019-11-27T02:20:43 | 2019-11-27T02:20:43 | 222,844,781 | 1 | 2 | Apache-2.0 | 2020-10-27T22:06:36 | 2019-11-20T03:41:31 | Python | UTF-8 | Python | false | false | 376 | py | from libcloud.compute.types import Provider
from libcloud.compute.providers import get_driver
cls = get_driver(Provider.CLOUDSIGMA)
driver = cls('username', 'password', region='zrh', api_version='2.0')
subscription = driver.ex_create_subscription(amount=1, period='30 days',
... | [
"[email protected]"
] | |
58b1d1422474f6027aa3f69edddb42e44fbb2a52 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /life_and_point/public_number/go_person_with_week/time/small_fact/tell_high_number.py | 8f2dcc2a9607cc6373040ba43be5bb60c8ac08a7 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py |
#! /usr/bin/env python
def thing(str_arg):
way(str_arg)
print('seem_great_time')
def way(str_arg):
print(str_arg)
if __name__ == '__main__':
thing('be_work_to_next_time')
| [
"[email protected]"
] | |
f83fa49d5475aa107fb54496baa054affa656ec8 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adverbs/_truest.py | f2ef775949b9144ce37ca8397bf6342c1da23e39 | [
"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 | 230 | py |
from xai.brain.wordbase.adverbs._true import _TRUE
#calss header
class _TRUEST(_TRUE, ):
def __init__(self,):
_TRUE.__init__(self)
self.name = "TRUEST"
self.specie = 'adverbs'
self.basic = "true"
self.jsondata = {}
| [
"[email protected]"
] | |
f958909a7a6b280c944a1b5dcfc27981d588a125 | 4f01328f202107399b5676c82be9d8fc246a7cf9 | /torch2trt_dynamic/converters/new_ones.py | b45d45eeac35741c2040f6444c7c52a79a7cbd40 | [
"MIT"
] | permissive | JasonDu1993/torch2trt_dynamic | cccc6570ba68399e902346c06f362f80d38b6239 | 24bbad2ea4977bb88ce2ade433058becc6980c82 | refs/heads/master | 2022-12-29T17:10:03.714226 | 2020-10-11T07:24:37 | 2020-10-11T07:24:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | from torch2trt_dynamic.torch2trt_dynamic import *
@tensorrt_converter('torch.Tensor.new_ones')
def convert_new_ones(ctx):
input = ctx.method_args[0]
size = get_arg(ctx, 'size', pos=1, default=None)
dtype = get_arg(ctx, 'dtype', pos=2, default=input.dtype)
output = ctx.method_return
if isinstance... | [
"[email protected]"
] | |
df5fdd8502bafee22cd6422aadd62f41b6e93175 | ade047677ca695a8d27ff50645f1afe8cd1463df | /Entity.py | 74b0d2ab5a75cdc154d488c7aee0e35e161aff20 | [] | no_license | xuzhuo77/WorkSpace-FrameWork | 677f02eead801fb48e60d0411ea4dc5aa516af57 | 109c691c270020ef20f36f625c31166c49386351 | refs/heads/master | 2023-03-06T13:02:28.528231 | 2021-02-21T23:01:08 | 2021-02-21T23:01:08 | 337,577,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 947 | py | from sqlalchemy import Column, Integer, String,DateTime
from sqlalchemy.ext.declarative import declarative_base
import datetime
from Utils.UniqueIdUtil import gen_guid
base = declarative_base()
class Entity(base):
__abstract__ = True
# __tablename__ = "Entity"
id = Column(Integer, primary_key=True,autoi... | [
"[email protected]"
] | |
b4328f61f077d87793f58c3c84eb3f34d5b7bf26 | 607dc8df19fc5248f6289cdda97857b5d58ca16f | /smac/model/gaussian_process/kernels/rbf_kernel.py | 5bf20765886b3b5320be8d5b80fa8810a4ef6c68 | [
"BSD-3-Clause",
"LicenseRef-scancode-philippe-de-muyter",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | automl/SMAC3 | 7dce243a33023c52d6819deff966f7b502e90ed0 | 541ee7e0383b491b86d1a23dcff669f2efad616d | refs/heads/main | 2023-08-31T17:36:06.067579 | 2023-08-01T13:02:51 | 2023-08-01T13:02:51 | 65,900,469 | 943 | 259 | NOASSERTION | 2023-09-11T02:36:57 | 2016-08-17T10:58:05 | Python | UTF-8 | Python | false | false | 2,738 | py | from __future__ import annotations
import numpy as np
import scipy.optimize
import scipy.spatial.distance
import scipy.special
import sklearn.gaussian_process.kernels as kernels
from smac.model.gaussian_process.kernels.base_kernels import AbstractKernel
from smac.model.gaussian_process.priors.abstract_prior import Ab... | [
"[email protected]"
] | |
089cc627b0ee56e98b1c995bece77eec11b6c657 | 76e931912629c37beedf7c9b112b53e7de5babd7 | /1-mouth01/day14/exe01.py | e46e565f07c85e20b97d5613bbc0a84c048de75f | [
"Apache-2.0"
] | permissive | gary-gggggg/gary | c59ac21d8e065f296ff986d11a0e4cbf186a1bc4 | d8ba30ea4bc2b662a2d6a87d247f813e5680d63e | refs/heads/main | 2023-02-23T06:54:34.500683 | 2021-02-01T10:17:02 | 2021-02-01T10:17:02 | 334,905,744 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from module_exe import data
import module_exe
from module_exe import MyClass
c1 = MyClass()
c1.func02()
c1.func03()
print(data)
module_exe.func01()
| [
"[email protected]"
] | |
87ab68ad4f53266913c451ae4e3913018abb2b9c | 88c1f9ccb62e91d6b0574bcde1043921bdeb0126 | /lib_common/src/d1_common/type_conversions.py | 04d9b2723e4710e9fdf897485b15fcc9c73a449b | [
"Apache-2.0"
] | permissive | jevans97utk/d1_python | 83b8de8780287c655779844f367b9189413da074 | 3ac4d4f3ca052d3e8641a6a329cab526c8ddcb0d | refs/heads/master | 2020-05-21T01:16:50.677816 | 2019-04-22T16:09:44 | 2019-04-22T16:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,001 | py | #!/usr/bin/env python
# This work was created by participants in the DataONE project, and is
# jointly copyrighted by participating institutions in DataONE. For
# more information on DataONE, see our web site at http://dataone.org.
#
# Copyright 2009-2019 DataONE
#
# Licensed under the Apache License, Version 2.0 (t... | [
"[email protected]"
] | |
81026946ea3022346dd16b919458822b14a2eb72 | ac2c3e8c278d0aac250d31fd023c645fa3984a1b | /saleor/saleor/graphql/core/enums.py | 8046ea0ca5905d638c87ce50b2abe62ae9f3c1c4 | [
"BSD-3-Clause",
"CC-BY-4.0"
] | permissive | jonndoe/saleor-test-shop | 152bc8bef615382a45ca5f4f86f3527398bd1ef9 | 1e83176684f418a96260c276f6a0d72adf7dcbe6 | refs/heads/master | 2023-01-21T16:54:36.372313 | 2020-12-02T10:19:13 | 2020-12-02T10:19:13 | 316,514,489 | 1 | 1 | BSD-3-Clause | 2020-11-27T23:29:20 | 2020-11-27T13:52:33 | TypeScript | UTF-8 | Python | false | false | 5,088 | py | import graphene
from ...account import error_codes as account_error_codes
from ...app import error_codes as app_error_codes
from ...checkout import error_codes as checkout_error_codes
from ...core import JobStatus, error_codes as core_error_codes
from ...core.permissions import get_permissions_enum_list
from ...core.w... | [
"[email protected]"
] | |
9e3b1da5a3fe55cbd4b708c74114095a43a6ea6a | f1748434c3a06e6005618afc1c1b259ce2c5b115 | /Learn/DataStructure/Graph/MinimumSpanningTree/kruskal.py | 04faf853259776ac7c8a87b5d0e1da488a7ebcec | [] | no_license | yue-yue-haha/Algorithm | f5175ae0e1339dba98c1bbd1c6b238634ced969c | 1f7a120d262b80f2b4fc452a33f698ccdd9e1fad | refs/heads/master | 2023-03-12T22:53:32.873956 | 2021-02-19T02:29:14 | 2021-02-19T02:29:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 823 | py | from functools import cmp_to_key
from Learn.DataStructure.UnionFindSet.template import UnionFindSet
def kruskal(graph: dict):
tree, n = [], len(graph.get("nodes"))
ufs = UnionFindSet(n + 1)
graph.get("edges").sort(key=cmp_to_key(lambda a, b: a[2] - b[2]))
for start, end, weight in graph.get("edges"):
... | [
"[email protected]"
] | |
066e5664df0a50e956687b5f7e4c722d5ee4ec28 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/module_test1_20200420155724.py | ac696c9fa98c42a760ab8d2fbdbab7e551b5fc27 | [] | 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 | 52 | py | list_a = [1,2,7,4,5,6,3]
list_a.sort()
print(list_a) | [
"[email protected]"
] | |
2c99815d97b01dd33b9f52fda6a4d4f27a943fe2 | d3af72e4c623dffeda95e662d495a95c8f2e317a | /scripts/gene_checker/annotations/glimmer_annotation.py | 53a169406e4c8d9a608689a2828ffe6aab7b0b88 | [] | no_license | bioinf/bi2014-mycoplasma-genitalium | 0e2fbf095a461339064ea38f1be4586897f7c2ac | bd8eb82bb8d883faeb0492d74deb7a396577b782 | refs/heads/master | 2016-09-05T11:34:00.325602 | 2014-12-06T12:37:12 | 2014-12-06T12:37:12 | 24,504,082 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | __author__ = 'nikita_kartashov'
from generic_annotation import GenericAnnotation
class GlimmerAnnotation(GenericAnnotation):
def __init__(self, line):
super(GlimmerAnnotation, self).__init__()
self.__parse_annotation(line.split())
self._length = self.end() - self.start()
def __parse_... | [
"[email protected]"
] | |
795a88f021e67b571a81ee946bc1108a9a4f7243 | 336f11ee8934581f05ab620c5324c601ba864b05 | /python_unit_testing/Introduction/The possible test results/possible_test_results.py | 2f19b271168fe43ac4d72e877771ed0bb40c8b2c | [] | no_license | ancient-clever/sandbox | 01adeee2638a23533965cf57ca873a30e7dfad3d | 87dec3bf8860a67a36154ee5d7c826d919d3111b | refs/heads/master | 2022-05-17T04:49:54.703068 | 2020-01-19T17:44:27 | 2020-01-19T17:44:27 | 206,946,679 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | import unittest
class TestPossibleResults(unittest.TestCase):
def test_success(self):
pass
def test_failure(self):
self.assertEqual(True, False)
def test_error(self):
raise Exception
| [
"[email protected]"
] | |
83dde2b826ec281476013ca779abb5abbedd1de5 | 1617a9a9c92146bcdac89b5efb1ef0d18408160b | /contlab7/31/solution.py | f68d9662c990a36c62a4e6b0cab797991dbca222 | [] | no_license | LitRidl/checker-content | 1b1329b4462b87731e0755ab33480ff063a94a00 | b5d0456c8d4d28db6e6022e272a95a385f253797 | refs/heads/master | 2023-08-17T18:08:07.377680 | 2018-02-04T11:16:34 | 2018-02-04T11:16:34 | 120,077,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
u'''
Составить алгоритм кодирования слова в латинском алфавите по Цезарю со сдвигом, равным 13 (см. шифр rot13).
Входное слово представляет собой последовательность малых латинских букв a-z.
последовательность малых латинских букв, полученная из исходной путём применения шифра... | [
"[email protected]"
] | |
2efbeedfb1feb7576a382150e2e2754a57d664e2 | 003372621424577306aff35de88f7366fcc4baa0 | /sa_tools_core/libs/qcloud/qcloudsdkbmeip/EipBmBindVpcIpRequest.py | 65b528a54cc4dd083a6ef835f2228e02f6de0ceb | [] | no_license | stoensin/sa-tools-core | ab28ca5f7a8d5703952db9e6554b104682507964 | c0faeef4de8ba677817384d88cb107ad2308c03e | refs/heads/master | 2020-07-11T06:59:33.224305 | 2019-08-22T07:36:46 | 2019-08-22T07:36:46 | 204,472,284 | 1 | 0 | null | 2019-08-26T12:36:18 | 2019-08-26T12:36:18 | null | UTF-8 | Python | false | false | 852 | py | # -*- coding: utf-8 -*-
from ..qcloudsdkcore.request import Request
class EipBmBindVpcIpRequest(Request):
def __init__(self):
super(EipBmBindVpcIpRequest, self).__init__(
'bmeip', 'qcloudcliV1', 'EipBmBindVpcIp', 'bmeip.api.qcloud.com')
def get_eipId(self):
return self.get_params... | [
"[email protected]"
] | |
d70c87e261956e3d381b2fac3f1dc1fe02bde460 | 5d304c6ec0f01edee73e3b612f84307060c0da54 | /add_two_numbers.py | d9649cba9d5f094e5a6a7c4bdc848c78665f5ec0 | [] | no_license | xartisan/leetcode-solutions-in-python | cfa06b9e02f7ec0446cf6b71df4ea46caa359adc | 7e3929a4b5bd0344f93373979c9d1acc4ae192a7 | refs/heads/master | 2020-03-14T17:10:07.957089 | 2018-07-29T10:11:01 | 2018-07-29T10:11:01 | 131,713,447 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,340 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x, next_node=None):
self.val = x
self.next = next_node
def __repr__(self):
rv = str(self.val)
if self.next is not None:
rv += ' -> ' + repr(self.next)
return rv
class Solution:
de... | [
"[email protected]"
] | |
1d7d09411e8e1745eeb4db330972104eba8afa79 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/WR5000/WR5000_Zp1000_HN100_mumu_cfg.py | 59e93042f1fff94bb505ee06a633c5fd7a303381 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 6,270 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: Configuration/GenProduction/python/ThirteenTeV/WRToNuMuToMuMuJJ_MW-3400_MNu-1700_TuneCUETP8M1_13TeV-pythia8_cfg.py --fileout step1.root --m... | [
"[email protected]"
] | |
55b7536a054de0a55848639515962924284c30e3 | 4dec0f934760ca69e40b62fa56b37a1aa3918b24 | /test/test_web_deface_utils.py | 418c9c67aa4f0448c4eb77b11bd8eeb6df758bdc | [
"MIT"
] | permissive | rejahrehim/SecureTea-Project | 28ebc89f27ed59e3845b8c82f9316108cda40a24 | 43dec187e5848b9ced8a6b4957b6e9028d4d43cd | refs/heads/master | 2020-03-27T12:36:21.779426 | 2019-09-02T16:01:55 | 2019-09-02T16:01:55 | 146,556,097 | 1 | 0 | MIT | 2018-08-29T06:35:54 | 2018-08-29T06:35:53 | null | UTF-8 | Python | false | false | 1,228 | py | # -*- coding: utf-8 -*-
import unittest
from securetea.lib.web_deface import utils
try:
# if python 3.x.x
from unittest.mock import patch
except ImportError: # python 2.x.x
from mock import patch
class TestUtils(unittest.TestCase):
"""
Test class for SecureTea Web Deface Utils.
"""
@patc... | [
"[email protected]"
] | |
b53fb9567516569729de2c7e54c259ae8eb494da | c53480e8d0fa431a3ac90e713010fae44e8db1a8 | /maskara/gallery/migrations/0032_auto__add_spaceimage__add_spacevideo.py | 1aac354e39aa52798ab2f7e8a4931575710530ca | [] | no_license | batpad/gallerym | 6b5fd2e89ebade106e4c9f5c917c11791b156d08 | 3e1c17dc30b5b23ab40772b6b88c6d1f05393cf2 | refs/heads/master | 2016-09-06T11:36:02.461954 | 2014-10-10T07:48:49 | 2014-10-10T07:48:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34,066 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'SpaceImage'
db.create_table('gallery_spaceimage', (
('id', self.gf('django.db.mo... | [
"[email protected]"
] | |
3170717deab4907adb3968420a93b4be31911af6 | 303a4d41da8f2cd2000630ff30424d2875490e67 | /hotglycol/genangletarg.py | e3e3568faeabd27bb319e698874ecd591da9fe3c | [] | no_license | noobermin/sharks | beb1d3d6a593e8d62f3d7416697d4de1fe9558b1 | af87113781eb67af45a9c2f79b73b1512ae0a1fa | refs/heads/master | 2022-05-10T11:55:17.200591 | 2021-09-30T14:27:22 | 2021-09-30T14:27:22 | 19,997,024 | 0 | 2 | null | 2016-05-20T19:27:49 | 2014-05-20T20:49:16 | Common Lisp | UTF-8 | Python | false | false | 1,559 | py | #!/usr/bin/env python2
import numpy as np;
def mk45(dim=[-5e-4,5e-4,-5e-4,5e-4,],
N0=1.08e22,
width=0.5e-4,
dropcorners=False,):
xlim = dim[:2];
ylim = dim[2:];
def _corner(x,y,good):
ret = y < width/np.sqrt(2) + ylim[0] -(x-xlim[0])
ret|= y > -width/np.sqrt(2) + ... | [
"[email protected]"
] | |
3bd3248d2c6bde2df7607b256dd029658457051f | aef69557d8960205a780e61b7c2dfbb1d7733449 | /Code/SarahBeth/tests.py | 7bbcce152ea94f86ce923360be692fa4a260987c | [] | no_license | sbtries/class_pandaaaa | 579d6be89a511bdc36b0ce8c95545b9b704a734a | bbf9c419a00879118a55c2c19e5b46b08af806bc | refs/heads/master | 2023-07-18T14:18:25.881333 | 2021-09-02T22:48:29 | 2021-09-02T22:48:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | # card1= input('what's your first card?')
# card2= input('what's your first card?')
# card3= input('what's your first card?')
cards2 = ['q', '1', '2']
| [
"[email protected]"
] | |
f91f6579324bac309cb6e4d1a8a4bdeb440f516a | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/l2/egrbytespart1h.py | 69cf9a1ee5ebf125e11163cd4ef07ba94c3b17cf | [] | no_license | aperiyed/servicegraph-cloudcenter | 4b8dc9e776f6814cf07fe966fbd4a3481d0f45ff | 9eb7975f2f6835e1c0528563a771526896306392 | refs/heads/master | 2023-05-10T17:27:18.022381 | 2020-01-20T09:18:28 | 2020-01-20T09:18:28 | 235,065,676 | 0 | 0 | null | 2023-05-01T21:19:14 | 2020-01-20T09:36:37 | Python | UTF-8 | Python | false | false | 22,891 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2019 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"[email protected]"
] | |
35e94a777c8f8bc8a326cf67aab84070f19105e0 | e4dcd63ed6b66b2cc164e4a9667e163e9c40601c | /virtual/bin/confusable_homoglyphs | 8f58c52f317751308d6728b3aa7fd3e3d40eeb4d | [] | no_license | kepha-okari/tabler | 8e95803843f5fd9a8726e4ee85a57b48a77d2a2e | f682a77d581834151f723cdd2de2a37353369047 | refs/heads/master | 2022-12-22T21:52:45.879263 | 2018-07-18T15:45:52 | 2018-07-18T15:45:52 | 136,938,470 | 0 | 0 | null | 2022-12-08T00:59:12 | 2018-06-11T14:32:53 | Python | UTF-8 | Python | false | false | 269 | #!/home/rkepha/Documents/hir/timetabler/virtual/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from confusable_homoglyphs.cli import cli
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(cli())
| [
"[email protected]"
] | ||
15e3e7fd280ed96ea086aab5efc0b2fc21e4b360 | a904c2fd006d6652d28af8eb8634d29d66d0024f | /net/PRESUBMIT.py | e82166c7b55e59fde047d70a83ff671f5f61f6a2 | [
"BSD-3-Clause"
] | permissive | esprehn/mojo | 1cba014abe08168509ebb202dd4b032f61f06713 | e50a99d5c5b046aa24a5415744f6661cb12a66c3 | refs/heads/master | 2020-12-01T13:05:42.886923 | 2014-10-30T22:23:04 | 2014-10-30T22:23:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | # Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Chromium presubmit script for src/net.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details on the presubmit ... | [
"[email protected]"
] | |
0872b8ae6fd54a0177c8e8bc0a1dcb97b506dd72 | 946a9dcf4e644f0d3f806f016a23ae8d96095082 | /LeetCode/DP/375_GuessNumberHigherOrLower2.py | 2ac71345a5c550d6ff8bd1d9657c2b24b4745021 | [] | no_license | HzCeee/Algorithms | 3dea898f071f4103ca3eb038f63b01ba4ba95383 | e05f29071d0badd081535e773f43ebc303aa12c4 | refs/heads/master | 2018-10-20T21:54:37.154631 | 2018-10-11T20:46:34 | 2018-10-11T20:46:34 | 116,142,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 667 | py | class Solution(object):
def getMoneyAmount(self, n):
"""
:type n: int
:rtype: int
"""
# dp[low][high] refers to the minimum money need to guarantee a win within range [low, high]
# dp[low][high] = min([guess + max(dp[low][guess], dp[guess][high]) for guess in range(lo... | [
"[email protected]"
] | |
e18292f3203af3b07da2eabe2cbae4e3147fd60b | b6be7bef4c8ffd48c3a1c89fa2ad84bc8d042eb7 | /Inception.py | 57388fe850812ec59514d31ce4604505005ffc93 | [] | no_license | Wushaoyong/tensflowtest | 48e747c1a6cdd7374313013d43cb095a97f3bc34 | f393a945e733fcfe0c63f5dcfffc44c60d2a5862 | refs/heads/master | 2023-01-10T01:47:38.764265 | 2020-11-10T02:26:16 | 2020-11-10T02:26:16 | 305,975,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,758 | py | import tensorflow as tf
with tf.variable_scope('conv7') as scope:
input_image = pool6
input_1 = 110
input_2 = 120
input_3 = input_2 * 3
weights = tf.get_variable('weights',shape=[3, 3, input_1, input_2],
dtype=tf.float32,
initializer=tf.truncated_normal_initializer(stddev=0.05, dtype=tf.float32))
... | [
"[email protected]"
] | |
b0a7dbf1e9f1a38e8c3c7c3f7498e5b970e34a7f | d92fc7ba34412e8a1633b87bea5761c0bdbf196e | /utils/OfflineDataLoader.py | 4a6d8b8f8004d9e9b3de5a094691bbe7da61e89e | [
"MIT"
] | permissive | yigitozgumus/PolimiRecSys2018 | d37876c8d678aecc52d8c4558f2b6d40d1a03d83 | 1e63f46b83bd52399dc600b1abbf254bf47db094 | refs/heads/master | 2023-02-17T16:24:39.853937 | 2022-08-13T08:24:13 | 2022-08-13T08:24:13 | 152,449,643 | 0 | 0 | MIT | 2023-02-10T22:42:06 | 2018-10-10T15:49:36 | Python | UTF-8 | Python | false | false | 2,954 | py | from utils.util import working_directory
import os
import re
import models as m
class OfflineDataLoader(object):
def __init__(self,model_folder="saved_models",parameter_folder="saved_parameters"):
super(OfflineDataLoader, self).__init__()
self.repository = "tuned_parameters"
self.model_fold... | [
"[email protected]"
] | |
dde8ce33f41abb767cc6c00643052aeb98027f76 | 2c74bb301f1ed83b79254944183ac5a18a639fdf | /tests/components/modern_forms/test_init.py | fd6ff49547078e61218c25b6e6b05643814c2186 | [
"Apache-2.0"
] | permissive | Adminiuga/home-assistant | 5bec93007ddac1a268cc359bf7e48530c5f73b38 | dcf68d768e4f628d038f1fdd6e40bad713fbc222 | refs/heads/dev | 2023-02-22T22:03:31.013931 | 2022-11-09T00:27:20 | 2022-11-09T00:27:20 | 123,929,062 | 5 | 4 | Apache-2.0 | 2023-02-22T06:14:31 | 2018-03-05T14:11:09 | Python | UTF-8 | Python | false | false | 1,766 | py | """Tests for the Modern Forms integration."""
from unittest.mock import MagicMock, patch
from aiomodernforms import ModernFormsConnectionError
from homeassistant.components.modern_forms.const import DOMAIN
from homeassistant.config_entries import ConfigEntryState
from homeassistant.core import HomeAssistant
from home... | [
"[email protected]"
] | |
3a801ecc0c5fdc7891d75192545846fbb79e28f5 | 58ff923a903cf2393c87988559e55ab6d0fd5be2 | /venv/lib/python3.9/site-packages/evalml/tests/component_tests/test_estimators.py | a34b16f71e38c2eb5f4463b1ed57a3b3d6748c16 | [] | no_license | gurmeet1109/AVJat0621 | 9930d08b9ae719918ee1e53b673e541c7900f940 | e845a4a5b48f5a63fd2833fbd18b91133d5ca736 | refs/heads/master | 2023-06-11T21:01:21.686729 | 2021-07-03T14:21:51 | 2021-07-03T14:21:51 | 382,629,300 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,867 | py | import string
import numpy as np
import pandas as pd
import pytest
import woodwork as ww
from evalml.exceptions import ComponentNotYetFittedError
from evalml.model_family import ModelFamily
from evalml.pipelines.components import Estimator
from evalml.pipelines.components.utils import (
_all_estimators_used_in_se... | [
"[email protected]"
] | |
1608fa8e1c84cd41b61e54ffed640e62909cec44 | c1f15f5834062b0d5a6d6857a89124f3f114b2bd | /quick/features.py | fea39d60247ca6a9a0113700e9d9fa359c349cb5 | [] | no_license | msoedov/quick.py | 4bd3294daf8136989bbb0d2316224360657330c3 | 5c89c11c7f6bc1fabbee757a8bb217dea08e359c | refs/heads/master | 2023-01-09T20:20:49.811969 | 2020-04-13T12:46:52 | 2020-04-13T12:46:52 | 44,098,220 | 15 | 4 | null | 2022-12-26T20:21:03 | 2015-10-12T09:41:22 | Python | UTF-8 | Python | false | false | 4,243 | py | import functools
import sys
import unittest
from collections import namedtuple
from copy import deepcopy
from typing import Any, Callable, List
from .common import *
from .core import Schema, flatten, generate
from .shrink import shrink
config = {"max_count": 100, "max_scale": sys.maxsize}
experiment = namedtuple("ex... | [
"[email protected]"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.