blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | 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 684
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 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0266bfd3dabb66fbc32785187d7dd62dcd182a82 | 5399dd4580ea3f528753bc8b52a981743d62f8bb | /ML/m39_pickle.py | 957e4037bd4d833cbf848e3087f487fa8f253ce3 | [] | no_license | iwillbeaprogramer/Study | 3ac7c118ffe3981d78b4ad263cb62432eae13970 | 3bfe571da5bbfc545b994e5878e217f9306bde14 | refs/heads/main | 2023-05-07T16:31:05.564973 | 2021-05-27T14:50:00 | 2021-05-27T14:50:00 | 324,044,441 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,161 | py | # eval_set
from xgboost import XGBClassifier,XGBRegressor
from sklearn.datasets import load_boston, load_breast_cancer
from sklearn.model_selection import train_test_split
import numpy as np
from sklearn.metrics import r2_score,accuracy_score,mean_squared_error
datasets = load_boston()
x = datasets.data
y = datasets.... | [
"wisixicidi@gmail.com"
] | wisixicidi@gmail.com |
2816391722086df3dfeffc573cf0446551c2149b | 4bed9030031fc99f6ea3d5267bd9e773f54320f8 | /sparse/repos/MaayanLab/clustergrammer-widget/setup.py | 0dd34fb3172e27c6f17267a1c21facac86ecae9f | [
"BSD-3-Clause"
] | permissive | yuvipanda/mybinder.org-analytics | c5f4b939541d29727bc8d3c023b4d140de756f69 | 7b654e3e21dea790505c626d688aa15640ea5808 | refs/heads/master | 2021-06-13T05:49:12.447172 | 2018-12-22T21:48:12 | 2018-12-22T21:48:12 | 162,839,358 | 1 | 1 | BSD-3-Clause | 2021-06-10T21:05:50 | 2018-12-22T20:01:52 | Jupyter Notebook | UTF-8 | Python | false | false | 5,515 | py | from __future__ import print_function
from setuptools import setup, find_packages, Command
from setuptools.command.sdist import sdist
from setuptools.command.build_py import build_py
from setuptools.command.egg_info import egg_info
from subprocess import check_call
import os
import sys
import platform
here = os.path.d... | [
"yuvipanda@gmail.com"
] | yuvipanda@gmail.com |
73c6fbe202adb37cfaa60701dbf155423a36249b | a775bb0ef2347a91aa1e6236f0e6eae6512a84ad | /src/robosub2019/armer.py | cbf0ec2d09da56ca925e8bb07392e777ba257059 | [] | no_license | Tartan-AUV/tartan-sub | 66376e163681bd7dac47c62e41669c0c842badc0 | 0a05156a887cdd6467813a358973cc23e6e55227 | refs/heads/master | 2020-04-06T16:45:04.396871 | 2019-10-19T17:46:37 | 2019-10-19T17:46:37 | 157,632,649 | 0 | 4 | null | 2019-11-03T20:26:47 | 2018-11-15T01:10:48 | Python | UTF-8 | Python | false | false | 855 | py | #!/usr/bin/env python
import rospy
from std_msgs.msg import Bool
class Armer(object):
def __init__(self, run_config):
self.config = run_config
self.pub = rospy.Publisher(self.config.arming_topic, Bool, queue_size=1)
self.sub = rospy.Subscriber(self.config.arming_topic, Bool, self.callback)... | [
"you@example.com"
] | you@example.com |
0b330a3afbbf55128aa6e962b16c14c7c7eaf126 | 99b0631baa2fd9ab2455d848b47febf581916272 | /study_code/learn_nonlocal.py | 108dc21fa3015ab9051ced4645bbf529a466aeb5 | [] | no_license | seceast/PyProjects | a934e366cb619f2610d75b9a0fb47d818814a4de | 7be7193b4126ce920a3d3ffa4ef5d8743b3fa7d1 | refs/heads/master | 2023-03-07T22:23:21.229489 | 2021-02-25T05:37:58 | 2021-02-25T05:37:58 | 265,480,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | """
-*- coding: utf-8 -*-
@author: yangyd
@file: learn_nonlocal.py
@time: 2019/10/14 0014 14:33
"""
def outner():
b = 10
def inner():
# 声明外部函数局部变量,不声明可以使用b但是无法修改b
nonlocal b
print(f'old_var = {b}')
b = 20
print(f'new_bar = {b}')
inner()
outner()
| [
"yangyadong25@163.com"
] | yangyadong25@163.com |
10dc28f9618ba9669fbf73bb52f0188b41ca1653 | 4bc2d855558ccb962991f997e9779919031687dd | /capstone/causalmodel/migrations/0026_suggestedintervention_is_priority.py | fa89dff57a9a21ae61b0079b3a2bd148a737e427 | [] | no_license | jmblontoc/Likha-Capstone | 80081e44b7ad6457eb776432e623c6db8b7a17e2 | e1c32911b58cd1419c8e1a554ac32210456d201d | refs/heads/master | 2022-12-10T03:26:32.946638 | 2018-12-09T04:33:10 | 2018-12-09T04:33:10 | 134,726,142 | 0 | 1 | null | 2022-11-25T23:52:42 | 2018-05-24T14:21:36 | Python | UTF-8 | Python | false | false | 413 | py | # Generated by Django 2.1b1 on 2018-11-01 11:25
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('causalmodel', '0025_suggestedintervention'),
]
operations = [
migrations.AddField(
model_name='suggestedintervention',
... | [
"37819032+jmblontoc@users.noreply.github.com"
] | 37819032+jmblontoc@users.noreply.github.com |
3f52cb7f354134071ca7b9aa0ee2b810466b0d7b | d76cf9484f93c1822c71c87980e6f76a2c0f5786 | /application/api/superclass/superclasses.py | e73ead1271653b8a6b572471b3917a103589597d | [] | no_license | chris-hamberg/twitter | a02b0278eab609d696a84f39ea771a5936379561 | b806de4e073a0f4791cde93111c69c4d44b6844a | refs/heads/master | 2022-12-14T19:06:26.221176 | 2019-12-13T21:44:23 | 2019-12-13T21:44:23 | 172,611,261 | 0 | 0 | null | 2022-12-08T04:51:18 | 2019-02-26T01:02:13 | Python | UTF-8 | Python | false | false | 4,721 | py | try:
from twitter.application.api.superclass.abstract_base_class import AbstractBase
from twitter.application.subprocess.base64encode import base64encode
from twitter.application.subprocess.connection import requests
except ModuleNotFoundError as main:
from application.api.superclass.abstract_base_class... | [
"chris.hamberg@programmer.net"
] | chris.hamberg@programmer.net |
387a27431bd3d1af9f529f413813a0a29f54f3d5 | 9cd180fc7594eb018c41f0bf0b54548741fd33ba | /sdk/python/pulumi_azure_nextgen/logic/v20150801preview/get_integration_account_certificate.py | 8d5432fc9120d562473d196d12733d96b4a0883b | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | MisinformedDNA/pulumi-azure-nextgen | c71971359450d03f13a53645171f621e200fe82d | f0022686b655c2b0744a9f47915aadaa183eed3b | refs/heads/master | 2022-12-17T22:27:37.916546 | 2020-09-28T16:03:59 | 2020-09-28T16:03:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,163 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
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... | [
"agneev@kth.se"
] | agneev@kth.se |
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... | [
"renze@rnplus.nl"
] | renze@rnplus.nl |
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... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
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... | [
"idmann509@gmail.com"
] | idmann509@gmail.com |
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... | [
"rahul@di.ku.dk"
] | rahul@di.ku.dk |
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
... | [
"malikali@stanford.edu"
] | malikali@stanford.edu |
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... | [
"tabletenniser@gmail.com"
] | tabletenniser@gmail.com |
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... | [
"alex.mon1989@gmail.com"
] | alex.mon1989@gmail.com |
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... | [
"gk-github@ninebynine.org"
] | gk-github@ninebynine.org |
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):
... | [
"noreply@github.com"
] | wudangqibujie.noreply@github.com |
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 ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
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... | [
"utsav@pdx.edu"
] | utsav@pdx.edu |
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... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
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... | [
"github@rootalley.com"
] | github@rootalley.com |
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... | [
"me@gilsondev.in"
] | me@gilsondev.in |
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, ... | [
"no-reply@google.com"
] | no-reply@google.com |
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... | [
"1668317403@qq.com"
] | 1668317403@qq.com |
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... | [
"jorrit.boekel@scilifelab.se"
] | jorrit.boekel@scilifelab.se |
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=[],
... | [
"snagavamsi123@gmail.com"
] | snagavamsi123@gmail.com |
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... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
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 > ... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
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"... | [
"wangqianjob0818@163.com"
] | wangqianjob0818@163.com |
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()
| [
"audreyfu14@gmail.com"
] | audreyfu14@gmail.com |
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... | [
"calabreseclayton@gmail.com"
] | calabreseclayton@gmail.com |
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)... | [
"fabiomacedomendes@gmail.com"
] | fabiomacedomendes@gmail.com |
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... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
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, ...]], ...]
# 并列宾语数组(并列宾语的定语数组、定语的状语+介宾关系数组)
# ---------... | [
"chenwangwww@sina.com"
] | chenwangwww@sina.com |
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... | [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
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... | [
"flit@me.com"
] | flit@me.com |
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... | [
"suwonraison@gmail.com"
] | suwonraison@gmail.com |
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... | [
"here0009@163.com"
] | here0009@163.com |
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... | [
"jeaz.git@gmail.com"
] | jeaz.git@gmail.com |
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... | [
"hanson_wong@qq.com"
] | hanson_wong@qq.com |
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); | [
"240553516@qq.com"
] | 240553516@qq.com |
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]))
| [
"jvlo@icomp.ufam.edu.br"
] | jvlo@icomp.ufam.edu.br |
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 = {} # ... | [
"vasnetsov93@gmail.com"
] | vasnetsov93@gmail.com |
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... | [
"kshedstrom@alaska.edu"
] | kshedstrom@alaska.edu |
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... | [
"vitroid@gmail.com"
] | vitroid@gmail.com |
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... | [
"marzecsean@gmail.com"
] | marzecsean@gmail.com |
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 #
... | [
"jesus.yeboyebo@gmail.com"
] | jesus.yeboyebo@gmail.com |
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",... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
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... | [
"tyj1035@outlook.com"
] | tyj1035@outlook.com |
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... | [
"info@giacomopetrillo.com"
] | info@giacomopetrillo.com |
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... | [
"hanameee@gmail.com"
] | hanameee@gmail.com |
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... | [
"max@autious.net"
] | max@autious.net |
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... | [
"tohfaakib@my.smccd.edu"
] | tohfaakib@my.smccd.edu |
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... | [
"maths.unam@gmail.com"
] | maths.unam@gmail.com |
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 | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
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):
... | [
"surajit@poweredbypeople.io"
] | surajit@poweredbypeople.io |
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... | [
"you@example.com"
] | you@example.com |
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... | [
"R.Treharne@liverpool.ac.uk"
] | R.Treharne@liverpool.ac.uk |
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... | [
"dtmilano@gmail.com"
] | dtmilano@gmail.com |
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 ... | [
"amatar@unomaha.edu"
] | amatar@unomaha.edu |
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... | [
"wgyumg@mgail.com"
] | wgyumg@mgail.com |
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',
... | [
"jacob.cj@alibaba-inc.com"
] | jacob.cj@alibaba-inc.com |
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')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
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 = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
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... | [
"streetyao@live.com"
] | streetyao@live.com |
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... | [
"403863214@qq.com"
] | 403863214@qq.com |
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... | [
"noreply@github.com"
] | automl.noreply@github.com |
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()
| [
"673248932@qq.com"
] | 673248932@qq.com |
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... | [
"testuser@151-248-122-3.cloudvps.regruhosting.ru"
] | testuser@151-248-122-3.cloudvps.regruhosting.ru |
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"):
... | [
"alex18812649207@gmail.com"
] | alex18812649207@gmail.com |
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_... | [
"snailandmail@gmail.com"
] | snailandmail@gmail.com |
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
| [
"ancient-clever@outlook.com"
] | ancient-clever@outlook.com |
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.
последовательность малых латинских букв, полученная из исходной путём применения шифра... | [
"tutkarma@gmail.com"
] | tutkarma@gmail.com |
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... | [
"tclh123@gmail.com"
] | tclh123@gmail.com |
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... | [
"codeartisan@outlook.com"
] | codeartisan@outlook.com |
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... | [
"saptaparna.bhattacharya@cern.ch"
] | saptaparna.bhattacharya@cern.ch |
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... | [
"abhishek_official@hotmail.com"
] | abhishek_official@hotmail.com |
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) + ... | [
"ngirmang.1@osu.edu"
] | ngirmang.1@osu.edu |
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']
| [
"sarahbtracy17@gmail.com"
] | sarahbtracy17@gmail.com |
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())
| [
"kephaokari@gmail.com"
] | kephaokari@gmail.com | |
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 ... | [
"jamesr@chromium.org"
] | jamesr@chromium.org |
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... | [
"huangzixihzx@gmail.com"
] | huangzixihzx@gmail.com |
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))
... | [
"1123893617@qq.com"
] | 1123893617@qq.com |
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... | [
"yigitozgumus1@gmail.com"
] | yigitozgumus1@gmail.com |
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... | [
"noreply@github.com"
] | Adminiuga.noreply@github.com |
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... | [
"msoedov@gmail.com"
] | msoedov@gmail.com |
2ac05a8ce20667dc6ca62cd5a23ac3d6825a9e76 | c1fd96e92379b7a5eda183a0e9522d3bc8a1cd3d | /kaa/filetype/python/pythonmode.py | cc86751f85387bc8ba2e2653a1a6c95f79cbeac4 | [
"MIT"
] | permissive | okazu-dm/kaa | 3b2c59652f2468ed4a78d764667f7f896e759a33 | 3326100c64ca6f638db6361ca72bc56a4aef7b8f | refs/heads/master | 2020-05-23T10:09:05.153521 | 2013-10-22T13:05:45 | 2013-10-22T13:05:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,653 | py | import keyword, copy
from kaa.filetype.default import defaultmode, theme
from kaa.highlight import Tokenizer, Keywords, Span
from kaa.theme import Theme, Style
from gappedbuf import re as gre
from kaa.command import Commands, command, norec, norerun
from kaa.keyboard import *
PythonThemes = {
'default':
Th... | [
"ishimoto@gembook.org"
] | ishimoto@gembook.org |
8a9f2f260ce87cc91474a5b8be78abd0ed4c103b | ab50920ebb8d9679230c13b8f91998e47e9f4f82 | /samples/server/petstore/python-blueplanet/app/openapi_server/models/order.py | e222f5ee0069dbb383352d37536a24db5e77ec3c | [
"Apache-2.0"
] | permissive | oxidecomputer/openapi-generator | f50ee17579b02a35d30894f16a4d98dc81f8b06b | f8770d7c3388d9f1a5069a7f37378aeadcb81e16 | refs/heads/master | 2023-08-25T09:24:27.666296 | 2021-02-25T15:36:35 | 2021-02-25T15:36:35 | 334,329,847 | 6 | 0 | Apache-2.0 | 2022-10-14T05:05:39 | 2021-01-30T04:46:13 | Java | UTF-8 | Python | false | false | 4,935 | py | # coding: utf-8
from __future__ import absolute_import
from datetime import date, datetime # noqa: F401
from typing import List, Dict # noqa: F401
from app.openapi_server.models.base_model_ import Model
from openapi_server import util
class Order(Model):
"""NOTE: This class is auto generated by the swagger c... | [
"wing328hk@gmail.com"
] | wing328hk@gmail.com |
db53a329ef4705bdbd512dcc044c8a8a69cba074 | f6003f9f25dcc182e9fbce7a96d0dabb9341744c | /Exercícios/Lista 6 - Seção 13 - Leitura e escrita em arquivo/Questão 20 - Enunciado no código .py | 6605ae8200a5865776d234e52d03e8f1a7195514 | [] | no_license | henriquecl/Aprendendo_Python | 60a87959714f82894e996c06b0a1b767838c38fc | 672029855431795defafd7e20e8da319bf34e502 | refs/heads/master | 2023-06-08T10:48:13.667893 | 2021-06-22T00:55:14 | 2021-06-22T00:55:14 | 261,029,613 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 886 | py | """
Questão 20 - Crie um programa que receba como entrada o número de alunos. Receba em uma lista o nome dos alunos e o seg
undo contém suas notas finais. Crie um arquivo que armazene a cada linha o nome do aluno e sua nota final. O nome tem
que ter no máximo 40 caracteres. Se não tiver 40, preencher com espaço em bra... | [
"64755074+henriquecl@users.noreply.github.com"
] | 64755074+henriquecl@users.noreply.github.com |
b40616b31df98d43d1b6a084948c93946dd914ac | c2dd6b06b56a4db596e196b77a072caeb53042ce | /python_modules/dagster/dagster_tests/cli_tests/test_workspace_config_schema.py | 82bc9e9410785d896141188fad8721e511b626fe | [
"Apache-2.0"
] | permissive | shasha79/dagster | ed8beac9a134dc22e3c23b0db3bb60884fe2e1de | b138d2454eb4a7f7e19a9d1763fa6c06bbb239e6 | refs/heads/master | 2022-11-11T16:59:11.144130 | 2020-07-03T16:44:19 | 2020-07-03T16:44:19 | 276,888,663 | 0 | 0 | Apache-2.0 | 2020-07-03T11:55:59 | 2020-07-03T11:55:58 | null | UTF-8 | Python | false | false | 3,371 | py | import yaml
from dagster.cli.workspace.config_schema import validate_workspace_config
def _validate_yaml_contents(yaml_contents):
return validate_workspace_config(yaml.safe_load(yaml_contents))
def test_repository_yaml_parsing():
valid_yaml_contents = '''
repository:
module: some_module
fn: a_repo
... | [
"schrockn@elementl.com"
] | schrockn@elementl.com |
689df46f7b895f0325dd2aa9407ac9eaec2f709b | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/다양한 출력포맷_20200705141045.py | b9bbcf137e8d3e41db97353267569be16ddbb422 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # 빈 자리는 빈공간을 두고, 오른쪽 정렬을 하되, 총 10자리 공간을 확보
print("{0: >10}".format(500))
# 양수일 때는 +로 표시, 음수일 땐 -로 표시
print("{0: >+10}".format(500))
print("{0: >+10}".format(-500))
# 왼쪽 정렬하고, 빈칸을 _로 채움
print("{0:_<+10}".format(500))
# 3자리 마다 콤마 찍어주기
print("{0:,}".format(100000000000))
# 3자리 마다 콤마 찍어주기, +- 부호도 붙이기
print("{0:+,}".format(... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
0bed65bcd8fe1c0b2dba68f4c6e191e1c0dd7d79 | 01d38140093f41e6afbd67445dbca78d9220d7fd | /linear_regression_learner.py | 05b5f705f8a1be190a199b6dcdb5c38254cfec16 | [] | no_license | boyko11/LinRegTorch | e174eb1452646b52f9c7c9161ee30f45630ef8b6 | a8f05fe67b4be3ee9e885194b5b750371b1cb5e1 | refs/heads/master | 2022-07-04T04:36:04.136287 | 2020-05-10T21:15:14 | 2020-05-10T21:15:14 | 262,623,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,021 | py | import numpy as np
import torch
class LinearRegressionLearner():
def __init__(self, theta_size, learning_rate=0.00001):
self.theta_tensor = torch.randn(theta_size, 1, requires_grad=True)
self.loss_function = torch.nn.L1Loss()
self.learning_rate = learning_rate
self.loss_history = ... | [
"boyko11@gmail.com"
] | boyko11@gmail.com |
f0db017322cd95c267fcbaddaf60360bec86248e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/405/usersdata/284/75780/submittedfiles/exe11.py | 487a2312007a81920fb10875f75153e3da8fe793 | [] | 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 | 748 | py | # -*- coding: utf-8 -*-
a=int(input('digite o numero: '))
if a>100000000 or a<9999999:
print('nao sei')
else:
d1=(a//(10**7))
d2=(a-(d1*(10**7)))//(10**6)
d3=(a-(d1*(10**7))-(d2*(10**6)))//(10**5)
d4=(a-(d1*(10**7))-(d2*(10**6))-(d3*(10**5)))//(10**4)
d5=(a-(d1*(10**7))-(d2*(10**6))-(d3*(10*... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
16a211c171b197fac8281ce6fa826d216b8534b8 | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0173_Binary_Search_Tree_Iterator/solution.py | 7f652418a02ce3af736afa21f1de7714c75c320d | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 567 | py | # Definition for a binary tree node
# class TreeNode:
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class BSTIterator:
# @param root, a binary search tree's root node
def __init__(self, root):
# @return a boolean, whether we have a nex... | [
"romain_li@163.com"
] | romain_li@163.com |
0a58cf2911a659203311090431b380b9748431c3 | 90574ae9759f98f8687cd3e842a6b4301578baea | /batbelt/utils.py | fddd41a996904a6a1cf6a42f8e2d5dc3ff6eefd7 | [
"Zlib"
] | permissive | sametmax/Bat-belt | 88a52a1d89e5dac8bfd69e26a0f106bc0520fdea | 372117e3876328f84804a296ee9636dee1e82206 | refs/heads/master | 2021-05-16T02:29:13.264688 | 2015-09-18T16:59:26 | 2015-09-18T16:59:26 | 6,219,068 | 19 | 3 | null | 2017-05-18T06:03:15 | 2012-10-14T22:55:42 | Python | UTF-8 | Python | false | false | 2,792 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
"""
The infamous utils.py module filled with functions you don't where else
to put.
"""
import sys
import os
from datetime import datetime
CLASSIC_DATETIME_FORMAT = '%Y-%m-%d %H:%M:%S.%f'
CLASSIC_DATETIME_PATTERN = r'\d{4}-\d{2}... | [
"lesametlemax@gmail.com"
] | lesametlemax@gmail.com |
df404f3b8ffb691f89f96c0f76927a6c6e7be13b | c85238daac6141efea2895485b9b18fc08cf4cf2 | /PathTracking/lqr/unicycle_model.py | 6e55e37b422e9be8ec8346a25d0b4cf7a5720654 | [
"MIT"
] | permissive | RyoheiTakahashi/PythonRobotics | 6543529ff677a68792cfc0a336aa9992d163ec96 | bee232e84dedcfe0b1dc494ce86c67130b42a8c8 | refs/heads/master | 2021-01-02T09:00:24.091192 | 2017-07-31T06:50:07 | 2017-07-31T06:50:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | #! /usr/bin/python
# -*- coding: utf-8 -*-
"""
author Atsushi Sakai
"""
import math
dt = 0.1 # [s]
L = 2.9 # [m]
class State:
def __init__(self, x=0.0, y=0.0, yaw=0.0, v=0.0):
self.x = x
self.y = y
self.yaw = yaw
self.v = v
def update(state, a, delta):
state.x = state.x... | [
"asakai.amsl+github@gmail.com"
] | asakai.amsl+github@gmail.com |
75f0cc9ced2b0b3b7f516afcd8b9a89bfbef64ea | d4a8bedc9c1c9897b3e07a3c9067f7c89c63be5f | /python_builtins/sort_by_size.py | cf8b0e967cb9cab9f931467b0f72881a53f9bdbd | [] | no_license | udoyen/python_refresher | 816fe6264dbc21ce7a3697eb0f96aa8f9f402032 | 8e542d8e6221b041fc945f5770f25d5da03d8f6a | refs/heads/master | 2023-05-25T19:51:55.938397 | 2019-11-19T17:22:30 | 2019-11-19T17:22:30 | 222,283,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | from .sort_on_length import lensort
n = [1, 2, 3, 5, 6, 4, 10, 11, 12, 13, 14]
s = ['python', 'perl', 'java', 'c', 'haskell', 'ruby']
def sort_by_size(n):
state = False
for i in n:
if isinstance(i, str):
state = True
if state:
lensort(n)
else:
for i in range(len(n))... | [
"datameshprojects@gmail.com"
] | datameshprojects@gmail.com |
05297da59c8dfa9824b8284de359353b5ce477a1 | d926c87644a2861d3c4edf36c1e1692acec38fb5 | /src/api/forms.py | fca77e5fde7cb8423ea759b5d0b4c6fcd89f62d6 | [] | no_license | mainhith97/AG-BE | 1058aee4bce0888da07a30fa44802115851b5e6e | 908b6e542a3219a233417f8f061241985265c777 | refs/heads/master | 2023-01-09T02:54:12.888094 | 2019-12-12T04:09:03 | 2019-12-12T04:09:03 | 213,387,121 | 0 | 0 | null | 2022-12-27T15:36:51 | 2019-10-07T13:13:13 | Python | UTF-8 | Python | false | false | 1,265 | py | #!/usr/bin/env python
from django import forms
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import ReadOnlyPasswordHashField
User = get_user_model()
class UserAdminChangeForm(forms.ModelForm):
password = ReadOnlyPasswordHashField()
class Meta:
model = User
f... | [
"you@example.com"
] | you@example.com |
3549f90d7b101b2118ff612c4fe503a21f99d31b | 238702bd275d9a8171c6e479c6ad1bbaa1ee3158 | /app/blog/models.py | 4dec50a6791965d9f31409b8992f01e302a8a1d8 | [] | no_license | maro99/djangogirls_pt_for_test | aebf03672741786ea74686efac21303961bf3987 | 4400aed75640273d8adbe7b1592607ccb23b42c2 | refs/heads/master | 2020-03-19T17:46:27.767327 | 2018-06-10T15:02:17 | 2018-06-10T15:02:17 | 136,775,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | from django.conf import settings
from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField(blank=True)
created_date = models.Da... | [
"nadcdc4@gmail.com"
] | nadcdc4@gmail.com |
a466328f675d05531ab0713a6dafb6c78b0f3ff7 | c6ae1b415c5de367677dceaecd5cd983365609e0 | /Atividades/Roteiro 5 - While/Programas/Roteiro 5 Questão 7.py | 0e3f5b5b3eb25ddead15c1c27823d585c58d4985 | [] | no_license | JardelBrandon/Algoritmos_e_Programacao | 8f00548ed9706cfeb3ad2b2ac6db0b9d2eb0f13c | 66784a567d85cf340d50400a14ea6915779a1304 | refs/heads/master | 2021-07-11T14:36:09.260443 | 2017-10-12T20:55:41 | 2017-10-12T20:55:41 | 106,738,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | #7. Escreva um programa que leia números inteiros da entrada padrão até que seja informado um
#número negativo ou par.
while True :
num = int (input ("Digite um número inteiro aleatório :"))
print (num)
if num < 0 :
print(num, "Digito negativo, fim !")
break
if num % 2 == 0 :
... | [
"jardelbrandon@hotmail.com"
] | jardelbrandon@hotmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.