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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
967310637702eff27a83660003658155efc8396e | 59166105545cdd87626d15bf42e60a9ee1ef2413 | /dbpedia/models/currency.py | 247af9388ea431df1b9ddbb8290936e949d7c581 | [] | no_license | mosoriob/dbpedia_api_client | 8c594fc115ce75235315e890d55fbf6bd555fa85 | 8d6f0d04a3a30a82ce0e9277e4c9ce00ecd0c0cc | refs/heads/master | 2022-11-20T01:42:33.481024 | 2020-05-12T23:22:54 | 2020-05-12T23:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,065 | py | # coding: utf-8
"""
DBpedia
This is the API of the DBpedia Ontology # noqa: E501
The version of the OpenAPI document: v0.0.1
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from dbpedia.configuration import Configuration
class Currency(object):... | [
"maxiosorio@gmail.com"
] | maxiosorio@gmail.com |
3fb4d3bbb4dde7e3d306bb5a3c09da9a4fb90160 | 676f6f2d02db6aeeaa1bb0b28ab49e8c73923d0e | /venv/Lib/site-packages/falcon/routing/static.py | ba3fab244a4b74aade87e48b3f357821e052b5b8 | [
"Apache-2.0"
] | permissive | vrian/orsen | ce34f74ea3a14c95d37ffa5c694b7c66725925df | 9c10148aba62868fad4b679a4b9b717829586e96 | refs/heads/master | 2023-01-21T21:47:06.210918 | 2018-06-23T04:46:26 | 2018-06-23T04:46:26 | 120,284,869 | 1 | 0 | Apache-2.0 | 2023-01-09T09:39:16 | 2018-02-05T09:44:03 | Python | UTF-8 | Python | false | false | 3,662 | py | import io
import os
import re
import falcon
class StaticRoute(object):
"""Represents a static route.
Args:
prefix (str): The path prefix to match for this route. If the
path in the requested URI starts with this string, the remainder
of the path will be appended to the source... | [
"jbryanalburo@gmail.com"
] | jbryanalburo@gmail.com |
6782fa5e1054bb50ec032c2695b4c1ef3b58a475 | 93a106e9e041c5699d0ff158934cc2ffcb495dad | /apps/goods/utils/pagination.py | b35129ab5ff3e3e12e7d707294eeb6862207d36b | [] | no_license | hj24/mbackend | c77cdf1e782ef5b07ba135c1996fa5bc0289ae19 | 0a5e13764e2c837c06841551b1c7947d3b2b1fc2 | refs/heads/master | 2020-07-04T04:08:57.635296 | 2019-09-05T13:55:29 | 2019-09-05T13:55:29 | 202,150,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from rest_framework.pagination import PageNumberPagination
class GoodsListPaginator(PageNumberPagination):
"""
分页
"""
page_size = 10
page_query_param = 'p'
page_size_query_param = 'len'
max_page_size = 100 | [
"huangjian24@foxmail.com"
] | huangjian24@foxmail.com |
353fd8d615ef451dd54a3b59c347ec464e145001 | 786de89be635eb21295070a6a3452f3a7fe6712c | /ParCorAna/tags/V00-00-05/src/XCorrBase.py | 8b176fa8c7dde3654d5b17c160a7ff918b5d7aa0 | [] | no_license | connectthefuture/psdmrepo | 85267cfe8d54564f99e17035efe931077c8f7a37 | f32870a987a7493e7bf0f0a5c1712a5a030ef199 | refs/heads/master | 2021-01-13T03:26:35.494026 | 2015-09-03T22:22:11 | 2015-09-03T22:22:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,459 | py | from mpi4py import MPI
#import ctypes
import numpy as np
import os
import time
import shutil
import StringIO
import pprint
import logging
import h5py
from ParCorAna.XCorrWorkerBase import XCorrWorkerBase
import ParCorAna.Timing as Timing
import ParCorAna.CommSystemUtil as CommSystemUtil
from EventIter import EventIte... | [
"davidsch@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7"
] | davidsch@SLAC.STANFORD.EDU@b967ad99-d558-0410-b138-e0f6c56caec7 |
63f561de09555c3a788e51e158d51cb5ff4c162b | 169d809f45dedcaa3c7b1b49912d8b025abe18d9 | /challenges_complete/challenge41_easy.py | 98e785c5363ccc80faae155035e3607690583dca | [] | no_license | bermec/challenges | 8a82d1d38d1ed1a0fc3f258443bc0054efc977a6 | 9fb092f20f12b4eaa808e758f00f482a49346c88 | refs/heads/master | 2021-10-08T05:05:56.803332 | 2018-12-08T00:20:20 | 2018-12-08T00:20:20 | 109,448,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | ''' Write a program that will accept a sentence as input and then output that sentence surrounded by some type of an ASCII decoratoin banner.
Sample run:
Enter a sentence: So long and thanks for all the fish
Output
*****************************************
* *
* So long and th... | [
"rog@pynguins.com"
] | rog@pynguins.com |
831b74369a74139bff97720c4cf4e4c202d4480f | 7dc240e587213e4b420676c60aa1b24905b1b2e4 | /src/app/viewsets.py | 9f2df87358c43ee6fbb43a5a99585da0389f7c79 | [
"MIT"
] | permissive | denokenya/education-backend | 834d22280717f15f93407108846e2eea767421c8 | 3b43ba0cc54c6a2fc2f1716170393f943323a29b | refs/heads/master | 2023-08-27T09:07:48.257108 | 2021-11-03T00:19:04 | 2021-11-03T00:19:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,389 | py | from typing import Optional
from django.core.exceptions import ImproperlyConfigured
from rest_framework.viewsets import ModelViewSet
from rest_framework.viewsets import ReadOnlyModelViewSet as _ReadOnlyModelViewSet
__all__ = [
'AppViewSet',
'ReadOnlyAppViewSet',
]
class ValidationMixin:
def get_validato... | [
"noreply@github.com"
] | denokenya.noreply@github.com |
677da9b5c5567e11cdfb2f7d62b1330eae805c9a | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_hazels.py | 68890c1dd4562f8f386e419a195cb3fa1e13af2b | [
"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 | 218 | py |
#calss header
class _HAZELS():
def __init__(self,):
self.name = "HAZELS"
self.definitions = hazel
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['hazel']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
ab5276ea9b8ab95a554b7a829fbdb695a7474a15 | 21534aaebbfa80a34abe6ede7001c2cde1366ed5 | /leetcode/queue/number-of-recent-calls.py | 87191a48e87118a219661bcef000e91711a8b459 | [
"MIT"
] | permissive | bellatrixdata/data-structure-and-algorithms | 4f3d7aa37b60cabd6d49617f4163c88cc1cb61a0 | 1001e4bd7effd08a73d609d2fd93f3086d618420 | refs/heads/master | 2022-12-04T01:40:21.750737 | 2020-08-30T11:57:29 | 2020-08-30T11:57:29 | 286,114,456 | 3 | 1 | MIT | 2020-08-30T11:57:30 | 2020-08-08T20:26:58 | Python | UTF-8 | Python | false | false | 1,357 | py | """
## Questions: EASY
### 933. [Number of Recent Calls](https://leetcode.com/problems/number-of-recent-calls/)
Write a class RecentCounter to count recent requests.
It has only one method: ping(int t), where t represents some time in milliseconds.
Return the number of pings that have been made from 3000 millisecon... | [
"adityaraman96@gmail.com"
] | adityaraman96@gmail.com |
a508fca8908754b8d28a45c9681bf127ad7b4f19 | 62d403a0c32a5ac1fdd7a532f12f262932684d44 | /multiple_lr.py | 33e75ccede6039f60ae987febe30af9d51370492 | [] | no_license | ManishBilore/DS080321-ML | bc82aeb8376d644218afab83b5627fbd5dd29c28 | e1c26e5de7a00d53af67223208b919a37f76e9d0 | refs/heads/main | 2023-07-18T20:35:15.590845 | 2021-09-17T15:09:02 | 2021-09-17T15:09:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # -*- coding: utf-8 -*-
import pandas as pd
dataset = pd.read_csv("Largecap_Balancesheet.csv")
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, 5].values
from sklearn.preprocessing import OneHotEncoder
from sklearn.compose import ColumnTransformer
ct = ColumnTransformer([("Country", OneHotEncoder(), [4])], remai... | [
"rishibansal02@gmail.com"
] | rishibansal02@gmail.com |
759960b43738a7aae37c052da31b0c0194c531d4 | 7c56dc04f467b108daac8448cd72dbb1bfa856a4 | /rulo_ml/src/grid_cells_human_presence.py | b5243996bab7b5d16b7d5015d82a010eb5e354c0 | [] | no_license | mtbthebest/rulo_pkg | 52217fd356e0e1c9d1bcfa2d0421c74028dc5ed6 | be626745e16924dd728ec868bdca139d3cc3b0b1 | refs/heads/master | 2020-05-21T16:57:20.663466 | 2019-05-11T09:09:57 | 2019-05-11T09:09:57 | 186,111,180 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,739 | py | #!/usr/bin/env python
import os
import sys
import numpy as np
import csv
import pandas as pd
from pandas import Series, DataFrame
from collections import deque, OrderedDict
from math import fabs
from rulo_utils.csvwriter import csvwriter
tracking_folder = '/home/barry/hdd/tracking/'
# day_folder = ['21','22', '23', '24... | [
"mtbthebest11@gmail.com"
] | mtbthebest11@gmail.com |
70512a751964c6dccfb1ced54e40637e1cee01b4 | 080c13cd91a073457bd9eddc2a3d13fc2e0e56ae | /MY_REPOS/awesome-4-new-developers/tensorflow-master/tensorflow/python/compat/disable_v2_behavior_test.py | 54d262572e8a3b51a1897e05ee43c8e0acbd8e3c | [
"Apache-2.0"
] | permissive | Portfolio-Projects42/UsefulResourceRepo2.0 | 1dccc8961a09347f124d3ed7c27c6d73b9806189 | 75b1e23c757845b5f1894ebe53551a1cf759c6a3 | refs/heads/master | 2023-08-04T12:23:48.862451 | 2021-09-15T12:51:35 | 2021-09-15T12:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | # Copyright 2018 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... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
aa26c560a6a84fb14c9cc34296e28ec4d68a9de0 | 9f97c7c5ba81fb9d139ac3aa71346115c7eaf872 | /rcsb/utils/tests-io/testStashUtil.py | efa53e208db237904b4bfb4ed127ac7ba5fbb256 | [
"Apache-2.0"
] | permissive | rcsb/py-rcsb_utils_io | 9c6a86a140ea5dc736ad4d100d27380b5ba6f380 | 02178b2e04eb80e21caaa1c596d904af91b8e502 | refs/heads/master | 2023-07-06T12:08:52.367479 | 2023-05-22T13:35:01 | 2023-05-22T13:35:01 | 145,760,886 | 0 | 6 | NOASSERTION | 2023-05-19T17:45:29 | 2018-08-22T20:44:23 | Python | UTF-8 | Python | false | false | 2,661 | py | ##
# File: testStashUtils.py
# Author: jdw
# Date: 21-Jul-2020
#
# Updates:
#
##
"""
Test utilities to stash and recover a data in collection of directories to and from
remote sftp, http or local POSIX file storage resources.
"""
__docformat__ = "google en"
__author__ = "John Westbrook"
__email__ = "john.westbr... | [
"john.westbrook@rcsb.org"
] | john.westbrook@rcsb.org |
db0b7649d84047b55451cd146826e10e840a9bab | 5a9c11b0d7d9d1ef11c8404c2e38cf2f5c4c6744 | /myapp/schema1.py | 4628d7500e013c8d1c1c2ee9e173c4c572b68a41 | [] | no_license | tlaboni-ecl/Demo_project | 7c671498c8f0f65520552c884b274cbbd2aea47c | 9ed5427d504e830df65ec1e8b17f218feb92ad83 | refs/heads/main | 2022-12-20T17:08:58.545689 | 2020-10-17T20:19:52 | 2020-10-17T20:19:52 | 304,962,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,210 | py | from django.contrib.auth import get_user_model
import graphene
from graphene_django import DjangoObjectType
class UserType(DjangoObjectType):
class Meta:
model = get_user_model()
only_fields = ('id','username', 'email', 'password')
class Query(graphene.ObjectType):
user = graphene.Field(User... | [
"you@domain.com"
] | you@domain.com |
9149b2f6be4966e163a6c4f9bff3489fd494ac71 | 8e1b324c3a9a95292af421eaa9b9f794c830b989 | /intro/matplotlib/examples/plot_text_ex.py | 3072ea1d03392289649d80a02442a5f5df8a9078 | [
"CC-BY-3.0",
"CC-BY-4.0"
] | permissive | GaelVaroquaux/scipy-lecture-notes | 89693b4924192367e4e61b21e954ec518d0c459e | 4198b53c6c3497a7062d72bce221a3e407a584c4 | refs/heads/master | 2020-04-05T01:18:45.074511 | 2013-11-14T20:40:27 | 2013-11-14T20:40:27 | 1,375,598 | 6 | 3 | null | 2013-08-22T08:36:45 | 2011-02-16T21:03:40 | Python | UTF-8 | Python | false | false | 1,033 | py | import pylab as pl
import numpy as np
eqs = []
eqs.append((r"$W^{3\beta}_{\delta_1 \rho_1 \sigma_2} = U^{3\beta}_{\delta_1 \rho_1} + \frac{1}{8 \pi 2} \int^{\alpha_2}_{\alpha_2} d \alpha^\prime_2 \left[\frac{ U^{2\beta}_{\delta_1 \rho_1} - \alpha^\prime_2U^{1\beta}_{\rho_1 \sigma_2} }{U^{0\beta}_{\rho_1 \sigma_2}}\rig... | [
"gael.varoquaux@normalesup.org"
] | gael.varoquaux@normalesup.org |
bde73808dc98de90ddb52be72fd87478d374dae7 | b87f66b13293782321e20c39aebc05defd8d4b48 | /maps/build/AppTools/enthought/help/help_plugin/help_submenu_manager.py | 8418daf6ae7f6729e60c0b8f6b378ece4c881303 | [] | no_license | m-elhussieny/code | 5eae020932d935e4d724c2f3d16126a0d42ebf04 | 5466f5858dbd2f1f082fa0d7417b57c8fb068fad | refs/heads/master | 2021-06-13T18:47:08.700053 | 2016-11-01T05:51:06 | 2016-11-01T05:51:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,066 | py | """ Managers for submenus of the Help menu.
:Copyright: 2008, Enthought Inc.
:License: BSD
:Author: Janet Swisher
"""
# This software is provided without warranty under the terms of the BSD
# license included in AppTools/trunk/LICENSE.txt and may be redistributed only
# under the conditions... | [
"fspaolo@gmail.com"
] | fspaolo@gmail.com |
acca8f60e7f3039a8b6cce0b95c3d147c66b1aab | 542d6c7a1303916a60bf0d7d24c8499a02f961c1 | /lib/python3.7/site-packages/azure/mgmt/recoveryservicesbackup/models/azure_sql_container.py | 5e7143d7446a976f08a56995e4c09fd0fa03668f | [] | no_license | jim-minter/azhack | e9918a916d2b71f3adcc4f1ea208312ad9c59210 | 0e8631fd067014a9f3000101a886e7a9a94acc95 | refs/heads/master | 2020-05-07T19:50:43.980332 | 2019-04-11T15:37:43 | 2019-04-11T22:20:29 | 180,830,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,704 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# C... | [
"jminter@redhat.com"
] | jminter@redhat.com |
140c5483901191032920262a8e6b95c98bb9ff18 | 86c5483f0285f834c46bab652a39c174fec9785c | /first.py | 5ddeb634e0b476bfbc16578a346610efcc1726d9 | [] | no_license | naheed2510/first_1 | 434a1bec4f7afcfa86b02c024f427bc199893c96 | 6571cdf27bcfd168a2235a96b5fe97da0e3ded76 | refs/heads/master | 2020-12-06T18:16:47.585704 | 2020-01-08T09:42:16 | 2020-01-08T09:42:16 | 232,523,790 | 0 | 0 | null | 2020-01-08T09:42:18 | 2020-01-08T09:11:31 | Python | UTF-8 | Python | false | false | 643 | py | print"......comment......"
print'single line ' "#"
print 'multi line("---")'
print"......data types......"
a=16 #int datatype
a1="abc" #string datatypes
b=123.25 #float datatypes
e=a+b #expression
v= 2.3+3.2j #complex datatype
print"......expression......"
c=10
d=20
e=c+d
f=d-c
print "sum is",e
print "subraction is",f... | [
"you@example.com"
] | you@example.com |
b55593a244241872ef6be54adc726b6a134d6b18 | a8a2d460b6a74a19c808160e447ec0c1a5a96e88 | /RinexPy/settings.py | 4a024e592fb7fae35358f9dfd1b3b7728d9c3a5c | [
"MIT"
] | permissive | kjkasi/RinexPy | 98532af02d432c0f36ba434b1785744d2c7081c0 | d391847546efb99d37bab3a42945db4adf609e76 | refs/heads/master | 2020-03-31T00:36:06.403834 | 2018-10-21T18:47:40 | 2018-10-21T18:47:40 | 151,609,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,149 | py | """
Django settings for RinexPy project.
Generated by 'django-admin startproject' using Django 1.11.15.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import o... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
bc14da62bc997567d7ec34ccec5249fa4d4d9e04 | 05c86f7127df61993534f56c5c94c266fb0e4599 | /app/management/commands/health.py | 16be5125a23802982bce7bc865c6a551dfcbd7a8 | [
"BSD-3-Clause"
] | permissive | arxcdr/silverback | 88c0f28f9e0a18ff0accd50eba00ae7c5bba048d | 212139cbc1a648d1f877d60f2d7c4d750eefc3da | refs/heads/master | 2020-08-02T10:15:46.136453 | 2019-10-01T08:23:20 | 2019-10-01T08:23:20 | 211,314,562 | 0 | 0 | BSD-3-Clause | 2019-09-27T12:29:22 | 2019-09-27T12:29:22 | null | UTF-8 | Python | false | false | 1,496 | py | """
Health Check Command
see https://docs.djangoproject.com/en/2.0/howto/custom-management-commands/
"""
# Third Party Library
from django.core.management.base import BaseCommand, CommandError
# Local Library
from app.modules.core.health import Health
class Command(BaseCommand):
help = "Health Check Silverbac... | [
"hello@clivern.com"
] | hello@clivern.com |
d0a0f5a7101e687740fcda55953e2b3b1183ed10 | 6066b2af4b4f6ab967cfb8af8ec3b8ee68545ab9 | /Key Terms Extraction/Topics/Creating bytes (1)/Decypher a message/main.py | 6791ed2112a6e4f9d78357ae0dfa8ca8d9a0d7ff | [] | no_license | zsbati/PycharmProjects | 7b29b210b4878af42baf288c585675d0203b9805 | c13b05901c5ff8ea6fc7bcb61c70aa40940daa56 | refs/heads/main | 2023-09-04T09:01:19.315655 | 2021-10-24T16:24:43 | 2021-10-24T16:24:43 | 401,172,721 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 256 | py | encoded_message = input()
key_number = int(input())
key_1, key_2 = key_number.to_bytes(2, byteorder='little')
new_key = key_1 + key_2
decoded_message = ''
for char in encoded_message:
decoded_message += chr(ord(char) + new_key)
print(decoded_message)
| [
"zbati123@gmail.com"
] | zbati123@gmail.com |
a9d5a3bd5bdcc1d162339dd8dc749e3f50c35937 | 3575babd066f2e2c94c107f908ae1a669f62e8fc | /pageObjects/CustomerPage.py | 1d1dc32a76d6dea48e65ddbb4623ecf090e24429 | [] | no_license | Ram080308/TestPython1 | e5d7c05180e12253467243605f861157333bc131 | a2b1b2267e28d879c5e2be858f9982e6bcaf60a9 | refs/heads/master | 2023-03-08T14:47:16.947738 | 2021-02-21T09:21:25 | 2021-02-21T09:21:25 | 340,860,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py |
from selenium import webdriver
class CustomerPage:
button_AddNew_Xpath = "/html/body/div[3]/div[3]/div/form[1]/div[1]/div/a"
def __init__(self,driver):
self.driver = driver
def test_clickAddNewButton(self):
self.driver.find_element_by_xpath(self.button_AddNew_Xpath).click()
| [
"="
] | = |
b84f3e851f2e6cca06b82e3548b4e9701d2a9263 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/1/dgl.py | 2e5ba0d48fd03914ed5e78f96c77bd3e6d7471f8 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
ac1232fa20ae7c80bb4dcb9665e9639e0e20ee02 | 52d6d5717aa6f03e3fb0727fe1d1e3f998cd23ec | /ejercicio236.py | 1f5f0f027172b928ef52ac7e211f58a5daadeef2 | [] | no_license | heroca/heroca | d7025aace9ee664edc3c6ae66eedd1f0e8d5d40e | 5e1a260859a244b45a5c6b7a16c5a3b5ae906976 | refs/heads/master | 2023-01-07T06:05:46.531676 | 2022-12-31T21:03:10 | 2022-12-31T21:03:10 | 113,127,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | import tkinter as tk
from tkinter import ttk
class Aplicacion:
def __init__(self):
self.ventana1=tk.Tk()
self.seleccion=tk.IntVar()
self.seleccion.set(2)
self.radio1=ttk.Radiobutton(self.ventana1,text="Varon", variable=self.seleccion, value=1)
self.radio1.grid(column=0, row=... | [
"7285@outlook.com"
] | 7285@outlook.com |
327eb7f38c04ff3b12205ee80eeb6635b42d3bac | 2ab444e427955d3dbf1f8c0947837c7d73e66a0a | /68-何强强-上海/第三周/sobel_test.py | 2927cb2d03c43bdc5211d7551e58e4a872a2eb26 | [] | no_license | Yang-chen205/badou-Turing | 6bfc0a4622cb0882f89117e73e2868d40601e7ff | f2a1b2f8b6b292815d92a294d49954616d3624d5 | refs/heads/main | 2023-08-07T03:57:07.471322 | 2021-09-26T08:20:10 | 2021-09-26T08:20:10 | 380,449,981 | 1 | 0 | null | 2021-06-26T08:12:02 | 2021-06-26T08:12:02 | null | UTF-8 | Python | false | false | 1,260 | py | # -*- coding:utf-8 -*-
"""
dst = cv2.Sobel(src, ddepth, dx, dy[, dst[, ksize[, scale[, delta[, borderType]]]]])
前四个是必须的参数:
src: 需要处理的图像;
ddepth: 图像的深度,-1表示采用的是与原图像相同的深度。目标图像的深度必须大于等于原图像的深度;
dx和dy表示的是求导的阶数,0表示这个方向上没有求导,一般为0、1、2。
dx == 1:
[[ 1, 0, -1],
[ 2, 0, -2],
[ 1, 0, -1]]
dy == 1:
[[ 1, 2, 1],
... | [
"huanmengmie@163.com"
] | huanmengmie@163.com |
7045f8296cb51344a840d0212ecc14bf1ff543d5 | fa3e527114cd5799dddb0a25067da4923eae354e | /FastSim/BES/reco/train_v5.py | c0a07e0e06aba4b2a990cff2194770dfcf2c9a84 | [] | no_license | wenxingfang/FastSim_ML | e64c6b56ce2afd703d1ddda0ada2de6f65fde049 | d2f1abbb2f6879313d5f4f137b64c4d8bf10fe83 | refs/heads/master | 2022-11-28T01:35:39.727895 | 2020-08-03T15:47:37 | 2020-08-03T15:47:37 | 284,734,310 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,388 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
"""
from __future__ import print_function
import argparse
from collections import defaultdict
import logging
import ast
import math
import h5py
import numpy as np
import os
#os.environ["CUDA_VISIBLE_DEVICES"]="-1" #do not use GPU
from six.moves import range
from skl... | [
"1473717798@qq.com"
] | 1473717798@qq.com |
cdf098759cc640bbcd49656791a97f134a57dfac | 116e36b57f264e7e1dad07e62f5fcb26c1304776 | /models/layers.py | 945046292bd0e5dca5cf4ab328b981a86ae001ea | [] | no_license | hologerry/svg_vae_pytorch | cb0035f2d549f52d76179b5974cc4f21c8c0d4b6 | 21e71fdb053eb3fbfe59453bc10ae654c671fb26 | refs/heads/master | 2021-03-01T12:24:33.448706 | 2020-06-07T15:21:25 | 2020-06-07T15:21:25 | 245,785,780 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,517 | py | import torch
from torch import nn
from torch.nn import Parameter
from torch.nn import functional as F
"""
These code is from:
https://github.com/ChinmayLad/neural-style-transfer
"""
class ConditionalInstanceNorm(nn.Module):
"""
PyTorch does not contain api for Conditional Instance Normalization.
This is... | [
"hologerry@gmail.com"
] | hologerry@gmail.com |
24c27f7c94eac7d662aa003fc1ed6c929a9900ed | 609582ee37a01ac6a67fb9c957825dcd3c9a5b3a | /LeetCode_Array/53_Maximum_subArray.py | 87bdb5375c1119a28d1217cb56139c816bd43dee | [] | no_license | captainjack331089/captainjack33.LeetCode | a9ad7b3591675c76814eda22e683745068e0abed | 4c03f28371e003e8e6a7c30b7b0c46beb5e2a8e7 | refs/heads/master | 2022-03-07T19:53:40.454945 | 2019-11-06T19:32:00 | 2019-11-06T19:32:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 954 | py | """
Category: Array
Difficulties: Easy
Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum and return its sum.
Example:
Input: [-2,1,-3,4,-1,2,1,-5,4],
Output: 6
Explanation: [4,-1,2,1] has the largest sum = 6.
Follow up:
If you have figured out the O... | [
"qfhjack@gmail.com"
] | qfhjack@gmail.com |
92d3e07181ac915b1c0b2a360ff06e13068dc6d6 | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /BitPim/rev3177-3296/left-trunk-3296/phones/__init__.py | ae918717bd6c833ec483dbb5547b19445c8685d2 | [] | no_license | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 12,255 | py | c_vzw='Verizon Wireless'
c_cingular='Cingular'
c_att='AT&T'
c_telus='Telus Mobility'
c_alltel='Alltel'
c_bell='Bell Mobility'
c_sprint='Sprint'
c_pelephone='Pelephone'
c_sti='STI Mobile'
c_other='Other'
b_lg='LG'
b_samsung='Samsung'
b_sanyo='Sanyo'
b_sk='SK'
b_toshiba='Toshiba'
b_other='Other'
b_audiovox='Audiovox'
b_m... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
5acdf363554b0c1ceaf58b038b2e0d72625233a6 | ba72d59f5291973c987e86a2755c28bf4ae854b5 | /gears/info.py | b9e26d7eb5501e1908fdfb755f32c0b61f63e718 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | kaol/gearhead-caramel | 62ee9df79abf24422a80c39ac5b90bbc8051a77e | a286be2f1160930d7f394f52add289edf18a4066 | refs/heads/master | 2021-01-25T14:16:56.464327 | 2018-02-28T16:10:50 | 2018-02-28T16:10:50 | 123,679,617 | 0 | 0 | null | 2018-03-03T09:55:31 | 2018-03-03T09:55:30 | null | UTF-8 | Python | false | false | 8,274 | py | import base
import pbge
import pygame
class InfoPanel( object ):
# An InfoPanel contains a bunch of InfoBlocks which get arranged vertically.
# Each InfoBlock needs a width, height, and render(x,y)
DEFAULT_BLOCKS = list()
def __init__(self,padding=3,**kwargs):
self.padding = padding
sel... | [
"pyrrho12@yahoo.ca"
] | pyrrho12@yahoo.ca |
405a0fdcb3b5e0946ee31c23035f3d389681cea3 | 50da4a85735a4f68286220151ff39d53cb2a1cef | /002.py | a2fb175e44e59b1ce5ecc311654a0dc6af64a2bc | [] | no_license | jamesshapiro/project-euler | 815817accadad2279e50187367b5cfb32bfbeb84 | ee09bd5efadce9611d81bd8722c4f52fb7228633 | refs/heads/master | 2020-06-25T10:16:45.380391 | 2017-08-03T02:00:00 | 2017-08-03T08:32:31 | 96,973,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | #!/usr/bin/env python3 -tt
def fibn(n):
num1 = 0
num2 = 1
while num2 < n:
yield num2
num1, num2 = num2, num1 + num2
even_terms = [x for x in fibn(4000000) if x % 2 == 0]
print(sum(even_terms))
| [
"jamesshapiro@gmail.com"
] | jamesshapiro@gmail.com |
00b8e24a2acfacf74cef0cdb7587b36ff2997583 | 269338cb8266c93ee9e15ad6bf22760ae36df199 | /src/OBJECTS/UNARY/CHANGE_REPORT.py | 19b5d41db704bf7317ac5f7b6c4db8f2263ef54b | [] | no_license | OpenJ92/dbm | d218b946360734255b1001dcae2ae8d6476dce49 | ce60985ab5866902b6e73af8f39520a4dcd5501e | refs/heads/master | 2021-01-26T08:13:40.164570 | 2020-09-07T18:00:55 | 2020-09-07T18:00:55 | 243,379,446 | 0 | 0 | null | 2020-03-12T20:12:53 | 2020-02-26T22:28:55 | Python | UTF-8 | Python | false | false | 1,157 | py | from time import strftime
from os import mkdir
from os.path import exists, expanduser
from jinja2 import Environment, PackageLoader
class CHANGE_REPORT(object):
def __init__(self, DATABASE):
self._time = strftime("%Y%m%d-%H%M%S")
self._log_dir = f"{expanduser('~')}/tmp/.scd/data.change"
sel... | [
"jacob.vartuli.92@gmail.com"
] | jacob.vartuli.92@gmail.com |
481d45ae45b5c196aa4b7ff1825f3f80bb267113 | 962922d34846ac7b8155927e8b34176f7939ed38 | /Score Prediction/model/RNN_torch.py | 4775893585ec9d1ba801138243a26f383656980e | [
"MIT"
] | permissive | yaozhian/ReviewRobot | 2cb44cc55009be8231f193b7ade3ea81401ef423 | 823bba4db99cd8c0f3b6d6d38f9f19cae1dd6778 | refs/heads/master | 2023-05-09T03:12:32.119030 | 2021-05-31T03:52:12 | 2021-05-31T03:52:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,375 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
class Appro_Sound(nn.Module):
def __init__(self, embed_layer_word, embed_layer_f1, embed_layer_f2, input_dropout, layer_dropout, w_dim, f_dim, h_dim, num_c... | [
"dalewanghz@gmail.com"
] | dalewanghz@gmail.com |
9b6495ffa6825f486adb64ca7297b628573dd248 | 3ccd609f68016aad24829b8dd3cdbb535fb0ff6d | /python/bpy/types/MESH_UL_vgroups.py | a8ae83429b6d2df11ff7d60c429b3cd8eb4dbcd1 | [] | no_license | katharostech/blender_externs | 79b2eed064fd927e3555aced3e2eb8a45840508e | fdf7f019a460de0fe7e62375c1c94f7ab0e9f68d | refs/heads/master | 2020-04-11T14:00:29.393478 | 2018-10-01T00:40:51 | 2018-10-01T00:40:51 | 161,838,212 | 1 | 1 | null | 2018-12-14T20:41:32 | 2018-12-14T20:41:32 | null | UTF-8 | Python | false | false | 137 | py | class MESH_UL_vgroups:
def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
pass
| [
"troyedwardsjr@gmail.com"
] | troyedwardsjr@gmail.com |
1d40d03b83a313949f663c902971d60d95cf2514 | 51149f06c9536e6851ed30f3ddd7867fca7cfe88 | /libs/networks/ops.py | 539002567664591c68a70e0ab977b7c56935bb72 | [
"MIT"
] | permissive | anmolduainter/FCOS_Tensorflow | 68fbe392ff42bf021ee25a16dc936e29226becb9 | ca1b59e3f0979a6de519f433bc9f4505964391e2 | refs/heads/master | 2023-01-23T01:21:39.367364 | 2020-11-30T01:07:41 | 2020-11-30T01:07:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | import tensorflow as tf
import tensorflow.contrib.slim as slim
def norm(x, norm_type, is_train, G=32, esp=1e-5):
with tf.variable_scope('{}_norm'.format(norm_type)):
if norm_type == 'none':
output = x
elif norm_type == 'batch':
output = tf.contrib.layers.batch_norm(
... | [
"yangxue@megvii.com"
] | yangxue@megvii.com |
46603cd46ed3478688e79438cc82409175b247bd | a7adc6900fdc760b888f00874aa3b86760823671 | /login/apps.py | 9810390d9e1f8c05317bea6afa77ea3364cf3c67 | [] | no_license | anushamokashi/samp | 5611d80d3f5e9cef8c3ce5f0b5173aa19e0b314b | 1840e366dd2d3e486eff9ca918767f07e9abeb06 | refs/heads/master | 2020-04-10T03:53:34.601592 | 2018-12-07T06:42:46 | 2018-12-07T06:42:46 | 160,782,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 157 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.apps import AppConfig
class LoginConfig(AppConfig):
name = 'login'
| [
"anusha.mokashi@gmail.com"
] | anusha.mokashi@gmail.com |
69bf58e123cd0be983d69baa47505590e7cd9d36 | 578aed82588bff49760b34183dfe60e1b1f6987a | /Python/Create_text/create_textfiles.py | 3270c903f3c7d694a850b637ea92283a36c4f334 | [] | no_license | seethakris/Light-Newthunder | 90c3fb344ad60ff2b1e8cd49c03c9f490fd1acb8 | e462dfe396527a6d9b2318bdf7cefc865ef91893 | refs/heads/master | 2016-09-05T18:06:16.432858 | 2015-05-04T08:53:32 | 2015-05-04T08:53:32 | 34,647,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,493 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jan 21 15:16:53 2015
Create a variety of text file according to input
@author: chad
"""
#Import relevant libraries
import numpy as np #for numerical operations on arrays
import PIL as pil # for image resizing
import os
filesep = os.path.sep
import matplotlib.pyplot as plt #... | [
"seethakris@gmail.com"
] | seethakris@gmail.com |
5794d893bc6978aa754998de5a3fd37ce8f0b315 | 010279e2ba272d09e9d2c4e903722e5faba2cf7a | /contrib/python/plotly/py2/plotly/validators/streamtube/colorbar/__init__.py | a544bc394ca2dd69eef46578edf95afce6881660 | [
"Apache-2.0",
"MIT"
] | permissive | catboost/catboost | 854c1a1f439a96f1ae6b48e16644be20aa04dba2 | f5042e35b945aded77b23470ead62d7eacefde92 | refs/heads/master | 2023-09-01T12:14:14.174108 | 2023-09-01T10:01:01 | 2023-09-01T10:22:12 | 97,556,265 | 8,012 | 1,425 | Apache-2.0 | 2023-09-11T03:32:32 | 2017-07-18T05:29:04 | Python | UTF-8 | Python | false | false | 24,866 | py | import _plotly_utils.basevalidators
class YpadValidator(_plotly_utils.basevalidators.NumberValidator):
def __init__(self, plotly_name="ypad", parent_name="streamtube.colorbar", **kwargs):
super(YpadValidator, self).__init__(
plotly_name=plotly_name,
parent_name=parent_name,
... | [
"robot-piglet@yandex-team.com"
] | robot-piglet@yandex-team.com |
b1b0841414f8028e700ad5058aec2099761419f2 | 713a4822e2df6d21c74b6d6f5b5f3c35daa24379 | /triWeb_backend/bak/multiprocessing_test2.py | a7c52249e1fe63b59afb24133299acc80f5140d8 | [] | no_license | ijjww/web_TriAquae | 19301ac198f65e3f35cfe8824f1f9a3c81f8677d | af888a9604ce45db7ad7234fc89d56e454effbdf | refs/heads/master | 2021-01-17T23:55:25.144975 | 2013-06-09T11:47:35 | 2013-06-09T11:47:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py |
import multiprocessing
import time
def func(msg):
'''for i in xrange(5):
print msg
time.sleep(1)
'''
print msg
time.sleep(1)
pool = multiprocessing.Pool(processes=12)
result = []
for i in xrange(10):
msg = "hello %d" % i
result.append(pool.apply_async(func,(msg,)))
#print '----- %d -----' % i
pool.clo... | [
"lijie3721@126.com"
] | lijie3721@126.com |
2bd11173d98f571259acd92ccecb9200913cac19 | 2a54e8d6ed124c64abb9e075cc5524bb859ba0fa | /.history/4-functional-programming/1-pure-functions_20200421010733.py | bc13d51b75052c1f641b0120271d1c4f0c606cc3 | [] | no_license | CaptainStorm21/Python-Foundation | 01b5fbaf7a913506518cf22e0339dd948e65cea1 | a385adeda74f43dd7fb2d99d326b0be23db25024 | refs/heads/master | 2021-05-23T01:29:18.885239 | 2020-04-23T19:18:06 | 2020-04-23T19:18:06 | 253,171,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | # purpose
# clear and understandable
# easy to extend
# easy to maintain
# memory efficient
# DRY (dont repeat yourself)
# functional programming paradagm = pure functions
def multiply_by2() | [
"tikana4@yahoo.com"
] | tikana4@yahoo.com |
1f5dffc36009cb5d67577394362222cedd32bdce | 4239445f18aea9a1c4ddd8b56fed473f46fab9d2 | /tasks/job_put_tasks.py | 6bd592ed663af6c0043b265627d77d95a92cc059 | [
"MIT"
] | permissive | MirrorPictures/news_spider | 5e8931ee892f68d959547bd57e572571b3cae80e | bd565348b40a312d4dadce9d777a2cf9e2ff12f7 | refs/heads/master | 2020-04-24T17:43:14.300775 | 2018-09-04T06:28:32 | 2018-09-04T06:28:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,945 | py | #!/usr/bin/env python
# encoding: utf-8
"""
@author: zhanghe
@software: PyCharm
@file: job_put_tasks.py
@time: 2018-02-10 17:16
"""
import sys
from models.news import FetchTask, FetchResult, LogTaskScheduling
from apps.client_db import get_group, get_all
from maps.platform import WEIXIN, WEIBO, TOUTIAO
from tools.sc... | [
"zhang_he06@163.com"
] | zhang_he06@163.com |
be7b2fd795dac040359c3127c3c89615ee14f58b | 183caf378df099da122f65ea9b75002b1e12b774 | /projFocus/ceRNA/get_resmExpMat.py | e434f2ccdd1cfb2500ad04bfb51b8622bb6fc1bd | [] | no_license | cwt1/scripts-1 | f58e476ddb2c83e0480856a95a95a644ad3c001c | 061d6592aa6ab11c93363fcb40305a57db05e3f2 | refs/heads/master | 2021-05-28T01:31:30.896133 | 2014-08-25T19:02:37 | 2014-08-25T19:02:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,491 | py | #!/usr/bin/python
# input: <file contains the input file names>
# output: <file including snps after filtering> <file: stats about the filtering>
#J.HE
import os
import linecache
import sys, getopt
# for one line
# inp = "input_test.txt"
# outp = "output_test.txt"
# outlog = "output_test.log"
argv = sys.argv[1:]
# d... | [
"violet.hj@gmail.com"
] | violet.hj@gmail.com |
ae55bbf610fb3340dc604647c31124c97d3e6ded | 9ca6df194f9def6076a65237f0b89ba5fe16fc9a | /lingcod/async/migrations/0001_initial.py | 6b21fbaca9d3c699672b845ab030455509305c6f | [] | no_license | FlavioFalcao/marinemap | 4332f80e9957cbb522e995a0b851483ff80215ae | c001e16615caa2178c65ca0684e1b6fd56d3f93d | refs/heads/master | 2021-01-18T09:26:34.979627 | 2014-01-04T00:36:23 | 2014-01-04T00:36:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,127 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'URLtoTaskID'
db.create_table('async_urltotaskid', (
('url', se... | [
"sfletche@gmail.com"
] | sfletche@gmail.com |
9ebaea88b655adce9be60ce8d8ecd98af8f2e4bc | d26291808ad36f5d22a2a519231da4c7d41b87e5 | /tests/hwsim/wpasupplicant.py | 23cb395daf84f7c991be3e2279fe8e77bda7bf28 | [
"BSD-3-Clause"
] | permissive | willglynn/hostapd | 026210b07b5290cf2db022de52cb6f836da7b0ea | bacbb62294d344cf77547912a800678e0a69b55c | refs/heads/master | 2020-06-21T07:36:05.155745 | 2016-11-25T22:36:50 | 2016-11-25T22:36:50 | 74,798,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 47,383 | py | # Python class for controlling wpa_supplicant
# Copyright (c) 2013-2014, Jouni Malinen <j@w1.fi>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
import os
import time
import logging
import binascii
import re
import struct
import wpaspy
import remotehost
import su... | [
"j@w1.fi"
] | j@w1.fi |
7d79b86ea37a30d1562b531693167c92d9d66811 | 4b4df51041551c9a855468ddf1d5004a988f59a2 | /leetcode_python/Binary_Search/single-element-in-a-sorted-array.py | 72c103c320026ff0b95fb9e76965db3668866040 | [] | no_license | yennanliu/CS_basics | 99b7ad3ef6817f04881d6a1993ec634f81525596 | 035ef08434fa1ca781a6fb2f9eed3538b7d20c02 | refs/heads/master | 2023-09-03T13:42:26.611712 | 2023-09-03T12:46:08 | 2023-09-03T12:46:08 | 66,194,791 | 64 | 40 | null | 2022-08-20T09:44:48 | 2016-08-21T11:11:35 | Python | UTF-8 | Python | false | false | 1,711 | py | # V0
# V1
# https://blog.csdn.net/fuxuemingzhu/article/details/79275636
class Solution(object):
def singleNonDuplicate(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
return reduce(lambda x, y: x^y, nums)
# V1'
# https://blog.csdn.net/fuxuemingzhu/article/details/... | [
"f339339@gmail.com"
] | f339339@gmail.com |
90ae886d38c66fef94def8dfc9e276e8a84ce047 | 0809ea2739d901b095d896e01baa9672f3138825 | /beerCBVsproject3/testApp/views.py | cc736c5bb18e87552e7ffbd71148768cde20f6f6 | [] | no_license | Gagangithub1988/djangoprojects | dd001f2184e78be2fb269dbfdc8e3be1dd71ce43 | ea236f0e4172fbf0f71a99aed05ed7c7b38018e2 | refs/heads/master | 2022-11-15T23:46:46.134247 | 2020-07-15T06:37:51 | 2020-07-15T06:37:51 | 273,479,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | from django.shortcuts import render
from testApp.models import Beer
from django.views.generic import ListView,DetailView,CreateView,UpdateView,DeleteView
from django.urls import reverse_lazy
# Create your views here.
class list_view(ListView):
model=Beer
class detail_view(DetailView):
model=Beer
class create... | [
"djangopython1988@gmail.com"
] | djangopython1988@gmail.com |
f20a6a1690f75db006d99db7951804f989b698e1 | 37035e319c0b19b27df09f41988329a9b4424356 | /utils/img_util.py | 3ede4bc0a9f4192f85119d45f20865f163caecc1 | [
"MIT"
] | permissive | PingjunChen/ThyroidRule | a37cd57522e437d37182f79d54bd53db2224089d | 1213cf0783c84da5917ca903c156e5e4280402f5 | refs/heads/master | 2022-12-02T01:38:05.413368 | 2020-08-12T20:04:32 | 2020-08-12T20:04:32 | 201,542,920 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | import os, sys, pdb
import numpy as np
import cv2
from skimage.color import rgb2gray
from skimage import filters
from scipy.ndimage import binary_fill_holes
from skimage.morphology import remove_small_objects
def mask_overlay_image(img, mask, alpha=0.5):
assert img.shape[:2] == mask.shape[:2], "Image and Mask sha... | [
"chenpingjun@gmx.com"
] | chenpingjun@gmx.com |
5dced3d296f16d4b575c7680e8acadf1a335c53d | 4fdaa61e2fb2d320a0903e17024598c6a67ab0fb | /AwgRoseInn/.~c9_invoke_IVfwBX.py | 76f6af82a35d4ca42b69b0e35c67c369a3db020e | [] | no_license | khans/ProgrammingAndDataStructures | 10d5cd5f30f703298ba132be4dfba828f3a0e9e1 | 58c1d822fa5eab17485369bc40dd1376db389f44 | refs/heads/master | 2021-01-25T14:03:40.616633 | 2018-06-19T23:02:44 | 2018-06-19T23:02:44 | 123,643,607 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,134 | py | class Room():
def __init__(self,number,capacity,storage):
self.number = number
self.capacity = capacity
self.storage = storage
def showRoomInfo(self):
print "Room number %d has %d people to host and %d storage." % (self.number, self.capacity, self.storage)
def a... | [
"isafakhan@gmail.com"
] | isafakhan@gmail.com |
183ac21fdd26265fa545aa590fa9c3f0dee81adc | 7cf119239091001cbe687f73018dc6a58b5b1333 | /datashufflepy-zeus/src/branch_scripts2/NEWS/ZX_CJXW_ZYCJ/ZX_CJXW_ZYCJ_DYCJ_JR.py | 7747676d92ca7b813c5c4abeeeef3a3eb4f455b7 | [
"Apache-2.0"
] | permissive | ILKKAI/dataETL | 0f5b80c3482994f735f092a1e01fa1009bac4109 | 32f7ec3aaaf32b5074536a615cb9cd5c28bd499c | refs/heads/master | 2022-04-04T19:27:05.747852 | 2020-02-28T11:17:48 | 2020-02-28T11:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 357 | py | # -*- coding: utf-8 -*-
from database._mongodb import MongoClient
def data_shuffle(data):
return data
if __name__ == '__main__':
main_mongo = MongoClient(entity_code="ZX_CJXW_ZYCJ_DYCJ_JR", mongo_collection="ZX_CJXW_ZYCJ")
data_list = main_mongo.main()
for data in data_list:
re_data = data_... | [
"499413642@qq.com"
] | 499413642@qq.com |
63c33447ef2cc2c2704de003d5900d39d6a75ad0 | ad5d581415fc7195d8209a02a932c725aefdb772 | /mysite/mysite/env/lib/python2.6/site-packages/pip/_vendor/requests/packages/chardet/langhungarianmodel.py | daa3d3913195c33d78786e099a8c88e65bf4f5d9 | [] | no_license | wenjieanze/cheungssh | 40b160726abef79e90b7c69e9d06a458f0963663 | e4b180fe684be4a95658b9f53c7527e962706266 | refs/heads/master | 2021-10-25T16:13:20.739987 | 2019-04-05T05:56:57 | 2019-04-05T05:56:57 | 108,812,866 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,398 | py |
# The Original Code is Mozilla Communicator client code.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 1998
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Mark Pilgrim - port to Python
#
# Th... | [
"your@example.com"
] | your@example.com |
61d50112bd1fd39852e842ea25f3163f0c8425c4 | 05d692469305dd1adb9ebc46080525bb4515b424 | /diffbtwcapitalizentitle2.py | 4bd23f6ac0fa45204df3a2426105d4a23d85be45 | [] | no_license | rajdharmkar/pythoncode | 979805bc0e672f123ca1460644a4bd71d7854fd5 | 15b758d373f27da5680a711bf12c07e86758c447 | refs/heads/master | 2020-08-07T18:30:55.575632 | 2019-10-14T12:46:09 | 2019-10-14T12:46:09 | 213,551,766 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | foo = 'manogna neelam'
print (foo.capitalize())
print (foo.title()) | [
"rajdharmkar@gmail.com"
] | rajdharmkar@gmail.com |
36eb908c7a3329dbe18936397a89d66a47ec1bdc | d687928d05e05fac765f3b936c1e0c0d1950c68a | /src/RL/rlcaction.py | 635f309c365576684673865b53a8ffd5cc8aa277 | [] | no_license | PeterZs/PuzzleTunnelDiscovery | 0b75dc3e62d0e8d18941e3c37646aec498b3a251 | badd6debb5cf4882598038ac2cab454e014fc24b | refs/heads/master | 2022-06-17T20:03:51.210708 | 2020-04-30T05:14:16 | 2020-04-30T05:14:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,644 | py | '''
RL Continuous Action
- Input: output file of calibrate-distance.py
'''
import pyosr
import numpy as np
def ivi_to_leaving_trajectory(ivi, V, N, D, amag, uw):
# print("N[8050] {}".format(N[8050]))
# ivi = 20146
# ivi = 0
cvi = ivi
vs = []
while True:
# print('CHECKING {} {}'.for... | [
"xinyazhang@utexas.edu"
] | xinyazhang@utexas.edu |
82649caf8b1db35ca7c777028a8bd3697540e898 | f28bf07217731a8d97fa3d7029df11b2a0506650 | /p2_continuous-control/trainer.py | 3c4beab26671ed69fc6e7c8b02e404f9643ff2dd | [
"MIT"
] | permissive | postBG/deep-reinforcement-learning | 7465f7698d91363c8bacd791467f1dbb44bee9a9 | 5df5662b091c4c3f00beba1aa6f9ce8a52001c93 | refs/heads/master | 2022-12-18T20:06:08.245460 | 2021-09-05T09:26:17 | 2021-09-05T09:26:17 | 169,988,821 | 2 | 0 | MIT | 2022-12-08T01:44:34 | 2019-02-10T14:48:16 | Jupyter Notebook | UTF-8 | Python | false | false | 5,740 | py | from collections import deque
import numpy as np
import torch
import torch.nn as nn
from losses import calculate_clipped_surrogate
from trajectories import collect_trajectories
from utils import DEVICE, print_ratio_for_debugging, to_tensor_long
def evaluate(env, model):
last_100_episode_rewards = deque(maxlen=1... | [
"profile2697@gmail.com"
] | profile2697@gmail.com |
d5338f33173fc5e7d10e3048256e58474be59b83 | 2b6116b967f6b02a6c62392058623ba8824f5ee2 | /deal/management/commands/person_clean.py | 37ba1ee464819a35d03089137554a8943012d9a9 | [] | no_license | tayursky/med-crm | 68a16d771a91a9a5ff3e61acd00c08ad6297c405 | 8e39904968a8217b9cd4593acc3afa27ff4584ba | refs/heads/master | 2023-01-11T08:28:23.762631 | 2020-03-15T20:53:59 | 2020-03-15T20:53:59 | 247,546,343 | 0 | 0 | null | 2023-01-06T02:27:23 | 2020-03-15T20:30:05 | Python | UTF-8 | Python | false | false | 1,546 | py | # -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand, CommandError
from deal.models import Deal
from identity.models import Person
class Command(BaseCommand):
help = 'clean persons'
def handle(self, *args, **options):
print('Begin clean persons\n')
exclude_persons = []... | [
"tayursky@gmail.com"
] | tayursky@gmail.com |
8d4f091902fb31964c9bac17ebf547ee170a00af | bfbe642d689b5595fc7a8e8ae97462c863ba267a | /bin/Python27/Lib/site-packages/openmdao.main-0.8.1-py2.7.egg/openmdao/main/datatypes/test/test_int.py | b59eedd5c4da77269602130054a4866b0d80ec0c | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | mcanthony/meta-core | 0c0a8cde1669f749a4880aca6f816d28742a9c68 | 3844cce391c1e6be053572810bad2b8405a9839b | refs/heads/master | 2020-12-26T03:11:11.338182 | 2015-11-04T22:58:13 | 2015-11-04T22:58:13 | 45,806,011 | 1 | 0 | null | 2015-11-09T00:34:22 | 2015-11-09T00:34:22 | null | UTF-8 | Python | false | false | 5,741 | py | # pylint: disable-msg=C0111,C0103
import unittest
from openmdao.main.exceptions import ConstraintError
from openmdao.main.api import Container
from openmdao.main.datatypes.int import Int
class IntTestCase(unittest.TestCase):
def setUp(self):
"""this setup function will be called before each test in this... | [
"kevin.m.smyth@gmail.com"
] | kevin.m.smyth@gmail.com |
4aed112317d59b1cc5f250fc67dbd1149c736a08 | b8fd7e01a7069a0666eb2fe21991753fd5ff7860 | /Bit Manipulation/1486. XOR Operation in an Array.py | 560c3d0c3869991aca115a1bf800a35ed60a528b | [] | no_license | Jafoor/Leet-Code-Solved-Problems | 0b6be0f3c82b1bc13c0c484782db65601cefa7b8 | 935e5679e04bf6f9c9d8a0bdf8b204923a2bc7a5 | refs/heads/master | 2023-07-02T13:38:59.690783 | 2021-07-19T16:20:48 | 2021-07-19T16:20:48 | 256,105,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | class Solution:
def xorOperation(self, n: int, start: int) -> int:
result = 0
i = 0
while i<n:
result ^= (start+i*2)
i += 1
return result | [
"abujafor.cse11@gmai.com"
] | abujafor.cse11@gmai.com |
de5a456d13b5c34404e33b639b49138e1a81ea13 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03139/s743443426.py | 7385ce2b691cb757cba3e6874316b912496be0be | [] | 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 | 75 | py | n,a,b = map(float,input().split())
print(int(min(a,b)), int(max(a+b-n, 0))) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
d8fd360aef557e0bda31d806cc9870fe622385a4 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/390/usersdata/329/77353/submittedfiles/ex1.py | f54901f1703f53e086083acbedfad0be30ba8914 | [] | 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 | 327 | py | # -*- coding: utf-8 -*-
from __future__ import division
a = input('Digite a: ')
b = input('Digite b: ')
c = input('Digite c: ')
delta = (b**2)-(4*a*c)
if delta<0:
raizdelta=(delta**0.5)
x1 = (-b+raizdelta)/(2*a)
x2 = (-b-raizdelta)/(2*a)
if delta>=0:
print(x1)
print(x2)
if delta<0:
print("SRR")
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
f02ed82affdc897e7b211abb9c12573103e8c8b0 | 0b25dc3f9b4ef736e739aadddec33b96dd65a0c8 | /machine/Getting-First-n-Components.py | 838c59e4d38ab8183ffe88b8d021dadeaab8fc1b | [] | no_license | ttp55/LearnPy | b123f44a74e4364771491c572705742c15eb33ff | 1530e158bde152e5c585f496dd1e5ffcffdb73bc | refs/heads/master | 2023-05-11T13:02:30.157285 | 2023-05-08T07:13:57 | 2023-05-08T07:13:57 | 196,953,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,618 | py | # @Time : 2022/12/2 13:51
# @Author : WZG
# --coding:utf-8--
# 获得前n个主成分
import numpy as np
import matplotlib.pyplot as plt
X = np.empty((100, 2))
X[:,0] = np.random.uniform(0., 100., size=100)
X[:,1] = 0.75 * X[:,0] + 3. + np.random.normal(0, 10., size=100)
def demean(X):
return X - np.mean(X, axis=0)
X = demean(... | [
"1047697347@qq.com"
] | 1047697347@qq.com |
bbf2fd5df9e0700bd5504e3dc3906bfad38a9bc8 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnjewess.py | 3ced8ac96e30a828710132e587c1d39e74309ece | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 83 | py | ii = [('GodwWSL2.py', 2), ('CoopJBT.py', 1), ('MereHHB.py', 1), ('BowrJMM3.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@gmail.com |
e3f9229e5d2bfacdae7020aef9f5def459532319 | 6b247e365d97951ae7137bb8140447fe72100ff6 | /app/migrations/0003_auto_20210207_1514.py | d784e6011bfe74e042af49aec915356f920535c3 | [] | no_license | tharcissie/Discussion_Board | 27f251875218174b3285a48b5d1de58653930e5a | 42b3c14b9993a906dc6bfa142dab0d3ddfac66b8 | refs/heads/master | 2023-02-27T18:03:36.251799 | 2021-02-10T15:57:33 | 2021-02-10T15:57:33 | 336,992,064 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 487 | py | # Generated by Django 3.1.6 on 2021-02-07 15:14
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('app', '0002_auto_20210207_1450'),
]
operations = [
migrations.AlterField(
model_name='topic',
... | [
"tharcissieidufashe@gmail.com"
] | tharcissieidufashe@gmail.com |
38744aa862de1070ab6ec45eddf81c75a3ed3d81 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/classes/_becke883.py | 79a4fcdcf105276bac032a0577558f6bad5f18f3 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from xcp2k.inputsection import InputSection
class _becke883(InputSection):
def __init__(self):
InputSection.__init__(self)
self.Section_parameters = None
self.Scale_x = None
self._name = "BECKE88"
self._keywords = {'Scale_x': 'SCALE_X'}
self._attributes = ['Section_... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d3bbfbe0a2b588e5306a6c14646e14b24bc32c37 | 7f6358aaa6e52a478a7619da326cca1bad2063a4 | /genutility/tests/signal.py | 71d900146618392d7deba597264c8c9a0891b8d3 | [
"ISC"
] | permissive | pombredanne/genutility | e3ca6765161b470fb32e4d2291aca76f37eb5dbf | 7c112118ec314ea2dd6cd697c771fb4de75f5d79 | refs/heads/master | 2023-04-08T14:41:48.575768 | 2021-04-16T11:16:30 | 2021-04-16T11:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,713 | py | from __future__ import generator_stop
import errno
import time
from unittest.mock import Mock
from genutility.os import interrupt
from genutility.signal import HandleKeyboardInterrupt
from genutility.test import MyTestCase
class SignalTest(MyTestCase):
def __init__(self, *args, **kwargs):
MyTestCase.__init__(se... | [
"dobatymo@users.noreply.github.com"
] | dobatymo@users.noreply.github.com |
03212d05b2dc60c8b693339b9edbfb2e769ca6fb | 73330107dd79b9973e7fbcd9aeda8039690139c6 | /Bulb Switcher III.py | a89e8d2f05e0e8d4a344c85e1be9fab9e74e476d | [] | no_license | nithinveer/leetcode-solutions | 2f908cd204c130034def8934d41ef6869029a403 | 196e58cd38db846653fb074cfd0363997121a7cf | refs/heads/master | 2021-06-25T22:28:50.391671 | 2021-04-20T07:04:19 | 2021-04-20T07:04:19 | 219,891,708 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | class Solution(object):
def numTimesAllBlue(self, light):
"""
:type light: List[int]
:rtype: int
"""
cnt = 0
rtn = 0
tmp = len(light) * [0]
for each_ in light:
if each_ == 1:
tmp[each_-1] = 2
dummy = each_
... | [
"nithinveer@iitj.ac.in"
] | nithinveer@iitj.ac.in |
e261bc3004eda078bec7e964daa2cf98049808dd | ce7cd2b2f9709dbadf613583d9816c862003b38b | /SRC/engine/IO/skeletonIPC.py | 76774b9c0fbf0fb58557cc8a25a0ea79524d3920 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | usnistgov/OOF3D | 32b01a25154443d29d0c44d5892387e8ef6146fa | 7614f8ea98a095e78c62c59e8952c0eb494aacfc | refs/heads/master | 2023-05-25T13:01:20.604025 | 2022-02-18T20:24:54 | 2022-02-18T20:24:54 | 29,606,158 | 34 | 7 | null | 2015-02-06T19:56:26 | 2015-01-21T19:04:14 | Python | UTF-8 | Python | false | false | 36,320 | py | # -*- python -*-
# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we as... | [
"faical.congo@nist.gov"
] | faical.congo@nist.gov |
17acfe7806f96aa73e63e7fe4451e9576cc3225d | d3720c1848fb69a05121fcd378a12a6d1921f303 | /4_LEETCODE/3_Find/二分查找/二分查找左边界/部分有序/153_寻找旋转排序数组中的最小值.py | f86ed10c0b53a17d220b550520ac33e19c1ccff9 | [] | no_license | fzingithub/SwordRefers2Offer | 32a44e87c178bafc554108f1d1e479e18b0ee028 | 57f303aa6e76f7c5292fa60bffdfddcb4ff9ddfb | refs/heads/master | 2023-04-08T09:35:02.082121 | 2023-03-28T00:06:00 | 2023-03-28T00:06:00 | 219,700,616 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 309 | py | class Solution:
def findMin(self, nums):
left = 0
right = len(nums) - 1
while left < right:
mid = left + (right - left) // 2
if nums[mid] > nums[right]:
left = mid + 1
else:
right = mid
return nums[left] | [
"35060424+fzingithub@users.noreply.github.com"
] | 35060424+fzingithub@users.noreply.github.com |
9a8cf7172699e037848c83b593cf89621b2a99ad | e16d7d8f60145c68640b25aa7c259618be60d855 | /djrestframework/resttest/app1/migrations/0002_auto_20171210_0833.py | fde65d901ee92c64b7dc75f0e8886b1fd2a637d2 | [] | no_license | zongqiqi/mypython | bbe212223002dabef773ee0dbeafbad5986b4639 | b80f3ce6c30a0677869a7b49421a757c16035178 | refs/heads/master | 2020-04-21T07:39:59.594233 | 2017-12-11T00:54:44 | 2017-12-11T00:54:44 | 98,426,286 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 822 | py | # Generated by Django 2.0 on 2017-12-10 00:33
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('app1', '0001_initial'),
... | [
"544136329@qq.com"
] | 544136329@qq.com |
df5d5318c15689e05b8bcbcf37eadc9ec267d50d | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /TcKZnbdgx7q6LLoFR_7.py | a73e3767255e4a0f32b9a771c1323d4b7301d8e4 | [] | 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 | 183 | py |
def collect(s, n):
# your recursive solution here
if len(s)<n:
return []
else:
if len(s)==n:
return [s]
else:
return sorted([s[:n]]+collect(s[n:], n))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
96aa55a0e7a2f8ed813f53b1ef35915e0aa4e035 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/138/usersdata/149/54210/submittedfiles/volumeTV.py | 8e6a19c705ad8bd5095232b373b30e91621b2abb | [] | 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 | 324 | py | -*- coding: utf-8 -*-
v=int(input('digite o volume inicial:'))
t=int(input('digite quantas trocas de volume:'))
volume=v
cont=0
for i in range(1,t+1,1):
md=int(input('digite a mudança de volume:'))
volume=volume+md
if (volume>100):
volume=100
if (volume<0):
volume=0
print(volu... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
4e267a78ac8979b5673572a2d1b8564fae4264a6 | dd3bbd4e7aaee7a8a5f26b927ce28ac472c855a5 | /eggs/zope.app.container-3.9.1-py2.7.egg/zope/app/container/constraints.py | 2423f167d9fb94eeb747c57fcf3d34379a76566f | [] | no_license | nacho22martin/tesis | ea0a822f8bdbdef6f13f41276ecd4d6e85427ca5 | e137eb6225cc5e724bee74a892567796166134ac | refs/heads/master | 2020-12-24T13:20:58.334839 | 2013-11-09T12:42:41 | 2013-11-09T12:42:41 | 14,261,570 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 939 | py | ##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SO... | [
"ignacio@plone.(none)"
] | ignacio@plone.(none) |
ac4e661921b64af9c2e18327a23965407508fc27 | 79fc3046f2374a0f70cbb266cea647646b21849f | /first_last_5square.py | 520ea1e56e7d1336bc74662b413715dc37bb77eb | [] | no_license | moni310/List_questions | e16f872a92e6537a80bc2f60f331ac280be3ed19 | dae3cf4e0e8446b86e85faaf2d59c10f21c4078f | refs/heads/main | 2023-01-05T22:48:15.841415 | 2020-11-04T12:10:56 | 2020-11-04T12:10:56 | 309,989,620 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | i=0
empty_list=[ ]
list=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30]
while i<len(list):
if list[i]<list[5]:
square=list[i]*list[i]
empty_list.append(square)
i=i+1
k=empty_list
j=0
empty=[ ]
while j<len(list):
if list[-j]>list[-6]:
square1=list[-j... | [
"you@example.com"
] | you@example.com |
1a09625baef83ae5e293c3c7706346d1c03c07f4 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2018_01_01_preview/aio/operations/_disaster_recovery_configs_operations.py | 44bb84a403f4ebe2fe97e9d67b6e2dd201ea0092 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 43,083 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
8b880c6984c9b1d868526cac2326f88367f01df6 | ea2015881c18583a4295122f2e2c1d2dbd3e32f9 | /_pipeline_scripts/1_6_4_3_makeNumRefOfFastaNames.py | 13b807910cadd35c89ee97caaab5565c563cd37a | [] | no_license | panchyni/PseudogenePipeline | ad0b210d943bfdc83da1eeb63c0d7dec2a8719ae | 44a5bfd034dfd9b21808b6e6c5b789f141912c33 | refs/heads/master | 2021-01-11T15:54:57.514872 | 2017-04-17T21:13:16 | 2017-04-17T21:13:16 | 79,955,253 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 874 | py | #This script is designed to make a number based reference file (starting with 0)
#from names in a fasta file. It was originally designed for handling Vmatch out
#put which gives a sequence number instead of name (morons!)
#Created by David E. Hufnagel on July 17, 2012
import sys
inp = open(sys.argv[1]) #Input t... | [
"panchyni.msu.edu"
] | panchyni.msu.edu |
6ec8f7bd1b7f5baa4073285a1a8bd3fae3e96027 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/1776.py | 8aca36ebaea2ef1c6c5c047fcc0e8e0464923b26 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | def is_tidy(n):
t = str(n)
return all(i <= j for i, j in zip(t[:-1], t[1:]))
def tidy(n):
t = str(n)
l = len(t)
for idx in range(l):
if idx < l-1 and t[idx] > t[idx + 1]:
n = int(str(tidy(int(t[:idx+1]) - 1)) + '9' * (l - idx-1))
break
while not is_tidy(n):
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
140efefec15b658a43ce3e5c03577a12ecbb8de0 | 5592b1aa187cc105184d1b2602d6f3b590bc72e7 | /measure_extinction/utils/calc_ext.py | 575c4c6d9918e1aa74c5c0e7483045cbab56c208 | [
"BSD-3-Clause"
] | permissive | astrobot/measure_extinction | 9707953ea38216b39c722d47d62ac295d0eb7273 | 141f55ec11bbebca2b5b1cc90372ddee5f2d6cf2 | refs/heads/master | 2020-06-05T16:59:51.768911 | 2019-05-17T19:00:58 | 2019-05-17T19:00:58 | 192,490,396 | 0 | 0 | null | 2019-06-18T07:38:47 | 2019-06-18T07:38:45 | null | UTF-8 | Python | false | false | 2,295 | py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import argparse
import matplotlib.pyplot as plt
import matplotlib
from measure_extinction.stardata import StarData
from measure_extinction.extdata import ExtData
if __name__ == "__main__":
# commandline... | [
"kgordon@stsci.edu"
] | kgordon@stsci.edu |
e71d94d965d6b2f64bc86feaabfc86f9cd9dfe64 | 1fdda7257958001fcd64541643aefa63d8cdc8c6 | /example/user/lasso_covariate.py | 1191cf6a1cdab2a3535c5b6126601f82fae79396 | [] | no_license | bradbell/dismod_at | a37e2799728c060e929d0e4eb4e11e9c1f25782e | 5dd99ebf98f24c6afb6bfdf9f8c2e5b4da6065ec | refs/heads/master | 2023-08-17T09:25:42.825527 | 2023-08-10T12:45:25 | 2023-08-10T12:45:25 | 113,868,210 | 4 | 5 | null | 2023-07-18T18:22:52 | 2017-12-11T14:23:10 | Python | UTF-8 | Python | false | false | 14,479 | py | # SPDX-License-Identifier: AGPL-3.0-or-later
# SPDX-FileCopyrightText: University of Washington <https://www.washington.edu>
# SPDX-FileContributor: 2014-23 Bradley M. Bell
# ----------------------------------------------------------------------------
# {xrst_begin user_lasso_covariate.py}
# {xrst_spell
# exp
# ... | [
"bradbell@seanet.com"
] | bradbell@seanet.com |
d541dd6e3afe25532fab02c33354c754764d0328 | 3aa87ef356718879b10de8e0e96d171f58a5a06e | /License/OLD/Connect Google App Engine/servers/gae/src/urls.py | d29ffc1a92b8fb65c6941e31244629825605cb66 | [] | no_license | mayk93/College | 4f7d6c666d878b97c12c73a45464f0ac15ca2645 | 9049ade988610ba68df37679b8484029071770dd | refs/heads/master | 2020-05-17T08:01:28.147454 | 2015-04-30T20:55:14 | 2015-04-30T20:55:14 | 17,863,332 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,845 | py | # -*- coding: utf-8 -*-
#
# Created on 31 Jul 2011
# @author: PL Young
#=======================================================================================================================
from webapp2 import Route
routes = [
# CHAT AREA RELATED
Route(r'/msgs/', handler='handlers.chat.messages', ... | [
"mihai.mandrescu@gmail.com"
] | mihai.mandrescu@gmail.com |
666e573977a21897e927a510d4f27423477120e4 | 51f887286aa3bd2c3dbe4c616ad306ce08976441 | /pybind/slxos/v17s_1_02/interface/port_channel/protocol/__init__.py | ba7786c4ad934efc0655741ea6706b4ee91e44fc | [
"Apache-2.0"
] | permissive | b2220333/pybind | a8c06460fd66a97a78c243bf144488eb88d7732a | 44c467e71b2b425be63867aba6e6fa28b2cfe7fb | refs/heads/master | 2020-03-18T09:09:29.574226 | 2018-04-03T20:09:50 | 2018-04-03T20:09:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,347 | py |
from operator import attrgetter
import pyangbind.lib.xpathhelper as xpathhelper
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType, RestrictedClassType, TypedListType
from pyangbind.lib.yangtypes import YANGBool, YANGListType, YANGDynClass, ReferenceType
from pyangbind.lib.base import PybindBase
from d... | [
"badaniya@brocade.com"
] | badaniya@brocade.com |
cdfc57df38db648c36821943a4df89f871a6da2c | 50001d401b28800551acc65edb872f996dc0d422 | /廖Py教程/py/9.面向对象高级编程/5.使用枚举类.py | 39c67575e09a89f78b1a74a5bb1def4478d4fe12 | [] | no_license | maq-622674/python | 08fea61b85bf811653207b497e9d194886a54bb3 | cb8d7233dcae3fdc4bb3550a8826dd394dd1c31d | refs/heads/master | 2023-01-22T10:09:55.646601 | 2020-12-03T08:11:10 | 2020-12-03T08:11:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | from enum import Enum, unique
@unique
class Weekday(Enum):
Sun = 0 # Sun的value被设定为0
Mon = 1
Tue = 2
Wed = 3
Thu = 4
Fri = 5
Sat = 6
day1=Weekday.Mon
print(day1)
print(Weekday.Tue)
print(Weekday['Tue'])
print(Weekday.Tue.value)
print(day1 == Weekday.Mon)
print(day1 == Weekday.Tue)
print(Week... | [
"lws__xinlang@sina.com"
] | lws__xinlang@sina.com |
41e623ffd83619a6c732f6c89f0ca1a10a72487f | fd67592b2338105e0cd0b3503552d188b814ad95 | /egoi_api/paths/lists_list_id_fields_extra_field_id_options/post.py | fc9a1edc278fb2696b11915726dea6543053a87f | [] | no_license | E-goi/sdk-python | 175575fcd50bd5ad426b33c78bdeb08d979485b7 | 5cba50a46e1d288b5038d18be12af119211e5b9f | refs/heads/master | 2023-04-29T20:36:02.314712 | 2023-04-18T07:42:46 | 2023-04-18T07:42:46 | 232,095,340 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 19,196 | py | # coding: utf-8
"""
Generated by: https://openapi-generator.tech
"""
from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from egoi_api import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F4... | [
"integrations@e-goi.com"
] | integrations@e-goi.com |
88a8340fbf71b395035d0e6f60782e5ebd64b839 | 6eca0e7fe3978f666744c9bd6ea4d85cf234e0f4 | /python/app/plugins/http/Everything/Everything_List.py | 887bbd8c07b3c8b511173e58b1497b5a571de833 | [
"MIT"
] | permissive | encore2005/linbing | 1003459c803316754a86f640821ba237e3d4fb9b | 46cb780479c6a6908e3ca6fb90d116434dd4d4ce | refs/heads/master | 2023-09-05T16:05:36.668878 | 2021-11-27T15:49:15 | 2021-11-27T15:49:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | #!/usr/bin/env python3
import re
from app.lib.utils.request import request
from app.lib.utils.common import get_useragent
class Everything_List_BaseVerify:
def __init__(self, url):
self.info = {
'name': 'Everything 敏感信息泄露漏洞',
'description': 'Everything 敏感信息泄露漏洞',
'date'... | [
"taomujian@protonmail.com"
] | taomujian@protonmail.com |
96df6e48bebd4e04ae8fd3b9aee6090652ae71e4 | e1efc8e0b0e4629dea61504fbc816c0527691bd9 | /7.spring/2-aop/spring16-AOP-AbstractAutoProxyCreator.py | 3b7fca999531942671d273c394c0b49610ec502b | [] | no_license | xiongmengmeng/xmind-technology | 2bb67a0bf92cfd660cac01f8ab3a2454423ccba5 | e2fdb6987ef805a65f0a4feb52d84383853f4b77 | refs/heads/main | 2023-07-31T07:10:29.868120 | 2021-09-11T08:18:17 | 2021-09-11T08:18:17 | 307,636,242 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,525 | py | import os,sys
parentdir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.insert(0,parentdir)
import xmind
from xmind.core.markerref import MarkerId
xmind_name="spring"
w = xmind.load(os.path.dirname(os.path.abspath(__file__))+"\\"+xmind_name+".xmind")
s2=w.createSheet()
s2.setTitle("AbstractA... | [
"xiongmengmeng@qipeipu.com"
] | xiongmengmeng@qipeipu.com |
237838fd8e4c5bbd5ea17ec258702506c1a9cd33 | 0e9f9ec47457fe148120601b75b31b89e8180a62 | /testcase/xinzhili/test_addjigou.py | 9d84d7d638bf563eabd7f9806fc53eef20dbc964 | [] | no_license | duanbibo/UIAUTO | 5a2beef7fc48d5692e58406b29c212b80c84c9ea | 97b7ea508146cf293d90756e80161eeb4b91b4b6 | refs/heads/master | 2020-06-23T06:24:53.070009 | 2019-07-24T08:20:42 | 2019-07-24T08:20:42 | 198,543,153 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | import pytest
from pages.index import loginPage
from pages.index import MainPage
from selenium import webdriver
from allure import MASTER_HELPER
@MASTER_HELPER.feature("心之力添加机构")
class TestAdd():
@MASTER_HELPER.step("初始化启动浏览器")
def setup_class(self):
'''用例执行前,启动浏览器,创建chrome实例'''
driver = webd... | [
"820355197@qq.com"
] | 820355197@qq.com |
85e42eda682e290d76f0552349a230a4bc9fdbd3 | 02338bb8111fc1aa88e830ac09a11664720eb2d4 | /tmp/azure_rm_endpoint_info.py | 98bc852c757b02b536193977b9261ff240d47312 | [] | no_license | Fred-sun/fred_yaml | a49977b0e8505c7447df23dd80c7fef1be70e6bc | 295ca4cd2b59b8d2758f06eb7fd79920327ea524 | refs/heads/master | 2023-04-28T05:51:56.599488 | 2023-04-25T13:52:10 | 2023-04-25T13:52:10 | 131,376,340 | 0 | 1 | null | 2020-07-06T14:22:46 | 2018-04-28T05:34:49 | TSQL | UTF-8 | Python | false | false | 2,781 | py | #!/usr/bin/python
#
# Copyright (c) 2020 GuopengLin, (@t-glin)
#
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
... | [
"xiuxi.sun@qq.com"
] | xiuxi.sun@qq.com |
e72456640dbe5901b8428a97f5c7c741ba6e22b0 | 1bccf7d57c7aa8d48b84fff187de4b6ff2599cb6 | /pandora_control/pandora_teleop/scripts/keyop.py | fc69685aeb3a67bc38a81cf82265512a8cd1ab43 | [] | no_license | skohlbr/pandora_ros_pkgs | 733ed34edb5b6d46e59df4acb01288f28ef3b50f | eecaf082b47e52582c5f009eefbf46dd692aba4f | refs/heads/indigo-devel | 2021-01-21T18:06:14.967943 | 2015-11-04T15:08:03 | 2015-11-04T15:08:03 | 53,413,573 | 0 | 1 | null | 2016-03-08T13:19:40 | 2016-03-08T13:19:40 | null | UTF-8 | Python | false | false | 9,003 | py | #!/usr/bin/env python
# Software License Agreement (BSD License)
#
# Copyright (c) 2015, P.A.N.D.O.R.A. Team.
# 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 co... | [
"pandora@ee.auth.gr"
] | pandora@ee.auth.gr |
808db564368c51aae2d6215885bec9fd81fdbb2d | 37890ae6443c3e667879ffd0115ad5bb62ce7b09 | /product_attribute_search/__init__.py | 38fd8aae9497613c413c4ba44f9149a54b2f8949 | [] | no_license | ELMARDI0107/odoo-website-sale-extra | e05a959d51c45e354efea43fc9d44226d834077b | 6a2bacd9c264f94b5f3af569153f5a35b346469f | refs/heads/master | 2023-01-10T18:35:53.577115 | 2020-09-01T14:51:26 | 2020-09-01T14:51:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | import product_attribute_search
| [
"apollo_zhj@msn.com"
] | apollo_zhj@msn.com |
3ae1921f58c64af7ec62a1dc1c27859d1e83c052 | b4a5ce44871ebc1f788fe0abb4d4d6f7825c3e6e | /206. Reverse Linked List.py | 2043dda89d65f3a8aa26496c5c6dae1da115727c | [] | no_license | Tanish970/Leet-code-Python | f1fa0ea6316752f6c2971ba59cf51b150bbe0eea | bc188e0498e23d7f405e3056890d5fca4be937da | refs/heads/master | 2021-05-22T14:21:02.888324 | 2020-09-25T10:45:47 | 2020-09-25T10:45:47 | 252,960,422 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | py | class Solution:
def reverseList(self, head: ListNode) -> ListNode:
if not head:return head
curnode=head
prev=None
while(curnode):
temp=curnode
curnode=curnode.next
temp.next=prev
prev=temp
return prev
| [
"noreply@github.com"
] | Tanish970.noreply@github.com |
38a110dbf90c810be066c3183259f3936cfdf356 | 21fc3622bb7a3a89a8ed9dec932919936fb1ce36 | /buildout-cache/eggs/Products.ATContentTypes-2.2.11-py2.7.egg/Products/ATContentTypes/criteria/relativepath.py | 82c2a2286f887ba253654f5b223b108f9e3379f2 | [] | no_license | erlantostes/plone | 4bc1ccba9e0ab77ce5370489f6b47b806c889c29 | 3a5fb7574cee269a99b148eef695256805ce1a45 | refs/heads/master | 2020-04-01T18:04:32.927641 | 2018-10-17T11:22:59 | 2018-10-17T11:22:59 | 153,469,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,274 | py | # -*- coding: utf-8 -*-
from AccessControl import ClassSecurityInfo
from Acquisition import aq_parent
from Products.Archetypes.atapi import BooleanField
from Products.Archetypes.atapi import BooleanWidget
from Products.Archetypes.atapi import Schema
from Products.Archetypes.atapi import StringField
from Products.Archet... | [
"root@REIT016437.ifb.local"
] | root@REIT016437.ifb.local |
6648517d9f70df2bbf4b74d797b26819b026d424 | f338eb32c45d8d5d002a84798a7df7bb0403b3c4 | /PhysicsTools/Heppy/python/physicsutils/TauDecayModes.py | 82cda85e42c91995ce4ec40626e9450b57f7ef44 | [] | permissive | wouf/cmssw | 0a8a8016e6bebc611f1277379e12bef130464afb | 60da16aec83a0fc016cca9e2a5ed0768ba3b161c | refs/heads/CMSSW_7_3_X | 2022-06-30T04:35:45.380754 | 2015-05-08T17:40:17 | 2015-05-08T17:40:17 | 463,028,972 | 0 | 0 | Apache-2.0 | 2022-02-24T06:05:30 | 2022-02-24T06:05:26 | null | UTF-8 | Python | false | false | 1,620 | py | print 'importing'
class TauDecayModes( object ):
def __init__(self):
self._decayModes()
def _decayModes(self):
'''Builds the internal dictionaries from the enum defined in
http://cmslxr.fnal.gov/lxr/source/DataFormats/TauReco/interface/PFTau.h'''
tmp = [
... | [
"colin.bernet@cern.ch"
] | colin.bernet@cern.ch |
7edb0614cee403aefe06f39b0d2632014427b078 | b304a47e862eee982193f183d4dde270099ea651 | /libs/module9.py | 8aaff5665e9a1c37fc0c8db9a228a41efd68d92a | [] | no_license | and3rson/osx-coverage-testcase | 507c2cbd7927bcc519c14be48b6f28bedd7d0af0 | 245ef0cd0c19938cdcd43135985b03e87d40d6e2 | refs/heads/master | 2021-01-13T09:43:50.232051 | 2016-10-06T09:13:39 | 2016-10-06T09:13:39 | 70,139,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | def method9():
return 'bar'
| [
"anderson@Andrews-iMac.local"
] | anderson@Andrews-iMac.local |
ef2813ddd80c94be93edb70ae667da6477a1bca4 | fcf3c983043273c4e57ac33330efaa0a9e5643a2 | /model-optimizer/mo/front/kaldi/loader/utils_test.py | ba5b06bb65aab6d61bd4c139e6d61f9e55fce83d | [
"Apache-2.0"
] | permissive | p3tromyz0n/dldt | e7ab259848c90fdffd1395eaf5cf53ecd2b1e2f3 | 669bee86e580cbbc8ef40b440ab195ba2cbf5142 | refs/heads/2018 | 2020-05-15T13:03:47.748654 | 2019-03-14T10:13:27 | 2019-03-14T10:13:27 | 158,445,061 | 0 | 1 | Apache-2.0 | 2019-04-19T15:24:15 | 2018-11-20T20:07:50 | C++ | UTF-8 | Python | false | false | 4,475 | py | """
Copyright (c) 2018 Intel Corporation
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 wri... | [
"44090433+openvino-pushbot@users.noreply.github.com"
] | 44090433+openvino-pushbot@users.noreply.github.com |
75b2540cb36454fa6f4f225d5a72a76295a3134f | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_24789.py | ae0db58219981fc59c348be7318cd0386024261c | [] | 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 | 103 | py | # SQLAlchemy ORM: safely passing objects between threads without manually reattaching?
Session.merge()
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
ce9b869dc71cd87f57ef9da74819959c5ea0b619 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /benchmark/startQiskit_QC1992.py | f6b8731e6b93dcd3dc1f872136e9010b7bcc5527 | [
"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,181 | py | # qubit number=4
# total number=32
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 |
e774bdc3c27fb90ba3b6222eb52ee6cacf869193 | 2335c591c1bff89bc76349747ed7be77bf8fa9c0 | /pb24.py | f1cede8bc154672f674e361aceecf991b4e77c7a | [] | no_license | BereniceAlexiaJocteur/Euler | 8d7025cc5d7effe8d90d592ef06261e02c80cf45 | 6849e4b0a2600c8756012e276247350173187721 | refs/heads/master | 2023-03-27T18:07:31.166407 | 2021-03-31T09:48:36 | 2021-03-31T09:48:36 | 41,752,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # -------------------------------------------------------------------------------
# Name:
# Purpose:
# Created:
# -------------------------------------------------------------------------------
import time
import sys
import itertools
class Problem():
def __init__(self, s, n):
self.s = ... | [
"jenny-lyon@outlook.com"
] | jenny-lyon@outlook.com |
e83d6c1d2c369a7e794c68f5bbfb92cdb6897597 | e30615df2fcb15cf41c42c6911cd33b5fb61316c | /ejercicios/clase09/blog_django/blog_django/wsgi.py | 93801a3a7e687bf0acc443afa04d177db025cf79 | [] | no_license | escueladevhack/curso-python | 2e11ba2d637a3fcf37d1da1977e15406179a0941 | 35e4801cf4f13872a4a4c1f0bee43ee3194d73bd | refs/heads/master | 2021-08-27T20:50:58.262405 | 2021-08-11T21:13:38 | 2021-08-11T21:13:38 | 168,049,269 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for blog_django project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"ma0@contraslash.com"
] | ma0@contraslash.com |
0d267d27f593d137d47506ede2d4936e5d1fef3e | 7b12eb45c1ea76ad9c186b858b5dfebf2c5b862a | /.history/DEBER_20210902220133.py | bec2cdaf9a25ad387b3cb230f10e8ec28a1cfbd0 | [
"MIT"
] | permissive | Alopezm5/PROYECTO-PARTE-1 | a1dce04009b24852c1c60e69bdf602ad3af0574b | bd7a8594edf08d41c6ca544cf6bac01ea4fcb684 | refs/heads/main | 2023-07-25T11:22:17.994770 | 2021-09-07T03:27:34 | 2021-09-07T03:27:34 | 403,670,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,830 | py | class Empresa():
def __init__(self,nom="",ruc=0,dire="",tele=0,ciud="",tipEmpr=""):
self.nombre=nom
self.ruc=ruc
self.direccion=dire
self.telefono=tele
self.ciudad=ciud
self.tipoEmpresa=tipEmpr
def datosEmpresa(self):#3
self.nombre=input("Ingresar nombre ... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
64c46d8894c56be50f63929fe179cb64aebf04ef | 536656cd89e4fa3a92b5dcab28657d60d1d244bd | /chrome/test/enterprise/e2e/policy/fullscreen_allowed/fullscreen_allowed.py | ce66eef7994109e91f7bd81269e4f1b1bbcf451f | [
"BSD-3-Clause"
] | permissive | ECS-251-W2020/chromium | 79caebf50443f297557d9510620bf8d44a68399a | ac814e85cb870a6b569e184c7a60a70ff3cb19f9 | refs/heads/master | 2022-08-19T17:42:46.887573 | 2020-03-18T06:08:44 | 2020-03-18T06:08:44 | 248,141,336 | 7 | 8 | BSD-3-Clause | 2022-07-06T20:32:48 | 2020-03-18T04:52:18 | null | UTF-8 | Python | false | false | 1,588 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
from chrome_ent_test.infra.core import environment, before_all, test
from infra import ChromeEnterpriseTestCase
@environment(file="../policy_test... | [
"pcding@ucdavis.edu"
] | pcding@ucdavis.edu |
0ac9d015bffc44032385bf63882d4d88ae20ffcf | e13bccceb4c2fefbf8000f9b34195ab434cf1656 | /devel/lib/python2.7/dist-packages/test_rosbag/msg/_MigratedImplicit.py | 061559cc45058c2eaf681da178dcb86639b4ce17 | [] | no_license | QuiN-cy/vacuum-en-band | ab59b718f289ad4e8a1f29e96724250b00bd894d | 48c296199b4a6ade40e084c9980d53ba1611a344 | refs/heads/master | 2023-06-01T12:13:38.664849 | 2021-06-11T15:42:42 | 2021-06-11T15:42:42 | 376,071,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | /home/student/rosws/devel/.private/test_rosbag/lib/python2.7/dist-packages/test_rosbag/msg/_MigratedImplicit.py | [
"quincy1234321@hotmail.nl"
] | quincy1234321@hotmail.nl |
b0253ecb919b9ef0bc239c6381a46231713b14fe | 098662ca9c95151e669753e246d7c158dccad201 | /temp/inorderAI79.py | 3c7631df6ef38c20d645bafee1bfd330f95478c8 | [] | no_license | ava9/CS6700 | 92dd92081614c3596b880de204e72d3098d85f2f | bcad9094a48784635ae8e6081cea4267e3729df0 | refs/heads/master | 2021-03-27T18:13:43.680760 | 2017-05-22T16:19:07 | 2017-05-22T16:19:07 | 84,686,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,931 | py | import copy
import random
class inorderAI79:
currcol = 0
def __init__(self):
self.currcol = 1
# check if legal move
def legal(self, board):
arr = [0, 0, 0, 0, 0, 0, 0]
for c in range(0, board.columns):
if (board.colFull(c + 1)):
arr[c] = False
else:
arr[c] = True
return ar... | [
"szl5@cornell.edu"
] | szl5@cornell.edu |
1e352fcca7f563f859523c39d47a1372ffa28e46 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2162/60589/246145.py | 098eab6816760bc4405837dbec098e83b2fbdeb0 | [] | 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 | 54 | py | x=float(input())
n=int(input())
print('%.5f'%pow(x,n)) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f543c9c1609269e9e729185b284fe161f38f1804 | 24144f83276705fe2f4df295ee50199c2035ca7b | /active/theses-kamiokande.py | 6c217fc20ba99ad76562da97767d5bd860d0c7be | [] | no_license | AcidBurn429/ejlmod | a2e4eb6bb28bcb6bbccc3d83e2e24f5aed23d4eb | dec50edbb14380686072d7311589a2363ef5cd00 | refs/heads/master | 2023-08-14T21:19:10.890194 | 2021-09-28T13:39:06 | 2021-09-28T13:39:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,837 | py | # -*- coding: utf-8 -*-
#harvest KAMIOKANDE theses
#FS: 2018-01-31
import getopt
import sys
import os
import urllib2
import urlparse
from bs4 import BeautifulSoup
import re
import ejlmod2
import codecs
import datetime
import time
import json
xmldir = '/afs/desy.de/user/l/library/inspire/ejl'
retfiles_path = "/afs/de... | [
"florian.schwennsen@desy.de"
] | florian.schwennsen@desy.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.