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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b867f04b4d5338ab74beb5d363063aedb323f8bc | 9b2255e0a474555d8a4d90f586e280d40224a181 | /apps/navigation/api.py | c97f598f1ff10310113981f52a3913081ccd3fed | [] | no_license | rogeriofalcone/redirector | 85f496f7c3a3c755b2d9f86f90d25ace783842e4 | 8255be80ce4e3245317864dcc580a1ef68a7c244 | refs/heads/master | 2020-04-08T07:03:19.053680 | 2012-08-12T19:13:35 | 2012-08-12T19:13:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | import copy
object_navigation = {}
multi_object_navigation = {}
model_list_columns = {}
sidebar_templates = {}
top_menu_entries = []
def register_multi_item_links(src, links, menu_name=None):
"""
Register a multiple item action action to be displayed in the
generic list template
"""
multi_object... | [
"Roberto.Rosario.Gonzalez@gmail.com"
] | Roberto.Rosario.Gonzalez@gmail.com |
fbe5e008b57babb92e2dd06f1be7edb60f2f4dac | 299e5934971f9de638692e2667d6e270bcab5cbd | /13.罗马数字转整数.py | 6aa2f8131eac1ddc741f6bd0b4331f804a96ec00 | [] | no_license | ycj123/Leetcode-Python3 | 14bcd6c9f4d26191d5d40c77e923df4d0be4c0e5 | 1593960cdf2655ef1dcf68e3517e7121670c6ac3 | refs/heads/master | 2022-12-16T23:12:19.326702 | 2020-09-18T00:17:45 | 2020-09-18T00:17:45 | 295,302,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | #
# @lc app=leetcode.cn id=13 lang=python3
#
# [13] 罗马数字转整数
#
# 优先匹配长度为2
# @lc code=start
class Solution:
def romanToInt(self, s: str) -> int:
helper = {
'I':1,
'V':5,
'IV':4,
'X':10,
'IX':9,
'L':50,
'C':100,
'XL... | [
"yangchijiang@icloud.com"
] | yangchijiang@icloud.com |
9ebb2d8c25c8e4c6f8e7973204a6127aa4844a89 | 40530b1d97c237944e4a01826f2e7a746d98acc0 | /modifydevicetree.py | e555e1cd8a21521c84bf59a3b2062e527d8e0050 | [
"CC0-1.0"
] | permissive | Hackveda/XNUQEMUScripts | e0270b27a3cb889822a8429a0842e548507a34c8 | d5492cbffe2c1ce29026901b833c0d9cd295f37b | refs/heads/master | 2021-01-05T22:40:01.532712 | 2018-07-21T17:07:54 | 2018-07-21T17:07:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,320 | py | import sys
from devicetreefromim4p import *
#removeCompatibles = [b"aic,1", b"pmgr1,t8015", b"wdt,t8015\x00wdt,s5l8960x", b"gpio,t8015\x00gpio,s5l8960x", b"sochot,s5l8955x", b"tempsensor,t8015", b"aes,s8000"]
keepCompatibles = [b"uart-1,samsung", b"D22AP\x00iPhone10,3\x00AppleARM"]
removeNames = [b"wdt", b"backlight"]... | [
"zhuoweizhang@yahoo.com"
] | zhuoweizhang@yahoo.com |
95509adab1d7fd1668388a55b0f78c9747fc7365 | 23744d0acc0119d0222c003179335af5b3259a67 | /DOTA_configs/_base_/datasets/NV10.py | 5ce6a3f114d7cd51496ba0e3c9b8a205c7f78373 | [
"Apache-2.0"
] | permissive | yawudede/mmd_rs | f3db3c0288eea67b78fdde09600d9b1ef4e60478 | a0a468933e69bf90d9bc71c37c8626d8dda7fd24 | refs/heads/master | 2023-03-18T01:00:11.029808 | 2021-03-23T03:41:14 | 2021-03-23T03:41:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,976 | py | dataset_type = 'CocoDataset'
data_root = 'data/NWPU_VHR_10/'
img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
train_pipeline = [
dict(type='LoadImageFromFile'),
dict(type='LoadAnnotations', with_bbox=True),
dict(type='Resize', img_scale=(800, 800), keep_rati... | [
"alexhzy@126.com"
] | alexhzy@126.com |
c98407abf255ab9a3130d1de2aec9835447aed79 | d1ea752332028ad6e621b68c32496cad5ae33fa4 | /backend/testing_module_options_1/urls.py | 89bfdd81e27b4afcd715afbaecd9cc0510ba8d08 | [] | no_license | crowdbotics-apps/testing-module-options-1 | 872d24a6dd8e34c0b73b61e066b3187f2a4adfab | 1a061e46115787df3b1013aeb5282891f825b473 | refs/heads/master | 2023-07-27T02:01:22.644918 | 2021-09-16T14:50:17 | 2021-09-16T14:50:17 | 407,200,684 | 0 | 0 | null | 2021-09-16T14:51:11 | 2021-09-16T14:40:27 | Python | UTF-8 | Python | false | false | 2,291 | py | """testing_module_options_1 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='h... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
5c1df1d7fc9d51ab054ea9607fffab52a876136c | 55a729cee20bb37f9a2bab323b1afb148e0768d2 | /pyigm/cgm/cgmsurvey.py | d2d1529f9d090035854331d413db2ec16708549b | [] | no_license | SunilSimha/pyigm | 502b1d46533dfec60dacfa41498b38bcc9622298 | cd09dedce40cf959ed15eaecd4f01f05856dd9f2 | refs/heads/master | 2021-01-25T06:24:29.282634 | 2017-06-01T18:54:39 | 2017-06-01T18:54:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,740 | py | """ Classes for CGM Surveys
"""
from __future__ import print_function, absolute_import, division, unicode_literals
import numpy as np
import os
import warnings
import pdb
import json, io
from astropy.table import Table, Column
from astropy.coordinates import SkyCoord
from pyigm.utils import lst_to_array
from pyigm.s... | [
"xavier@ucolick.org"
] | xavier@ucolick.org |
e33058af373d06e2f01f0dedd2779cbce9ab58b6 | cef082f9fd218e807ad6deedfc95b485fe4152a0 | /SecondWeek/example_http.py | 601ec43cf64d916ec85671ec7715c03db19b71b8 | [] | no_license | banziha104/DjangoProjects | bdb814dbcaa9a0c50d05b42ee7e319a5129dfef9 | 802e412fcabedd5e08abbf14f2587bd2231491ff | refs/heads/master | 2021-01-23T05:29:17.563194 | 2017-10-17T10:28:16 | 2017-10-17T10:28:16 | 102,469,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 352 | py | # python3 -m http.server 8000
# localhost:8000
# python3 -m http.server 8000 --bind 127.0.0.1
# python3 -m http.server --cgi 8000
import http.server
import socketserver
PORT = 8000
Handler = http.server.SimpleHTTPRequestHandler
with socketserver.TCPServer(("",PORT), Handler) as httpd:
print("serving at port", P... | [
"they6687@naver.com"
] | they6687@naver.com |
3cd443b57e159232737995be844e35ac1210e2c3 | 72b77f97876983025eb05a5aa1d6f248a1be3074 | /difference_between_element_sum_and_digit_sum_of_an_array.py | 8bac67b7f16134a05d0c93079b75484b8335f70b | [
"Apache-2.0"
] | permissive | erjan/coding_exercises | 4c6bccb2cdac65ccbc3107a482914275ecd157f7 | 68dac358a6d4dabd41d47dbd4addb2ec50e0ca11 | refs/heads/master | 2023-09-02T07:25:30.886175 | 2023-08-27T06:13:06 | 2023-08-27T06:13:06 | 236,281,070 | 5 | 0 | Apache-2.0 | 2020-05-05T15:08:49 | 2020-01-26T07:32:09 | Python | UTF-8 | Python | false | false | 727 | py | '''
You are given a positive integer array nums.
The element sum is the sum of all the elements in nums.
The digit sum is the sum of all the digits (not necessarily distinct) that appear in nums.
Return the absolute difference between the element sum and digit sum of nums.
Note that the absolute difference between tw... | [
"noreply@github.com"
] | erjan.noreply@github.com |
958cfc9e90e536eeeaddfdc8e2dc87dfd64c8875 | faa83d63a23aec7c4f45c6ce6d140985a9fb2d50 | /tests/conftest.py | 7baac17e56d03fac2affcd5502b8e75d9cc40e56 | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | thomasyi17/diana2 | dbf23382f5f84bd9cf86ce531f46452f0083e7f6 | 983e58ef0a5fe0d820a56c41c823369754019171 | refs/heads/master | 2023-03-24T15:13:29.421614 | 2022-06-12T21:42:28 | 2022-06-12T21:42:28 | 167,248,482 | 0 | 0 | MIT | 2019-06-25T19:41:36 | 2019-01-23T20:22:50 | Python | UTF-8 | Python | false | false | 1,973 | py | import sys
import pytest
import docker
from diana.utils.endpoint import Containerized
sys.path.append('utils')
@pytest.fixture(scope="session")
def setup_orthanc0():
S = mk_orthanc()
yield S
print("Tearing down orthanc fixture")
S.stop_container()
@pytest.fixture(scope="session")
def setup_orthanc1... | [
"derek_merck@brown.edu"
] | derek_merck@brown.edu |
32138084abc6dd3ae53877add615df18640ec606 | 92f69f1f33f6b3aa29dc4f3ccce7d4a06eb24bdf | /deploy/infer_onnx_tensorrt.py | be847017b35e952bf6f78ecc7da8ac525342cab4 | [
"MIT"
] | permissive | carlsummer/lcnn | 5d0b4c81e3b626e0380fdd36ad5685f3a6b9eb8f | b7ad7fa5502243ac50ca15a355e0001c5992d050 | refs/heads/master | 2023-06-21T05:45:44.910052 | 2021-07-29T00:55:33 | 2021-07-29T00:55:33 | 384,020,516 | 0 | 0 | MIT | 2021-07-08T06:13:42 | 2021-07-08T06:13:41 | null | UTF-8 | Python | false | false | 1,530 | py | # !/usr/bin/env python
# -- coding: utf-8 --
# @Author zengxiaohui
# Datatime:7/26/2021 10:12 AM
# @File:infer_net1_onnx.py
import argparse
import onnx
import onnx_tensorrt.backend as backend
import torch
from imutils import paths
from deploy.torch2onnx import get_image
if __name__ == "__main__":
parser = argpars... | [
"zengxh@chint.com"
] | zengxh@chint.com |
7306eaafeb9996f56c25f6148352a8b7c266f68f | fcfc5d6b6fe509072ace7522a8b48e7c3a8d80a8 | /api/upload/urls.py | 0f1e7170bdc27c20e7ede08af83e29b54b07da69 | [] | no_license | Torque-Webdev/ChamipnshpDatabase | 0323d13d39f27aa5516b68891e3cfde51ad063f4 | a3f44f7786d98afb58744e0410904750906f5ae0 | refs/heads/master | 2023-05-01T22:19:14.180758 | 2021-05-21T16:41:16 | 2021-05-21T16:41:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | from django.urls import path
from .views import FileViewSet
from rest_framework import routers
from django.urls import path, include
app_name = "upload"
router = routers.DefaultRouter()
router.register('file', FileViewSet)
urlpatterns = [
path('', include(router.urls))
]
| [
"sibbengaharry@gmail.com"
] | sibbengaharry@gmail.com |
d118b958141f7a74f558cabfc48f8c64170a1520 | f87f51ec4d9353bc3836e22ac4a944951f9c45c0 | /.history/HW03_20210706182647.py | 1346d8dad64a99274877a7859b1338bb7f9edce1 | [] | no_license | sanjayMamidipaka/cs1301 | deaffee3847519eb85030d1bd82ae11e734bc1b7 | 9ddb66596497382d807673eba96853a17884d67b | refs/heads/main | 2023-06-25T04:52:28.153535 | 2021-07-26T16:42:44 | 2021-07-26T16:42:44 | 389,703,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,882 | py | """
Georgia Institute of Technology - CS1301
HW03 - Strings and Lists
Collaboration Statement:
"""
#########################################
"""
Function Name: movieNight()
Parameters: subtitle (str)
Returns: fixed subtitle (str)
"""
#########################################
########## WRITE FUNCTIO... | [
"sanjay.mamidipaka@gmail.com"
] | sanjay.mamidipaka@gmail.com |
68da85645730e39e77b20e6b4145c05c4e7f8e65 | c8b427f7d548d2028911682ec1fcdcd0150fd1c3 | /encoding/datasets/cocostuff.py | e3e06d059fbc752baa2bd5098006bcabb120653b | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | yougoforward/GSFramework | 544f120681777752cda9dcd4872170118e2f6073 | 000060691fcf252cbdf834326db19415f9754cdf | refs/heads/master | 2022-12-21T07:59:48.571069 | 2020-07-10T12:57:34 | 2020-07-10T12:57:34 | 271,774,293 | 0 | 1 | NOASSERTION | 2022-12-19T09:48:36 | 2020-06-12T10:44:20 | Python | UTF-8 | Python | false | false | 3,726 | py | ###########################################################################
# Created by: CASIA IVA
# Email: jliu@nlpr.ia.ac.cn
# Copyright (c) 2018
###########################################################################
import os
import sys
import numpy as np
import random
import math
from PIL import Image, Image... | [
"908865817@qq.com"
] | 908865817@qq.com |
74c32424b84aeca23312e1bc1337aeae4ce88b19 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5769900270288896_0/Python/Yizow/noisyNeighbors.py | 56699b486ce068641289c157a81da28e58850b66 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | import sys
def main():
inputFileName = sys.argv[1]
outputFileName = sys.argv[2]
with open(inputFileName, 'r') as inputFile:
with open(outputFileName, 'w') as outputFile:
numTestCases = int(inputFile.readline())
for testNum in range(numTestCases):
if testNum >... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
e636ed229257f4495131784688b2d673f17fedc4 | 86f8b6366fefdc91f9bd658efcb292001fe02da0 | /src/rosbag_to_file/scripts/rosbag_to_csv.py | cbc70a3e2768d76ec7e4b9324606857c49befc69 | [
"MIT"
] | permissive | mingtsung86/dodobot-ros | 32a1a42fbf5b7b9e7415f5e4ba21e9574827e5ba | 85971caeac958db2f592eeeca13b01b4d365eebd | refs/heads/master | 2023-06-09T08:07:22.867868 | 2021-07-02T05:58:03 | 2021-07-02T05:58:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,946 | py | import csv
import rospy
from datetime import datetime
import utils
def bag_to_csv(options):
writers = dict()
for topic, msg, timestamp in utils.enumerate_bag(options, options.path):
if topic in writers:
writer = writers[topic][0]
else:
f = open_csv(options, topic)
... | [
"woz4tetra@gmail.com"
] | woz4tetra@gmail.com |
e5a0abd466402d924ea93b9c01766280787d1b41 | 5ac15873df4df7aeef3908ea7aebe0805cca0181 | /flask_mrbob/templates/project/+project.name+/base/context_processors.py | 833ad7be23d69c4d1f2722e10bb1eaacf874d3c6 | [
"BSD-3-Clause"
] | permissive | jstacoder/flask-manage | 0a942cef5a32b2966dc73cf14c5a58682b0af0f2 | 76f1802c4b7042c482dcdcc884fbc0e4fd114b5e | refs/heads/master | 2020-04-19T18:18:11.872007 | 2014-07-02T15:24:38 | 2014-07-02T15:24:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | # -*- coding: utf-8 -*-
"""
base.context_processors
~~~~~~~~~~~~~~~~~~~~~~~
The most common context processors
for the whole project.
"""
from flask.helpers import url_for
def common_context():
return {
'my_email': 'kyle@level2designs.com',
'type':type,
... | [
"kyle@level2designs.com"
] | kyle@level2designs.com |
b9095da8a1ed6d8c33f37c41cd94d2c31737a97d | cc2f91415451ba988a009c0e68303ef6a0b083c1 | /trydjango/settings.py | adefa67a5c8bcd1037fcebd4c8ffbb300e50b2d1 | [] | no_license | Jordan-Rob/Jcfe-Django-tutorial | 12a4ed169c37020cef2708202cb2e2279ae5a691 | fa970f92943cd613c455d8db187a22ce3508e7d4 | refs/heads/master | 2020-12-21T13:35:24.264645 | 2020-01-28T16:44:12 | 2020-01-28T16:44:12 | 236,446,098 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,316 | py | """
Django settings for trydjango project.
Generated by 'django-admin startproject' using Django 3.0.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
... | [
"jordanrob709@gmail.com"
] | jordanrob709@gmail.com |
008b269902e9e83c6d68e09034f245162da4c7ff | 2342b8737b9ffeb9715158b8ec74a33c7a4947f6 | /koku/masu/util/azure/common.py | 8456c9274467140607943451c04e58784967db68 | [
"Apache-2.0"
] | permissive | project-koku/koku | 444d8df05da5416c9cee606c42481c99be45f13d | 0416e5216eb1ec4b41c8dd4999adde218b1ab2e1 | refs/heads/main | 2023-08-20T11:30:17.510182 | 2023-08-17T18:27:30 | 2023-08-17T18:27:30 | 126,496,611 | 225 | 94 | Apache-2.0 | 2023-09-14T17:38:08 | 2018-03-23T14:29:23 | Python | UTF-8 | Python | false | false | 7,156 | py | #
# Copyright 2021 Red Hat Inc.
# SPDX-License-Identifier: Apache-2.0
#
"""Common util functions."""
import datetime
import logging
import re
import uuid
from enum import Enum
from itertools import chain
import pandas as pd
from django_tenants.utils import schema_context
from api.models import Provider
from masu.data... | [
"noreply@github.com"
] | project-koku.noreply@github.com |
ce7cef500f46983152daf5c63552763ab26651fc | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/third_party/google/auth/metrics.py | f7303282c9410598e9ec61290b667f7e8fed6423 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 5,089 | py | # Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
3106a84c83a2be4575d24d0c7b941bb53fec2b47 | 4024383a9ba300d266611c61e358dd72880350ae | /tests/tests_top/test_topchart_music.py | 18588c4711e15462f6272b5bfdbcde80654e45c4 | [
"MIT"
] | permissive | dbeley/senscritiquescraper | 54bed18dc7c9348a780c15338ebd472cf33feff1 | 8e199422475c44f0dbef53f2471066c39afec949 | refs/heads/master | 2023-08-16T18:12:10.008142 | 2023-08-04T20:51:04 | 2023-08-04T20:51:04 | 192,126,896 | 15 | 1 | MIT | 2022-12-08T12:40:47 | 2019-06-15T21:52:51 | Python | UTF-8 | Python | false | false | 1,620 | py | from senscritiquescraper.utils.row_utils import row_utils
def test_music_rank(topchart_row_music):
rank = row_utils.get_rank(topchart_row_music)
assert rank == "1"
def test_music_title(topchart_row_music):
title = row_utils.get_title(topchart_row_music)
assert title == "The Dark Side of the Moon"
... | [
"6568955+dbeley@users.noreply.github.com"
] | 6568955+dbeley@users.noreply.github.com |
4e83059941f89096991608bfcdb404009f4e710c | 55ceefc747e19cdf853e329dba06723a44a42623 | /_CodeTopics/LeetCode_contest/weekly/weekly2020/193/WA--193_2.py | 8a599c9e2ac46086ec219372aec9f53a4f8504f7 | [] | no_license | BIAOXYZ/variousCodes | 6c04f3e257dbf87cbe73c98c72aaa384fc033690 | ee59b82125f100970c842d5e1245287c484d6649 | refs/heads/master | 2023-09-04T10:01:31.998311 | 2023-08-26T19:44:39 | 2023-08-26T19:44:39 | 152,967,312 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 968 | py | class Solution(object):
def findLeastNumOfUniqueInts(self, arr, k):
"""
:type arr: List[int]
:type k: int
:rtype: int
"""
length = len(arr)
numdic = dict()
for i in range(length):
if numdic.has_key(arr[i]):
... | [
"noreply@github.com"
] | BIAOXYZ.noreply@github.com |
dfd413d017821009e8b3b472eccf594be8be195c | 6a7fc59a1fe8c7cd9593ae436b222f96538998e1 | /predict/predictor.py | 38afe69d4d4425feb707771c57228882a8481a4c | [] | no_license | ductri/few_shot_learning | df57919b41aa1f299cadc3dff78e3ff5eb5735d2 | ae24df58df5df031e517d221173e263d630d461c | refs/heads/master | 2020-04-15T02:47:16.515192 | 2019-01-08T09:39:38 | 2019-01-08T09:39:38 | 164,324,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | import tensorflow as tf
import logging
import pickle
import numpy as np
class Predictor:
def __init__(self, path_to_params, path_to_model):
with open(path_to_params, 'rb') as input_file:
self.params_dict = pickle.load(input_file)
self.graph = tf.Graph()
with self.graph.as_defa... | [
"ductricse@gmail.com"
] | ductricse@gmail.com |
ccddd8581c9ee9fa1b2814939eb690869a35b89d | 0308403d211ae8161d4ea5e283ccba9118ef11fb | /djangogirls/settings.py | 03ead1b5dbfb437cd6d2e1a2f59d7533b31e47ca | [] | no_license | mkone112/my-first-blog | 5dfe6c1221018c8df83059e985cfc0ec1d099168 | 977bdd68dd07f52733d5026bc190239d01e8964d | refs/heads/master | 2021-04-14T09:14:24.235240 | 2020-04-13T05:32:23 | 2020-04-13T05:32:23 | 249,221,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,261 | py | """
Django settings for djangogirls project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import o... | [
"mkone112@gmail.com"
] | mkone112@gmail.com |
2b4dd33d55994aa1a2b85efdc4c041ee32c81d8d | 7a1768da35f0746274b894ee170e732cc3490b19 | /file_server_box_sync/aiofiles/__init__.py | 049c6e4936449e1d819877e9276f9f07ac45ff89 | [
"Apache-2.0",
"MIT"
] | permissive | dtrodger/file-server-box-syncer-public | 5bf2e06b19a0ee6f382784ff2c9b0e7218175495 | 6296a66352df8c06ea691922a3728aeb487ab246 | refs/heads/master | 2023-04-16T03:47:29.161573 | 2021-04-30T03:04:34 | 2021-04-30T03:04:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | """Utilities for asyncio-friendly file handling."""
from file_server_box_sync.aiofiles.threadpool import open
from file_server_box_sync.aiofiles import os
__version__ = "0.5.0.dev0"
__all__ = ['open', 'os']
| [
"dtrodger20@gmail.com"
] | dtrodger20@gmail.com |
1013244a8cfb3d145b496f85e28b5a7569910cea | 87a1e123c3ced5c54f15f3c2d1a9dbcaaf6c4be4 | /post/admin.py | 7156f502d5f3a2dab2287662bb759aed8d696db5 | [] | no_license | aaogoltcov/blogAPI | c73c26043a4fb4244eca617a0c3494cf98b3a2f5 | 232d6d2ffb412b1112be25bc4321c5011267ce45 | refs/heads/master | 2023-07-10T03:45:47.172277 | 2021-08-11T19:58:52 | 2021-08-11T19:58:52 | 391,724,564 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 225 | py | from django.contrib import admin
from mptt.admin import MPTTModelAdmin
from post.models import Post, Comment
@admin.register(Post)
class PhotoAdmin(admin.ModelAdmin):
pass
admin.site.register(Comment, MPTTModelAdmin)
| [
"aaogoltcov@mail.ru"
] | aaogoltcov@mail.ru |
bcd6616c0ea6410289fa174d2124d9cb3307c79a | fcf870abec4a3fe936668ed14afcded9c10e4aa3 | /descnucleotide/ENAC.py | 78208ab2ceb01406948e589745a25cd7baebd939 | [] | no_license | sirpan/iLearn | f8d81523720245cc1ab8368aeb609511fc93af5a | 507aae17d9fea3d74a7c77984f1f1750eb734f53 | refs/heads/master | 2023-03-22T06:55:48.791894 | 2021-03-17T07:23:15 | 2021-03-17T07:23:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,672 | py | #!/usr/bin/env python
# _*_coding:utf-8_*_
import re, sys, os, platform
from collections import Counter
import argparse
pPath = os.path.split(os.path.realpath(__file__))[0]
sys.path.append(pPath)
father_path = os.path.abspath(
os.path.dirname(pPath) + os.path.sep + ".") + r'\pubscripts' if platform.system() == 'W... | [
"noreply@github.com"
] | sirpan.noreply@github.com |
28d773c01a93fe55f405b13365affa72ac82f085 | c8633d2e72701f103d44e98960be8e1d0032bbcf | /Opuslog/settings/common.py | ddb10849521a25a0f423e660c0ed611b3e752e46 | [] | no_license | rushil02/opuslog | c3165b21bfd8a2283e19a4251f8041eb7371e443 | dd34e80302551dee674b8ec700620b47e339c7a2 | refs/heads/master | 2021-04-27T04:45:04.165429 | 2016-05-20T18:19:10 | 2016-05-20T18:19:10 | 122,584,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,648 | py | """
Django settings for Opuslog project.
Generated by 'django-admin startproject' using Django 1.9.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.9/ref/settings/
"""
import os
i... | [
"rushil0195@gmail.com"
] | rushil0195@gmail.com |
c3a7e9c3a0692d2974f6acff056f57ab42a7bf10 | 524591f2c4f760bc01c12fea3061833847a4ff9a | /arm/usr/lib/python2.7/dist-packages/rosdistro/source_file.py | d614c68bd8ca24a162d2b0dcb90e2b2449f5b3d9 | [
"BSD-3-Clause",
"Python-2.0"
] | permissive | Roboy/roboy_plexus | 6f78d45c52055d97159fd4d0ca8e0f32f1fbd07e | 1f3039edd24c059459563cb81d194326fe824905 | refs/heads/roboy3 | 2023-03-10T15:01:34.703853 | 2021-08-16T13:42:54 | 2021-08-16T13:42:54 | 101,666,005 | 2 | 4 | BSD-3-Clause | 2022-10-22T13:43:45 | 2017-08-28T16:53:52 | C++ | UTF-8 | Python | false | false | 3,365 | py | # Software License Agreement (BSD License)
#
# Copyright (c) 2013, Open Source Robotics Foundation, Inc.
# 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 mus... | [
"simon.trendel@tum.de"
] | simon.trendel@tum.de |
8cd578f9a8dc8366a1bea5ec6d51e91c6c3858fc | 1609fe579811afe6f36ddca9d7c838ba5697131a | /radio/management/commands/set_default_access_tg.py | d05b1976d5381eb276ac621005d8e58c1a02900a | [
"MIT"
] | permissive | ScanOC/trunk-player | 1777347f47744538a33109a05b72d5f28d2674ef | 95f37e5a55a8f2a8b2ff6e1bb0a2b1049bc97ac4 | refs/heads/master | 2023-08-03T14:52:08.834013 | 2023-05-01T18:05:33 | 2023-05-01T18:05:33 | 68,432,108 | 65 | 50 | MIT | 2023-08-02T01:34:28 | 2016-09-17T04:35:59 | Python | UTF-8 | Python | false | false | 1,484 | py | import sys
import datetime
import csv
from django.core.management.base import BaseCommand, CommandError
from django.conf import settings
from django.utils import timezone
from radio.models import *
class Command(BaseCommand):
help = 'Helper for new TalkGroup Access'
def add_arguments(self, parser):
p... | [
"dreinhold@gmail.com"
] | dreinhold@gmail.com |
b1f2cc85a77d533e1c78ae8a0ad3cb6b46551d10 | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/angle/third_party/glmark2/src/waflib/Tools/md5_tstamp.py | 29522311b19f3c194ccdb4ae91512b38a2798964 | [
"GPL-3.0-only",
"LicenseRef-scancode-x11-opengl",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | Python | false | false | 732 | py | #! /usr/bin/env python
# encoding: utf-8
# WARNING! Do not edit! https://waf.io/book/index.html#_obtaining_the_waf_file
import os,stat
from waflib import Utils,Build,Node
STRONGEST=True
Build.SAVED_ATTRS.append('hashes_md5_tstamp')
def h_file(self):
filename=self.abspath()
st=os.stat(filename)
cache=self.ctx.hashes... | [
"jengelh@inai.de"
] | jengelh@inai.de |
30de42b2f9e57942415e8b6c7f980872b821c582 | de590d5af29b1f962853a0c4395aa95a8aa06b58 | /0x1F-pascal_triangle/0-pascal_triangle.py | 2359f75ddfbbe4082bf683c1413fe97087f9b162 | [] | no_license | MCavigli/holbertonschool-interview | ff31425e41a49bddd6d96a1bd41835830246f132 | ab7c1e9b92eb113e8b28db82912e327736e4813f | refs/heads/master | 2020-12-23T06:32:16.256851 | 2020-11-12T20:13:48 | 2020-11-12T20:13:48 | 237,068,237 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | #!/usr/bin/python3
"""
0-pascal_triangle
"""
def pascal_triangle(n):
"""
Returns a list of integers representing Pascal's triangle
"""
lst = [[] for i in range(0, n)]
for i in range(0, n):
for j in range(i + 1):
if (j < i):
if (j <= 0):
lst[i... | [
"mcavigli@gmail.com"
] | mcavigli@gmail.com |
7114d514f06a2b225e3125b6227ae109bc916818 | f98fc6d067d1b82b184deeed530ffec38f3d0e9b | /waliki/views.py | 5a03797bd254bc69070d75eedb5591865b9890ca | [
"BSD-3-Clause"
] | permissive | leliel12/waliki | 93de82e6326018578f70112446388ea66f4f3ddc | 610d7ffb652e5eaa73824f4d69c85701ca059609 | refs/heads/master | 2021-01-17T14:07:59.503425 | 2014-09-21T23:38:54 | 2014-09-21T23:38:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | import json
from django.http import HttpResponse
from django.shortcuts import render, redirect
from .models import Page
from .forms import PageForm
from .signals import page_saved
from ._markups import get_all_markups
from . import settings
def home(request):
return detail(request, slug=settings.WALIKI_INDEX_SLUG... | [
"gaitan@gmail.com"
] | gaitan@gmail.com |
6e3fecbf74e22a8df6f5db0f7c7c17cca2e1d3aa | 96316aead0ad883d93eebc3fcd2dcbb30ad6636a | /authproj/authapp/views.py | bee4b8390958421253069d227518f90b41c00afa | [] | no_license | Rashika233/django_auth_new | fe2e5da31e4d1e309946c333fa0ed2d7ec369a44 | c3fbf2a7b042e33ff92ee894a63976ad97e77f7c | refs/heads/master | 2022-12-04T10:06:10.294965 | 2020-08-27T15:54:52 | 2020-08-27T15:54:52 | 290,818,604 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | from django.shortcuts import render
from django.views.generic import TemplateView
# Create your views here.
class HomePageView(TemplateView):
template_name='home.html' | [
"you@example.com"
] | you@example.com |
c7a14f2f19153b5ed04edaec1cd126007973aac9 | 46e29adaf067dea495da67b09bf1be60d26c45c9 | /genetic_algorithm/chromosome.py | 9de551cf850875c5f52ca27381599032ce386d95 | [
"MIT"
] | permissive | GeorgianBadita/Genetic-Programming-Function-Approximation | 89800f96a7c457a6b7d5d4bb2deae915a7e7f3bc | 5436074941d8888eb545e2cc4b332c6c832342f3 | refs/heads/master | 2020-09-12T20:58:09.383435 | 2020-06-13T10:22:27 | 2020-06-13T10:22:27 | 222,554,527 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,825 | py | import random
import math
import numpy as np
import warnings
warnings.filterwarnings("error")
class Chromosome:
"""
Class for representing a chromosome
"""
def __init__(self, terminal_set, funct_set, depth, method='full'):
"""
Constructor for Chromosome class
@param: depth - tre... | [
"geo.badita@gmail.com"
] | geo.badita@gmail.com |
917e84a924d158a00d84a9381f093fbcf770d0e0 | 0b08158331fc9dfaead2ce5d67665facc36ff7f5 | /openstack_dashboard/dashboards/admin/routers/tables.py | e914f08ad26039c3eb0136534521d644768d30d4 | [] | no_license | linyihan2013/horizon | 7086a5aad773c5eb45762b5ad8465e7e8c52e0fc | 42adcfdcaeaf3366b6b8664d7de485fb8c3c901e | refs/heads/master | 2021-01-11T19:13:35.118072 | 2017-02-03T07:45:40 | 2017-02-03T07:45:40 | 79,337,770 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,003 | py | # Copyright 2012, Nachi Ueno, NTT MCL, 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 applic... | [
"1032612468@qq.com"
] | 1032612468@qq.com |
94dc893c82918cbe23b3f108f0902528e8950ded | 22749c6a569661b2637233cc0aebdc1701033b26 | /src/python/pants/backend/python/lint/flake8/subsystem_test.py | b1819103c29e14c0aef21b06727ffe544a568063 | [
"Apache-2.0"
] | permissive | akk5597/pants | 2eceb226c39b8ef7f603dfa96684b7522e1a9065 | 7ad295f71d2990eebbbe9c778bbf70f7d9e66584 | refs/heads/main | 2023-08-27T02:40:54.753545 | 2021-11-10T03:42:18 | 2021-11-10T03:42:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,397 | py | # Copyright 2021 Pants project contributors (see CONTRIBUTORS.md).
# Licensed under the Apache License, Version 2.0 (see LICENSE).
from __future__ import annotations
from textwrap import dedent
from pants.backend.python import target_types_rules
from pants.backend.python.goals.lockfile import PythonLockfileRequest
f... | [
"noreply@github.com"
] | akk5597.noreply@github.com |
b094561bb43bc796f0b5a3d8cab158ada80d2a5c | 7bcb08ff9aa4c7aee78fe11a51375ad69e5c651d | /TestMethod.py | d58300564fc885c2f6f9582216346878d8782568 | [] | no_license | lc527756006/MachineLearningCW3 | 923441a548891c104800d78c18c476733296c2aa | 1c21d4579f79f1154769996c34283cb3f921f304 | refs/heads/master | 2021-01-17T04:25:35.786315 | 2017-02-22T23:14:33 | 2017-02-22T23:14:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | # encoding=utf-8
import numpy as ny
import scipy.io as sio
a=[[1,2,3],[4,5,6]]
b=ny.array(a)
c=[0 for i in range(6)]
def load_data(i):
# 加载数据
clean_data = sio.loadmat("DecisionTreeData/cleandata_students.mat")
tdata = clean_data['x']
ldata = clean_data['y']
print len(tdata)
print len(ldata)... | [
"wuzifan0817@gmail.com"
] | wuzifan0817@gmail.com |
37a6ab00fbd2140699d440e7c55e4f0516154c08 | 0c70dcec22a090e70b1f20613ea6e0a64fd9a037 | /GPS卫星位置的计算/venv/Lib/site-packages/pandas/tests/frame/methods/test_value_counts.py | d6ae0421b79083a459cc483107b921a45be42b0c | [
"MIT"
] | permissive | payiz-asj/Gis | 82c1096d830878f62c7a0d5dfb6630d4e4744764 | 3d315fed93e2ab850b836ddfd7a67f5618969d10 | refs/heads/main | 2023-06-27T15:25:17.301154 | 2021-08-03T10:02:58 | 2021-08-03T10:02:58 | 392,269,853 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,733 | py | import numpy as np
import pandas as pd
import pandas._testing as tm
def test_data_frame_value_counts_unsorted():
df = pd.DataFrame(
{"num_legs": [2, 4, 4, 6], "num_wings": [2, 0, 0, 0]},
index=["falcon", "dog", "cat", "ant"],
)
result = df.value_counts(sort=False)
expect... | [
"1778029840@qq.com"
] | 1778029840@qq.com |
a1c657b1669648b68aab122a276b9a7e415bd902 | 99701affb7ae46c42c55484f3301d59f79294a10 | /project/Examples/Examples/PP2E/Gui/ShellGui/Old/menugui0.py | afa1fa88bd67a89c2bde4e46238fb0d828516893 | [] | no_license | inteljack/EL6183-Digital-Signal-Processing-Lab-2015-Fall | 1050b9e9bddb335bf42b7debf2abebe51dd9f9e0 | 0f650a97d8fbaa576142e5bb1745f136b027bc73 | refs/heads/master | 2021-01-21T21:48:21.326372 | 2016-04-06T20:05:19 | 2016-04-06T20:05:19 | 42,902,523 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | #!/usr/local/bin/python
from shellgui import * # type-specific shell interfaces
class TextPak1(ListMenuGui):
def __init__(self):
self.myMenu = [('Pack', self.Pack),
('Unpack', self.Unpack),
('Mtool', self.Missing)]
ListMenuGui.__init__(sel... | [
"inteljack2008@gmail.com"
] | inteljack2008@gmail.com |
e71b6313b4cdfca169fb2903c4a7e17fc6731107 | 1a9ec1308a2ade079e95782906e5f8af4ecb403e | /MySortAlgorithm/5_quicksort.py | 89d85a25eed4a5731450f592a3eea1051cc15120 | [] | no_license | HeywoodKing/mytest | f0174f40bb60a7557ac361f566be36ac1b642366 | ac19822dd28e3db60c56b57ba3dd50cb52736c6b | refs/heads/master | 2022-12-12T15:47:28.141969 | 2020-07-24T00:46:01 | 2020-07-24T00:46:01 | 228,036,752 | 0 | 0 | null | 2022-12-08T06:18:26 | 2019-12-14T14:30:54 | Python | UTF-8 | Python | false | false | 2,159 | py | # -*- coding: utf-8 -*-
import time
"""
快速排序 (默认从小到大排序) 两边夹击
对于一个无序序列,取出第一个元素作为标志元素,剩下的元素定义两个头,一个低头,一个高头两个指针,从低指针开始和
标志元素比较,如果小于标志元素,继续查找,如果大于标志元素,停止低指针继续,从高指针一端开始查找,如果大于标志元素,
继续查找,如果小于标志元素,则将该元素和低指针的大于标志元素的交换位置,然后继续从低指针一端继续查找,知道两个指针相遇
,此位置插入标志元素,第一次遍历结束,在重复上述动作,以此类推
"""
# if alist[high] < mid_value:
# alist[... | [
"opencoding@hotmail.com"
] | opencoding@hotmail.com |
39618f68fe15ead1d408d92e16a6c74de256073d | 970565892722ac73038688343eddcd89f856e72b | /code/part2/mapper_ip_to_hits.py | b83031092aee84bcba8eb5f3a36e2ef278987ca5 | [] | no_license | dqian96/udacity-intro-to-hadoop-and-mapreduce | 558d50881d6c20b8ef0c02f130d9b2b10857d547 | 0f5c58c60a47530ca8cac15b353f8a00b0efde0b | refs/heads/master | 2021-06-08T20:54:33.486437 | 2016-11-26T00:20:01 | 2016-11-26T00:20:01 | 67,740,455 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 493 | py | #!/usr/bin/python
# Maps page to number of hits.
# Map("log_chunk_2", "10.22.33...") -> [("1.1.1.1", 1),...,("1.1.1.1",2)]
import sys
import re
REGEX_COMMON_LOG_FORMAT = '(^[(\d{1,3}\.)]+\d{1,3}) (.+) (.+) \[(\d{2}/\w{3}/\d{4}):(\d{2}:\d{2}:\d{2}) -(\d{4})] "(\w+) (.+) ([\w\\/\.]+)[ ]*" (\d{3}) (-|\d+)$'
def par... | [
"training@localhost.localdomain"
] | training@localhost.localdomain |
7526d4b5dca68fde0208ee88c56ae5e6478b6ba5 | 85c426913d63773c4802a4a3c354df909030654b | /python/FA3/Integration/Group 1/Group 1/PyFood/functionality/searchfunctions.py | 30ddd14491b0ecaac3a8af817284a9985908b5ee | [] | no_license | SensehacK/playgrounds | 17bf2a3133db6c0cafe185c4cc2c7b59862980aa | 3decd550cdb6034db8b497051acaaec8221073aa | refs/heads/master | 2023-05-11T20:05:31.680168 | 2023-04-30T00:01:58 | 2023-04-30T00:01:58 | 159,632,542 | 1 | 0 | null | 2023-03-05T11:34:34 | 2018-11-29T08:27:53 | Python | UTF-8 | Python | false | false | 2,668 | py | '''
Created on Mar 16, 2017
@author: gaurav.sainger
'''
# from database.ViewDB import search_restaurants
from validations import Validate
from exceptions import CustomException2
from functionality import filtersearch
def search_as_guest():
try:
city=input("Enter your city:")
area=in... | [
"kautilyasave@gmail.com"
] | kautilyasave@gmail.com |
2fab840e3c8c56b96c177cfe1d3791bad4b10365 | 3307766701d680af6d12a726a2d98df2cb1830e5 | /jams/gcj/2011/1C/C.py | 6a9956971f4be9063aaf7c2938656157a3b9c2e9 | [] | no_license | dpaneda/code | c1a54037a275fa7044eb5c2d6079f052dd968615 | 7da1ede33a6a7cd19cbd0db517d91e7cccfbbfff | refs/heads/master | 2023-01-07T18:41:00.816363 | 2022-12-30T09:24:22 | 2022-12-30T09:24:22 | 1,583,913 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 618 | py | #!/usr/bin/python
# This works well and its clean but not good enought to fight agains large version :)
import sys
def Solve():
[n, l, h] = map(int,sys.stdin.readline().split())
notes = map(int,sys.stdin.readline().split())
index = l
while index < h+1:
freq = True
for i in notes:
... | [
"dpaneda@gmail.com"
] | dpaneda@gmail.com |
66c5ff6582c9ed9bc4af5f1ff227ef25c5f8b9ca | 35d1b988b4ea391ed648f46ec00c13e9ab6cd9d8 | /salt/modules/ssh.py | fd67e49953513f45222220088b57fe3bb4a07a5c | [
"Apache-2.0"
] | permissive | atoponce/salt | 2ceb247433e6d7b8401a9e3c501ea75e89f798b2 | 19764c5b78820f81cdb8f7f429feb67a8859b692 | refs/heads/master | 2021-01-18T07:24:27.763822 | 2011-10-04T03:46:11 | 2011-10-04T03:46:11 | 2,509,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,099 | py | '''
Manage client ssh components
'''
import os
def _refine_enc(enc):
'''
Return the properly formatted ssh value for the authorized encryption key
type. If the type is not found, return ssh-rsa, the ssh default.
'''
rsa = ['r', 'rsa', 'ssh-rsa']
dss = ['d', 'dsa', 'dss', 'ssh-dss']
if rsa.... | [
"thatch45@gmail.com"
] | thatch45@gmail.com |
dfc5a128780d692bffb8e8c4f0479adb3a7df600 | d20184bce93f6d4da8e4e1b430a0d9828acc7459 | /tensorflow_datasets/core/features/image_feature_test.py | 053951347dc5ef224d171666ddbcf97f01f57fde | [
"Apache-2.0"
] | permissive | abiraja2004/datasets | 0bf6da2aaf86f332b54b1bcc0bfbd58eea4b2a7b | 13b5287be1c400563d559384bd8e6d4d0244ba85 | refs/heads/master | 2020-04-05T12:17:02.018945 | 2018-11-09T11:51:19 | 2018-11-09T11:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,983 | py | # coding=utf-8
# Copyright 2018 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"copybara-piper@google.com"
] | copybara-piper@google.com |
c648b82f5a7fde552e18e089edae3470823c484a | 2a9e31f2dc50474cc33ea85a2b4dcb23b3a8b737 | /raven/utils/stacks.py | 57030b90849632bc56bab087fe41faf7aaf6a7fd | [
"BSD-3-Clause"
] | permissive | mitsuhiko/raven | 39ce3971adc90da5544251a58baac63fbf031c8a | 3d9bd01e2881f58c7f9156c1fd243569547840ed | refs/heads/master | 2023-06-08T17:51:57.663446 | 2011-10-12T01:47:04 | 2011-10-12T01:47:04 | 2,559,563 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,505 | py | """
raven.utils.stacks
~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
import inspect
import re
from raven.utils.encoding import transform
_coding_re = re.compile(r'coding[:=]\s*([-\w.]+)')
def get_lines_from_file(fi... | [
"dcramer@gmail.com"
] | dcramer@gmail.com |
bc918e41ae9466ad97805350c85c83c738ad612c | b3e525a3c48800303019adac8f9079109c88004e | /iota/test/iris/testcases/swm/mode_switch.py | 2163fc162470d0451dfa579e13746f89f9d2aa70 | [] | no_license | PsymonLi/sw | d272aee23bf66ebb1143785d6cb5e6fa3927f784 | 3890a88283a4a4b4f7488f0f79698445c814ee81 | refs/heads/master | 2022-12-16T21:04:26.379534 | 2020-08-27T07:57:22 | 2020-08-28T01:15:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | #! /usr/bin/python3
import paramiko
import logging
import sys
import time
import traceback
import iota.harness.api as api
from iota.harness.thirdparty.redfish import redfish_client
from iota.test.utils.redfish.ping import ping
from iota.test.utils.redfish.ncsi_ops import check_set_ncsi
from iota.test.utils.redfish.nic... | [
"noreply@github.com"
] | PsymonLi.noreply@github.com |
60cd5aa547cedf3c4161dfe2689d0b25e1907946 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /nm8zFcqcQ9Rzu45Fm_8.py | 6f23ec4930e6f866f2cf4c94d2f9d47afbdc03e8 | [] | 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 | 303 | py |
def bridge_shuffle(lst1, lst2):
suffled_list, i = [], 0
while True:
if i >= len(lst1):
return suffled_list + lst2[i:]
if i >= len(lst2):
return suffled_list + lst1[i:]
suffled_list += [lst1[i]] + [lst2[i]]
i += 1
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
b9760bc5d28254cf3a26ee63a1685d0d8051e09d | 00f1d6f2998e404deb42c43b3b03c8089b263568 | /CCV4-adv/week4/lanhuajian/loss.py | 05ed3934181726fa4c5cd98aa89fed59991ec0d3 | [] | no_license | xiashiwendao/kaikeba | 430bdfa4a0b99700fcbe76fce9118791917ade13 | 986f72e3f4eb9d210ebf6b46d9cace6c24353865 | refs/heads/master | 2022-12-26T15:41:06.842476 | 2020-10-10T06:20:47 | 2020-10-10T06:20:47 | 293,436,997 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | import torch
from torch import nn
# 二分类focal loss
class BCEFocalLoss(nn.Module):
def __init__(self, gamma=2, alpha=0.25, reduction="elementwise_mean"):
super().__init__()
self.gamma = gamma
self.alpha = alpha
self.reduction = reduction
def forward(self, pt, target):
alp... | [
"xiashiwendao@163.com"
] | xiashiwendao@163.com |
3189a9bddb5e0869d4c2a3fd33df5916788f3680 | b403c7fe56209472855dff451f0b6283d5471008 | /Supplemental_Material/PythonProjects/13. PYGAME/Pygames/pygame1.py | cb258cdafed5b51868ddb1c79da280eb4fc9e0e4 | [] | no_license | Sandbox4KidsTM/Python_Basics | 842bde52796896e913fdb5cc349034c52092555f | 68c95547ec1567958fc8069e6a4bb119e436211a | refs/heads/master | 2020-03-23T01:06:29.363196 | 2018-08-10T04:32:58 | 2018-08-10T04:32:58 | 140,901,128 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | #sentdex YouTube Video Tutorial Series
#first pygame with basic window
import pygame #import pygame module
pygame.init() #start pygame #pygame is an instance, hence need to instantiate it
gameDisplay = pygame.display.set_mode((800, 600)) #resolution of the game window
#set_mode() expects a tuple, not 2 parameter... | [
"mitchslabrenz@gmail.com"
] | mitchslabrenz@gmail.com |
a317c7c7a2454ad9c8e3d5914e0c7b875ea45f70 | 13a4df75e81ee4330a197340a300ec0755247a93 | /aKindOfQuestion/5.arithmeticRobot.py | 1b2226136d037872506976d20fe89461be50c385 | [] | no_license | ltfafei/py_Leetcode_study | d22955380bf9f134bc9cb215fea73ec4f9ea94cf | 0fd1bca56a621001cf9093f60941c4bfed4c79a5 | refs/heads/master | 2023-07-13T18:15:59.098314 | 2021-08-30T15:11:17 | 2021-08-30T15:11:17 | 363,597,757 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 717 | py | #!/usr/bin/python3
#-*- coding: UTF-8 -*-
#Author: afei00123
'''
5、算术机器人
现在利用编程设计一个简单的算术机器人,只需输入两个数字,在输入一个指令,机器人可计算并将结果返回。
输入的数值可以是任意整数,假设为X和Y,计算指令为A和B。A指令进行如下运算:
X*2+Y
Y指令表示如下运算:
Y*2+X
如果输入指令:AB,则先进行A指令运算,再进行B指令运算。最终将运算结果返回。
'''
def arithRobot(x, y, s):
n = 0
for c in s:
if c == "A":
... | [
"m18479685120@163.com"
] | m18479685120@163.com |
2b6a99e9ca658e6f1cc574e56292dd95a63adb96 | 3b98ee18977177e10b57e6162a03204e3774d3b8 | /Kirk_Byers_python_for_network_engineers/week2/week2exercise1.py | 7ed21f9bba6e7484fd3a5b58b9e2f55c26fba027 | [] | no_license | mattmiller87/practice | 0a3d1cae1283abb683dfab0af86e6c569a6104e1 | 9655a8020038e0f6dfe8df842867debac0fcb1e3 | refs/heads/master | 2022-06-23T23:47:50.350379 | 2022-06-14T13:30:51 | 2022-06-14T13:38:56 | 51,970,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | '''
I. Create a script that does the following
A. Prompts the user to input an IP network.
Notes:
1. For simplicity the network is always assumed to be a /24 network
2. The network can be entered in using one of the following three formats 10.88.17.0, 10.88.17., or 10.88.17
B. Regard... | [
"mattmiller87@gmail.com"
] | mattmiller87@gmail.com |
42a67c3fb9dd598afba939fca288531e7c478b96 | 3fd0bd83099a2405c53c8f1b3f8235d7ebb46fbd | /tests/unit/specs/test_timer.py | 5f77be1c6fa44cc2d266e027f6b838b25f532ba4 | [
"MIT"
] | permissive | diogoaurelio/floto | 59df848e0844314c999ad0833fec3671ea942cb9 | 5d1dedf91ea427db1f0fd9d7005fc3fa36e17cb6 | refs/heads/master | 2021-01-22T16:38:20.500203 | 2016-03-22T07:31:04 | 2016-03-22T07:31:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 281 | py | import pytest
import floto.specs
class TestTimer(object):
def test_init(self):
t = floto.specs.Timer(id_='my_timer', requires=['t2'], delay_in_seconds=600)
assert t.id_ == 'my_timer'
assert t.requires == ['t2']
assert t.delay_in_seconds == 600
| [
"amatthies@babbel.com"
] | amatthies@babbel.com |
8726a52380b69f66f75746665c55e2a15f298458 | e3da1286e01dec6a2b096e3d2f6620218468a391 | /.scripts/submit.py | 9dab5a0c353face38047e702bdfbca6c71c92620 | [] | no_license | SquidneySquush/cse-20289 | e42d6314d3a05a75b9ba4461002647019a215211 | 2e377f65e5dfde07fce277dbb30e04531e84d59c | refs/heads/master | 2022-11-17T07:31:22.956873 | 2020-05-01T20:42:05 | 2020-05-01T20:42:05 | 264,722,989 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,165 | py | #!/usr/bin/env python3
import glob
import json
import os
import sys
import requests
import yaml
# Globals
ASSIGNMENTS = {}
DREDD_QUIZ_URL = 'https://dredd.h4x0r.space/quiz/cse-20289-sp20/'
DREDD_QUIZ_MAX = 4.0
# Utilities
def add_assignment(assignment, path=None):
if path is None:
path = assignm... | [
"pbui@nd.edu"
] | pbui@nd.edu |
97971326bba15e94906f8e029d5d8d64d6ef433d | 40b0284e928451f4c26c4aa75180bd3f36251e0d | /tw2/asyncresources/requirejs/__init__.py | df843783696a1cac737c908606160d0dc98e55ed | [
"MIT"
] | permissive | amol-/tw2.asyncresources | 2a8f318ff985b4ce2024bfa54707d389250601a2 | 298f6cc17ccc668f577b19322f2148b290c751b0 | refs/heads/master | 2021-01-18T14:38:42.437050 | 2014-05-12T09:23:43 | 2014-05-12T09:23:43 | 19,569,415 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,129 | py | import json
from tw2.core import params as tw2pm
from tw2.core.resources import JSLink as TW2JSLink
from tw2.core.resources import CSSLink as TW2CSSLink
from tw2.core.resources import JSSource as TW2JSSource
class JSLink(TW2JSLink):
inline_engine_name = 'genshi'
location = 'headbottom'
template = '<script... | [
"alessandro.molina@axant.it"
] | alessandro.molina@axant.it |
0d28b008daa72d90879d795f9f62367f1da6e748 | 46357db3b1c1af699384d9cba1ffbc3c732117ad | /selenium_basics/07_webdriver_api/scrolldown.py | 439b92428042e802fb07494fe1578a9eabdd4038 | [] | permissive | khanhdodang/automation-training-python | 28fbd70ca4bc84e47cf17d1e4702513863e38c44 | b16143961cee869c7555b449e2a05abeae2dc3b5 | refs/heads/master | 2023-07-11T05:21:34.495851 | 2021-08-18T01:29:37 | 2021-08-18T01:29:37 | 285,208,030 | 0 | 8 | MIT | 2020-09-29T07:01:15 | 2020-08-05T07:01:46 | Python | UTF-8 | Python | false | false | 420 | py | # import webdriver
from selenium import webdriver
# import time
import time
# create webdriver object
driver = webdriver.Chrome()
driver.maximize_window()
# get geeksforgeeks.org
driver.get("https://www.geeksforgeeks.org/")
driver.execute_script("window.scrollTo(0, document.body.scrollHeight);")
time.sleep(3)
driv... | [
"khanhdo.pmp@gmail.com"
] | khanhdo.pmp@gmail.com |
6379119d77fb8304861e6bb9226ab3b25fb3c157 | 7f44a279773732b183963349d146a8dd9a195b88 | /home/migrations/0022_auto_20200929_1731.py | 7074f056ac8ef3685cb16efd7ff2ff64f2433ad2 | [] | no_license | pseudobabble/cms-boilerplate | f138060e2f25721191289eb261185136ae9cf6bd | 3923a8ebe1541118c5551b0996557f241943831f | refs/heads/master | 2022-12-28T01:30:49.554898 | 2020-10-15T15:23:10 | 2020-10-15T15:23:10 | 283,308,347 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | # Generated by Django 3.1.1 on 2020-09-29 17:31
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('home', '0021_auto_20200929_1725'),
]
operations = [
migrations.RemoveField(
model_name='artwork... | [
"harryjohnson500@gmail.com"
] | harryjohnson500@gmail.com |
f3c793e84385a281b30ca565ac2bf8ddad2993fb | 0561900bf01598e6c453131952fe4f62b2f9c6e9 | /week2/List Problems/sorted_names.py | 9c0c756f42014ab1a873fe9e1df0d2fc72f6a37c | [] | no_license | Rositsazz/HackBulgaria-Programming0 | 497f40eefa373b024389c58e7d83aff3ffc547ac | 0590d7430ff0aadfb737593a04d3ab1eb894f8d3 | refs/heads/master | 2016-09-06T09:09:19.416648 | 2015-08-11T10:02:49 | 2015-08-11T10:02:49 | 30,868,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | n = input("Enter number:")
n = int(n)
count = 0
array = []
while count < n :
m = input("enter word: " )
array = array + [m]
count+=1
print("Sorted names are:")
b = sorted(array)
i = 0
while i<len(b):
print(b[i])
i+=1
| [
"ross_zz@mail.bg"
] | ross_zz@mail.bg |
ed51a887cbf8c93ace619126a900925c2cbcdf54 | 78dc15505e17cef3e49410bbadc1bb4812cdbbad | /foiamachine/settings.default.py | 5f1cdffa10b06c608591e67abe7ad5e408b15d45 | [
"MIT"
] | permissive | jgillum/foiamachine | 4a7e4ef9fec681341c014dbe7c98bbce79debb4e | 26d3b02870227696cdaab639c39d47b2a7a42ae5 | refs/heads/master | 2020-06-29T11:19:46.232758 | 2019-08-19T02:27:45 | 2019-08-19T02:27:45 | 200,519,075 | 3 | 1 | null | 2019-08-04T16:57:27 | 2019-08-04T16:57:27 | null | UTF-8 | Python | false | false | 5,386 | py | # Django settings for foiamachine project.
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'foi... | [
"jgillum@gmail.com"
] | jgillum@gmail.com |
ec596f7b294b1180b3f3de8871017bdaef112020 | 9e3398214a4f12bf31e367b0b7a4810c24526a1f | /core/migrations/0001_initial.py | 04fb0789ed8aa582491be59e056c957fe38e7cee | [] | no_license | tricelex/django_ecommerce | 7987381a240f75015d77293c16594f37cbc0c29a | 7a9f9cb427214ea9134b59461e580616d2fc0ce5 | refs/heads/master | 2023-02-25T21:56:55.303780 | 2021-02-01T22:58:23 | 2021-02-01T22:58:23 | 327,143,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,371 | py | # Generated by Django 3.1.5 on 2021-01-06 16:57
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
oper... | [
"tricelex@gmail.com"
] | tricelex@gmail.com |
450ff22a3190894301c71874dd1f607b45be7e88 | 846119600b78936f9004bc3254aa8e6141e7c198 | /setup.py | 185ef6bf3b43da989871790301371722c9282f01 | [] | no_license | slaskis/django-cachalot | e63ef8e5cf54988a0001a29f15c907e004355169 | 2b8f001a212d7774e450a0b2bf82e7d56e8b1e61 | refs/heads/master | 2020-03-25T20:22:46.572296 | 2018-07-27T18:27:56 | 2018-07-27T18:27:56 | 144,128,413 | 0 | 0 | null | 2018-08-09T09:08:40 | 2018-08-09T09:08:39 | null | UTF-8 | Python | false | false | 1,410 | py | #!/usr/bin/env python
import os
from setuptools import setup, find_packages
from cachalot import __version__
CURRENT_PATH = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(CURRENT_PATH, 'requirements.txt')) as f:
required = f.read().splitlines()
setup(
name='django-cachalot',
version... | [
"bordage.bertrand@gmail.com"
] | bordage.bertrand@gmail.com |
73d8b6289524e9c1ef1e6c5e5eb989f59323f556 | 293b5687000daed5e5b610c912ca3cd41bb1c942 | /python/EightTeV/GMSB_Lambda180_CTau10000_8TeV_pythia6_cff.py | 71f458d3fd359a5f19e4169824815a29afdf3328 | [] | no_license | amagitte/genproductions | a5ea90b74c025569b8088ca8c53459cc27e3a415 | b081e07a1f7a3843a07ca56ef98706925233b0e1 | refs/heads/master | 2020-05-29T11:07:03.440946 | 2015-05-21T13:17:30 | 2015-05-21T13:17:30 | 36,014,150 | 0 | 0 | null | 2015-05-21T13:24:28 | 2015-05-21T13:24:28 | null | UTF-8 | Python | false | false | 1,816 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
generator = cms.EDFilter("Pythia6GeneratorFilter",
pythia6HepMCVerbosity = cms.untracked.bool(False),
maxEventsToPrint = cms.untracked.int32(0),
pythia6PylistVerbosity = cms.untracked.int32(0),
fi... | [
"dnash@cern.ch"
] | dnash@cern.ch |
64870bd723301749859cd4d0d6225eb595790355 | 3dcf4fe1f47ff5682b9f033dc82e58cc223ce9b4 | /features/steps/placeholder.py | 8af196f8af6d0e73518af2f3f09e70f1c5dfd6ed | [
"MIT"
] | permissive | roeman/python-pptx | 549e3e563acf527b7259795361f220c363458a3d | 1052d94f4397730655c719d61cf858344f1da18d | refs/heads/master | 2021-01-21T16:27:44.922761 | 2014-02-11T09:25:03 | 2014-02-11T09:25:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,606 | py | # encoding: utf-8
"""
Gherkin step implementations for placeholder-related features.
"""
from __future__ import absolute_import
from behave import given, when, then
from hamcrest import assert_that, equal_to, is_
from pptx import Presentation
from .helpers import saved_pptx_path, test_text
# given ==============... | [
"scanny@cisco.com"
] | scanny@cisco.com |
527a127d9ca3c34c0049745107072334589feedc | 551b75f52d28c0b5c8944d808a361470e2602654 | /huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/restore_to_existing_instance_request.py | eaeaf16d79bd59ce2328a16f998669aec7efff70 | [
"Apache-2.0"
] | permissive | wuchen-huawei/huaweicloud-sdk-python-v3 | 9d6597ce8ab666a9a297b3d936aeb85c55cf5877 | 3683d703f4320edb2b8516f36f16d485cff08fc2 | refs/heads/master | 2023-05-08T21:32:31.920300 | 2021-05-26T08:54:18 | 2021-05-26T08:54:18 | 370,898,764 | 0 | 0 | NOASSERTION | 2021-05-26T03:50:07 | 2021-05-26T03:50:07 | null | UTF-8 | Python | false | false | 3,600 | py | # coding: utf-8
import pprint
import re
import six
class RestoreToExistingInstanceRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
d3cc070bb3e6485c7ad08ccdbd9116c405ed25d9 | 55538c0680f270a007c64e51cf0ecd417b0929c2 | /Dinosaur_bot.py | 652448bc2b3d671c38a14bff4fa65f6fa041fbe4 | [] | no_license | alankrit03/PROJECTS | 62fff0a10ec5056ce8a907ca9bd7699f3fff1567 | b0242c680f4be0efd7d78d21aea72ce38e7356e6 | refs/heads/master | 2021-05-18T17:01:07.543489 | 2020-04-11T16:34:51 | 2020-04-11T16:34:51 | 251,328,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Jun 18 10:19:25 2019
@author: Alankrit Agarwal
"""
from PIL import ImageGrab,ImageOps
import pyautogui
import time
from numpy import array
class coOrdinates():
replay_button = (480,460)
dinosuar = (189,439)
def restartGame():
pyautogui.click(coOr... | [
"alankritagarwal9@gmail.com"
] | alankritagarwal9@gmail.com |
266a16f03b660b672e82b8bea1f406c944d034fd | 7c63a96fad4257f4959ffeba0868059fc96566fb | /py/m_lutz-programming_python-4_ed/code/ch_07/24-common_appearance_2/main.pyw | f3d0a30542bc7f07fcacfe426e4a921bf50a1d3f | [
"MIT"
] | permissive | ordinary-developer/education | b426148f5690f48e0ed4853adfc3740bd038b72c | 526e5cf86f90eab68063bb7c75744226f2c54b8d | refs/heads/master | 2023-08-31T14:42:37.237690 | 2023-08-30T18:15:18 | 2023-08-30T18:15:18 | 91,232,306 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 698 | pyw | from tkinter import *
from user_preferences import bcolor, bfont, bsize
class ThemedButton(Button):
def __init__(self, parent = None, **configs):
Button.__init__(self, parent, **configs)
self.pack()
self.config(bg = bcolor, font = (bfont, bsize))
def onSpam():
print('Spam')
def on... | [
"merely.ordinary.developer@gmail.com"
] | merely.ordinary.developer@gmail.com |
466ec891360a35814ebe15a57bbeee8f7f2adbbc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02726/s686642226.py | b305cc29a6765e5b6e23b79cc90a1b232f86414b | [] | 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 | 416 | py | import itertools
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
N,X,Y = list(map(int , input().split()))
combi = list(itertools.combinations(range(1,N+1),2))
ansList = [0 for _ in range(N)]
for i,j in combi:
kyori = min(j-i, abs(j-Y) + abs(X-i... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
453c5be294b70396ec8c7f1b5601a359121582f9 | 63c8b9227a6b3178d918769042ecb060acc557be | /cwf/gateway/fabfile.py | 331ddde55e0aab0eb396b96748426e32c4ecab5e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | snwfdhmp/magma | 7c4898db68d2668fd39ed25f73bb9a2bc5959066 | 8b3ff20a2717337a83c8ef531fa773a851d2e54d | refs/heads/master | 2020-12-06T09:06:25.806497 | 2020-01-07T18:27:09 | 2020-01-07T18:28:51 | 232,418,366 | 1 | 0 | NOASSERTION | 2020-01-07T21:12:28 | 2020-01-07T21:12:27 | null | UTF-8 | Python | true | false | 7,077 | py | """
Copyright (c) 2016-present, Facebook, Inc.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree. An additional grant
of patent rights can be found in the PATENTS file in the same directory.
"""
import sys
from distutils.u... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
1a87536b6ff79a033ee52fef26498ed28d0bd950 | 2820f09d142c00a9d6b24373f6c5ef502c4df75f | /Robot_Arm/gui/owirobot.py | 92d18c07b41d054b7e17175849d7829273ee8d64 | [] | no_license | IdeasGarage/code_club | 53a08bb5c122ea69194fd2360e490b7fa2aa3d03 | f638963b4bc0dd2c0d3473fb2c2a5bb3f7a3d185 | refs/heads/master | 2020-04-12T03:12:47.481116 | 2017-01-24T17:18:04 | 2017-01-24T17:18:04 | 43,813,443 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,455 | py | """
Copyright 2013 Steve Battle
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 w... | [
"you@example.com"
] | you@example.com |
09ae244ad99bc60aff2c70c0e43895b0cff2b546 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/AllenInstitute_dipde/dipde-master/dipde/internals/connection.py | fff691738825b6ce043b658098641e70501c748e | [] | 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 | 6,377 | py | """Module containing Connection class, connections between source and target populations."""
# Copyright 2013 Allen Institute
# This file is part of dipde
# dipde is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundatio... | [
"659338505@qq.com"
] | 659338505@qq.com |
1d281f4a7fba806ffa6a3d7a7354d1fbe7f9fd36 | 71d0a467e2c3c534456ec28f4634fb8efd13a145 | /backend/users/migrations/0002_auto_20201018_0819.py | 721547007279241c4f88e7bad632aad2c34a19eb | [] | no_license | crowdbotics-apps/demo-21662 | 4167ddd99751c3f9352e0cd8752177c4442ecd3f | e6a1de517cc1ae79d0fd58506e604f1ec2258307 | refs/heads/master | 2022-12-31T07:43:46.969806 | 2020-10-18T08:19:38 | 2020-10-18T08:19:38 | 305,053,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | # Generated by Django 2.2.16 on 2020-10-18 08:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='user',
name='name',
field=... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7a6d25498f7e955b9ca6d73293ef58f257f2ff44 | 1c72aa6d53c886d8fb8ae41a3e9b9c6c4dd9dc6f | /Semester 1/Week 6/test_module.py | bbc1c68bb40bb4cdfe43201388e9fc2e1ed27b9c | [] | no_license | codebubb/python_course | 74761ce3189d67e3aff964c056aeab27d4e94d4a | 4a6ed4a64e6a726d886add8364c65956d5053fc2 | refs/heads/master | 2021-01-11T03:06:50.519208 | 2016-07-29T10:47:12 | 2016-10-17T10:42:29 | 71,114,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 372 | py | import text_analysis
str = "The quick brown fox jumped over the lazy dog"
print "The string has a an average word length of", text_analysis.average_length(str.split())
print "The last word is ", text_analysis.last_word(str)
print "The position in the alphabet of the first letter of the last word is", text_analysis.po... | [
"jpbubb82@gmail.com"
] | jpbubb82@gmail.com |
c92417f537f0d13073d8166e8e78b658f05ed99b | a210132dd3e87772b4e1f3ef246ea8da4d8646e7 | /cmdb1_demo1/cmdb1_demo1_app1/migrations/0030_auto_20190112_1339.py | 5a0b6b06c4f85f641cf0c6107f747de923245c3d | [] | no_license | hongmalong/cmdb1 | 8574b21e81fb1833ec75d96fa771073ab9c360b3 | 8f2ba9afa549e24d9b406ff5b00a76dec31dd5ac | refs/heads/master | 2021-07-01T14:29:31.278517 | 2019-04-18T05:04:54 | 2019-04-18T05:04:54 | 124,845,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,148 | py | # Generated by Django 2.0.3 on 2019-01-12 13:39
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('cmdb1_demo1_app1', '0029_auto_20190112_1337'),
]
operations = [
migrations.CreateModel(
name='EventTable',
fields=[
... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
3ed8f4ab078ac3c57086c22a5dd0db94514f07af | cea30aead7f0b529ee072c1bcab2896777e1408d | /PreprocessingCropsData/venv/Lib/site-packages/sklearn/datasets/_covtype.py | f705af97d2dfeb6b3a67a9d38481d1b500f0f750 | [] | no_license | pgj9702/FarmSolution | 3730ab3ca983b335ed48a60935c5fa6e3983cbb1 | a8cacc45b8519e79b51ab65b9539a01f5006e64f | refs/heads/master | 2023-03-30T15:41:10.312044 | 2021-03-31T08:47:23 | 2021-03-31T08:47:23 | 334,019,778 | 0 | 1 | null | 2021-02-22T09:32:57 | 2021-01-29T02:52:46 | Python | UTF-8 | Python | false | false | 6,646 | py | """Forest covertype dataset.
A classic dataset for classification benchmarks, featuring categorical and
real-valued features.
The dataset page is available from UCI Machine Learning Repository
https://archive.ics.uci.edu/ml/datasets/Covertype
Courtesy of Jock A. Blackard and Colorado State University.
"""
# Au... | [
"cao147147@naver.com"
] | cao147147@naver.com |
3e57cd7b2ce4397e6d921fac46ff9af95062da80 | 1adc05008f0caa9a81cc4fc3a737fcbcebb68995 | /hardhat/recipes/ocaml/coq.py | 9a02ca553f2d115228f920a99f746e35bcdf6ff9 | [
"MIT",
"BSD-3-Clause"
] | permissive | stangelandcl/hardhat | 4aa995518697d19b179c64751108963fa656cfca | 1ad0c5dec16728c0243023acb9594f435ef18f9c | refs/heads/master | 2021-01-11T17:19:41.988477 | 2019-03-22T22:18:44 | 2019-03-22T22:18:52 | 79,742,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from ..base import GnuRecipe
class CoqRecipe(GnuRecipe):
def __init__(self, *args, **kwargs):
super(CoqRecipe, self).__init__(*args, **kwargs)
self.sha256 = '6e3c3cf5c8e2b0b760dc52738e2e849f' \
'3a8c630869659ecc0cf41413fcee81df'
self.name = 'coq'
self.version ... | [
"clayton.stangeland@gmail.com"
] | clayton.stangeland@gmail.com |
001444d97273fc955bdf648d43cc6b89ce9194c9 | 3cd18a3e789d3a0739768f1ae848d9f74b9dbbe7 | /mounth001/day24/text/file_write_2.py | 57e6dfeb11a4a1e289915f4535f8acaa37be0ae6 | [] | no_license | Molly-l/66 | 4bfe2f93e726d3cc059222c93a2bb3460b21ad78 | fae24a968f590060522d30f1b278fcfcdab8b36f | refs/heads/master | 2020-09-28T12:50:18.590794 | 2019-11-27T04:42:28 | 2019-11-27T04:42:28 | 226,782,243 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 189 | py | '''(r文件不存在报错,w,a会新建)w清空重写,a追加'''
f=open('w01.txt','ab')
# f.write('111')
bytes1='dfyt'.encode()#字符串转换二进制
f.write(bytes1)
f.close()
| [
"769358744@qq.com"
] | 769358744@qq.com |
a269f90cf7a7c85403e4d0201d5daf68e1d31eb9 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2652/60705/266739.py | 3f6d30e69a9b783eadfdca3eaeda2a8df1e79ad9 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 843 | py | [N, C, F] = list(map(int, input().split(" ")))
print("N:" + str(N))
print("C:" + str(C))
print("F:" + str(F))
grades = {}
prices = {}
for students in range(0, C):
[grade, price] = list(map(int, input().split(" ")))
grades[students] = grade
prices[students] = price
print(grades)
print(prices)
li = sorted(gra... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
bc4300f15098e0e87232005f0927580177ee0c50 | 8d3b5db62ec817a81d97d2bf741166da20fecffc | /tensorforce/core/policies/action_value.py | 4b09436aff4b0089f8fc12aa9de65b535dfcc954 | [
"Apache-2.0"
] | permissive | stheid/tensorforce | 6ffe918054d1b298c0c4cf4de9a669d500c0983d | c4cce421be650d7500125b793b59aaeb92ffdf51 | refs/heads/master | 2022-11-23T19:15:39.336310 | 2020-06-11T16:04:08 | 2020-06-11T16:04:08 | 271,549,628 | 0 | 0 | Apache-2.0 | 2020-06-11T16:04:09 | 2020-06-11T13:12:16 | null | UTF-8 | Python | false | false | 5,112 | py | # Copyright 2018 Tensorforce Team. 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 applicable la... | [
"alexkuhnle@t-online.de"
] | alexkuhnle@t-online.de |
10ca4009d3fee037182f4df9155038fb40fe9114 | 93fc75b62e3fb6524f3891daf58772175fee781c | /沈书颖/2017310398-沈书颖-第五次作业-金工17-1/2017310398-沈书颖-第五次作业-金工17-1/10-6 10-7.py | 4555a8454fea0638428be4e32b60903555d42d31 | [] | no_license | jingong171/jingong-homework | 13174a4a7b39b8ae6d5da103cbf0fb40766d59c1 | 542e8781f26676a62538714b92fb0bccdf41b47b | refs/heads/master | 2020-03-29T13:38:34.152280 | 2018-12-17T14:38:08 | 2018-12-17T14:38:08 | 149,974,131 | 8 | 11 | null | 2018-10-08T14:40:58 | 2018-09-23T10:32:35 | Python | UTF-8 | Python | false | false | 385 | py | while True:
number_a=input("请输入一个数字:")
number_b=input("请再输入一个数字:")
#提示用户输入两个数字
try:
answer=int(number_a)+int(number_b)
except ValueError:
print("请输入数字!")
#如果输入的不是数字,则给出提示
else:
print(answer)
#如果是数字就给出答案
| [
"35986375+FrancisLau098@users.noreply.github.com"
] | 35986375+FrancisLau098@users.noreply.github.com |
33819073c9a333a74a0dd3cd161259efaae88da2 | 44e6e50a4d2e0095e055e59a6250b8ccf327f844 | /morepath/converter.py | a87ca28927e2ff16e91ad410496591cae56631d0 | [] | no_license | iapilgrim/morepath | 14f8f4d457fa9e9a5a2342f659e03e962209f5a0 | f173860661d00f2b3a684d2c512a1741d40cc26a | refs/heads/master | 2020-12-26T03:44:35.396492 | 2014-02-13T08:31:40 | 2014-02-13T08:31:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,214 | py | from reg.mapping import Map, ClassMapKey
class Converter(object):
"""A converter that knows how to decode from string to object and back.
Used for decoding/encoding URL parameters and path parameters.
"""
def __init__(self, decode, encode=None):
"""Create new converter.
:param decode... | [
"faassen@startifact.com"
] | faassen@startifact.com |
8b82b13b6a0ec3017b98b71e4834d9de191a7e53 | 3712a929d1124f514ea7af1ac0d4a1de03bb6773 | /开班笔记/python数据分析机器学习部分/机器学习/day04/score.py | 03c4d24bda3a74f02be17657cf046736a6d8e985 | [] | no_license | jiyabing/learning | abd82aa3fd37310b4a98b11ea802c5b0e37b7ad9 | 6059006b0f86aee9a74cfc116d2284eb44173f41 | refs/heads/master | 2020-04-02T20:47:33.025331 | 2018-10-26T05:46:10 | 2018-10-26T05:46:10 | 154,779,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,678 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import numpy as np
import sklearn.cluster as sc
import sklearn.metrics as sm
import matplotlib.pyplot as mp
x = []
with open('../../data/perf.txt', 'r') as f:
for line in f.readlines():
data = [float(substr) for substr
in line.s... | [
"yabing_ji@163.com"
] | yabing_ji@163.com |
cfc990e4788553a5ae0cb0ae98b5d5f6046e27fa | 0670d89e5d7b91d86b181e0b6cfdbef8b3b9e9e6 | /p2/api/migrations/0001_initial.py | 59146617b32f664e13e38f1dec9edb666ee6eefe | [
"MIT"
] | permissive | BeryJu/p2 | dfe570afb420843033e519350f5b89e992878a6b | 80b5c6a821f90cef73d6e8cd3c6cdb05ffa86b27 | refs/heads/master | 2020-12-04T01:21:21.197822 | 2019-08-29T16:02:21 | 2019-08-29T16:02:21 | 231,549,415 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,347 | py | # Generated by Django 2.2 on 2019-05-03 17:56
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
import p2.api.models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MO... | [
"jens.langhammer@beryju.org"
] | jens.langhammer@beryju.org |
87ed7b1213ff1c5ac14a3b8964f9b62568a734e3 | 350ade9361645f87d96589a0c90c76d8a951832b | /CP4/ICCP4_9.py | d2b59b71c9a9c7a4c57f25ad84303e7d47c670d7 | [] | no_license | dongzeyuan/Practise | becf7c7ca15928213aa22ae15bd8b3f1f9b7dc8b | ecef4466d30c5c9e88e766b4f3df6db24959b9d3 | refs/heads/master | 2021-09-21T02:06:24.629708 | 2018-08-19T08:50:02 | 2018-08-19T08:50:02 | 119,028,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | # coding=UTF-8
for i in range(1,5):
print('*'*7)
print('\n')
for i in range(1, 5):
print('*'*(2*i-1))
print('\n') | [
"dongfujing88@gmail.com"
] | dongfujing88@gmail.com |
4b54bbdeef19d909ddd5bef71dfe0625ab46195f | 9f930df50f28e6cbc74089057fb4418460a7f657 | /regsoft/migrations/0001_initial.py | 494f8a33ccdd12c1f25b1bc6e07ef0d7edadaeb4 | [
"MIT"
] | permissive | xxyyzz/apogee-2016 | 2c57b3c48334e798cab560d6525567da9b2ede61 | c55f6427bbe246060aacbeb831e1519fb051a1b1 | refs/heads/master | 2021-05-16T11:55:21.525340 | 2017-09-07T19:05:00 | 2017-09-07T19:05:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Bhavan',
fields=[
('id', models.AutoField(verbo... | [
"satwik55@gmail.com"
] | satwik55@gmail.com |
e3e9ffd130063e0f3807af450237e3f23ff8ab2d | 608ca6de9e2de70312dd3abc6fdf7d9aef326b53 | /feder/institutions/migrations/0010_auto_20170808_0252.py | 7c2c74204332edd5346dca93c2a0c7bf28d4b60d | [
"MIT"
] | permissive | watchdogpolska/feder | 4d3f3a5de5d2d5d266bf34dea4969f583f9f1aa0 | 57cfde4aa8680c08758ee531d69a40b0f7f1d9d7 | refs/heads/master | 2023-08-18T04:52:45.284855 | 2023-08-16T10:54:03 | 2023-08-16T10:54:03 | 40,154,083 | 18 | 12 | MIT | 2023-08-22T11:35:15 | 2015-08-04T00:10:17 | Python | UTF-8 | Python | false | false | 1,125 | py | # Generated by Django 1.11.2 on 2017-08-08 02:52
from django.db import migrations, models
import jsonfield.fields
class Migration(migrations.Migration):
dependencies = [("institutions", "0009_auto_20170708_2222")]
operations = [
migrations.AddField(
model_name="institution",
... | [
"naczelnik@jawnosc.tk"
] | naczelnik@jawnosc.tk |
3bd9d220a3bff416185608e78413c0e27bdbfaf2 | a382716034b91d86ac7c8a548a63d236d6da8032 | /iaso/dhis2/api_logger.py | 7347f082e7d6aac87c5f6449751f5d6ad37657dc | [
"MIT"
] | permissive | lpontis/iaso | 336221335fe33ca9e07e40feb676f57bbdc749ca | 4d3a9d3faa6b3ed3a2e08c728cc4f03e5a0bbcb6 | refs/heads/main | 2023-08-12T20:34:10.823260 | 2021-10-04T07:34:50 | 2021-10-04T07:34:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,627 | py | from iaso.models.base import ExportLog
from dhis2 import RequestException
import json
class ApiLogger:
def __init__(self, api):
self.api = api
self.export_logs = []
def get(self, url, params=None):
full_url = self.api.base_url + "/" + url
try:
response = self.api.g... | [
"tech@bluesquarehub.com"
] | tech@bluesquarehub.com |
ec98c3f0072afc3854407df67e70813898de5049 | baad457b1859f218314631c2bf10e28ab34aa0a5 | /chapter02.py | d3f57722b9729416a00f466431e597015e6902aa | [] | no_license | hankehly/data-structures-and-algorithms-in-python | d856ae6049639d3f713556e7aee91cb51443f99b | 26d2ad4852c103e5c96138de6957fa092a6b81aa | refs/heads/master | 2023-02-19T13:38:52.986727 | 2021-01-25T00:51:19 | 2021-01-25T00:51:19 | 325,148,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,526 | py | def R_2_01():
"""
3 examples of life-critical software applications are
1. remote surgery software that moves robotic arms
2. automated rocket ignition and trajectory adjustment software in space flight
3. pacemakers
"""
pass
def R_2_02():
"""
An example of a software applica... | [
"henry.ehly@gmail.com"
] | henry.ehly@gmail.com |
5d45c573744b34fc2473e7e50c09225740106a27 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/77e550192cdbc1e734f5ebfcd347539d9300559b-<main>-fix.py | b577d86ced2688cfc84b23b2c720d617725534ed | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,507 | py | def main():
module = AnsibleModule(argument_spec=dict(command=dict(default='install', type='str', required=False), arguments=dict(default='', type='str', required=False), working_dir=dict(type='path', aliases=['working-dir']), global_command=dict(default=False, type='bool', aliases=['global-command']), prefer_sourc... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
f8c0c13aa9f2fb23aa4164a1148faad3a90c1454 | 0bf93a74ce5676e978f3ee79a98a1be90b0e20a5 | /nagios/check_metar_station.py | 7ccf2c55c95b5dbf22239356bc0d162e432bc650 | [
"MIT"
] | permissive | claudemp/iem | 3c926361c55fde3265157e15bc5119d64dbf2418 | 557deb8c46342aa9a18ac56cba59345c072cf225 | refs/heads/master | 2021-04-06T13:39:08.352676 | 2018-03-12T20:58:14 | 2018-03-12T20:58:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,960 | py | """Ensure that a station is getting ingested properly
python check_metar_station.py <network> <id> <minute_of_synop>
"""
from __future__ import print_function
import sys
import datetime
from pyiem.util import get_dbconn
def check(network, station, minute):
"""Do the check"""
# Do IEMaccess
res = {'r... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
77e3caad1c173557813c2f8d8ea67470f4576f4e | 2553e81ac1927f9e3e4a18da60d6e9b9cc23affc | /Script2.py | cf98933e6342ec6fd17b8bf958969ac44e45f7e8 | [] | no_license | Sapphirine/ISP-Dataset | 50bbc545c7c62cc39cefc25ed9c53f356e7efd53 | c93190d182b56a3c3c574105d4aff0faefc1f065 | refs/heads/master | 2021-08-31T16:41:33.235009 | 2017-12-22T03:47:21 | 2017-12-22T03:47:21 | 115,070,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 678 | py | %matplotlib inline
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import re
plt.style.use('ggplot')
chosen_indicators = ['IE.PPI.TELE.CD', 'IT.CEL.SETS', 'SIT.CEL.SETS.p2', 'IT.NET.USER.ZS', \
'IT.NET.BBND', 'IT.NET.BBND.p2' ]
df_s = df[df['IndicatorCode'].isin(c... | [
"noreply@github.com"
] | Sapphirine.noreply@github.com |
83e68fc46fb7aa2a009ca2fa890446accaf1b950 | 55a6a35f7720089f8c7dcc083e3600cfbca0e6a2 | /setup.py | 3f401546aefe0ab2c9692fd02547d4ec9866e8f6 | [
"MIT"
] | permissive | SirMathhman/context_menu | 8d878aa94c23f225b37e6f89e00cd31cec62d65f | bb619d06e15798de8ceb0ddd252d7ae26a492947 | refs/heads/master | 2022-09-04T01:03:28.354901 | 2020-05-31T17:11:01 | 2020-05-31T17:11:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | import pathlib
import setuptools
# The directory containing this file
HERE = pathlib.Path(__file__).parent
# The text of the README file
README = (HERE / "README.md").read_text()
# This call to setup() does all the work
setuptools.setup(
name="context_menu",
version="1.0.0",
description="Library to creat... | [
"salvadoraleguas@gmail.com"
] | salvadoraleguas@gmail.com |
37ee79c2c93d9f8ed6baae1d8a818870133f718d | 596e92d0d484b6e7eee6d322e72e52748fdeaa5d | /test/test_nhl_stats_standing.py | 33a21fdb377d2716a2c8b6e6677a31bbaea3972a | [] | no_license | scottypate/sportsdata | f5f61ddc7eb482883f93737c6ce73dd814ed4336 | a07955ab50bf4fff1ce114ed9895095ff770c473 | refs/heads/main | 2023-08-18T16:51:56.452678 | 2021-10-22T12:44:08 | 2021-10-22T12:44:08 | 420,062,350 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 973 | py | # coding: utf-8
"""
NHL v3 Stats
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unit... | [
"scotty.pate@auth0.com"
] | scotty.pate@auth0.com |
6ea1daf688c5dea9387fb2ba10c5fbdfb8ce9008 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC2102.py | 96caeab00be7aac3bbb16672f84d220d9143ee46 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,224 | py | # qubit number=4
# total number=33
import cirq
import qiskit
from qiskit import IBMQ
from qiskit.providers.ibmq import least_busy
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from qiskit import BasicAer, execute, transpile
from pprint import pprint
from qiskit.test.mock import FakeVigo
from ma... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
4fa76e84426de96dcf88970cf3e131fedae3b972 | a0d8e69fb80c5bcf7bdfd2c599f83fe71b04f48f | /lab4/mysite/settings.py | 28d0892856efc88363d768d3008dc78678b2ecaa | [] | no_license | DawidPawlowski123/aplikacje-internetowe-Dawid-Pawlowski-185ic | abb0d177ee5919294ee76af651c1c615053b1347 | 5e40ed6f0ff7615405d7ec38a649a2bd7baaff97 | refs/heads/main | 2023-02-25T08:39:28.672531 | 2021-01-29T14:43:00 | 2021-01-29T14:43:00 | 312,213,734 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,824 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"dawidpawlowski98@wp.pl"
] | dawidpawlowski98@wp.pl |
d59bbb75712262a49cc6527e34bb5d872fe48b59 | 712085c99797a14c2c5cff0e46a3de33b307d5dd | /eveuniverse/management/commands/eveuniverse_purge_data.py | b312e93dcd044b42f0c88a8e0a6ce4b1ff6c30df | [
"MIT"
] | permissive | staropera/django-eveuniverse | eeb86a8086fb83e853d0ae5562a97d6969a48039 | 4dd875238d475c5dd0355283b6257e3bcbad2d8b | refs/heads/master | 2023-07-05T05:53:11.295782 | 2021-07-03T13:21:31 | 2021-07-03T13:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,644 | py | import logging
from django.core.management.base import BaseCommand
from django.db import transaction
from ... import __title__
from ...models import EveUniverseBaseModel
from ...utils import LoggerAddTag
from . import get_input
logger = LoggerAddTag(logging.getLogger(__name__), __title__)
class Command(BaseCommand... | [
"erik.kalkoken@gmail.com"
] | erik.kalkoken@gmail.com |
41a5fb2910a6e40b7bd1be04cfbbdb0ef8e86f82 | 50f6ddd45ae2811ae4580ceb4a5617106145769f | /player461.py | 5fbfcb44c5bea39949159c1ff65d614cf4d54fcb | [] | no_license | MohammedFerozHussain/guvi1 | 432f89701b8d0d6e75229dbd199e362a42e2df53 | cd4ae6c903bd5de883234d076aec770e2c8bcd41 | refs/heads/master | 2020-04-15T05:10:19.398719 | 2019-08-17T18:16:39 | 2019-08-17T18:16:39 | 164,411,569 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | import math
A=int(input())
c=math.radians(A)
x=math.sin(c)
c1=(round(x,1))
k=abs(c1)
if k<1 :
print(c1)
else:
print(round(c1))
| [
"noreply@github.com"
] | MohammedFerozHussain.noreply@github.com |
4108e3aeb18c96e6d9ded60bf08972664cb1c6bc | 941cbcc815da9927c16291fd0cf341fdf26d4b4b | /Testing/Selenium/200518_First_demo.py | c33183c4fbe3ba07578a79c3b87637358574efb9 | [] | no_license | narru888/PythonWork-py37- | 27de004157efdf42972f66b20872e17de8bc676c | f9cb1670fb84b9eb8aaaf7cd5cf9139ab4ef4053 | refs/heads/master | 2022-12-09T04:58:06.068302 | 2020-09-23T09:47:40 | 2020-09-23T09:47:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,787 | py | from selenium import webdriver
# 啟動瀏覽器驅動和瀏覽器,返回的是WebDriver對象
# 參數為chrome驅動的路徑
wd = webdriver.Chrome(r'd:\Programming\WorkPlace\PythonWork(py37)\Testing\Selenium\chromedriver\chromedriver.exe')
# 跳轉頁面
wd.get(url='https://www.google.com.tw/')
# 因為有可能會遇到一種情況,就是web server尚未向我們(用戶)的瀏覽器返回頁面時,我們的程序繼續運行下一行代碼,導致找不到要的Element。... | [
"as124122323@gmail.com"
] | as124122323@gmail.com |
5f3faf4c4562e9b0e64d315ddcd5eee864cc3b85 | 3325f16c04ca8e641cbd58e396f983542b793091 | /Seção 10 - Epressões Lambdas e Funções Integradas/any_all.py | e496ebcb6cf885ddd9c9be5e515223aa5b9bd253 | [] | no_license | romulovieira777/Programacao_em_Python_Essencial | ac929fbbd6a002bcc689b8d6e54d46177632c169 | e81d219db773d562841203ea370bf4f098c4bd21 | refs/heads/master | 2023-06-11T16:06:36.971113 | 2021-07-06T20:57:25 | 2021-07-06T20:57:25 | 269,442,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | """
Any e All
all() -> Retorna True se todos os elementos do iterável são verdadeiros ou ainda se o iterável está vazio.
# Exemplo all()
print(all([0, 1, 2, 3, 4])) # Todos os números são verdadeiros? False
print(all([1, 2, 3, 4])) # Todos os números são verdadeiros? True
print(all([])) # Todos os números são ... | [
"romulo.vieira777@gmail.com"
] | romulo.vieira777@gmail.com |
29d497b0958f5306ca1af7ce54ce68796eaabfc5 | 0486b6ccf883e9cd7a24bbd89b5420e7de2172b9 | /DRF Study Material/Django REST Code/gs40/gs40/settings.py | 385459f2976108c2c7956f10aac8a7fd6bed0e5f | [] | no_license | ajitexl/restfrmaework | 2980203d7faa6c8364288283758d32c8f2a37817 | 9ab203748e623516365d9924dcc68acc786a66e1 | refs/heads/main | 2023-02-03T08:52:00.672047 | 2020-12-10T09:50:51 | 2020-12-10T09:50:51 | 320,222,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | """
Django settings for gs40 project.
Generated by 'django-admin startproject' using Django 3.1.2.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
fro... | [
"you@example.com"
] | you@example.com |
9a9dfa7493053bf7d54ab1b2f0a6907ca4e2210b | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-css/huaweicloudsdkcss/v1/model/show_cluster_volume_rsp.py | 67727eed536ac36df3ddb9ef1537a0c6c9c17134 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,714 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ShowClusterVolumeRsp:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribu... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.