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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
424526fe4c6b2ac3f5a89f36e3f865f5c458509b | 9d2bafb07baf657c447d09a6bc5a6e551ba1806d | /ros2_ws/build/ros2srv/build/lib/ros2srv/api/__init__.py | c1fba609b68266f574397fa8a54e3448c92a64c2 | [] | no_license | weidafan/ros2_dds | f65c4352899a72e1ade662b4106e822d80a99403 | c0d9e6ff97cb7cc822fe25a62c0b1d56f7d12c59 | refs/heads/master | 2021-09-05T20:47:49.088161 | 2018-01-30T21:03:59 | 2018-01-30T21:03:59 | 119,592,597 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,818 | py | # Copyright 2017 Open Source Robotics Foundation, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law... | [
"austin.tisdale.15@cnu.edu"
] | austin.tisdale.15@cnu.edu |
34a1bc435f15323b65afae54e614c78de3b10f20 | 4012f290d83ae7f4c09d7440f26d2acd7e63efbe | /1165.py | 6450daed28443ca9a0500ef96a76167a16f51d03 | [] | no_license | jinaur/codeup | ffc2d0fdf73892c1f46d80021ad8f4c1293c9e2e | 5f75ace909e2b3151171932cc3ee9f3c49dd46d9 | refs/heads/master | 2023-04-15T07:42:06.244806 | 2021-04-25T13:59:42 | 2021-04-25T13:59:42 | 277,760,813 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | a, b = list(map(int, input().split()))
while True :
if a >= 90 :
break
a += 5
b += 1
print(b) | [
"50763720+jinaur@users.noreply.github.com"
] | 50763720+jinaur@users.noreply.github.com |
39490f513add0e0a5c8110a317483eff540be3e1 | e84e699767444315ac2096b3ece1659ba2873ae3 | /radio/templatetags/show_stars.py | bd6749ed39e9404bd4b450a2938de695e41ca7a1 | [
"BSD-3-Clause"
] | permissive | ftrain/django-ftrain | 1e6ac41211dba5e69eabf1a4a85c2aec0c048959 | af535fda8e113e9dcdac31216852e35a01d3b950 | refs/heads/master | 2021-01-21T01:46:53.957091 | 2009-12-28T15:31:26 | 2009-12-28T15:31:26 | 259,071 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,808 | py | import math
from django.template import Library, Node, TemplateSyntaxError, VariableDoesNotExist, resolve_variable
from django.conf import settings
register = Library()
IMG_TEMPLATE = '<img src="%s" alt="%s"/>'
PATH_TO_WHOLE_STAR = IMG_TEMPLATE % (settings.MEDIA_URL + 'e/stars/star.png', "Whole Star")
PATH_TO_THRE... | [
"ford@ftrain.com"
] | ford@ftrain.com |
a789a909f89e7fc0ec0c3ce4cbafd1e65fa6a22e | 113ef54e42a047e9e631b557012411ecfac72c47 | /siphon/web/apps/submissions/migrations/0006_auto_20160224_0639.py | 8a5b27e311ba3669f3c194106114013581a4ae54 | [
"MIT"
] | permissive | siphoncode/siphon-web | 77bd241d5f3912ee78155c2b71b75fb59e1b5e27 | c398427dc1b73f70b94cd2f60a13e4d26c71610e | refs/heads/master | 2021-01-19T21:48:15.253451 | 2016-08-04T16:53:18 | 2016-08-04T16:53:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-24 06:39
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('submissions', '0005_auto_20160224_0629'),
]
operations = [
migrations.AlterF... | [
"james.potter@gmail.com"
] | james.potter@gmail.com |
1623370bd8827bb2e17d37abd93f5adbe40eac9a | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/synapse/v20190601preview/outputs.py | 9b9be8c3152a42585cb9ee4150575f664e3c4fa2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 140,125 | 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, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
aab77ba67f881e2373fa713db42e7c8c1dc80b8d | 169e75df163bb311198562d286d37aad14677101 | /tensorflow/tensorflow/contrib/all_reduce/python/all_reduce_test.py | b3f5d92259df8475b205110dd3f0cee1cb5bde6f | [
"Apache-2.0"
] | permissive | zylo117/tensorflow-gpu-macosx | e553d17b769c67dfda0440df8ac1314405e4a10a | 181bc2b37aa8a3eeb11a942d8f330b04abc804b3 | refs/heads/master | 2022-10-19T21:35:18.148271 | 2020-10-15T02:33:20 | 2020-10-15T02:33:20 | 134,240,831 | 116 | 26 | Apache-2.0 | 2022-10-04T23:36:22 | 2018-05-21T08:29:12 | C++ | UTF-8 | Python | false | false | 10,443 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"thomas.warfel@pnnl.gov"
] | thomas.warfel@pnnl.gov |
81876856328d10a73c63fd33479e2d04f4a2bc80 | 58cf4e5a576b2baf7755ae19d410bf8afc2f3709 | /leetcode-solutions/P1498.Number_of_subsequences_satisfy_sum.py | d1a47cb9eb60a1fc9beae07105be0146554ee857 | [] | no_license | srihariprasad-r/leet-code | 78284beac34a4d84dde9f8cd36503496b618fdf7 | fc4f1455bafd1496eb5469a509be8638b75155c1 | refs/heads/master | 2023-08-16T20:24:09.474931 | 2023-08-07T14:23:36 | 2023-08-07T14:23:36 | 231,920,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | class Solution(object):
def numSubseq(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: int
"""
nums.sort()
mod = 10**9+7
n = len(nums)
l = ans = 0
r = n - 1
while l <= r:
if nums[l] + nums[r]... | [
"59530606+srihariprasad-r@users.noreply.github.com"
] | 59530606+srihariprasad-r@users.noreply.github.com |
9f95a27bc89138cd60a4c119c7e5cb81011fd2cc | 17b0f34996ed63d14fb3ae2b09e3de866740a27e | /website/settings.py | a0a6ce9dc331e64a2e3ffe1d08f441cb34c00567 | [
"MIT"
] | permissive | Alexmhack/django_blog | 6ca47d4d294c1886eaa19ee866395144f1d2bce7 | ffb08983ca0aff2fca15961c64168bbb8d55311b | refs/heads/master | 2020-03-28T01:55:32.939171 | 2018-09-13T13:05:55 | 2018-09-13T13:05:55 | 147,532,712 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,335 | py | """
Django settings for website project.
Generated by 'django-admin startproject' using Django 2.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
#... | [
"alexmohack@gmail.com"
] | alexmohack@gmail.com |
35416f386997d9306cdc80e0b9d426b66dd86c93 | 53784d3746eccb6d8fca540be9087a12f3713d1c | /res/packages/scripts/scripts/common/Lib/distutils/tests/test_install.py | 992b281d3dd630b90577a87c6e7387582f4872a4 | [] | no_license | webiumsk/WOT-0.9.17.1-CT | 736666d53cbd0da6745b970e90a8bac6ea80813d | d7c3cf340ae40318933e7205bf9a17c7e53bac52 | refs/heads/master | 2021-01-09T06:00:33.898009 | 2017-02-03T21:40:17 | 2017-02-03T21:40:17 | 80,870,824 | 0 | 0 | null | null | null | null | WINDOWS-1250 | Python | false | false | 7,714 | py | # 2017.02.03 21:58:16 Střední Evropa (běžný čas)
# Embedded file name: scripts/common/Lib/distutils/tests/test_install.py
"""Tests for distutils.command.install."""
import os
import sys
import unittest
import site
from test.test_support import captured_stdout, run_unittest
from distutils import sysconfig
from distutils... | [
"info@webium.sk"
] | info@webium.sk |
620c6c6893445cae1a01ae8f012ca7b7c9100d81 | 87d0de6a06451d7aa561b72d908d06e68074f650 | /core/arxiv/submission/services/classifier/tests/tests.py | 9e66950fe6b95174cabeec5454cdb7de7e8517cc | [
"MIT"
] | permissive | arXiv/arxiv-submission-core | 3e79085ee408fd83b4dd4c0c1e8ccc53dd282230 | 6077ce4e0685d67ce7010800083a898857158112 | refs/heads/develop | 2022-01-21T02:11:56.384920 | 2020-07-31T18:16:17 | 2020-07-31T18:16:17 | 106,854,828 | 14 | 8 | MIT | 2022-01-06T22:29:31 | 2017-10-13T17:36:51 | Python | UTF-8 | Python | false | false | 8,910 | py | """Tests for classic classifier service integration."""
import os
import json
from unittest import TestCase, mock
from flask import Flask
from arxiv.integration.api import status, exceptions
from .. import classifier
DATA_PATH = os.path.join(os.path.split(os.path.abspath(__file__))[0], "data")
SAMPLE_PATH = os.pat... | [
"brp53@cornell.edu"
] | brp53@cornell.edu |
4a1b97ecf31fc70c5c028327969c8e09b80a2cae | 62e58c051128baef9452e7e0eb0b5a83367add26 | /x12/3070/205003070.py | 3456808fc041576fb61f383fc7f6c51e56317478 | [] | no_license | dougvanhorn/bots-grammars | 2eb6c0a6b5231c14a6faf194b932aa614809076c | 09db18d9d9bd9d92cefbf00f1c0de1c590fe3d0d | refs/heads/master | 2021-05-16T12:55:58.022904 | 2019-05-17T15:22:23 | 2019-05-17T15:22:23 | 105,274,633 | 0 | 0 | null | 2017-09-29T13:21:21 | 2017-09-29T13:21:21 | null | UTF-8 | Python | false | false | 1,791 | py | from bots.botsconfig import *
from records003070 import recorddefs
syntax = {
'version' : '00403', #version of ISA to send
'functionalgroup' : 'MN',
}
structure = [
{ID: 'ST', MIN: 1, MAX: 1, LEVEL: [
{ID: 'BGN', MIN: 1, MAX: 1},
{ID: 'TRN', MIN: 0, MAX: 1},
... | [
"jason.capriotti@gmail.com"
] | jason.capriotti@gmail.com |
2111217e5d242a6101b463046e8af164ea271f71 | 4e879e994720100a9354895af2bb9be33b38a42b | /cConsolidation/c_OOP/cm_ClassMethods/110_ClassMethods_002_factoryMethods_example_002.py | 396e108d6539a3d77f23d3f9c9396635d68ffe85 | [] | no_license | pepitogrilho/learning_python | 80314ec97091238ed5cc3ed47422d2e6073a3280 | bbdc78a9a0513c13d991701859bcfe7a8e614a49 | refs/heads/master | 2023-04-09T15:07:08.866721 | 2023-04-02T18:45:47 | 2023-04-02T18:45:47 | 230,527,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 651 | py | # -*- coding: utf-8 -*-
"""
- Instance Methods receive the OBJECT as argument
- Class Methods receive the CLASS as argument
- Static Methods don't receive neither the OBJECT, nor the CLASS
Class Methods are called by a class, which is passed to the ...
.... cls parameter
A common use of these are factory
"""
class ... | [
"pepitogrilho@gmail.com"
] | pepitogrilho@gmail.com |
a5b47c634aa82aa560d7c99745cdfd77c7fce511 | 400e10dfd9e21ae5092f5184753faa91a9df9277 | /python_structure/객체 미리연산.py | 1808df21a4e0c094ebbb3047219aac426601b9d2 | [] | no_license | MyaGya/Python_Practice | d4aff327a76010603f038bcf4491a14ea51de304 | 0391d1aa6d530f53715c968e5ea6a02cf745fde5 | refs/heads/master | 2023-06-14T07:48:19.998573 | 2021-07-12T05:50:52 | 2021-07-12T05:50:52 | 280,452,168 | 0 | 0 | null | 2021-06-23T13:37:56 | 2020-07-17T14:56:24 | Python | UTF-8 | Python | false | false | 1,205 | py | import time
start = time.time()
print("배열을 만드는 데 걸리는 시간 : ", end=" ")
data = [i for i in range(100000)]
end = time.time()
print(end - start)
start = time.time()
print("배열을 출력하는 데 걸리는 시간 : ", end=" ")
print(data)
end = time.time()
print(end - start)
# map 연산을 걸리는 시간
start = time.time()
print("map 연산 시간 : ", end=" ")... | [
"38939015+MyaGya@users.noreply.github.com"
] | 38939015+MyaGya@users.noreply.github.com |
aca0869423c75d58481d19ce9e4a5eaed6b7a4dc | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_envy.py | 39953a52249af41d6c5335f74ba7d1b427f27fad | [
"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 | 331 | py |
#calss header
class _ENVY():
def __init__(self,):
self.name = "ENVY"
self.definitions = [u'to wish that you had something that another person has: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'verbs'
def run(self, obj1 = [], obj2 = []):
return sel... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9e2cfe03c71b87d255becb0e3bfe46b09662220c | 5b5a49643c75aa43d5a876608383bc825ae1e147 | /tests/lists/p126_test.py | 9ab97710827b437465cca8b9f65d6457d8b608fb | [] | no_license | rscai/python99 | 281d00473c0dc977f58ba7511c5bcb6f38275771 | 3fa0cb7683ec8223259410fb6ea2967e3d0e6f61 | refs/heads/master | 2020-04-12T09:08:49.500799 | 2019-10-06T07:47:17 | 2019-10-06T07:47:17 | 162,393,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | from python99.lists.p126 import combination
import itertools
def test_combination():
l = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0]
k = 2
actual = combination(l, k)
assert actual == [list(e) for e in itertools.combinations(l, k)]
| [
"ray.s.cai@icloud.com"
] | ray.s.cai@icloud.com |
10dcd966e82a61e2e0650c4a7fd206471ed57224 | 90cea58e80309d2dff88f73f3a43ed5f943ff97d | /DotProduct.py | 16c5d89db0ce1644b33b46100a69c608f8ce680f | [] | no_license | SaiSujithReddy/CodePython | 0b65c82b0e71dba2bbd4c1aefec4e6cd6fd42341 | 4c05b7909092009afffa4536fd284060d20e462d | refs/heads/master | 2022-02-24T09:21:15.284745 | 2019-10-07T23:36:17 | 2019-10-07T23:36:17 | 106,611,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,539 | py | #3 3 1 4 4 2 5 3 1 7 2 6 5 1
def dot_product(list_user_input):
print("inside dot product")
first_vector_length = list_user_input[0]
second_vector_length = list_user_input[1]
print("length of first vector is ",first_vector_length)
if first_vector_length != second_vector_length:
print("Incor... | [
"sai.marapareddy@gmail.com"
] | sai.marapareddy@gmail.com |
c96653a68b279bac906eb7d31a76f6cc76b3e85d | 184310f55b58e854dc3b6c58599ef99bc4c95739 | /hujian_api/API_service/Templight/Official_02.py | 8fc915dc8e1d6048088919cf706caaf6d96527ac | [] | no_license | tanjijun1/Python_API | c8585821a627c399fea1ab31bb024be6b82dd3ab | 3c4771875870ffe425d2d39fc28a50449b1752f2 | refs/heads/master | 2023-01-07T23:30:30.284433 | 2020-11-11T08:43:10 | 2020-11-11T08:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,546 | py | import pytest
import allure
import requests
import json
import time
from Templight import GetMysqlData
from Templight import GetMysqlDataSeller
from Common import Post
from Common import Get
from Common import Assert
from Common import Consts
class Official_01:
#官网留言
#type--string反馈类型, feedback/advice/other
def... | [
"1065913054@qq.com"
] | 1065913054@qq.com |
7f62a03f77d18d0c38b6ffa63fcc0f1181324bce | 0c049d4be711ec3d0bc9d37890ea3e79409322fd | /teseoliv3f.py | ef4d95b3709ba2b0d9ad5b7e43dc3101fe33cd7f | [] | no_license | zerynth/lib-stm-teseoliv3f | 216a94b15ae7ee4c248fd7cebbd7923cc5ed9316 | f8f553345c651d4771955851dd9329928159874a | refs/heads/master | 2021-06-13T11:04:56.265590 | 2020-09-24T15:42:00 | 2020-09-24T15:42:00 | 195,260,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,049 | py | """
.. module:: teseoliv3f
*****************
TeseoLiv3F Module
*****************
This module implements the Zerynth driver for the STM Teseo Liv3F GNSS chip (`Product page <https://www.st.com/en/positioning/teseo-liv3f.html>`_).
The following functionalities are implemented:
* retrieve the current ... | [
"dev@zerynth.com"
] | dev@zerynth.com |
ce7bf343442a329b5af057e2836c930e2a9ca155 | 5d4504fe2a4881d20669d2a19392c7ac0d9b2831 | /Prerequisites/Python27/Lib/site-packages/platformio/maintenance.py | 7894dbdaf15e7900909d73ab9df521f078e6e98c | [] | no_license | lanbing8023/esphome-tools | 5c98f513b768f71742dc68ad68271e22652db9ea | 6b641e2dcb35130432f2409c50e03ff93af5ceec | refs/heads/master | 2020-05-02T13:24:19.744788 | 2019-03-11T02:25:57 | 2019-03-11T02:25:57 | 177,983,108 | 1 | 1 | null | 2019-03-27T11:48:47 | 2019-03-27T11:48:47 | null | UTF-8 | Python | false | false | 12,781 | py | # Copyright (c) 2014-present PlatformIO <contact@platformio.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"imhsaw@gmail.com"
] | imhsaw@gmail.com |
74d2938a67a1180e479c9ed2344d56807f5469bd | 24fe1f54fee3a3df952ca26cce839cc18124357a | /servicegraph/lib/python2.7/site-packages/acimodel-4.0_3d-py2.7.egg/cobra/modelimpl/isis/isispsnpstatshist1d.py | 9add5cdc355ad8093fd185beab530ccf723aeb5f | [] | 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 | 34,228 | 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... | [
"rrishike@cisco.com"
] | rrishike@cisco.com |
d2ea2f4eb3e5aea99cea24baf453eca59c539211 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_2/AndrewNguyen/b2.py | f7a0b686bc0911c70127e931d1811ba557d1d1d4 | [] | 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 | 1,119 | py | import sys
def isHappy(state):
for ch in state:
if ch == '-':
return False
return True
def generate(state):
new_states = []
lenOfState = len(state)
for i in range(1,lenOfState+1):
new_state = ""
for j in range(0, i):
if state[j] == '+':
new_state = new_state + '-'
else:
new_state = new_sta... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
d3c5463beb6e02ae8155b9bce09381283c948c6e | 4cc2ef8cd6a587da84a7ad0d7f15ed29c3f1cb9a | /pic/updateid.py | 24991c93c0f3a55e6d809fd0567e517804d5f37a | [] | no_license | eiselekd/backuphelpers | 71797823468cec36038d482ee81e606571f35289 | a9b92a6f3bd3984a517eb0c262f856e451302990 | refs/heads/master | 2020-03-23T08:48:29.977323 | 2018-11-19T20:33:13 | 2018-11-19T20:33:13 | 141,349,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | #!/usr/bin/python3
import argparse, os
from pprint import pprint
from sortpics.img import SortImage
from pyexiftool.exiftool import ExifTool
from pyexiftool.exiftool import fsencode
import tempfile, sys, hashlib
parser = argparse.ArgumentParser(description='sortpics')
parser.add_argument('--verbose', '-v', dest='verbo... | [
"eiselekd@gmail.com"
] | eiselekd@gmail.com |
8994d1eea949890530bfbdfe44ecda4a0e96bce8 | d51b4c766661af65b4ee6e7c30f8cb4bdd8603e3 | /python/algorithm/leetcode/403.py | 3684426cb3a77880be1c00f4f4e999c006acfbfb | [] | no_license | yanxurui/keepcoding | 3e988c76b123d55b32cf7cc35fbffb12c4ccb095 | d6b9f07e2d1437681fa77fee0687ea9b83cab135 | refs/heads/master | 2021-01-24T09:01:41.306597 | 2020-05-21T05:36:04 | 2020-05-21T05:36:04 | 93,400,267 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,715 | py | from typing import List
# https://leetcode.com/problems/frog-jump/discuss/88824/Very-easy-to-understand-JAVA-solution-with-explanations
class Solution:
def canCross(self, stones: List[int]) -> bool:
d = {stone:set() for stone in stones}
d[stones[0]].add(1)
for stone in stones:
f... | [
"617080352@qq.com"
] | 617080352@qq.com |
3c15bf29f03af4682e3d5978616547b28ff92205 | d7faf47825b6f8e5abf9a9587f1e7248c0eed1e2 | /python/ray/tests/test_multinode_failures.py | 61627c99c93063c84698e4d6581e3a96baa82812 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | ggdupont/ray | 7d7c7f39a8f99a09199fab60897da9e48b8e2645 | 15391026c19f1cbbb8d412e46b01f7998e42f2b9 | refs/heads/master | 2023-03-12T06:30:11.428319 | 2021-12-07T05:34:27 | 2021-12-07T05:34:27 | 165,058,028 | 0 | 0 | Apache-2.0 | 2023-03-04T08:56:50 | 2019-01-10T12:41:09 | Python | UTF-8 | Python | false | false | 5,384 | py | import os
import signal
import sys
import time
import pytest
import ray
import ray.ray_constants as ray_constants
from ray.cluster_utils import Cluster, cluster_not_supported
from ray._private.test_utils import RayTestTimeoutException, get_other_nodes
SIGKILL = signal.SIGKILL if sys.platform != "win32" else signal.S... | [
"noreply@github.com"
] | ggdupont.noreply@github.com |
2f2a337de675580690d98717fd71b31a135f8197 | 209155f8a32bef23c9b02f5ec26a1f5935d319c0 | /tests/test_squeezedimd.py | 69974d322cf4bebb2a84a03558eefc6f67187780 | [
"Apache-2.0"
] | permissive | wentaozhu/MONAI | ec154ca360714df8fcd55aa63506465c7949e1ff | 55025e07144b113f156b232b196c3ef1a765e02b | refs/heads/master | 2022-11-09T10:28:50.672985 | 2020-06-25T23:09:26 | 2020-06-25T23:09:26 | 274,224,027 | 2 | 1 | Apache-2.0 | 2020-06-22T19:22:59 | 2020-06-22T19:22:58 | null | UTF-8 | Python | false | false | 2,518 | py | # Copyright 2020 MONAI Consortium
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, s... | [
"noreply@github.com"
] | wentaozhu.noreply@github.com |
decbb3699bc8cd3376d79937ce5ff90ed552d6e5 | 0e0ce88c886370df9af51855115c99dfc003e5da | /2020/08_Flask/16_MONGOdb_and_Login_user/app/__init__.py | 96dcb3ff132ec6bfd8b7aa4b0b1c6f118af143e8 | [] | no_license | miguelzeph/Python_Git | ed80db9a4f060836203df8cc2e42e003b0df6afd | 79d3b00236e7f4194d2a23fb016b43e9d09311e6 | refs/heads/master | 2021-07-08T18:43:45.855023 | 2021-04-01T14:12:23 | 2021-04-01T14:12:23 | 232,007,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 455 | py | # Constructor and Config
from flask import Flask
from flask_pymongo import PyMongo
app = Flask(__name__)
app.config['SECRET_KEY'] = 'mysecretkey'
#################MONGODB######################
# MongoDB Config (Cadastrar no www.mlab.com)
app.config['MONGO_URI'] = "mongodb+srv://useradmin:admin@cluster0.7rvyr.gcp.mong... | [
"miguel.junior.mat@hotmail.com"
] | miguel.junior.mat@hotmail.com |
1a91963a5355142fb88137dc0520af04d28e21be | c8fd92a30a9ff7f8b3678398ad137b0350b907b8 | /config.py | 173287a0d803000c04dc4a237fe89f9190437745 | [] | no_license | maximilianh/repeatBrowser | 2634d487aeeb8edfb9f48096650cf2bf96251a26 | 76d55908d567ee5eda89dab9145d5f5652065bc5 | refs/heads/master | 2021-01-01T20:00:54.441883 | 2020-03-09T11:57:53 | 2020-03-09T11:57:53 | 20,178,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 330 | py | DB = "hg38"
#DB = "hg19"
TMPDIR = "/scratch/tmp"
# set to None to not use cluster
#CLUSTER=None
CLUSTER="ku"
TARGETPERC = 99 # percentile, for top50 consensus building
rmskTable = "rmskHmmer2020" # the rmsk table, usually it's rmsk, but you can specify a different one here
RMTORB = "data/rmToDfam.tab"
RBTORM = "data/rb... | [
"max@soe.ucsc.edu"
] | max@soe.ucsc.edu |
3d805adb218362378b581ac72b37a9ac9781147d | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/bob/d7f1d7204e4f46fc8875f4aeefac75e3.py | 36daf78d07daeb7267f1f3306eef351eb9fe3518 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 260 | py | def hey(words):
if len(words.strip())==0:
return 'Fine. Be that way!'
elif words.isupper():
return 'Whoa, chill out!'
punctuation=words[-1]
if punctuation=='?':
return 'Sure.'
else:
return 'Whatever.'
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
83dc2ea11d5703b80b5e91b05c61699d3b671f2b | f28aebe70dc265e0e2ecf3a02c19f1d20a750a92 | /perfil/views.py | 3c2e2a1d680890c1c1419ac0cf747b0d8060df93 | [] | no_license | linikerunk/E-commerce-liniker | 7fc1750d53ad8ad1e2c28537158324caaaf7d710 | c91376da3d18498fdf956e34d884a8ccca2c0d33 | refs/heads/master | 2020-09-28T08:25:12.794289 | 2020-01-09T02:06:26 | 2020-01-09T02:06:26 | 226,731,684 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,674 | py | from django.shortcuts import render, get_object_or_404, redirect
from django.views.generic import ListView
from django.views import View
from django.http import HttpResponse
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, login, logout
from django.contrib import messages
import... | [
"linikerenem@gmail.com"
] | linikerenem@gmail.com |
0d8395c16985bc147b8ca2e583c5f5cace411878 | 7da288104b7ab242913f061dc39adb01b226db98 | /PathSupportSet/CandidatePredicatePathSupSet.py | ff351321e0825a22ebe4414b8da02b0bce7229ee | [] | no_license | cstmdzx/pyAnswer | fc1ba6a58b12a8478cf9e1cd79eb4ec4b46697ef | bb5c16510f25bb61d9618c4069c49fdb0672d417 | refs/heads/master | 2021-01-12T05:25:13.307037 | 2017-04-27T02:57:09 | 2017-04-27T02:57:09 | 77,926,338 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 3,377 | py | # coding=gbk
# CandidatePredicatePathForRep format:RelationPhraseId~Predicate[f/b]Predicate[f/b]…~Predicate[f/b]Predicate[f/b]…
# generate Predicate/Path support set and record predicate candidates at the same time
import MySQLdb
import re
conn = MySQLdb.connect(host='localhost', user='root', password='password'... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7e16f267e522ad119638dc37559b9520b949a962 | 9b64f0f04707a3a18968fd8f8a3ace718cd597bc | /huaweicloud-sdk-dgc/huaweicloudsdkdgc/v1/model/resource_info.py | a14466abe6bbdbb7ed79a7a66a595ce0f83a8450 | [
"Apache-2.0"
] | permissive | jaminGH/huaweicloud-sdk-python-v3 | eeecb3fb0f3396a475995df36d17095038615fba | 83ee0e4543c6b74eb0898079c3d8dd1c52c3e16b | refs/heads/master | 2023-06-18T11:49:13.958677 | 2021-07-16T07:57:47 | 2021-07-16T07:57:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,704 | py | # coding: utf-8
import re
import six
class ResourceInfo:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in defin... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
be6248f04c5613fc23898d6e6d3dc7a2c1d68df5 | b97f6b3f245eb2546156be00c7495aad1328de0b | /app/main/views.py | 2aea775cd3528e9d27dcd81f98d5ea236e9f7157 | [
"MIT"
] | permissive | MutuaFranklin/BlogPool | 438e089432f86a6c36607e0ddd6bfbc1632e8be1 | d5781a62a1ad6e5242392dad28e41f536377a4a6 | refs/heads/main | 2023-07-17T12:58:29.352045 | 2021-08-24T08:22:46 | 2021-08-24T08:22:46 | 397,893,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,884 | py | from app.requests import get_quote
from . import main
from flask import render_template,request,redirect,url_for, abort, flash
from flask_login import login_required, current_user
from ..models import Quote, Subscriber, User, Blog, Comment
from .. import db,photos
from .forms import SubscriberForm, UpdateProfile, Blog... | [
"franklin.mutua@student.moringaschool.com"
] | franklin.mutua@student.moringaschool.com |
56b342083fe99216f195da0c3369e49ae969dc03 | 43ede7b8fb546c00804c0ef94501f6e48ba170d6 | /Cursos Python/Análise de dados do zero. (PYTHON & PANDAS)/04 - Pandas DataFrame.py | 0731ed8b3a8a6bae993c69a735c235213f50e39c | [] | no_license | bopopescu/Python-13 | db407d17252473e78e705e563cfee4dbd316c6b9 | c8bef500f2d3e4a63d850f96dfa219eff2ecebda | refs/heads/master | 2022-11-22T16:24:08.490879 | 2020-06-11T14:22:24 | 2020-06-11T14:22:24 | 281,830,055 | 0 | 0 | null | 2020-07-23T02:26:31 | 2020-07-23T02:26:30 | null | UTF-8 | Python | false | false | 298 | py | import pandas as pd
coluna = ['Frutas']
itens = ['Laranja', 'maça', 'abacate']
df = pd.DataFrame(itens, columns=coluna)
print(df, '\n'*2)
coluna = ['Frutas', 'Preco']
itens = [['Laranja', 10], ['Maça', 10], ['Abacate', 15]]
df = pd.DataFrame(itens, columns=coluna, dtype=float)
print(df) | [
"ofc.erickson@gmail.com"
] | ofc.erickson@gmail.com |
995822e51e2d34a880e4dc2ba08886ea425c6817 | 8b619e49c3b83778958ebdbe85b25c7182117ac0 | /settings.py | c821d3ed82cd0183cd3e3564514979c0846cf1da | [] | no_license | hellais/ooni.nu | c98417145304ce985c953b78d1a50f10154d5b60 | 763aff9a5a75e358c475cf1bf9fcdf6afc534266 | refs/heads/master | 2020-05-31T06:03:36.383462 | 2012-12-12T17:03:00 | 2012-12-12T17:03:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,735 | py | import os
here = lambda *x: os.path.join(os.path.abspath(os.path.dirname(__file__)), *x)
#Directories
LAYOUT_DIR = here('layout')
CONTENT_DIR = here('content')
MEDIA_DIR = here('media')
DEPLOY_DIR = here('deploy')
TMP_DIR = here('deploy_tmp')
BACKUPS_DIR = here('backups')
BACKUP = False
SITE_ROOT = "/"
SITE_WWW_URL ... | [
"art@fuffa.org"
] | art@fuffa.org |
b1c3e2d58b093839cd1bc3b86f002ea815f7bc28 | b3cd00de3608e5225758bb99b28d58320ce81a47 | /practice_20190516/set_practices.py | bb0c1042527f669ab59618349237b43efafce1f1 | [] | no_license | buyi823/learn_python | fc4ec7e35ec421842975956933cfb56371786d7a | b411d5277dba1764d421a267f0ba36da40d8c6e9 | refs/heads/master | 2022-05-13T01:05:35.961946 | 2022-05-09T15:20:52 | 2022-05-09T15:20:52 | 71,314,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | #!/usr/bin/python3
basket={'apple', 'orange', 'apple', 'pear', 'orange', 'banana'}
print(basket)
i = 'orange' in basket
print(i)
a = set('abracadabra')
b = set('alacazam')
print(a)
print(a-b) # 在 a 中的字母,但不在 b 中
print(a | b) # 在 a 或 b 中的字母
print(a & b) # 在 a 和 b 中都有的字母
print(a ^ b) # 在 a 或 b 中的字母,但不同时在 a 和 b 中
a ... | [
"309521086@qq.com"
] | 309521086@qq.com |
5203e3e2fd16915c35a794b6a84738bbe3de2171 | 135f293948b38aa8eaa6ac31dde79f8bc091fe5b | /Estruturas de repetição em Python/Exercicio12.py | ee4e9bcc87e70a6ac7801efa3e2c0c3ff253416f | [] | no_license | Kaiquenakao/Python | 70e42b5fee08a3b50c34913f2f5763f07e754c25 | 008eefce828522b5107917dc699fc3590c7ef52c | refs/heads/master | 2023-08-12T17:03:24.317996 | 2021-09-25T22:31:46 | 2021-09-25T22:31:46 | 279,083,005 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | """
12. Faça um programa que leia um número inteiro positivo N e imprima todos os números naturais
de 0 até N em ordem decrescente.
"""
try:
num = int(input('Insira um número positivo: '))
if num > 0:
for i in range(num, -1, -1):
print(i, end=' ')
else:
print('ERRO!!! ... | [
"noreply@github.com"
] | Kaiquenakao.noreply@github.com |
32ea6cd4e3873c9f26199e4214374be704126b4e | a26b214e60287af3c39e5ee40eae4d1869d596d0 | /train_imagenet.py | 6e46043cbac1543a40368e6cf5f624aad1ec7e09 | [] | no_license | beam2d/chainer-efficient-densenet | 17a326ba783d320dff310beb4f04a8873a9db6cf | 075b07450df9d030b943bca4f7d0fe52e838c55b | refs/heads/master | 2021-05-04T18:44:57.559524 | 2017-10-06T05:04:36 | 2017-10-06T05:10:39 | 105,968,804 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,103 | py | #!/usr/bin/env python
"""Example code of learning a large scale convnet from ILSVRC2012 dataset.
Prerequisite: To run this example, crop the center of ILSVRC2012 training and
validation images, scale them to 256x256 and convert them to RGB, and make
two lists of space-separated CSV whose first column is full path to i... | [
"beam.web@gmail.com"
] | beam.web@gmail.com |
81f06546a31f3a1d148091a703f3d6f664345263 | 42b30769e4c676014d3fd8753bc4b1bbcc2a3e3c | /eggs/bx_python-0.7.2-py2.6-linux-x86_64-ucs4.egg/EGG-INFO/scripts/bed_rand_intersect.py | 7f6ee25a6a4b19b8256296f2b0fe48ddc9262184 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | psnehal/MethylSig | 4e510685349b1712c92667d40e795fa798ee1702 | 5efad71e71ff2515feff2e49579c856ef9a1bbd8 | refs/heads/master | 2020-05-18T21:03:51.240410 | 2015-09-03T20:23:30 | 2015-09-03T20:23:30 | 26,826,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,927 | py | #!/afs/bx.psu.edu/project/pythons/py2.6-linux-x86_64-ucs4/bin/python2.6
"""
From a set of regions and two sets of intervals inside those regions
compute (for each region separately) the overlap between the two sets
of intervals and the overlap in `nsamples` random coverings of the
regions with intervals having the sa... | [
"snehal@lnx-306501.(none)"
] | snehal@lnx-306501.(none) |
935e668353281522257cae2c1d7cf7f920d7109b | ba182c0ef3f2d9be57454808e999972a44a17246 | /papis_zotero/__init__.py | cd4b219ea84afd857e3af21d24fe69025ec8f0c0 | [] | no_license | stuartthomas25/papis-zotero | 9bc1aea061a2a5653e3f8a2f0dca20ca6591f649 | 00911a6a94191715429649b36f99f32005db530a | refs/heads/master | 2023-01-20T14:53:53.738651 | 2020-12-03T01:27:27 | 2020-12-03T01:27:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,966 | py | import click
import os
import logging
import http.server
import papis_zotero.server
@click.group('zotero')
@click.help_option('-h', '--help')
def main():
"""
Zotero interface for papis
"""
pass
@main.command('serve')
@click.help_option('-h', '--help')
@click.option(
"--port",
help="Port to ... | [
"aamsgallo@gmail.com"
] | aamsgallo@gmail.com |
e1a3e6b019db32d46d544ec8533a4e2420661ae1 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /DPGAnalysis/Skims/python/TPGSkims_cfg.py | 72a0da830b6a2f7874b2e7bdbf09b435556f9e7a | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 6,095 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("SKIM")
process.configurationMetadata = cms.untracked.PSet(
version = cms.untracked.string('$Revision: 1.1 $'),
name = cms.untracked.string('$Source' ),
annotation = cms.untracked.string('TPG skim')
)
#
#
# This is for testing purposes.
#
#
p... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
fb8c3504401a4296b74eeac355c5e856a62a0ccc | df2cbe914f463ad050d7ed26194424afbe3a0a52 | /odoo/addons/base/tests/test_float.py | 5e1db6c074f0a028378ea92042abb0810b5aa3dd | [
"Apache-2.0"
] | permissive | SHIVJITH/Odoo_Machine_Test | 019ed339e995be980606a2d87a63312ddc18e706 | 310497a9872db7844b521e6dab5f7a9f61d365a4 | refs/heads/main | 2023-07-16T16:23:14.300656 | 2021-08-29T11:48:36 | 2021-08-29T11:48:36 | 401,010,175 | 0 | 0 | Apache-2.0 | 2021-08-29T10:13:58 | 2021-08-29T10:13:58 | null | UTF-8 | Python | false | false | 11,756 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from math import log10
from odoo.tests.common import TransactionCase
from odoo.tools import float_compare, float_is_zero, float_repr, float_round, float_split, float_split_str
class TestFloatPrecision(TransactionCase)... | [
"36736117+SHIVJITH@users.noreply.github.com"
] | 36736117+SHIVJITH@users.noreply.github.com |
e258217d26d20023322a814f0f6c42d13bc33285 | 049e2fab5e9e8f248e537cbada15d60d60536990 | /tests/gene_mutation_test.py | 253588490783ea22a34946025d9fd271cdd2e044 | [
"MIT"
] | permissive | RubenPants/RobotSimulator2D | adfd8c16ec48b34419cae096d16e5e6714410407 | 334d7b9cab0edb22d4670cfaf39fbed76c351758 | refs/heads/master | 2023-05-14T20:09:44.604695 | 2020-07-11T14:16:58 | 2020-07-11T14:16:58 | 223,198,189 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,831 | py | """
genome_mutation_test.py
Test gene-specific operations.
"""
import os
import unittest
import numpy as np
from config import Config
from population.utils.genome_util.genes import ConnectionGene, GruNodeGene, OutputNodeGene, SimpleNodeGene
from utils.dictionary import *
def get_connection_gene(key, config):
r... | [
"broekxruben@gmail.com"
] | broekxruben@gmail.com |
ed4f99a3e62f56ae2dd93f7d11c01a2a3a0fb38d | 360486e860db3c34c01a4fbd6d161d22df4ac403 | /catalog-configs/Beta_Cell/Biosample.py | d7993b73417c1e766d4e5008e7acde3bf6720c52 | [
"Apache-2.0"
] | permissive | informatics-isi-edu/betacell-consortium | 915076c0dfe491d8d18bc8037ea969f71a275f66 | 41e27ff2690e5cc192a2ba3cf95c5b6973eb6550 | refs/heads/master | 2021-07-06T13:31:17.980760 | 2019-02-16T16:32:54 | 2019-02-16T16:32:54 | 136,740,712 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,618 | py | import argparse
from attrdict import AttrDict
from deriva.core import ErmrestCatalog, get_credential, DerivaPathError
import deriva.core.ermrest_model as em
from deriva.core.ermrest_config import tag as chaise_tags
from deriva.utils.catalog.manage.update_catalog import CatalogUpdater, parse_args
groups = {
'pbccon... | [
"carl@isi.edu"
] | carl@isi.edu |
4c3ff6795992f4880623aff1d7912e1e2af55406 | 95b6f547270557a99c435b785b907896f62e87d1 | /test_cluster_mocking_nested_ratio.py | 1369246b5107a36125ed7de9c6953ae44bb947a7 | [] | no_license | phizaz/seeding-strategy-ssl | 6b3b58c9b1f556f8cd42fea5e3dc20e623462a08 | 85655ce3297130b273d5f86075ee6bdf1f12be0a | refs/heads/master | 2021-01-10T06:18:26.618009 | 2016-04-02T14:50:08 | 2016-04-02T14:50:08 | 49,761,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | from dataset import *
from pipe import Pipe
from wrapper import *
from badness import *
from ssltools import *
from sklearn.cluster import KMeans
dataset = get_yeast().rescale()
def seed_randomly(prob):
pipe = Pipe() \
.x(dataset.X) \
.y(dataset.Y) \
.y_seed(seeding_random(prob)) \
... | [
"the.akita.ta@gmail.com"
] | the.akita.ta@gmail.com |
b2e081c7ce0957970be4524dd7569d94f5999f5b | 9e4fa1142a3656e97c637a247fd9e0a4b4192537 | /manage.py | 2f588eabb7d9bc15f00a4b0377a195b3614bfb9f | [] | no_license | LokeshKD/ckts-app-demo | 41bb51f5ab4c94344cf8a1f7d0a5b8ee970d5375 | 309209b87737099249f010c505e689efc287c8c3 | refs/heads/master | 2022-02-11T06:22:53.556163 | 2019-08-13T02:38:49 | 2019-08-13T02:38:49 | 198,107,386 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,028 | py | import os
import unittest
import coverage
from flask_script import Manager
from flask_migrate import Migrate, MigrateCommand
from project import app, db
app.config.from_object(os.environ['APP_SETTINGS'])
migrate = Migrate(app, db)
manager = Manager(app)
manager.add_command('db', MigrateCommand)
@manager.command
d... | [
"i.lokesh@gmail.com"
] | i.lokesh@gmail.com |
fc209154dfb2a5e90e53f5ea78fe360348b50cb5 | 4c28bbe099672d9402b4c2c75625fc450b7d1c99 | /misc/formatter.py | 09180ed9b437614ea97a03ea48f812b72e64672a | [
"MIT"
] | permissive | GINK03/lightgbm-feature-transform | e1edaf1d3dc541f816f844b280335b8d4d18fdfe | 18c0eaf64ef159d9c5cc041244b45bbea7314ca8 | refs/heads/master | 2021-07-22T15:46:17.221420 | 2017-11-07T15:10:40 | 2017-11-07T15:10:40 | 107,000,998 | 12 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | import re
import json
lines = []
for line in open('./gbdt_prediction_formatted.cpp'):
line = line[:-1]
line = line.replace(' {', ':')
line = line.replace('} else', 'else')
line = re.sub(r'^double', 'def', line)
line = line.replace('const double *arr', 'arr')
line = line.replace('const std::vector<ui... | [
"gim.kobayashi@gmail.com"
] | gim.kobayashi@gmail.com |
dcb44358e58a964fba44912fffb44036d3b53921 | 7db9f50e35b13bb2d5a7fcf564e841be1961b937 | /djangocms_teaser/migrations_django/0001_initial.py | 9e4b8c0bb3268b4bc0f680f15ca6b2fc2cab8eb4 | [] | no_license | tanderegg/djangocms-teaser | 3df391b42931b4cb5a2fd067d88da36e3defa20b | 29b09fbb921de052c9bf7a1e3bda8ed0a8b1fa56 | refs/heads/master | 2020-04-02T22:26:34.614574 | 2014-08-21T17:24:28 | 2014-08-21T17:24:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,249 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import cms.models.pluginmodel
class Migration(migrations.Migration):
dependencies = [
('cms', '__first__'),
]
operations = [
migrations.CreateModel(
name='Teaser',
... | [
"i.spalletti@nephila.it"
] | i.spalletti@nephila.it |
f430ca748728f396149648eb89ce978d127ee811 | 26f8a8782a03693905a2d1eef69a5b9f37a07cce | /test/test_dictionary_component_response_ofint64_and_destiny_item_talent_grid_component.py | bbf9b4777cea26e0cf7a3694065e35cbc650d67d | [] | no_license | roscroft/openapi3-swagger | 60975db806095fe9eba6d9d800b96f2feee99a5b | d1c659c7f301dcfee97ab30ba9db0f2506f4e95d | refs/heads/master | 2021-06-27T13:20:53.767130 | 2017-08-31T17:09:40 | 2017-08-31T17:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,491 | py | # coding: utf-8
"""
Bungie.Net API
These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
OpenAPI spec version: 2.0.0
Contact: support@bungie.com
Generated by: ... | [
"adherrling@gmail.com"
] | adherrling@gmail.com |
49333583eea30bafda52c00260cac390a23ab6f9 | 05536893d069dd87256ba74ecdee06bdf481d44b | /args_api/ORA12C/ORA12C-DBTAWS.py | a09bb73f64ddae7a172940464f218b2867dc03d3 | [] | no_license | TheRockStarDBA/DataBuddy | b2d889e11745d0afe1b39a11aab5945e2bd08cf7 | 38fa7adfdd228e2b2e4b4408393505163c5702e8 | refs/heads/master | 2020-12-25T23:27:02.363977 | 2015-05-28T19:14:12 | 2015-05-28T19:14:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111,575 | py | #do not change
aa={'ORA12C_Partition_WithWideRows.DBTAWS_Table': [{'field_term': ('-t', '--field_term', '"|"', 'Field terminator.'), 'num_of_shards': ('-r', '--num_of_shards', 1, 'Number of shards.'), 'pool_size': ('-o', '--pool_size', 1, 'Pool size.'), 'column_buckets': ('-0', '--column_buckets', 2, 'Wide row support.... | [
"alexbuzunov@gmail.com"
] | alexbuzunov@gmail.com |
a1d45b4a1306f1720ace5d28dab4653d0d2a6868 | bd02997a44218468b155eda45dd9dd592bb3d124 | /baekjoon_2108.py | cb9102297f1407ace276cbdd2e7a5b699dbacc1a | [] | no_license | rheehot/ProblemSolving_Python | 88b1eb303ab97624ae6c97e05393352695038d14 | 4d6dc6aea628f0e6e96530646c66216bf489427f | refs/heads/master | 2023-02-13T03:30:07.039231 | 2021-01-04T06:04:11 | 2021-01-04T06:04:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,280 | py | '''
Problem Solving Baekjoon 2108
Author: Injun Son
Date: September 5, 2020
'''
from collections import deque
import sys
from itertools import combinations
import math
import math
input = sys.stdin.readline
N = int(input())
arr = [int(input()) for _ in range(N)]
count_arr = [0]*8001
tmp_sum = 0
tmp_max = -1*sys.maxsize... | [
"ison@sfu.ca"
] | ison@sfu.ca |
636406ddd942396e9b6aedb4bdaaba02783aa51f | c0ad282ab743a315e2f252a627933cb168434c1d | /shapeworld/torch_util.py | fa6ad12567eb305a5acdeee76fecf0a4791ff2fd | [
"MIT"
] | permissive | AlexKuhnle/ShapeWorld | 6d1e16adc94e860abae99ade869f72575f573bc4 | e720bf46e57fc01326d04d639fa6133d9c12158f | refs/heads/master | 2021-07-09T00:02:33.808969 | 2021-04-19T11:10:52 | 2021-04-19T11:10:52 | 80,815,972 | 58 | 28 | MIT | 2021-04-19T11:10:53 | 2017-02-03T09:40:19 | Python | UTF-8 | Python | false | false | 2,806 | py | import sys
import numpy as np
import torch.utils.data
class ShapeWorldDataset(torch.utils.data.Dataset):
def __init__(self, dataset, mode=None, include_model=False, epoch=False, is_channels_first=True, preprocessing=None):
super(ShapeWorldDataset, self).__init__()
self.dataset = dataset
s... | [
"aok25@cl.cam.ac.uk"
] | aok25@cl.cam.ac.uk |
9c55f255b57e0eaf9ce3639bd0dd51cd1eb40334 | deec7cdd0916936f71a194616060f2935291dba1 | /examples/05_logging/null_handler/connect_ssh.py | f46d7698d5180a2d54819386a56cf94bd7067e8d | [] | no_license | denjjack/advpyneng-examples-exercises | 938077e0e0d2265481746d894e970eb5688fc235 | 50871f0f228bb309f99ddee7ca56de25da0bfa1b | refs/heads/master | 2022-12-15T02:43:50.148470 | 2020-09-11T11:51:38 | 2020-09-11T11:51:38 | 294,704,149 | 1 | 0 | null | 2020-09-11T13:34:23 | 2020-09-11T13:34:22 | null | UTF-8 | Python | false | false | 194 | py | from base_ssh_class import BaseSSH
import logging
logging.basicConfig(level=logging.DEBUG)
r1 = BaseSSH("192.168.100.1", "cisco", "cisco")
print(r1.send_show_command("sh clock"))
r1.close()
| [
"nataliya.samoylenko@gmail.com"
] | nataliya.samoylenko@gmail.com |
385fca920ccc02437aa185a2637b0d7585a0fdda | 463c053bcf3f4a7337b634890720ea9467f14c87 | /rllib/utils/replay_buffers/utils.py | 1589760742338853369d9860f156a52e594a0d78 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | pdames/ray | e8faddc4440976211a6bcead8f8b6e62c1dcda01 | 918d3601c6519d333f10910dc75eb549cbb82afa | refs/heads/master | 2023-01-23T06:11:11.723212 | 2022-05-06T22:55:59 | 2022-05-06T22:55:59 | 245,515,407 | 1 | 1 | Apache-2.0 | 2023-01-14T08:02:21 | 2020-03-06T20:59:04 | Python | UTF-8 | Python | false | false | 16,838 | py | import logging
import psutil
from typing import Optional, Any
from ray.rllib.execution import MultiAgentReplayBuffer as Legacy_MultiAgentReplayBuffer
from ray.rllib.execution.buffers.multi_agent_replay_buffer import (
MultiAgentReplayBuffer as LegacyMultiAgentReplayBuffer,
)
from ray.rllib.policy.sample_batch impo... | [
"noreply@github.com"
] | pdames.noreply@github.com |
09c1ec7ba50d187876c91d783b241ad7c7c92641 | 75d8667735782cd1d0eb4877e52c89da5cd92dde | /nova/conductor/tasks/base.py | 170e5ebdf37200c833e06619b72a68d7ef3d0ae3 | [
"Apache-2.0"
] | permissive | bopopescu/nova-token | ffecfd3ec561936b7d9d7e691bc57383cde05436 | ec98f69dea7b3e2b9013b27fd55a2c1a1ac6bfb2 | refs/heads/master | 2022-11-22T09:53:31.073483 | 2016-05-14T02:47:01 | 2016-05-15T22:02:55 | 282,105,621 | 0 | 0 | Apache-2.0 | 2020-07-24T02:42:19 | 2020-07-24T02:42:18 | null | UTF-8 | Python | false | false | 3,441 | py | begin_unit
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment|'# a copy of the License at'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# http://www.apache.org/licenses/L... | [
"dmg@uvic.ca"
] | dmg@uvic.ca |
1b84a43972de2a1222d45566cf6969e535176b4b | 0e0ce88c886370df9af51855115c99dfc003e5da | /2012/04_Sistema_de_Atomos/func.Curve/color_junto.py | 71bce10f2562d2ac7869dad6a0f355e2f20b019f | [] | no_license | miguelzeph/Python_Git | ed80db9a4f060836203df8cc2e42e003b0df6afd | 79d3b00236e7f4194d2a23fb016b43e9d09311e6 | refs/heads/master | 2021-07-08T18:43:45.855023 | 2021-04-01T14:12:23 | 2021-04-01T14:12:23 | 232,007,012 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | from __future__ import division
from visual import *
c= curve( pos=[(-1,0,0)], color=color.blue,radius=1)
c.append( pos=(0,0,0) ) # add a blue point (optional)
c.append( pos=(0,0,0), color=color.orange) # same point
c.append( pos=(1,0,0) ) # add orange point | [
"miguel.junior.mat@hotmail.com"
] | miguel.junior.mat@hotmail.com |
24593538760a1009040733cb6b22ec4ed9378e7c | 0308ce9bc6772a9c49b4f6ff4b73a9a31b9ad33e | /source/django-oscar/tests/settings.py | 9cbdfebebdc619e0c15f36a191516da7942aeb4b | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | SpivEgin/devenv | 27a9211c68293b16578fe3959578be822da7e1ca | 8c89aa77a38d6a0e915d99e02afcc5ae46fc39f3 | refs/heads/master | 2023-01-20T21:00:20.978045 | 2017-05-19T03:55:36 | 2017-05-19T03:55:36 | 91,119,096 | 1 | 1 | null | 2023-01-12T06:51:14 | 2017-05-12T18:27:47 | Python | UTF-8 | Python | false | false | 4,252 | py | import os
from django import VERSION as DJANGO_VERSION
import oscar
from oscar.defaults import * # noqa
# Path helper
location = lambda x: os.path.join(os.path.dirname(os.path.realpath(__file__)), x)
ALLOWED_HOSTS = ['test', '.oscarcommerce.com']
DATABASES = {
'default': {
'ENGINE': os.environ.get('DA... | [
"spivegin@txtsme.com"
] | spivegin@txtsme.com |
4b640544a4d88ad57b67c273a4c148f38fbf646b | 3cedc2e0867a53ed2f36e01624f369693d1a050d | /rnn/rnn82.py | 58782ee9209e1ef370e14af147d9f4169ab882b7 | [] | no_license | lkpiel/mastersthesis | a471d8c6a5881e13599b22965dd3f437c83fc967 | 71c723b435b347d2805e159b6e10828f89541e98 | refs/heads/master | 2023-02-20T11:57:45.266361 | 2018-05-06T11:17:43 | 2018-05-06T11:17:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,282 | py | #! /usr/bin/python3
import sys
print(sys.version)
import sys
import pandas
import numpy as np
from keras.preprocessing.sequence import pad_sequences
from keras.models import Sequential, load_model
from keras.layers import Dense, Dropout, Average, Merge, Layer, Conv2D, MaxPooling2D, GlobalAveragePooling2D, GlobalAvera... | [
"leo.piel@pipedrive.com"
] | leo.piel@pipedrive.com |
da48712a86cf4e6e34fa836703e6b99e8b23ddda | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /x44ZRvQtJ6TyZQhwx_20.py | f70bec02e1d036caf0e6764bad719e56541eceeb | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py |
def is_pandigital(n):
holder = []
for num in str(n):
holder.append(num)
unique = list(map(int, list(dict.fromkeys(holder))))
values_to_check = list(range(0, 10))
result = all(elem in unique for elem in values_to_check)
return(result)
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
0b4fa5edf61e03ebd315420faa11e09cf3b22720 | 564b9c85088ad5f3dd5929fb617f04086967558c | /m_f_CWproj/m_f_app/views.py | 249c133416c8d61b51313d7ea33c903c39fbd650 | [] | no_license | cs-fullstack-2019-spring/django-modelform1-cw-Joshtg1104 | 044b760627f350d1657470b30d1bb5ece5aed203 | dd96648f9b5f019b1cbf6deb198f63af3dc29915 | refs/heads/master | 2020-04-25T18:08:01.539136 | 2019-03-01T19:46:32 | 2019-03-01T19:46:32 | 172,974,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from django.http import HttpResponse
from django.shortcuts import render
from .forms import NewPostForm
# Create your views here.
# index function that applies the form "NewPostForm" to newPost.html
def index(request):
newPost = NewPostForm()
if request.method == "POST":
print("It works")
newP... | [
"joshtg1104@gmail.com"
] | joshtg1104@gmail.com |
c23eb8db332afec90a2ef03172fdfaffb27a4130 | 5cbd6ef31c94f671c76e49d4c8ea607df157ac02 | /tests/test_colors.py | 2e97602836ddf342aaabff90faf2d5f519541dd8 | [
"MIT"
] | permissive | brianbruggeman/kelte | 5e182370f1d6b88cd9e262c06c075926870181f6 | 6dd8a53da07697ffc87e62aa397be7b3b08f0aa0 | refs/heads/master | 2020-03-20T23:17:58.841258 | 2018-07-10T21:53:18 | 2018-07-24T15:55:48 | 137,839,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | import pytest
@pytest.mark.parametrize(
"data",
[
{ # default
"kwds": {},
"expected": {
"red": 0,
"green": 0,
"blue": 0,
"alpha": 255,
"hex": "00" * 3,
"hexa": "00" * 3 + "ff",
... | [
"Brian.M.Bruggeman@gmail.com"
] | Brian.M.Bruggeman@gmail.com |
dd2ad3e05f47b691c6e78059e89ea5774dccd80d | 6559138a129678027dc82c059330cfaa14d61897 | /src/0.py | 8065041b974a6cf118ce1091864cc2ab446a4da4 | [
"CC0-1.0"
] | permissive | ytyaru/Python.curses.20210607091706 | 7c9b449920ba426a5a5bd7d739efc6f071007b38 | 50a38593cbe71da4d8c667a3afa8be0b36ee8f02 | refs/heads/master | 2023-05-31T13:19:40.736629 | 2021-06-09T04:05:11 | 2021-06-09T04:05:11 | 374,500,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | #!/usr/bin/env python3
# coding: utf8
# 色をセットする。
import os, curses
def main(stdscr):
if not curses.has_colors(): raise Exception('このターミナルは色を表示できません。')
if not curses.can_change_color(): raise Exception('このターミナルは色を変更できません。')
curses.use_default_colors()
for i in range(1, curses.COLORS):
curses.init... | [
"yttry0@gmail.com"
] | yttry0@gmail.com |
ad040adb2f5a1b4fa3eb0e8111e40362616bd91a | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/Trigger/TrigSteer/TrigSteering/share/pureSteering_menu_with_multi_seeding.py | 29a92c02af4ab242863feb1cbb6a7965ae498cdf | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,667 | py | from TriggerMenu.TriggerConfigLVL1 import TriggerConfigLVL1
from TriggerMenu.l1.Lvl1Flags import Lvl1Flags
from TriggerMenu.l1.Lvl1MenuItems import LVL1MenuItem
from TriggerMenu.l1.TriggerTypeDef import TT
from TriggerMenu.l1.Lvl1Condition import ThrCondition, Lvl1InternalTrigger
from TriggerMenu.l1.Logic i... | [
"rushioda@lxplus754.cern.ch"
] | rushioda@lxplus754.cern.ch |
a149115e46739b848bda41b1dcf90d87e52bf605 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_13371.py | 322e85169c6dc9863b7ef4ed1e782d6d7ded750a | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | # How to implemente oauth process in a different window and then reload caller window
window.parent.location.reload();
window.close();
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
9f71501b969443ac8f8eb704fe52c12ef0ec0c03 | 6e9c9128054da7eea28a4627381df28f95416ee5 | /finance_ml/labeling/trend.py | 5f114e57c71fe6fb5efa361de0ecb43606c8b615 | [
"MIT"
] | permissive | BTCTON/finance_ml | c5a4ad2486608ad19c92c04c70fe513be135c236 | a585be2d04db5a749eb6b39b7336e5aeb30d6327 | refs/heads/master | 2021-12-23T07:53:13.791609 | 2021-10-15T01:47:41 | 2021-10-15T01:47:41 | 158,898,508 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,671 | py | import numpy as np
import pandas as pd
import multiprocessing as mp
import statsmodels.api as sm
from ..multiprocessing import mp_pandas_obj
def t_val_linreg(close):
x = np.ones((close.shape[0], 2))
x[:, 1] = np.arange(close.shape[0])
ols = sm.OLS(close, x).fit()
return ols.tvalues[1]
def _get_bins... | [
"f.j.akimoto@gmail.com"
] | f.j.akimoto@gmail.com |
796050d7fcc74771bea6bbb5c4dcb549237f4767 | 88f7a8c58de6003722ec45a0ad752023470a2121 | /snippets/logger.py | fdbfbc110e6c46ea24078264cf0f075ce6dd0b5b | [
"MIT"
] | permissive | boada/planckClusters | 5f90fcdddb13040a6ba50ef8d24eac390ae6e476 | 731be562e9e91e4468f5a90d8f161a4e9593fcc8 | refs/heads/master | 2021-01-13T14:30:19.473845 | 2019-12-18T21:19:43 | 2019-12-18T21:19:43 | 74,033,781 | 3 | 0 | null | 2017-09-05T15:09:18 | 2016-11-17T14:18:33 | Python | UTF-8 | Python | false | false | 1,452 | py | """
These functions can be used for logging information.
.. Warning:: logger is not multiprocessing safe.
:author: Sami-Matias Niemi
:contact: smn2@mssl.ucl.ac.uk
:version: 0.3
"""
from __future__ import print_function
from builtins import object
import logging
import logging.handlers
def setUpLogger(log_filename,... | [
"stevenboada@gmail.com"
] | stevenboada@gmail.com |
56bbe72cc69782b3a1eb894bcbf4c83145739ce8 | 19907d6f47f7af804b0ddee642d98edd170d7f58 | /tests/test_param.py | 943303a993ebac47c916b34093468acd6d0c3503 | [
"MIT"
] | permissive | GuancongLuo/roslibpy | 3560080271d9df841a051abab402479fdcc895f2 | 92b97d6daa78d30384e3a347d46be51c6e7fbd01 | refs/heads/main | 2023-07-13T02:06:10.846579 | 2021-08-13T11:48:22 | 2021-08-13T11:48:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | from roslibpy import Param
from roslibpy import Ros
def test_param_manipulation():
ros = Ros('127.0.0.1', 9090)
ros.run()
param = Param(ros, 'test_param')
assert param.get() is None
param.set('test_value')
assert param.get() == 'test_value'
param.delete()
assert param.get() is None
... | [
"casas@arch.ethz.ch"
] | casas@arch.ethz.ch |
09b864579ac3497d0486423317416ded477a0db9 | 711756b796d68035dc6a39060515200d1d37a274 | /output_cog_tags/initial_9331.py | 552551a0597c6aa2699bf45fd4d1323e76fb108c | [] | no_license | batxes/exocyst_scripts | 8b109c279c93dd68c1d55ed64ad3cca93e3c95ca | a6c487d5053b9b67db22c59865e4ef2417e53030 | refs/heads/master | 2020-06-16T20:16:24.840725 | 2016-11-30T16:23:16 | 2016-11-30T16:23:16 | 75,075,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,332 | py | import _surface
import chimera
try:
import chimera.runCommand
except:
pass
from VolumePath import markerset as ms
try:
from VolumePath import Marker_Set, Link
new_marker_set=Marker_Set
except:
from VolumePath import volume_path_dialog
d= volume_path_dialog(True)
new_marker_set= d.new_marker_set
marker_set... | [
"batxes@gmail.com"
] | batxes@gmail.com |
6e30cc3df48b3e879295e8c3e9842e10d1b8cbbe | 67a7c314fc99d9cd7a677fcb6bc2b6dfa20a9cff | /feeds/admin.py | 1468de4b629f86c39aa9a3bf5e76bab219607b47 | [] | no_license | Xodarap/Eipi | 7ebbb9fd861fdb411c1e273ea5d2a088aa579930 | d30997a737912e38316c198531f7cb9c5693c313 | refs/heads/master | 2016-09-11T06:28:01.333832 | 2011-05-03T15:35:20 | 2011-05-03T15:35:20 | 1,367,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | py | from eipi2.feeds.models import Story, Source
from django.contrib import admin
#admin.site.register(Story)
admin.site.register(Source)
| [
"eipi@mybox.(none)"
] | eipi@mybox.(none) |
9a1fd6a0cc906e207694663ee5bd730c1dabfb9a | 4ae3b27a1d782ae43bc786c841cafb3ace212d55 | /Test_Slen/Pytest_proj/01/unit_proj1/unittest_code/test_calc.py | ad41eb73c03723bfdbcc20d36f7d612633eab79e | [] | no_license | bopopescu/Py_projects | c9084efa5aa02fd9ff6ed8ac5c7872fedcf53e32 | a2fe4f198e3ca4026cf2e3e429ac09707d5a19de | refs/heads/master | 2022-09-29T20:50:57.354678 | 2020-04-28T05:23:14 | 2020-04-28T05:23:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,838 | py | # Run all tests in the project
# (01) C:\Users\jsun\Documents\Py_projects\Pytest_proj\01\unit_proj1>python -m unittest discover
#
# run certain test files
# (01) C:\Users\jsun\Documents\Py_projects\Pytest_proj\01\unit_proj1>python -m unittest unittest_code.test_calc
#
# run a module in a file
# (01) C:\Users\jsun\Docum... | [
"sunusd@yahoo.com"
] | sunusd@yahoo.com |
f464a13b1fcfdec9f6c272a83db482c04e00a7ea | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/darcymason_pydicom/pydicom-master/pydicom/examples/write_new.py | fa26c8a48166bc0bbc812d9e5803e25e98916302 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 2,901 | py | # write_new.py
"""Simple example of writing a DICOM file from scratch using pydicom.
This example does not produce a DICOM standards compliant file as written,
you will have to change UIDs to valid values and add all required DICOM data
elements
"""
# Copyright (c) 2010-2012 Darcy Mason
# This file is part of pydicom,... | [
"659338505@qq.com"
] | 659338505@qq.com |
4bb0c638739f9c54859ab0701f29eb16d585d092 | d4f87828a3767788dfbd83ef150d4af13c8ac762 | /test/test_session.py | 7a5ca329d60dca3375956d57a7a7f1204720222e | [] | no_license | n-sundararajan/python-looker-api | 55dc6779843e28796c573a62ee30b75e135e8be5 | 498301068e7bd983b99d6647785a9f3d315ceadd | refs/heads/master | 2020-03-19T13:52:39.284698 | 2018-06-08T10:33:07 | 2018-06-08T10:33:07 | 136,599,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,408 | py | # coding: utf-8
"""
Looker API 3.0 Reference
### Authorization The Looker API uses Looker **API3** credentials for authorization and access control. Looker admins can create API3 credentials on Looker's **Admin/Users** page. Pass API3 credentials to the **/login** endpoint to obtain a temporary access_token.... | [
"sundar.narasimhan@accenture.com"
] | sundar.narasimhan@accenture.com |
399662f6cd4782e90c7f737db9a999755c6b4f28 | b2f660f8b81cdf172baaa20c16ad845c3b1944d1 | /core/src/cgcloud/core/cloud_init_box.py | 85b565e69b7fa50f89413bdef6dac5a5c3c41a5b | [] | no_license | adderan/cgcloud | 761088e0e4e969a728ba4e406823aa38e535ab37 | 6430e6816ee6233dc219a9df4c00c8112e13515b | refs/heads/master | 2020-12-26T03:10:21.211589 | 2015-07-21T06:02:04 | 2015-07-21T06:02:04 | 39,169,013 | 0 | 0 | null | 2015-07-16T01:04:08 | 2015-07-16T01:04:07 | null | UTF-8 | Python | false | false | 8,344 | py | from abc import abstractmethod
from fabric.operations import run
import yaml
from cgcloud.core.box import Box, fabric_task
from cgcloud.core.instance_type import ec2_instance_types
class CloudInitBox( Box ):
"""
A box that uses Canonical's cloud-init to initialize the EC2 instance.
"""
def _ephemer... | [
"hannes@ucsc.edu"
] | hannes@ucsc.edu |
8e0824c850a042e87ea7c8ce05119a0b59d37eca | dd35833bead7de2f2ca7affd985ac0d345b2ab6e | /apps/trade/adminx.py | ab5b4d915f633a0a7dbb263fc9dd28104e07e87c | [] | no_license | lhsheild/MxShop | df14c11aa7457f304194ff099a35869d83f0d9a7 | 811be4dad55284e737c80ebd4d00c079837393f2 | refs/heads/master | 2020-05-27T16:23:00.578686 | 2019-09-10T08:09:01 | 2019-09-10T08:09:01 | 188,130,934 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | # trade/adminx.py
__author__ = 'derek'
import xadmin
from .models import ShoppingCart, OrderInfo, OrderGoods
class ShoppingCartAdmin(object):
list_display = ["user", "goods", "nums", ]
class OrderInfoAdmin(object):
list_display = ["user", "order_sn", "trade_no", "pay_status", "post_script", "order_mount",
... | [
"lhsheild@yahoo.com"
] | lhsheild@yahoo.com |
a1424d110e77f4bb77673e4f6a542829529d41b1 | de40d3fa8d8af0030556d27d6833f6a1a0e7700c | /baekjoon/3036py/a.py | 981dc22c90b5ec6aadaa481201e84db3e998b531 | [] | no_license | NeoMindStd/CodingLife | cd6a627209c0353f4855f09fd5dfef8da4bbfef6 | bcb6c3752f472e6a4f3b8f158d02bc3599dfcda3 | refs/heads/master | 2022-12-24T10:42:45.390085 | 2022-12-11T16:27:16 | 2022-12-11T16:27:16 | 191,797,634 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | def gcd(a, b):
while b != 0:
a, b = b, a % b
return a
input()
rings = list(map(int, input().split()))
for i in range(1, len(rings)):
g = gcd(rings[0], rings[i])
print("%d/%d" %(rings[0]//g, rings[i]//g))
| [
"dwj1996@naver.com"
] | dwj1996@naver.com |
3fb17157eabb72cf0582411fe8606ee38f2b47bc | 0d4ec25fb2819de88a801452f176500ccc269724 | /missing_words.py | f9dc6f23dfc2433a00eec544316e21f47b3862a2 | [] | no_license | zopepy/leetcode | 7f4213764a6a079f58402892bd0ede0514e06fcf | 3bfee704adb1d94efc8e531b732cf06c4f8aef0f | refs/heads/master | 2022-01-09T16:13:09.399620 | 2019-05-29T20:00:11 | 2019-05-29T20:00:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | def missingWords(s, t):
s = s.split()
t = t.split()
sl = len(s)
tl = len(t)
i = 0
j = 0
missing = []
while i<sl or j<tl:
if i<sl and j<tl and s[i] == t[j]:
i+=1
j+=1
else:
missing.append(s[i])
i+=1
return missing
s = "I am using hackerrank to improve programming"
t = "am hackerrank to improve"... | [
"rohithiitj@gmail.com"
] | rohithiitj@gmail.com |
6cf8cd691b13e24ce9df52d46259cef29fdf0c2d | 1fe8d4133981e53e88abf633046060b56fae883e | /venv/lib/python3.8/site-packages/keras/optimizer_v2/learning_rate_schedule.py | 44b502c0fd85e896c1bb8b0cb0755f152482e8d8 | [] | no_license | Akira331/flask-cifar10 | 6c49db8485038731ce67d23f0972b9574746c7a7 | 283e7a2867c77d4b6aba7aea9013bf241d35d76c | refs/heads/master | 2023-06-14T16:35:06.384755 | 2021-07-05T14:09:15 | 2021-07-05T14:09:15 | 382,864,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:d64207cd938934798e16ea7cab234dc04101b6193775075e683965bd07f43ce7
size 38611
| [
"business030301@gmail.com"
] | business030301@gmail.com |
58d7bb7fcdd3c6a57d6f09ecd8bf6afd942d5ddc | 1d60c5a7b8ce6277bff514e376f79848f706344c | /Data Scientist with Python - Career Track /22. Machine Learning with the Experts: School Budgets/02. Creating a simple first model/04. Writing out your results to a csv for submission.py | 1ecf2dabc884d95e4128cdc5264f21ac5eb946f2 | [] | no_license | DidiMilikina/DataCamp | 338c6e6d3b4f5b6c541c1aba155a36e9ee24949d | 3bf2cf3c1430190a7f8e54efda7d50a5fd66f244 | refs/heads/master | 2020-12-15T13:16:54.178967 | 2020-05-06T17:30:54 | 2020-05-06T17:30:54 | 235,113,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | '''
Writing out your results to a csv for submission
At last, you're ready to submit some predictions for scoring. In this exercise, you'll write your predictions to a .csv using the .to_csv() method on a pandas DataFrame. Then you'll evaluate your performance according to the LogLoss metric discussed earlier!
You'll ... | [
"didimilikina8@gmail.com"
] | didimilikina8@gmail.com |
7901103214afbd0b66f90ed496afaa03613081e1 | 1f2b85cc95a1f65df81c0dec8bfb8d7e5652aa88 | /schema/sdss5db/catalogdb/sdss_qso/dr16/sdss_dr16_qso_load.py | aa63b00775fb326e5c4ad9f70ad4140c5bfbffa5 | [
"BSD-3-Clause"
] | permissive | sdss/sdssdb | 2f22a90c51e1281c154f6c518a1ce8951f84a5ce | f7d3ef3ccfecd87b50ce05cf6af5a564679f15f5 | refs/heads/main | 2023-09-01T14:51:05.374886 | 2023-08-30T20:23:10 | 2023-08-30T20:23:10 | 136,257,152 | 9 | 3 | BSD-3-Clause | 2023-09-14T16:31:47 | 2018-06-06T01:55:39 | Python | UTF-8 | Python | false | false | 912 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# @Author: José Sánchez-Gallego (gallegoj@uw.edu)
# @Date: 2020-07-17
# @Filename: sdss_dr16_qso_load.py
# @License: BSD 3-clause (http://www.opensource.org/licenses/BSD-3-Clause)
import os
import astropy.table
from sdssdb.peewee.sdss5db import database
from sdssdb.uti... | [
"gallegoj@uw.edu"
] | gallegoj@uw.edu |
458e5843502120422f19ee16994dd5abe8dbc752 | f3b233e5053e28fa95c549017bd75a30456eb50c | /ptp1b_input/L80/80-79_MD_NVT_rerun/set_7.py | 7458323d9005088ca69f07063dec0e7ea8f6b48f | [] | no_license | AnguseZhang/Input_TI | ddf2ed40ff1c0aa24eea3275b83d4d405b50b820 | 50ada0833890be9e261c967d00948f998313cb60 | refs/heads/master | 2021-05-25T15:02:38.858785 | 2020-02-18T16:57:04 | 2020-02-18T16:57:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 741 | py | import os
dir = '/mnt/scratch/songlin3/run/ptp1b/L80/MD_NVT_rerun/ti_one-step/80_79/'
filesdir = dir + 'files/'
temp_prodin = filesdir + 'temp_prod_7.in'
temp_pbs = filesdir + 'temp_7.pbs'
lambd = [ 0.00922, 0.04794, 0.11505, 0.20634, 0.31608, 0.43738, 0.56262, 0.68392, 0.79366, 0.88495, 0.95206, 0.99078]
for j in la... | [
"songlin3@msu.edu"
] | songlin3@msu.edu |
7767c267e199e09d0e46349c097f5d5e81c5418b | bcc11151867b5f9ad765503348ab62d276aa03c7 | /astroNN/models/CNNBase.py | 681d284dd7e53494c87be3ec356bae34b42c30a8 | [
"MIT"
] | permissive | tundeakins/astroNN | a513492f51a3e053097d746f2d2e1ecc45fac73e | 07147dc6775dc37a8737650821a1370088327de1 | refs/heads/master | 2020-04-05T14:18:21.037721 | 2018-11-09T21:28:26 | 2018-11-09T21:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,393 | py | import json
import os
import time
from abc import ABC
import numpy as np
from sklearn.model_selection import train_test_split
from astroNN.config import MULTIPROCESS_FLAG
from astroNN.config import _astroNN_MODEL_NAME
from astroNN.config import keras_import_manager
from astroNN.models.NeuralNetMaster import NeuralNet... | [
"henryskyleung@gmail.com"
] | henryskyleung@gmail.com |
7ace0aa7551fd6e52de05ba8a71f111252c72041 | 6ea5b91e7f14114bea0aadfd59178997c59cd75d | /mysite/settings.py | 515a48f15dedf8c785836a2b9b94ed1f90ba2cf3 | [
"MIT"
] | permissive | sharif-42/django-elasticsearch | 68fe15333f4a2ed69c66b73bdeb27a0a1a28a115 | 999ee3382ef2ddcfcc62bd7ba330323000f3f1bf | refs/heads/main | 2023-06-18T04:04:54.162123 | 2021-07-18T03:58:47 | 2021-07-18T03:58:47 | 386,169,552 | 0 | 0 | MIT | 2021-07-18T03:58:48 | 2021-07-15T05:03:33 | Python | UTF-8 | Python | false | false | 3,525 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pathlib ... | [
"sharifulcsehstu@gmail.com"
] | sharifulcsehstu@gmail.com |
22d4d44bb76d79af871bf58881fbafb98270f5cf | 9390033cecf4247f5edc6551c39e9de39c04b036 | /python/django/new_project/new_project/settings.py | 337949d998a67723f8026da2805507ec234a3a9f | [] | no_license | JennaDalgety/coding-dojo | 4940bb853a9fcd706bc30f1615ff824fc7f7788d | d2647257a5e93652978c911d65e2a6ff97653392 | refs/heads/master | 2020-02-26T14:59:02.324328 | 2019-03-20T23:13:38 | 2019-03-20T23:13:38 | 67,653,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,130 | py | """
Django settings for new_project project.
Generated by 'django-admin startproject' using Django 1.10.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impor... | [
"jdalgety@gmail.com"
] | jdalgety@gmail.com |
24d12eba01fefcbfab00c21bc1fade185faa78e6 | 6c8c6e5d952cd821dbf6661e71896a473494a8eb | /blog/admin.py | 1e6fb4d2db410c56734a47133101fd69c3095635 | [] | no_license | Lethons/mywebsite | fe2d8fae75f1228e309a847071a7d4182f7b005d | 3a26c764ae0fa4bb628b3ed3fad3f04784e78153 | refs/heads/master | 2020-03-21T12:59:25.712867 | 2018-06-29T09:04:24 | 2018-06-29T09:04:24 | 138,582,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | from django.contrib import admin
from .models import Tag, Blog
# Register your models here.
@admin.register(Blog)
class BlogAdmin(admin.ModelAdmin):
list_display = ('title', 'author', 'tag', 'publish_time', 'update_time')
fields = ('title', 'content', 'publish_time', 'author', 'tag')
list_per_page = 20
... | [
"lethons@163.com"
] | lethons@163.com |
cc487a546b0b4540e9263ae5b052b35e62beae3d | 84a70e27982094ac78d34642674f4e873d571b23 | /src/apps/productos/migrations/0015_auto_20190812_2008.py | bfdc2ab0a43d78dca4ff19b2e75fce2e18fa6372 | [] | no_license | valenciacamilo12/Pagina-Web-Farmacia---Django- | 2b9eef0b0f5011247274a528d63fdaa0ed557fad | 7c8a9ac78bd2cf48706a2ef76cb32ac0824094ea | refs/heads/master | 2020-07-02T09:38:31.978196 | 2019-08-16T03:07:58 | 2019-08-16T03:07:58 | 201,487,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 513 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2019-08-13 01:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('productos', '0014_auto_20190812_1939'),
]
operations = [
migrations.AlterFiel... | [
"camilo3341215@gmail.com"
] | camilo3341215@gmail.com |
7a32049f420bba3e44a3f942d34827eddd50153c | 68561c61c2a784f1765fae8b07e90d7ec53f1edd | /maestral/__init__.py | 7a979d2e1fb6e272c6317970de4a5baf55e2f40a | [
"MIT"
] | permissive | ailiao/maestral-dropbox | 68213e219a21f0d76c80be839f73d65120cf99f5 | f7043ef23062d6cc85d61701cb129bdc8f09f065 | refs/heads/master | 2021-04-07T17:14:26.936449 | 2020-03-20T00:31:22 | 2020-03-20T00:31:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # -*- coding: utf-8 -*-
"""
@author: Sam Schott (ss2151@cam.ac.uk)
(c) Sam Schott; This work is licensed under a Creative Commons
Attribution-NonCommercial-NoDerivs 2.0 UK: England & Wales License.
The following APIs should remain stable for front ends:
* maestral.main.Maestral
* maestral.oauth
* maestral.constants... | [
"ss2151@cam.ac.uk"
] | ss2151@cam.ac.uk |
9ebb033419f4144ac100bb8f70b5945e77e76bf8 | 94838674ffd175df6194437c1ccc3f90ab409d6c | /pillowV3/log/2018-12-30 15:01:43.443410 | d5834b71bf2619ece82e9e3118f46716eacedcce | [] | no_license | WojciechKoz/MyFirstNeuralNetwork | 4fdb3140d8f02257599d005638598f78055c1ac8 | 3cd032aba80ecd71edb0286724ae9ba565b75a81 | refs/heads/master | 2020-04-02T03:02:48.680433 | 2020-02-29T17:57:43 | 2020-02-29T17:57:43 | 153,943,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372,294 | 443410 | #!/usr/bin/env python3
# -*- coding: utf8 -*-
from __future__ import print_function # new print() on python2
from datetime import datetime
import sys
import numpy as np
from mnist import MNIST
# Display full arrays
np.set_printoptions(threshold=np.inf)
mndata = MNIST('./data')
images_full, labels_full = mndata.loa... | [
"246992@student.pwr.edu.pl"
] | 246992@student.pwr.edu.pl |
0dfdbb64ae87c90a2faea1081212a757f355b52a | 593132164b6992b8b047cdf43a9d04c59fe607ee | /py_simple/14.直方图/14.4.3绘制图像直方图.py | ea06b99e0fe02ba77074c538cc3d9a4ee1bcd1d6 | [
"Apache-2.0"
] | permissive | ztfmars/OpenCV_Python_Tutorial | b69b98e5e6b4e31c4f699fdbbaac36db68b8098b | 2c9cf57f469dfec2aca8356f59f7473e5a506988 | refs/heads/main | 2023-02-14T22:40:38.456751 | 2021-01-17T02:18:21 | 2021-01-17T02:18:21 | 329,609,724 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 238 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 4 15:14:29 2018
"""
import cv2
import matplotlib.pyplot as plt
o=cv2.imread(r"../image/boatGray.bmp")
histb = cv2.calcHist([o],[0],None,[256],[0,255])
plt.plot(histb,color='r')
plt.show() | [
"ztfmars@163.com"
] | ztfmars@163.com |
fc0b447a2456e32eab54d3280fb6ec002374a543 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/21/usersdata/132/7646/submittedfiles/exercicio24.py | 6f1494ca275e078bdc33c5054fba35ef34694292 | [] | 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 | 283 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
salario=float(input('digite o salario:')
b=salario
imposto=0
if b>3000:
imposto=imposto+((b-1000)*0.35)
b=3000
if base>1000:
imposto=imposto + ((base-1000)*0.2)
print(' salario: %.2f'%(salario, imposto)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
0830399447aa0f121363d3b62bf09941e4d667bb | 6496d7ab505ab1df594d373c0c58206d580302f6 | /exercicio2.py | 63ad04b2a7e4b5da032aad729336883f6191a972 | [] | no_license | alicesilva/P1-Python-Problemas | 7050f323a073ff51c51cd94d451bddfac71bf30b | eade521a3c7f740bb901a6714385d91356a37835 | refs/heads/master | 2020-03-09T21:04:32.211493 | 2018-08-25T19:50:53 | 2018-08-25T19:50:53 | 129,000,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | #coding: utf-8
numero1 = int(raw_input())
numero2 = int(raw_input())
numero3 = int(raw_input())
if numero1 <= numero2 and numero1 <= numero3 and numero2 < numero3:
print numero1
print numero2
print numero3
elif numero1<numero2 and numero2<numero3 and numero3<numero2:
print numero1
print numero3
print numero2
elif... | [
"alice.silva@ccc.ufcg.edu.br"
] | alice.silva@ccc.ufcg.edu.br |
3820696ada3ab15a036ddeea0e29c7a9fbd88bae | 83646bb54129da9fae70ec05e943093cc221ad85 | /Interface.py | 56afa59ebd7c4cccc2d1aa017097fa1fc2fb57fe | [] | no_license | Rybak-a87/password_store_gui | 88b6464fbbe5643c63c0a00caee02f937f4007bc | 2a2c771e34b5fda01b2d404b713cc00fa0b35816 | refs/heads/main | 2023-02-06T06:44:10.178644 | 2020-12-25T12:32:10 | 2020-12-25T12:32:10 | 318,624,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,632 | py | import tkinter
from BackendJson import BackendJson
from Cipher import Cipher
class Interface:
def __init__(self, window_name):
self.backend = BackendJson("data")
self.cipher = Cipher()
self.root = tkinter.Tk()
self.root.title(window_name)
# self.root.iconbitmap("./ico/ico... | [
"rybak.a87@gmail.com"
] | rybak.a87@gmail.com |
8635e077edd2b79d936a964c7c40929515a6af46 | 2b398353f5b0529ac666ef180e9dc966474a70c0 | /vspk/v5_0/nudeploymentfailure.py | 99706036d430b1c60d8f3ed6caf380e2699e5a7f | [
"BSD-3-Clause"
] | permissive | nuagenetworks/vspk-python | e0c4570be81da2a4d8946299cb44eaf9559e0170 | 9a44d3015aa6424d0154c8c8a42297669cce11f9 | refs/heads/master | 2023-06-01T01:12:47.011489 | 2023-05-12T19:48:52 | 2023-05-12T19:48:52 | 53,171,411 | 21 | 18 | BSD-3-Clause | 2020-12-16T12:36:58 | 2016-03-04T23:10:58 | Python | UTF-8 | Python | false | false | 18,334 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2015, Alcatel-Lucent Inc, 2017 Nokia
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# * Redistributions of source code must retain the above copyrigh... | [
"corentin.henry@nokia.com"
] | corentin.henry@nokia.com |
c6765eaf33799a801f779c51db8d8eb557e22897 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/certificateregistration/v20190801/get_app_service_certificate_order.py | a03845a380da747da89259d9a54823779763bfe4 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 15,279 | 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, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
6d61f46d1ce445b4126a332ddd0961ed016516be | e3e7e069b1b66c5d63319a23a2201a38171df23f | /dataUpdate/util/ts_util.py | 590eb20c1be54ba8a6958b00f1cae028f8c95ba1 | [] | no_license | webclinic017/backtrader_learning | b6ba1199ac31b5bbad0ce7abe7e4fca912cb9c8a | dfa5202a99af96273d49a4e92412c3b0d3c724a7 | refs/heads/main | 2023-08-18T17:44:20.751035 | 2021-10-09T08:43:29 | 2021-10-09T08:43:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | import tushare as ts
token = 'e554b98ac431b1146b1db6bcb89dde62837fd87fb4c31aca54ff249f'
pro = ts.pro_api(token=token)
def getStockBasicInfo():
'''
获取stock的基础信息
:return:
'''
data = pro.query('stock_basic', exchange='', list_status='L',
fields='ts_code,symbol,name,area,industr... | [
"wuzifan0817@gmail.com"
] | wuzifan0817@gmail.com |
3a204339dd77109d1f6901ef336b30dc4e400fea | 8fa003141ed3a01e5aa55369d63c332f43110c5b | /test/fx2trt/converters/acc_op/test_min.py | 2f19a72cf9753885e1e7a766851f211477aa7e28 | [
"BSD-3-Clause",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | EshikaShah/pytorch | aec1e648fbcc32f2af5b59500e3986df3cfa4d9e | 8734eed829b0a14b819b97982222e3f494db01d1 | refs/heads/master | 2023-08-18T19:37:54.722565 | 2021-10-18T18:04:03 | 2021-10-18T18:04:03 | 414,952,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,426 | py | import torch
import torch.fx.experimental.fx_acc.acc_ops as acc_ops
from caffe2.torch.fb.fx2trt.tests.test_utils import AccTestCase
from parameterized import parameterized
class TestMinConverter(AccTestCase):
@parameterized.expand(
[
("dim0_keepdim", 0, True, torch.randn(2, 2, 3)),
... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
4adb2fcf27d222cf31a55b5486f751060deec10d | 54a26bf56aebd604d4dece733f08d7d30cd27f89 | /zdemo/aclassview/views.py | 071bb0719b01a7d382ba98131db3b8a1ebd7040c | [
"MIT"
] | permissive | zzZaida/django_27 | b78f5ae8bccfa11074221ba32241878d703aa535 | bbbba8be9547fb815c68e94fadb7e8b6eebf75c9 | refs/heads/master | 2020-07-03T19:47:25.037195 | 2019-08-13T12:11:29 | 2019-08-13T12:11:29 | 202,030,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,410 | py | from django.http import HttpResponse
from django.shortcuts import render
from django.utils.decorators import method_decorator # utils --> 工具类
from django.views import View
# 定义装饰器
def my_decorator(func):
def wrapper(request, **kwargs):
print('添加装饰器-----', request.method)
return func(request, **k... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
90f8b5f0863837b4f24ed7543348060ac40bbcc6 | d842a95213e48e30139b9a8227fb7e757f834784 | /gcloud/google-cloud-sdk/.install/.backup/lib/surface/dataproc/clusters/create.py | ebf2e974a6b41b416363de240513ced274b6ed35 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | bopopescu/JobSniperRails | f37a15edb89f54916cc272884b36dcd83cdc868a | 39e7f871887176770de0f4fc6789e9ddc7f32b1f | refs/heads/master | 2022-11-22T18:12:37.972441 | 2019-09-20T22:43:14 | 2019-09-20T22:43:14 | 282,293,504 | 0 | 0 | MIT | 2020-07-24T18:47:35 | 2020-07-24T18:47:34 | null | UTF-8 | Python | false | false | 4,982 | py | # -*- coding: utf-8 -*- #
# Copyright 2015 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"luizfper@gmail.com"
] | luizfper@gmail.com |
a3b5797db823677eca00cbbb4314cf2ab0379c65 | 3b9bf497cd29cea9c24462e0411fa8adbfa6ba60 | /leetcode/Problems/468--Validate-IP-Address-Medium.py | a283e3d9f2615a578f4a10ccff3742d93dffa0fb | [] | no_license | niteesh2268/coding-prepation | 918823cb7f4965bec096ec476c639a06a9dd9692 | 19be0766f6b9c298fb32754f66416f79567843c1 | refs/heads/master | 2023-01-02T05:30:59.662890 | 2020-10-17T13:12:34 | 2020-10-17T13:12:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | class Solution:
def validateIPV4(self, IP):
ipSplit = IP.split('.')
if len(ipSplit) != 4:
return False
for i in range(4):
if len(ipSplit[i]) == 0 or len(ipSplit[i]) > 3:
return False
if not ipSplit[i].isdigit():
return False... | [
"akulajayaprakash@gmail.com"
] | akulajayaprakash@gmail.com |
5dc820764db1b26f0d3a0a84d332b95f306ea84b | 4c83b4d7aca6bbcd15b922ad7314440fea7c9a70 | /2020-07-27_modo_horario_cp_onda1_10d/bkp/script_modo_horario_2020-03-05.py | f79f6c5aa1e5becacdcfb011cd1bd0d48794ccbc | [] | no_license | poloplanejamento/odmatrix-joinville | 63b60a85055700698cdb590c181e7c8a4d5c7361 | be7ce0814fb9dad2d289cd836dde51baa9c0850d | refs/heads/main | 2023-01-23T11:43:45.451126 | 2020-12-10T23:17:58 | 2020-12-10T23:17:58 | 320,402,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,337 | py | #!/usr/bin/env python3
# Bibliotecas
from http.client import HTTPSConnection
from base64 import b64encode
import json
import csv
import pandas as pd
# Variáveis
projectID = "40" # ID do projeto, conforme mostrado no frontend Web
c = HTTPSConnection("api.odmatrix.app")
userAndPass = b64encode(b"fe6b53f0280443d5bd4... | [
"caiocco@gmail.com"
] | caiocco@gmail.com |
bb2ea7c18040e64a3b1053c49a768e69116d0f47 | 625f2f86f2b2e07cb35204d9b3232427bf462a09 | /HIRun2018PbPb/L1T/L1Ntuple_HIRun2015_HIMinimumBias2_egBypassFGBit1ShapeBit1/l1Ntuple_RAW2DIGI.py | 2a05fe0379f2e8a5c4507ee92d3ee8daa127a5b5 | [] | no_license | ttrk/production | abb84c423a076fd9966276b7ed4350936c755e0b | f8a64c9c38de215802799365f0f7a99e1ee78276 | refs/heads/master | 2023-02-08T23:48:56.355141 | 2023-01-26T08:46:22 | 2023-01-26T08:46:22 | 52,877,406 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 4,716 | py | # Auto generated configuration file
# using:
# Revision: 1.19
# Source: /local/reps/CMSSW/CMSSW/Configuration/Applications/python/ConfigBuilder.py,v
# with command line options: l1Ntuple -s RAW2DIGI --era=Run2_2017 --customise=L1Trigger/Configuration/customiseReEmul.L1TEventSetupForHF1x1TPs --customise=L1Trigger/Con... | [
"tatark@mit.edu"
] | tatark@mit.edu |
d3106b474013de948f7febf50b505b9a28c5159b | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03238/s968684820.py | 27dae0cfe0a4a7956ffe2e7686af7273bbf03bf4 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | x=int(input())
if(x==1):
print("Hello World")
else:
x=int(input())
y=int(input())
print(x+y)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.