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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
660db7cf37d0c43e23f7a596370be654b457e365 | 959122eea21cec24a4cf32808a24482feda73863 | /account/migrations/0001_initial.py | 5340e80bcf8a95717424cdd0591d4929d71890df | [] | no_license | AsadullahFarooqi/InventoryWebApp | 9fbe6ccafcb93bb5cb1879b728954867014d0afd | 07e8e6cb06e11f8ef6ada6a590e52f569a8c2d6b | refs/heads/master | 2020-06-18T15:06:18.612258 | 2019-07-11T07:32:00 | 2019-07-11T07:32:00 | 196,341,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-03-21 06:14
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migratio... | [
"asadullah.itcgcs@gmail.com"
] | asadullah.itcgcs@gmail.com |
2cea009e2b7488d145a5c09e172c6dc3f4a5fd14 | 5e80f0b1af9fbf9dc774dbb68aa603574e4ae0ba | /python/deep learning/matplot_test2.py | 2de2dd91a1fa053c0c0b9595266cbe18ddff1a10 | [] | no_license | namujinju/study-note | 4271b4248b3c4ac1b96ef1da484d86569a030762 | 790b21e5318a326e434dc836f5f678a608037a8c | refs/heads/master | 2023-02-04T13:25:55.418896 | 2020-12-26T10:47:11 | 2020-12-26T10:47:11 | 275,279,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 960 | py | import matplotlib as mpl
import pandas
import matplotlib.pyplot as plt
import matplotlib.pyplot as plt
# matplotlib 폰트설정
plt.rc('font', family='NanumGothic') # For Windows
DATASET_PATH = "../Datasets/"
test_dataframe = pandas.read_csv(DATASET_PATH + '목포 2014년.csv', sep=",", engine='python', header = None)
test_datafr... | [
"59328810+namujinju@users.noreply.github.com"
] | 59328810+namujinju@users.noreply.github.com |
9493c500bcafef612ab8fabddda6e9cf0fbc065d | 0be27c0a583d3a8edd5d136c091e74a3df51b526 | /sort_based_on_vowels.py | 138e56e804102a3ecf306375c10d58a27eb22549 | [] | no_license | ssangitha/guvicode | 3d38942f5d5e27a7978e070e14be07a5269b01fe | ea960fb056cfe577eec81e83841929e41a31f72e | refs/heads/master | 2020-04-15T05:01:00.226391 | 2019-09-06T10:08:23 | 2019-09-06T10:08:23 | 164,405,935 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 228 | py | l=["a","e","i","o","u","A","E","I","O","U"]
n=int(input())
c=0
m=[]
for i in range(n):
a=input()
for i in a:
if i in l:
c+=1
m.append([a,c])
c=0
m.sort(key=lambda x:x[1],reverse=True)
for i in range(n):
print(m[i][0])
| [
"noreply@github.com"
] | ssangitha.noreply@github.com |
83ce54fb3ad0d2a17033243d3d170b31aa63f207 | febeffe6ab6aaa33e3a92e2dbbd75783a4e32606 | /ssseg/cfgs/gcnet/cfgs_cityscapes_resnet101os16.py | 2b548a998b4066159b8e526c725ecbb0f1dc850e | [
"MIT"
] | permissive | Junjun2016/sssegmentation | 7bbc5d53abee1e0cc88d5e989e4cff5760ffcd09 | bf7281b369e8d7fc2f8986caaeec3ec38a30c313 | refs/heads/main | 2023-02-04T22:09:13.921774 | 2020-12-23T06:28:56 | 2020-12-23T06:28:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,317 | py | '''define the config file for cityscapes and resnet101os16'''
from .base_cfg import *
# modify dataset config
DATASET_CFG = DATASET_CFG.copy()
DATASET_CFG['train'].update(
{
'type': 'cityscapes',
'rootdir': '/data/CityScapes',
'aug_opts': [('Resize', {'output_size': (2048, 1024), 'keep_rat... | [
"1159254961@qq.com"
] | 1159254961@qq.com |
31eae4246d94f36c4e53982ca85c5f89ddb83f88 | 2fed9d28558360a74ba52772a3793a6180d6d0b8 | /meiduo_mall/meiduo_mall/meiduo_mall/apps/meiduo_main/view/ordersView.py | 2e24f0ccc26d8dc3e7071d8f30652f701df56ce7 | [] | no_license | xj-ie/rest_framework-0.2 | 13e6b24327e99108b7fc433c8ecf6a976245477d | e9ef7716d5fae87b278845a28a9fbc1af1bcf8df | refs/heads/master | 2022-12-12T15:20:38.402755 | 2020-09-05T01:31:05 | 2020-09-05T01:31:05 | 290,355,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,089 | py | from rest_framework.decorators import action
from rest_framework.response import Response
from rest_framework.viewsets import ReadOnlyModelViewSet
from rest_framework.permissions import IsAdminUser
from meiduo_main.utils import PageUnm
from meiduo_main.verializer.orderserialzier import OrderSeriazlier
from orders.mode... | [
"xwp_fullstack@163.com"
] | xwp_fullstack@163.com |
f3f7551884b09ee0f04581a97137aa32b95c9ad1 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/length_20200530000955.py | 2a69096dfd430b6fa026c101a17a24b32c58f34b | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | def removeDuplicates(nums):
i = 0
while i < len(nums):
print(i,'i---------->','nums at i',nums[nums[i]])
j = i+1
while j< len(nums):
print(j,'j---->','nums at j',nums[nums[j]])
if nums[i] == nums[j]:
print(nums[i],'----was removed')
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
48ca7d397841d82276541e4f2df9185694286518 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_264/ch16_2019_03_13_02_50_16_810830.py | a1d029cf30fa8ba3b1690d8e41608be6cb84ef9f | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | import math
def distancia_euclidiana(x1, y1, x2, y2):
d = sqrt(((x2-x1)**2)+((y2-y1)**2))
return d | [
"you@example.com"
] | you@example.com |
d13b13a4e5f3e3b9464f7d3916f0727780cdd2fd | 5e2284bff015e6b03e4ea346572b29aaaf79c7c2 | /docs/source/conf.py | ada5bca296c674f1d233246497f7a700de57ef25 | [
"MIT"
] | permissive | LaurenDebruyn/aocdbc | bbfd7d832f9761ba5b8fb527151157742b2e4890 | b857e8deff87373039636c12a170c0086b19f04c | refs/heads/main | 2023-06-11T23:02:09.825705 | 2021-07-05T09:26:23 | 2021-07-05T09:26:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,961 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"noreply@github.com"
] | LaurenDebruyn.noreply@github.com |
45670a3d2d9a0ac6b7003b1bc305c2321c58522e | a3f1e80179c23d9202d72b75dd37a49b44785f45 | /api/client/swagger_client/models/api_pipeline_custom.py | e8121beb8d0b1d83de76082c965a59dc57d9b46d | [
"Apache-2.0"
] | permissive | pvaneck/mlx | b1e82fae5ac8aaa1dddac23aaa38c46f6e6cfc27 | 6edaa0bd77787c56b737322a0c875ae30de6cd49 | refs/heads/main | 2023-05-14T06:08:38.404133 | 2021-05-04T01:41:11 | 2021-05-04T01:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,191 | py | # Copyright 2021 IBM 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 writi... | [
"82406273+mlx-bot@users.noreply.github.com"
] | 82406273+mlx-bot@users.noreply.github.com |
b42cf163d4f8bdc75575b3da040f41dc5fc3b13b | 0e478f3d8b6c323c093455428c9094c45de13bac | /src/OTLMOW/OTLModel/Datatypes/KlVerlichtingstoestelMerk.py | 8c7856a23aba0c4fd7334f2b6b1eb8d3dc506f0a | [
"MIT"
] | permissive | davidvlaminck/OTLMOW | c6eae90b2cab8a741271002cde454427ca8b75ba | 48f8c357c475da1d2a1bc7820556843d4b37838d | refs/heads/main | 2023-01-12T05:08:40.442734 | 2023-01-10T15:26:39 | 2023-01-10T15:26:39 | 432,681,113 | 3 | 1 | MIT | 2022-06-20T20:36:00 | 2021-11-28T10:28:24 | Python | UTF-8 | Python | false | false | 3,302 | py | # coding=utf-8
import random
from OTLMOW.OTLModel.Datatypes.KeuzelijstField import KeuzelijstField
from OTLMOW.OTLModel.Datatypes.KeuzelijstWaarde import KeuzelijstWaarde
# Generated with OTLEnumerationCreator. To modify: extend, do not edit
class KlVerlichtingstoestelMerk(KeuzelijstField):
"""Het merk van het ve... | [
"david.vlaminck@mow.vlaanderen.be"
] | david.vlaminck@mow.vlaanderen.be |
361ef6f4861f97380643d983b09e9fe220e2720a | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/cloud/hostrouteregresspkts15min.py | d56e30a2b6e75dce09114ac5b0559db59074cee9 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,189 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
9a61cf0c3df886f81438338b21a69343804579e7 | b9e0381bed124e6f4aaf09378a91d6f7d99ca9ae | /setup.py | eab11340a28c2b7281962b205451fa0a5cf4b9cd | [] | no_license | fanstatic/js.jquery_elastic | b9d944921d4ff92fac69b2154b0c477835645c56 | 8a25992b188ce3c6dbf2103b6e8863c9286858b0 | refs/heads/master | 2020-08-06T02:26:16.335518 | 2011-11-02T14:35:04 | 2011-11-02T14:35:04 | 212,799,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,276 | py | from setuptools import setup, find_packages
import os
# The version of the wrapped library is the starting point for the
# version number of the python package.
# In bugfix releases of the python package, add a '-' suffix and an
# incrementing integer.
# For example, a packaging bugfix release version 1.4.4 of the
# j... | [
"devnull@localhost"
] | devnull@localhost |
3dab1ae060c9e10e1ca242db4acc01adc03ef465 | 152e85c9f718d39a17d7f77889270ea14a4cdd9f | /galleria_videos/apps.py | afe8c476f5316abdf7a7246635e630fb1b6bc495 | [] | no_license | sahandtebyani/galleria | 4bb2d0fe1813eff0319416b9480f648533ae39df | 43451d97c6ecd6378d25413bf4588759ff271d02 | refs/heads/main | 2023-05-25T07:49:23.114250 | 2021-06-13T14:37:11 | 2021-06-13T14:37:11 | 337,804,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | from django.apps import AppConfig
class GalleriaVideosConfig(AppConfig):
name = 'galleria_videos'
| [
"sahadina10@gmail.com"
] | sahadina10@gmail.com |
b0c53adb2d8f14b353316719929f4dd0bd405eae | ed381eac1c805be20af9c28e0a1a319c9a71352d | /client/tests/utils/formatting_test.py | 838e65f0cf1944dd082ae1cfc45af15b80c97fe7 | [
"Apache-2.0"
] | permissive | hpec/ok | 2bde333bd47e2b457fbb6da020c82d4bb99d9455 | 492a077a06a36644177092f26c3a003fd86c2595 | refs/heads/master | 2020-12-29T18:48:03.884930 | 2014-11-26T10:39:28 | 2014-11-26T10:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,321 | py | from client.utils import formatting
import unittest
class PrettyJsonTest(unittest.TestCase):
def assertFormat(self, expect, json):
self.assertEqual(formatting.dedent(expect),
formatting.prettyjson(json))
def testInt(self):
self.assertFormat('42', 42)
def testFloat... | [
"albert12132@gmail.com"
] | albert12132@gmail.com |
dbd9a2eea3df8cd33d06c5e73b27aaf6ec14541d | 600283415a6a403b0a12ee8b5b4a3ff5d6aa757a | /json-response-demo/venv/bin/flask | 432a62ab9d22131fbb4e353042308645385c11ca | [] | no_license | pixb/flask-demo | 0f2ef9a8bc6315c92e0aec6cac0acfdcf7bc8f03 | a40686eb25df0ca6379bc409ba34ef0425a863f8 | refs/heads/master | 2023-07-25T06:35:08.364038 | 2023-07-11T16:09:49 | 2023-07-11T16:09:49 | 336,691,847 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | #!/home/pix/dev/code/python/python-web-demo/json-response-demo/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"tpxsky@163.com"
] | tpxsky@163.com | |
db58d82a549ed036189d914f201f0a265b1fdc64 | 6f00947901426274cb895a21ad5f83c0197b50ba | /e2e/scripts/st_arrow_add_rows.py | e53ab48bc7665ab1864f15dc0b6e83ebde996bb3 | [
"Apache-2.0"
] | permissive | g147/streamlit | f19a796e1bbf83f939f1bcbd3e8f3fd6e64155bb | d54fab097caa3e6dc101eb930cddc0832e05dea9 | refs/heads/develop | 2023-06-18T02:21:22.112118 | 2021-07-10T09:22:27 | 2021-07-10T09:22:27 | 363,459,800 | 1 | 0 | Apache-2.0 | 2021-07-10T09:22:43 | 2021-05-01T16:45:08 | Python | UTF-8 | Python | false | false | 2,580 | py | # Copyright 2018-2021 Streamlit Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | [
"noreply@github.com"
] | g147.noreply@github.com |
35c78ecacb40eb0cd1a443ee04cf16f841c17837 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_receiver_async.py | da6c4b6e72e58c8992d9e046d13400ae7aa7a442 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 24,763 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | YijunXieMS.noreply@github.com |
ac00e754fe6dc5a4a50fc219b4646135d18ffb8d | f93d36a8884a69b9f5189fee91af308bb60e2418 | /review/amagnuss/coffee_points.py | de3e925855da41aba2ddb1f550e9cc5fda7d27d5 | [] | no_license | adamlubitz/pratt-savi-810-2018-10 | 1aa1d2c5032f3d68a70d85245da4bc287594e5c1 | b66a699c7c1b37059f9d8cce4d81c0f89508424a | refs/heads/master | 2022-01-08T09:43:10.909984 | 2018-12-08T20:30:21 | 2018-12-08T20:30:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,362 | py | import arcpy
import pandas as pd
import json
arcpy.env.overwriteOutput = True
wd = 'Z:/Windows/GitHub/pratt-savi-810-2018-10/projects_scratch/amagnuss'
# Set the local variables
in_table = '{}/CoffeePoints_2.csv'.format(wd)
List_of_Countries = ['Costa Rica', 'Guatemala', 'Mexico', 'Nicaragua', 'Honduras', 'El Salv... | [
"daniel.martin.sheehan@gmail.com"
] | daniel.martin.sheehan@gmail.com |
1df8f7c1d3cab02ad4cbac3c7f8197322180a3e9 | bd553d50a233c043878e4209e0376eab1eb7176f | /Examples/11SampleModules/Threading/threadingEx2.py | 84b4b8614b152a038ab3a74216f7b1e9f774e443 | [] | no_license | jainendrak/python-training | 3610434926774bca9c711a5e6c675d3ce28893ef | 336221aab9aaa9624ad0f5ad046c44195105249e | refs/heads/master | 2020-05-27T13:59:17.656236 | 2019-05-27T06:21:46 | 2019-05-27T06:21:46 | 188,648,975 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,200 | py | import threading, time
exitFlag = 0
class myThread(threading.Thread):
def __init__(self, threadID, name, counter):
threading.Thread.__init__(self)
self.threadID = threadID
self.name = name
self.counter = counter
def run(self):
print("Starting " + self.name)
... | [
"jainendra.kumar@oracle.com"
] | jainendra.kumar@oracle.com |
d7dfbc16b17661a8706b27969577d5d8b7cf03e0 | 1b16a85abcac93fdab96cb3d952505f39dcb98b0 | /tests/testproject/multidb/tests/test_models.py | 1c0c2da1a0b053684244c0c1498789dfdeb883f8 | [
"BSD-3-Clause"
] | permissive | playpauseandstop/tddspry | 6bb4ef3d3c1fed100acd6b1cff0f632f264ce6dd | 0a0f9242238d2d81a375dcb4b8c32b25612edf42 | refs/heads/master | 2016-09-05T18:50:47.687939 | 2011-03-01T15:01:10 | 2011-03-01T15:01:10 | 136,525 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,349 | py | from tddspry.django import TestCase
from tddspry.django.helpers import EMAIL, PASSWORD, USERNAME
from django.contrib.auth.models import User
class TestModels(TestCase):
multidb = True
def setup(self):
self.model = User
self.manager = self.model.objects.using('legacy')
self.kwargs =... | [
"playpauseandstop@gmail.com"
] | playpauseandstop@gmail.com |
0853dbf53c7d4fc01a324eb039cd10c345befae6 | bdb0b0ee38078bc7c19ca9d953f9dfd222ea8479 | /ansible/roles/hotspot/templates/boot.py | 547f3a63a397f6a9406d2f256350432ecbaffb40 | [] | no_license | mrc-toader/setup | 73b2bc69a69f5ba8adc51b2a85fac411bc21bb02 | 0ed8037f74a78f15c6ee138eb2e399e8771b5298 | refs/heads/master | 2021-01-21T07:30:04.181983 | 2017-08-29T11:38:04 | 2017-08-29T11:38:04 | 91,614,785 | 0 | 0 | null | 2017-05-17T19:54:52 | 2017-05-17T19:54:52 | null | UTF-8 | Python | false | false | 3,524 | py | #!/usr/bin/env python3
import sys
import re
from pathlib import Path
import subprocess
RUN_DIR = Path('/var/local/hotspot/run')
SUPERVISOR_DIR = Path('/etc/supervisor/conf.d')
HOSTAPD_CONFIG_TEMPLATE = """\
interface={interface}
ieee80211d=1
country_code={country_code}
ieee80211n=1
wmm_enabled=1
driver=nl80211
hw_... | [
"alex@grep.ro"
] | alex@grep.ro |
5620b8d8fc82aca9f6796b032371851cc93269f0 | 96bfcec63be5e8f3a2edcd8f8395d309ff61aeaa | /ex20 functions and files/ex20.py | 60953e106f5f1a11cb71c8c67f4e7fc2741462f9 | [] | no_license | KlausQIU/learnpythonhardway | cbc3ba64c4a70fafe1b0234196023b44eff2a24a | 614e09370c654f79cbc408d09eaa8a47d1b4e637 | refs/heads/master | 2021-01-17T06:07:15.735307 | 2016-07-03T12:13:26 | 2016-07-03T12:13:26 | 52,967,154 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 597 | py | # -*- coding : utf-8 -*-
from sys import argv
script, input_file = argv
def print_all(f):
print f.read()
def rewind(f):
f.seek(0)
def print_a_line(line_count,f):
print line_count,f.readline()
current_file = open(input_file)
print "First,let's print the whole file:\n"
print_all(current_file)
print "Now let's rewin... | [
"moon.qiu198909@hotmail.com"
] | moon.qiu198909@hotmail.com |
e78b4647681a75c4ad6ad69ed99793457147a7a0 | 08cfc4fb5f0d2f11e4e226f12520a17c5160f0a2 | /kubernetes/client/models/v1_namespace_list.py | 38055a9cd702e920afd279ea4003a19544378baf | [
"Apache-2.0"
] | permissive | ex3cv/client-python | 5c6ee93dff2424828d064b5a2cdbed3f80b74868 | 2c0bed9c4f653472289324914a8f0ad4cbb3a1cb | refs/heads/master | 2021-07-12T13:37:26.049372 | 2017-10-16T20:19:01 | 2017-10-16T20:19:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,689 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"mehdy@google.com"
] | mehdy@google.com |
56f0a368b55894c38b8c997a2f1e18310ad58685 | f048d9a7a7464461ab81086e2f0dd0e4568364ad | /scripts/python/decompress-all-strokes.py | a3c4630986b073876f4ce9cf37326dfdfab5a5f6 | [] | no_license | JasonGross/characters | 66eb547606a6d3d110e7a8270ebeb8c563d2877c | b3213fa743789531c103134e087f3110cca005bc | refs/heads/master | 2021-06-03T02:10:32.981640 | 2020-09-04T17:25:14 | 2020-09-04T17:25:14 | 912,795 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | #!/usr/bin/python
# Filename: decompress-all-strokes.py
from stroke_compression import decompress_all_strokes_in_current_directory
if __name__ == '__main__':
decompress_all_strokes_in_current_directory()
| [
"jgross@mit.edu"
] | jgross@mit.edu |
492b95d732ad5a91cd8271b3111eee8585f24ded | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/binaryTree_20200623143454.py | 3cd8c4c57c7767dc31c557b3ff860968148374d2 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,213 | py | # define node class
class Node(object):
# constructor
def __init__(self,value):
self.value = value
self.left = None
self.right = None
# define binary tree class
class BinaryTree(object):
def __init__(self,root):
# converting data
self.root = Node(root)
def pr... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
f12b1a7eb0c624bcb02269c297d7d2d038aff21b | 330ba6024e2728ec2476ce2d9f8e6be20c60ed67 | /assignments/hw04/listutils.py | ca77bd6bfdffe6cba5ec065b59a7aab54fbf2bfb | [] | no_license | foureyes/csci-ua.0479-spring2021-001 | ec008e797b569476cce7b062f2469d6dea56d670 | f7ee0f69c2e9150134f41f39676807e4f776f96e | refs/heads/main | 2023-06-27T15:44:38.192216 | 2021-08-01T17:35:55 | 2021-08-01T17:35:55 | 330,051,703 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 21 | py | """
listutils.py
"""
| [
"jversoza@cs.nyu.edu"
] | jversoza@cs.nyu.edu |
afc8f105c4cee0a4c52c266499b55b066ba80353 | 1092d65f98c695756d8d1697da3f8c5253c8922f | /navx/_impl/imuregisters.py | ef123235461f623c7fdf8ab90caf7f264437da9e | [
"MIT"
] | permissive | M-Shadow/robotpy-navx | 28830536a7a3c497ce75bd765d76d79de9f1ba5d | b59a1d0c38c73541c139023a4ac347cd69ed2bad | refs/heads/master | 2020-08-20T11:54:53.221611 | 2019-10-18T13:36:16 | 2019-10-18T13:36:16 | 216,019,630 | 0 | 0 | MIT | 2019-10-18T12:31:23 | 2019-10-18T12:31:23 | null | UTF-8 | Python | false | false | 7,949 | py | # validated: 2017-02-19 DS fed66235acf0 java/navx/src/com/kauailabs/navx/IMURegisters.java
# ----------------------------------------------------------------------------
# Copyright (c) Kauai Labs 2015. All Rights Reserved.
#
# Created in support of Team 2465 (Kauaibots). Go Purple Wave!
#
# Open Source Software - may... | [
"dustin@virtualroadside.com"
] | dustin@virtualroadside.com |
e55393168675923e3d56012a13d15a16bc186733 | 9e99ae1258b6f8c6fe057bcd3671147419b37c19 | /ocean_server/ocean/tests/test_tests.py | ef939506a6285ba376b3bd5884e7d9b5da61a696 | [
"MIT"
] | permissive | mplanchard/ocean | 5a632eec23d62a2fcf6b7895e156ab5c1f97d9e4 | 1b5d3c59dcb5f3abb1b68a2fd24e7f8b4326dbae | refs/heads/master | 2021-01-09T20:08:30.556620 | 2016-09-16T02:54:28 | 2016-09-16T02:54:28 | 59,874,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | """
Tests to ensure the test-suite is behaving as expected
"""
# Standard library imports
import logging
# Third party imports
import pytest
# Local imports
log = logging.getLogger(__name__)
def test_instantiation():
"""Pass just to ensure conftest ran successfully"""
pass
| [
"msplanchard@gmail.com"
] | msplanchard@gmail.com |
f43c916f1c236200da791d470826f8dc4c2e4ac4 | 82074ba616918ede605dec64b038546a7b07bd7d | /api/v1/quickbooks/filters.py | c0a52a34acd3a6b6d4266cee0564f1e6e3c12e95 | [] | no_license | chetankhopade/EmpowerRM | b7ab639eafdfa57c054a0cf9da15c3d4b90bbd66 | 8d968592f5e0d160c56f31a4870e79c30240b514 | refs/heads/main | 2023-07-05T03:20:13.820049 | 2021-08-26T11:56:28 | 2021-08-26T11:56:28 | 399,354,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from rest_framework import filters
class QuickbooksConfigurationsFilterBackend(filters.BaseFilterBackend):
def filter_queryset(self, request, queryset, view):
try:
return queryset.filter(token=request.META['HTTP_TOKEN'])
except Exception as ex:
print(ex.__str__())
... | [
"noreply@github.com"
] | chetankhopade.noreply@github.com |
beb5941d877b39696d1dcdf1f2dfead43fe319d0 | 43e3ef1149931691b47d7cabae52855cf03e470c | /Noah_WuKong/configs/wukong_vit_b/wukong_vit_b_f.py | 62d5d65fb0a7ff6c1d812f2e16e8bccc620fcd62 | [
"Apache-2.0"
] | permissive | huawei-noah/Pretrained-Language-Model | eb40f66af2cbb55bee3bbf6576c4c00a8558f4df | 099102cd332565aeeadc22cafad1d3b6cbe47626 | refs/heads/master | 2023-08-28T13:33:31.674801 | 2023-05-21T13:37:45 | 2023-05-21T13:37:45 | 225,393,289 | 2,994 | 671 | null | 2023-02-16T04:23:06 | 2019-12-02T14:26:04 | Python | UTF-8 | Python | false | false | 1,060 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2022, Huawei Technologies Co., Ltd. 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.apac... | [
"noreply@github.com"
] | huawei-noah.noreply@github.com |
c012c1e6ce81788da6fef188ab66828c1dd58901 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/perf/DLRM/dlrm/data/factories.py | c75b9ea66aa251f7807e036f23db98977004eeeb | [
"Apache-2.0",
"MIT",
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-1.0-or-later"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 7,287 | py | # Copyright (c) 2021 NVIDIA CORPORATION. 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 appli... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
736fa545317132a04ed6e1c9b1c2549f0667c5f9 | 8c174ac4f94c17a3646912877af7670022591c4c | /caps.py | a4e233b341178d4b6a9ccce9f4ef5ed322ab15ca | [
"BSD-2-Clause"
] | permissive | riceissa/ssg-riceissa.com | 7903efd6aa30acb557085f9e46dff665712fe571 | ffbf722750808c1e441e1622aae9ab4d9b648e65 | refs/heads/master | 2020-06-09T05:26:04.921677 | 2014-12-16T11:55:25 | 2014-12-16T11:55:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | #!/usr/bin/env python
"""
Pandoc filter to convert all regular text to uppercase.
Code, link URLs, etc. are not affected.
"""
from pandocfilters import toJSONFilter, Str
def caps(key, value, format, meta):
if key == 'Str':
return Str(value.upper())
if __name__ == "__main__":
toJSONFilter(caps)
| [
"riceissa@gmail.com"
] | riceissa@gmail.com |
569610a840842a02f0c9eac499fd2e69cc9cab28 | 3a28b1a12d0710c06f6360381ad8be6cf3707907 | /modular_model/triHPC/triHPCThermo/HPCAllTrays23CstmVapO2_px_N2.py | b873bdb22078a9d202a69bfd8d90b544817bd2cb | [] | no_license | WheatZhang/DynamicModelling | 6ce1d71d3b55176fd4d77a6aedbaf87e25ce4d02 | ea099245135fe73e8c9590502b9c8b87768cb165 | refs/heads/master | 2020-06-15T14:12:50.373047 | 2019-07-05T01:37:06 | 2019-07-05T01:37:06 | 195,319,788 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | def VapO2_px_N2(P,T,x_N2):
x = (P-5.50184878e+02)/3.71707400e-01
y = (T--1.77763832e+02)/1.81029000e-02
z = (x_N2-9.82420040e-01)/2.44481265e-03
output = \
1*1.57413228e+00
y_O2 = output*1.00000000e+00+0.00000000e+00
return y_O2 | [
"1052632241@qq.com"
] | 1052632241@qq.com |
a81d8cc23d9e560921bea7eee18ed14bb042c938 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-3/864acd6bdfcd2191ba126678080a7f56bb499f52-<_path_residuals>-bug.py | 7731c683e94481da5129405eb1312ee1e0b4b279 | [] | 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,943 | py | def _path_residuals(X, y, train, test, path, path_params, alphas=None, l1_ratio=1, X_order=None, dtype=None):
"Returns the MSE for the models computed by 'path'\n\n Parameters\n ----------\n X : {array-like, sparse matrix}, shape (n_samples, n_features)\n Training data.\n\n y : array-like, shape ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
02e0a67931da1f4e65d1601fb492abf8a4ef6923 | 43193e52d33fd4d6f7288331a1690416186355c3 | /7688.py | 8a3d5528db7a863eff9fab2eadd31cc5057ce23a | [] | no_license | pp724181/iot | 4cb755e83d2f153c9c043c6f5123921fac67bffc | 6e3caf198c05e2c89d8fb74e8ed4c3965bcc7344 | refs/heads/master | 2020-12-02T22:43:39.108708 | 2017-07-04T04:37:33 | 2017-07-04T04:37:33 | 96,173,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,641 | py | import socket
import time
import requests
import os
import httplib, urllib
def post_to_thingspeak(payload):
headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}
not_connected = 1
while (not_connected):
try:
conn = httplib.HTTPConnection("ap... | [
"you@example.com"
] | you@example.com |
5f0306d35964547831ca30d7e2d0d06d51f77d90 | 4b3c4878b48b618608d42de1a7b476a37b46b9b8 | /codefes2016_a/a.py | 0b8b869fc4f1d0276b43d4d69b49b6578c3e5c13 | [] | no_license | zfhrp6/competitive-programming | 3efd2a35717974c5ed9af364181a81144b6c8f19 | 459e7106ac4ba281217ce80cdc014023ce794bc3 | refs/heads/master | 2021-01-10T01:42:20.496027 | 2019-08-03T12:10:43 | 2019-08-03T12:10:43 | 51,929,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40 | py | s = input()
print(s[:4] + ' ' + s[4:])
| [
"coricozizi@gmail.com"
] | coricozizi@gmail.com |
42e913f54b1defd5b04973f0c7643241d4589e02 | 0d6a506fe4dcd83a7e735a9df78b39ce703c5a35 | /nearpower_2.py | 4a1d18437aeebd170364ae5b35c7ceaf76f4bccb | [] | no_license | Ponkiruthika112/codeset6 | 96ad146cea3fe10fff2963c72a6276381b5f926a | 274efc8bbbf61f9838cdb8ff56472b7f8185f51e | refs/heads/master | 2020-04-16T01:33:02.069006 | 2019-05-17T11:26:50 | 2019-05-17T11:26:50 | 165,178,165 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 59 | py | #this is to find next power of 2
n=int(input())
print(n*2)
| [
"noreply@github.com"
] | Ponkiruthika112.noreply@github.com |
c686709aa4d71b4cdea22f5e27001c4f70956a2a | d95d910e7934c08e983cdb9e9dfa7e99e028e7b3 | /tests/pypline/test_response_object.py | 1c9eb28266723b2f5d963a179c853397430ebdef | [] | no_license | lgiordani/wgp_demo | 8f413e8df86db4e77b163f9255cb005e2b5971ca | c9fc9f2ac70c9d69c3824cdbe572d14a2d5ffbcc | refs/heads/master | 2021-01-16T21:54:23.516420 | 2016-06-12T21:25:05 | 2016-06-12T21:25:05 | 60,966,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | import pytest
from wgp_demo.shared import request_object as plreq
from wgp_demo.shared import response_object as plres
@pytest.fixture
def response_value():
return {'key': ['value1', 'value2']}
@pytest.fixture
def response_type():
return 'ResponseError'
@pytest.fixture
def response_message():
return ... | [
"giordani.leonardo@gmail.com"
] | giordani.leonardo@gmail.com |
d333363f4726bb9a96ca411b48d69050bd460462 | c96901e702b0c5f84170f95ed28263528a590e99 | /trials/trial_18_plot_posteriors.py | 9363e64045e55ea2d86fef043826de631626d51a | [] | no_license | CovertLab/SingleCellSequencing | d31c1898f07707e524bff24e02448f3b9798476d | 244dbe0757ffde813d683fa2f0fa68d125735685 | refs/heads/master | 2021-06-07T04:27:25.723887 | 2016-09-27T22:17:36 | 2016-09-27T22:17:36 | 27,788,049 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,059 | py | """
Analysis!
Cluster the time traces and then compare the gene expression for each cluster
"""
"""
Import python packages
"""
import HTSeq
import time
import collections
import itertools
import os
import subprocess
import collections
import datetime
import yaml
import fnmatch
import shlex
import numpy
import scipy... | [
"vanvalen@gmail.com"
] | vanvalen@gmail.com |
810069b675c6a009e15639630c4742d213ce1a27 | df1e54249446ba2327442e2dbb77df9931f4d039 | /library/s2t/s2t_rule_loader.py | 741236a71afedafd3d06f200926495393d1cf6b6 | [
"Apache-2.0"
] | permissive | tarsqi/ttk | 8c90ee840606fb4c59b9652bd87a0995286f1c3d | 085007047ab591426d5c08b123906c070deb6627 | refs/heads/master | 2021-07-12T06:56:19.924195 | 2021-03-02T22:05:39 | 2021-03-02T22:05:39 | 35,170,093 | 26 | 12 | Apache-2.0 | 2021-03-02T22:05:39 | 2015-05-06T16:24:38 | Python | UTF-8 | Python | false | false | 2,687 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import re
from io import open
TTK_ROOT = os.environ['TTK_ROOT']
S2T_RULES = os.path.join(TTK_ROOT, 'library', 's2t', 's2t_rules.txt')
re_ruleNum = re.compile('ruleNum=(\d+)')
re_event = re.compile('(event*)=(.*)')
re_subevent = re... | [
"marc@cs.brandeis.edu"
] | marc@cs.brandeis.edu |
99e8df6a45fa962e2aaf3878878bb8a0bd9af586 | e97ba50f592186eae5976a5b7a5fef80866c3e75 | /course materials/all_R_code/MVA-master/QID-928-MVAdisfbank/MVAdisfbank.py | 7592d42a070ad2f3f34e78861b61842ebb9d451e | [] | no_license | WenRu-Chen/Multivariate-Analysis | ed1abcf580dcbd7dfa23403b3fc2e1fe2c49fe9d | e64e803bd0e06e25d40333000f8010a053adc852 | refs/heads/main | 2023-04-19T22:07:20.699967 | 2021-04-26T04:00:37 | 2021-04-26T04:00:37 | 360,000,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from KDEpy import FFTKDE
x = pd.read_csv("bank2.dat", sep = "\s+", header=None)
xg = x[:100]
xf = x[100:200]
mg = xg.mean(axis = 0)
mf = xf.mean(axis = 0)
m = (mf + mg)/2
w = 100 * (xg.cov() + xf.cov())
d = mg - mf
a = np.linalg.inv(w) @ d
yg = (x... | [
"you@example.com"
] | you@example.com |
caf3407a0261bbbf378b0bca9df44c87ab857e50 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2232/60627/275376.py | 71a6eb880690800f18b7520d0c68fb6597cabd11 | [] | 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 | 544 | py | n = int(input())
l = []
for i in range(n):
l.append(input())
if n == 5:
print('1\n2')
elif n == 33:
print('1\n1')
elif n == 13:
print('13\n13')
elif n == 10:
if l[0] == '2 3 4 5 6 7 8 9 10 0':
print('1\n0')
elif l[0] == '2 3 0':
print('1\n5')
elif l[0] == '2 3 4 5 0':
... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9e21a97e35c7759d51d96d8c93eeae368aef1c3f | eafd7e97f3807a4e3d3b9b86834b7960f4190cf2 | /liveserver/test/testcases.py | ff6a74c797b6bd193e80ff7048e08707739a790e | [
"BSD-3-Clause"
] | permissive | adamcharnock/django-live-server | a6c129d63f8058c1a381ff5fabe3db941603723d | 0a912c34f9db10bffa8fe05f47a4acd95d201beb | refs/heads/master | 2021-01-22T23:53:05.423536 | 2012-02-20T11:02:20 | 2012-02-20T11:02:20 | 3,440,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,509 | py | from __future__ import with_statement
import os
import select
import socket
import threading
from django.conf import settings
from django.contrib.staticfiles.handlers import StaticFilesHandler
from django.core.exceptions import ImproperlyConfigured
from django.core.handlers.wsgi import WSGIHandler
from django.core.se... | [
"adam@omniwiki.co.uk"
] | adam@omniwiki.co.uk |
5fe2c86cbe178e10f1070e2b10fd6af0f69ff26f | 7dc05dc9ba548cc97ebe96ed1f0dab8dfe8d8b81 | /tags/pida-0.3-beta/pida/core/boss.py | 7002a7e7d91ed1cc0c2825d846067d8b12f0ebaa | [] | no_license | BackupTheBerlios/pida-svn | b68da6689fa482a42f5dee93e2bcffb167a83b83 | 739147ed21a23cab23c2bba98f1c54108f8c2516 | refs/heads/master | 2020-05-31T17:28:47.927074 | 2006-05-18T21:42:32 | 2006-05-18T21:42:32 | 40,817,392 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,992 | py |
# -*- coding: utf-8 -*-
# vim:set shiftwidth=4 tabstop=4 expandtab textwidth=79:
#Copyright (c) 2005 Ali Afshar aafshar@gmail.com
#Permission is hereby granted, free of charge, to any person obtaining a copy
#of this software and associated documentation files (the "Software"), to deal
#in the Software without rest... | [
"aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7"
] | aafshar@ef0b12da-61f9-0310-ba38-b2629ec279a7 |
032c8d0abf4ee63df3fb00a0259ae195fb0f375b | 38c2f88ec0b3386b8156eee8dc6f92da6233f40a | /research/2019_05_04_resources_needed/src/main.py | b4b4143deed84748462c44c29e65bb3b0473135d | [
"Apache-2.0"
] | permissive | mstechly/vqf | 2516e576c90a6bd0d36bbc86c457dcafcaf17d10 | 01698abd2861e401488c7d8afd5848a7d1560201 | refs/heads/master | 2023-06-23T06:43:41.585715 | 2022-08-17T18:55:46 | 2022-08-17T18:55:46 | 181,274,943 | 47 | 14 | Apache-2.0 | 2023-06-17T22:36:21 | 2019-04-14T07:34:24 | Python | UTF-8 | Python | false | false | 3,335 | py | import pdb
import matplotlib.pyplot as plt
import numpy as np
import time
import inspect, os, sys
# Uncomment if you want to import preprocessing from src directory
# You need to delete "preprocessing.py" file from this directory to make it work, though.
# file_dir = os.path.dirname(os.path.abspath(inspect.getfile(ins... | [
"michal.stechly@gmail.com"
] | michal.stechly@gmail.com |
98a44f3bcec55e72151ae205c176f96e0e5629d0 | 9ff696839d88998451f2cb2725a0051ef8642dc0 | /home/migrations/0003_customtext_dsc.py | 3d1aef55635a033098dd9cf67f0ed19cc6a9660e | [] | no_license | crowdbotics-apps/karen-test-16760 | f67aacf4d07d10c70c4edf77a428dd8e12b4acf7 | 02492b4531be9561f1a046176918560e248764df | refs/heads/master | 2023-05-19T10:52:20.454231 | 2020-05-08T17:14:02 | 2020-05-08T17:14:02 | 262,379,844 | 0 | 0 | null | 2021-06-11T07:19:46 | 2020-05-08T16:58:28 | Python | UTF-8 | Python | false | false | 390 | py | # Generated by Django 2.2.12 on 2020-05-08 17:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('home', '0002_load_initial_data'),
]
operations = [
migrations.AddField(
model_name='customtext',
name='dsc',
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
7bbb32f702829f2d59b344eaa78c8b4d0ca39bee | 077e5ab67f2936b0aa531b8ee177ecf83a0a2e18 | /学习/6、第六部分 - 类和OOP/27、更多实例/person.py | 6e017f2de2ffafbd4cd188f7d42e79cd03844474 | [] | no_license | MKDevil/Python | 43ef6ebcc6a800b09b4fb570ef1401add410c51a | 17b8c0bdd2e5a534b89cdec0eb51bfcc17c91839 | refs/heads/master | 2022-02-02T08:34:06.622336 | 2022-01-28T08:52:25 | 2022-01-28T08:52:25 | 163,807,236 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,921 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from classtools import attrDisplay
class Person(attrDisplay):
"""普通员工"""
def __init__(self, name, job=None, pay=2500):
self.name = name
self.job = job
self.pay = pay
def lastName(self):
"""获取姓氏"""
return self.name.split... | [
"MK_Devil@163.com"
] | MK_Devil@163.com |
9b316915d237ae9a322ee2f294a3b7abc372d2d2 | c94f888541c0c430331110818ed7f3d6b27b788a | /ak_8f8a57bbd9814957987be7c9e8959a2a/python/antchain_sdk_ak_8f8a57bbd9814957987be7c9e8959a2a/client.py | fa63a344f932afcf33736da80b0f89b3bc6a6f54 | [
"MIT",
"Apache-2.0"
] | permissive | alipay/antchain-openapi-prod-sdk | 48534eb78878bd708a0c05f2fe280ba9c41d09ad | 5269b1f55f1fc19cf0584dc3ceea821d3f8f8632 | refs/heads/master | 2023-09-03T07:12:04.166131 | 2023-09-01T08:56:15 | 2023-09-01T08:56:15 | 275,521,177 | 9 | 10 | MIT | 2021-03-25T02:35:20 | 2020-06-28T06:22:14 | PHP | UTF-8 | Python | false | false | 22,950 | py | # -*- coding: utf-8 -*-
# This file is auto-generated, don't edit it. Thanks.
import time
from Tea.exceptions import TeaException, UnretryableException
from Tea.request import TeaRequest
from Tea.core import TeaCore
from antchain_alipay_util.antchain_utils import AntchainUtils
from typing import Dict
from antchain_sd... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
ff3fa03a5a823bcdfbfd596ca244e41b606b7c82 | 32ba2c5e29ef79de1a2fc86102971e58f9530d9e | /baiduNLP.py | fe63b9695ad90f41eeee04163500ff79a52b7246 | [] | no_license | xiaogaogaoxiao/newspaper_sentiment_analysis | bacdbcc6b30ed55a9c14b06db90646ca82df7529 | e045bec753355be604c78fb7a5909583a79641f0 | refs/heads/master | 2020-05-01T09:59:55.621236 | 2018-03-24T08:30:44 | 2018-03-24T08:30:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 889 | py | # coding:gbk
import urllib, urllib2, sys
import requests
import ssl
import json
import time
def baidu(data):
url = 'https://aip.baidubce.com/rpc/2.0/nlp/v1/sentiment_classify?access_token=24.24caa83c34e5d01f2e5fb80752adae8c.2592000.1522201224.282335-10469707'
post_data = "{\"text\":\"" + data + "\"}"
... | [
"noreply@github.com"
] | xiaogaogaoxiao.noreply@github.com |
b5092c07a1d16199df50b3411d1fa9fb343aa9d6 | 08a329d07172a384be41eb58a0586032b18787d2 | /property5.py | 6c70c6b519c8e644b2374747126a94e17fef837f | [] | no_license | atsuhisa-i/Python_study1 | 9bc39d058fe8bdd00adb35324758ad8fa08f4ca1 | 439a654f09e81208658355d99c8ce1c3cd4bcc4e | refs/heads/main | 2023-04-06T12:44:12.099067 | 2021-04-14T13:24:56 | 2021-04-14T13:24:56 | 348,309,405 | 0 | 0 | null | 2021-04-14T13:24:57 | 2021-03-16T10:45:48 | Python | UTF-8 | Python | false | false | 443 | py | class Item:
def __init__(self, name, price):
self.__name = name
self.__price = price
@property
def name(self):
return self.__name
@property
def price(self):
return self.__price
@price.setter
def price(self, value):
self.__price = max(value, 0)
... | [
"atsuhisa.1124@gmail.com"
] | atsuhisa.1124@gmail.com |
02fbb2f701bb7717474edffccb64e578482f08af | 717f642297a1cee12500d4160df8b41d7bcaa4b7 | /exec -l /bin/bash/google-cloud-sdk/.install/.backup/lib/surface/firestore/operations/__init__.py | b99c90ceeaaff592a335c2a367f4f1580e072a1f | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | vrielsdenies/Participant-app | 8b5199bfb401741e76af3cfd86ca8987c7a25cb3 | a9348c6d7937f8b210a7c6056c1aa693a0e44c73 | refs/heads/master | 2021-07-08T15:38:01.125590 | 2019-01-07T05:40:13 | 2019-01-07T05:40:13 | 147,900,558 | 2 | 1 | null | 2020-07-24T20:13:28 | 2018-09-08T04:22:31 | Python | UTF-8 | Python | false | false | 929 | py | # -*- coding: utf-8 -*- #
# Copyright 2018 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"info@nielsdevries.net"
] | info@nielsdevries.net |
b9d18633f9ddc9a7618e0aa774d56bfcd20c0660 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/coverage-big-2913.py | d5a771e61ef7cff808546e6be8568a97a309c260 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,351 | py | count:int = 0
count2:int = 0
count3:int = 0
count4:int = 0
count5:int = 0
def foo(s: str) -> int:
return len(s)
def foo2(s: str, s2: str) -> int:
return len(s)
def foo3(s: str, s2: str, s3: str) -> int:
return len(s)
def foo4(s: str, s2: str, s3: str, s4: str) -> int:
return len(s)
def foo5(s: str,... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
2965894bc962e938d889e44a35a394f2047b74ea | ba56c31788b3fed66bedb7489f21277f37999fa2 | /apphosting/sandbox/main.py | 290ff8fc0739fd29e8c7a3c42f6ee93ee0c5b5ca | [] | no_license | tokibito/wsgi-apphosting | 7f3df53fc1a9b979ff27f0eb1bbe3bc6b06fc55b | d21b53295f12a6b90960a7841ec3b4d1057d0162 | refs/heads/master | 2020-07-25T07:38:40.059563 | 2010-06-14T14:42:52 | 2010-06-14T14:42:52 | 208,217,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,615 | py | #coding:utf-8
#アプリケーションのランナー
import sys
from datetime import datetime
from apphosting import const
from apphosting.sandbox import utils
class Runner(object):
"""
ランナーはプロセスプールで保持される
1プロセス1ランナー
TODO:複数のプロセスで同じランナーが起動する可能性
providerはアプリケーション提供モジュール
"""
def __init__(self, name, provider, serve... | [
"xxshss@yahoo.co.jp"
] | xxshss@yahoo.co.jp |
9599bfc03abaf70c558386fe45b2f15e59fb2e9e | 5e6d8b9989247801718dd1f10009f0f7f54c1eb4 | /sdk/python/pulumi_azure_native/network/v20210201/virtual_network_peering.py | c51961fba32f832aee8a62f771181490ec4f294e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | vivimouret29/pulumi-azure-native | d238a8f91688c9bf09d745a7280b9bf2dd6d44e0 | 1cbd988bcb2aa75a83e220cb5abeb805d6484fce | refs/heads/master | 2023-08-26T05:50:40.560691 | 2021-10-21T09:25:07 | 2021-10-21T09:25:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,199 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | vivimouret29.noreply@github.com |
ffb15c04da0ece2afe9237cfc2c8992137f4acfe | 08f5dd97433ce84868dbd95020e49f795e8e3f42 | /website/migrations/0017_auto_20151101_1225.py | d4d3154f0a3b3d8fd27409cc3b2843b8a8424e58 | [] | no_license | katur/forthebirds | f76e9d78f8b71f5cb13f22f3c417e737f6048896 | 2118fabebd8780cd3151f5ddd88245de402590e9 | refs/heads/master | 2023-08-08T18:57:55.722516 | 2023-03-28T03:04:19 | 2023-03-28T03:04:19 | 22,771,365 | 2 | 1 | null | 2023-07-25T21:23:49 | 2014-08-08T20:56:20 | Python | UTF-8 | Python | false | false | 563 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('website', '0016_auto_20151018_1630'),
]
operations = [
migrations.AlterField(
m... | [
"katherine.erickson@gmail.com"
] | katherine.erickson@gmail.com |
9b2f77944f2f030b061978095c6b458d55c249c3 | 185cbe28ae1950866905ddb3b53a3ca325f8fc98 | /Project4_FortressMachine/KindFortressMachine/web/migrations/0006_auto_20180325_1621.py | 866a5ee225ce6da1a7c0d0d9356e0cb8d7598c54 | [] | no_license | phully/PythonHomeWork | 2997cb2017621116d2959a183fcb50c4d4ea3289 | 4d497a6261de17cc2fc058cea50e127e885e5095 | refs/heads/master | 2020-03-21T04:51:51.700197 | 2018-06-06T02:35:40 | 2018-06-06T02:35:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,395 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2018-03-25 16:21
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('web', '0005_auto_20180310_... | [
"1079614505@qq.com"
] | 1079614505@qq.com |
74a1eecd5126c11d513494aa0a9c1d89dc2332c6 | 49eb0d08311529b1d2375429a9cbb5582d77fd2d | /qa/rpc-tests/invalidblockrequest.py | ab650fcf8a43a8e5894c157144e20c00c5b6a902 | [
"MIT"
] | permissive | mario1987/deimos | bcbaa7b4ed617a70c37047e6590264941b94a170 | 72cb8c33b5a6d4e09e4019602db7cea8c686d505 | refs/heads/master | 2020-03-19T23:11:08.313125 | 2018-06-11T23:06:30 | 2018-06-11T23:06:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,263 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2016 The DeiMos Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import ComparisonTestFramework
from test_framework.util import *
from t... | [
"support@lipcoins.org"
] | support@lipcoins.org |
6a62d14ab57f512695d7249171d11e6e5d91af95 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-rds/huaweicloudsdkrds/v3/model/update_postgresql_database_request.py | c1dd556380b81c36a6d0f15e095115458d91cd38 | [
"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 | 4,867 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdatePostgresqlDatabaseRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
737e76aef0b73d80231e2619bb39b237484a3da1 | 3518d02090de8102b090f780c09ba32d37e95b49 | /ghpro/stats.py | 61b6650a13d4118560e1fb8189a42aabc8b430c8 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | takluyver/ghpro | 9a34a7fdcf162101bfa79a17f4438b1a7b6b4dc5 | f9f053883acf2c01a39008054698408c8db85a18 | refs/heads/master | 2023-06-19T18:50:47.984731 | 2016-12-02T10:15:59 | 2016-12-02T10:15:59 | 75,550,828 | 0 | 0 | null | 2016-12-04T16:54:05 | 2016-12-04T16:54:05 | null | UTF-8 | Python | false | false | 8,063 | py | #!/usr/bin/env python
"""Simple tools to query github.com and gather stats about issues.
To generate a report for IPython 2.0, run:
github-stats --milestone 2.0 --since-tag rel-1.0.0
"""
from __future__ import print_function
import codecs
import sys
from argparse import ArgumentParser
from datetime import date... | [
"benjaminrk@gmail.com"
] | benjaminrk@gmail.com |
726e82d61f0d58be4d15b15e39016bbfdc09b419 | 093962f5be1357f1587235ee3e1cfa5db493d0d7 | /source/reviewapp/core/migrations/0005_delete_unitofhistory.py | d7e71fef316ea46117e57d25161f514a91c2c1a5 | [] | no_license | Shamsulhaq/reviewshelf | 037299104f7161386f1782670bfa495f029216b8 | 178b15da4186fcab4dfb9a0ad47ba0b056d137a6 | refs/heads/master | 2023-01-19T19:36:30.918625 | 2020-12-02T12:24:07 | 2020-12-02T12:24:07 | 316,216,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | py | # Generated by Django 3.1.3 on 2020-11-28 08:32
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('core', '0004_remove_category_is_deleted'),
]
operations = [
migrations.DeleteModel(
name='UnitOfHistory',
),
]
| [
"bmshamsulhaq65@gmail.com"
] | bmshamsulhaq65@gmail.com |
0f907bd1c0189d77bac7d77ad4ef790f01f4cdeb | ccd8273d923b82a46893da7a8dbc06f4b0f2f889 | /fan_manager/schedule.py | 8296f2a9be666b2b277a200309a7e23e5c9f37bb | [] | no_license | artrey/gpio-fan-manager | 1e45254de461063a462c7bbd41351be6744dd887 | 36bb2573a5334feb2f474c199cb37db6568ceb68 | refs/heads/master | 2020-04-03T06:54:40.103953 | 2019-01-02T20:06:35 | 2019-01-02T20:06:35 | 155,087,759 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,462 | py | # -*- coding: utf-8 -*-
import datetime
from typing import List
import pytz
class FanPolicy:
def __init__(self, time_start: datetime.time, time_finish: datetime.time,
threshold_enable: float, threshold_disable: float):
self.time_start = time_start
self.time_finish = time_finish
... | [
"oz.sasha.ivanov@gmail.com"
] | oz.sasha.ivanov@gmail.com |
673ee37339172d144ea7b6e9f5e73d58dadf9be4 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/8b7a58c9611cc5b5683e5a3a52461d8f9179eca0-<getfolders>-bug.py | 2bda93dc1adbedd1338b111a0521a6b2fcd9fbfd | [] | 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 | 191 | py | def getfolders(self):
if (not self.datacenter):
self.get_datacenter()
self.folders = self._build_folder_tree(self.datacenter.vmFolder)
self._build_folder_map(self.folders) | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
fb53eb588a4faefc13994b172e7b3d6a0943885b | 97e9e4c2ab8efd940946f5d28a3bab0da647ca0b | /huxley/accounts/tests/models.py | f6a0bb209703e66d80a1776990a19f76587a4435 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | tdowds/huxley | d9df0068d89ffd3f6c855be6c9ae7c3f15bedc3e | 6705ef2d64408389cf55388abbad70beb7025158 | refs/heads/master | 2021-01-20T06:33:01.898577 | 2013-10-18T16:07:58 | 2013-10-18T16:07:58 | 13,706,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,952 | py | # Copyright (c) 2011-2013 Kunal Mehta. All rights reserved.
# Use of this source code is governed by a BSD License found in README.md.
from django.test import TestCase
from huxley.accounts.constants import *
from huxley.accounts.models import *
class HuxleyUserTest(TestCase):
def test_authenticate(self):
... | [
"k.mehta@berkeley.edu"
] | k.mehta@berkeley.edu |
6aac625e1e0f348f3464e7dd1517a655dc5aab7e | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /QWAqDyd9RXqyrNyo3_15.py | b3247adb587b049bdda014c190a3be66d5086b08 | [] | 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 | 177 | py |
def abbreviate(txt,n=4) :
output = ""
crap = txt.split(" ")
for each in crap :
if len(each) >= n :
output += each[0].upper()
return output
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
3e0f87cbc1d9d3d745df80682fabac642e330b46 | 5279b3fd3b0cba9e1ca5552229bf6d32c3c0bb44 | /ch08_Tensorflow/ex09_Functional_API_2_GoogLeNet.py | 71df88cd007238767bd256db09a478a6f32ed4d2 | [] | no_license | handaeho/lab_dl | 16afe29b1b6db005cdae8ef9cc1f5f675ea34cf8 | 99ddcadec0c93bd42113f6b5fbecd9171c030f8b | refs/heads/master | 2020-11-30T08:42:39.506059 | 2020-02-11T05:22:32 | 2020-02-11T05:22:32 | 230,358,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,285 | py | """
>> GoogLeNet - (교재 P.271 그림 8-10)
= layer를 하나씩 쌓아 올려 순차적으로 통과 하지 않고,
layer가 수평적으로 놓여 있고, 이 여러 layer를 하나의 데이터에 한꺼번에 적용해서 그 결과를 결합 후, 다음 구조로 보낸다.
이 구조를 'Inception'이라 하며, 'Inception'구조를 하나의 구성 요소로 여러개를 결합하여 사용하는 것이 GoogLeNet의 특징이다.
단, 같은 층에 수평적으로 놓인 layer는 서로 연결 되지 않는다.
===============================================... | [
"mrdh94@naver.com"
] | mrdh94@naver.com |
2960d22b7267e18644fa6fd6755edc830f88df53 | bc41457e2550489ebb3795f58b243da74a1c27ae | /python/plot_daily_solar_energy.py | dcf30c21d78a663dfaca75668a7998236822581c | [] | no_license | SEL-Columbia/ss_sql_views | 28a901d95fe779b278d2a51aec84d6bf51245c02 | d146fd96849a4d165f3dc3f197aadda804a2f60a | refs/heads/master | 2021-01-01T19:35:18.999147 | 2012-05-10T18:43:36 | 2012-05-10T18:43:36 | 3,020,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | '''
plot_daily_solar_energy.py
==============================
uses the midnight values of the reported cumulative kWh to generate
a daily report of energy delivered to the battery
only reports on days where there are two consecutive readings
right now uses numpy to do differentiation, should use postgres lag instead
... | [
"danielrsoto@gmail.com"
] | danielrsoto@gmail.com |
50a70d665e3a1ff4e1a9f9a53f1059cb92335f0e | d35167f7ab29813d926bd702fa652090556befdf | /generated/test_MoonBlvd_tad_IROS2019.py | fe292ec69895284f2b58609e7050fe5a27f4fbfe | [] | no_license | jansel/pytorch-jit-paritybench | 65e5311d43daf5065beac52a68488ce188199fa8 | 7e55a422588c1d1e00f35a3d3a3ff896cce59e18 | refs/heads/master | 2023-08-12T04:43:16.669114 | 2023-06-08T17:36:32 | 2023-06-08T17:36:32 | 270,464,378 | 35 | 15 | null | 2023-06-08T17:36:34 | 2020-06-07T23:42:50 | Python | UTF-8 | Python | false | false | 11,483 | py | import sys
_module = sys.modules[__name__]
del sys
config = _module
A3D_download = _module
A3D_split = _module
anomaly_measures = _module
rnn_ed = _module
trackers = _module
utils = _module
data_prep_utils = _module
eval_utils = _module
flow_utils = _module
fol_dataloader = _module
train_val_utils = _module
visualize_u... | [
"ybliang8@gmail.com"
] | ybliang8@gmail.com |
442e19fea6f5eefca17300bcd373e28f2cf4252b | f23cb520fc28df4cc00549836b0419cb04a3ea12 | /homeassistant/components/xiaomi_miio/binary_sensor.py | ca421486a353f7042f2c96d115fd230400b0398e | [
"Apache-2.0"
] | permissive | cgtobi/home-assistant | 0273adee3899ab0a4f3239c06619ed69ffa84a99 | b13e14b80cd0667b62228f3121cfe28ab5dfcd92 | refs/heads/dev | 2023-01-23T05:38:02.805066 | 2022-03-24T17:58:58 | 2022-03-24T17:58:58 | 91,916,194 | 1 | 0 | Apache-2.0 | 2020-08-27T12:52:10 | 2017-05-20T21:03:39 | Python | UTF-8 | Python | false | false | 8,683 | py | """Support for Xiaomi Miio binary sensors."""
from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
import logging
from homeassistant.components.binary_sensor import (
BinarySensorDeviceClass,
BinarySensorEntity,
BinarySensorEntityDescription,
)
from hom... | [
"noreply@github.com"
] | cgtobi.noreply@github.com |
6c1b68b9d40da4fc90059b3ddcde709deba188a0 | c0f86b926fc82baa633862896096c149dd9913cf | /Python/Numpy/Concatenate/Pypy3/solution.py | de28d2f999a0276902fe41444343428ac5f95099 | [] | no_license | qxzsilver1/HackerRank | 8df74dd0cd4a9dedd778cdecea395f4234eda767 | bcb1b74711a625d8ad329a3f9fdd9f49b1bebc54 | refs/heads/master | 2021-09-09T15:45:35.681284 | 2021-09-07T00:11:16 | 2021-09-07T00:11:16 | 75,671,896 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 528 | py | # Enter your code here. Read input from STDIN. Print output to STDOUT
def matrix_printer(arr,n,m):
for i in range(n):
if i == 0:
print('[[' + ' '.join(map(str, arr[0][0:m])) + ']')
elif i == n-1:
print(' [' + ' '.join(map(str, arr[n-1][0:m])) + ']]')
else:
... | [
"noreply@github.com"
] | qxzsilver1.noreply@github.com |
e841be16c600c39b5a87a129e088eaac21922d22 | 5cc204e2ecb9a756127e7c71633a1edcdb3e989b | /pylmp/InKim/BGF_generateRigidScan.py | 4582dd6a832f4c8a5fea3760c6e6fcd038c80431 | [] | no_license | hopefulp/sandbox | 1a1d518cf7b5e6bca2b2776be1cac3d27fc4bcf8 | 4d26767f287be6abc88dc74374003b04d509bebf | refs/heads/master | 2023-06-27T17:50:16.637851 | 2023-06-15T03:53:39 | 2023-06-15T03:53:39 | 218,209,112 | 1 | 0 | null | 2022-09-13T13:22:34 | 2019-10-29T05:14:02 | C++ | UTF-8 | Python | false | false | 4,346 | py | #!/home/noische/python
import sys
import getopt
import copy
import numpy as np
import tqdm
import bgf
import bgftools
import nutils as nu
usage = """
Generates BGF file with changed distances between two molecules.
This is useful to generate input structures for Rigid Coordinate Scan.
Usage: %s -b bgf_file -1 atom... | [
"hopefulp@gmail.com"
] | hopefulp@gmail.com |
2d8538f7bb2c08b6fd538d18d3dcbc1bfaeb3f2f | e8d4fe2361d71aef6519f666152f14137156159c | /impacket-0.9.11/build/lib.linux-i686-2.6/impacket/dcerpc/srvsvcserver.py | d80df6fc0ff0ff5fa473971bb1c06980322611fc | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"Apache-1.1",
"BSD-2-Clause"
] | permissive | kenzshi/DDoSProject | 11d7e676a150964a9f78f1b7e1df4468dd9d973f | 9587a2be7f4773d19a96a35d1128f5041f0472da | refs/heads/master | 2021-01-10T19:48:21.355849 | 2015-03-16T09:52:22 | 2015-03-16T09:52:22 | 30,205,639 | 42 | 32 | null | null | null | null | UTF-8 | Python | false | false | 14,619 | py | # Copyright (c) 2003-2012 CORE Security Technologies
#
# This software is provided under under a slightly modified version
# of the Apache Software License. See the accompanying LICENSE file
# for more information.
#
# $Id: srvsvcserver.py 910 2013-11-08 19:13:10Z bethus $
#
# Author: Alberto Solino
#
# Description:
# ... | [
"la236am@users.isi.deterlab.net"
] | la236am@users.isi.deterlab.net |
1121516406cec1116b90ef7fc536a6cd5afdd7c4 | e4e4c60ffa509f257afc915d4c6cd32c0cb7098c | /.history/app_20200919192647.py | b152935c7de29fa5e6e7fe1e9d5d974fae893d03 | [] | no_license | QianyueMa/Google-Health-Search-Project | 01dbd597780158f50eebfba2a228b505f8169726 | 6ef6b270dc7ab0826ad4f0338c9cd95d3571e19a | refs/heads/master | 2022-12-19T03:55:10.328167 | 2020-10-02T12:54:27 | 2020-10-02T12:54:27 | 296,495,736 | 0 | 0 | null | 2020-09-18T02:44:12 | 2020-09-18T02:44:11 | null | UTF-8 | Python | false | false | 4,557 | py | import numpy as np
import os
import json
import requests
import sqlalchemy
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine
import pandas.io.sql as pdsql
from config import pg_user, pg_password, db_name
from flask import Flask, jsonify, render_templ... | [
"ermiasgelaye@gmail.com"
] | ermiasgelaye@gmail.com |
aa6ee40b7126092195646dfd0576d6b0b5268e5e | 40392ca261eccaa02029f346eb95d518a6e11dbf | /tests/components/remote/test_device_trigger.py | dea93b4f20ccba08ba957bc99c75db7b466373e2 | [
"Apache-2.0"
] | permissive | sh00t2kill/home-assistant | d18ab78414e79aced57bc76b63ec1c9b338ab53c | 80bf632e2d713add17ab00a72510039de7d9bc78 | refs/heads/dev | 2023-02-20T22:05:30.496454 | 2023-02-09T01:15:29 | 2023-02-09T01:15:29 | 231,849,824 | 0 | 0 | Apache-2.0 | 2023-02-09T05:40:45 | 2020-01-05T00:57:52 | null | UTF-8 | Python | false | false | 10,890 | py | """The test for remote device automation."""
from datetime import timedelta
import pytest
import homeassistant.components.automation as automation
from homeassistant.components.device_automation import DeviceAutomationType
from homeassistant.components.remote import DOMAIN
from homeassistant.const import CONF_PLATFOR... | [
"noreply@github.com"
] | sh00t2kill.noreply@github.com |
ffab33f48afaa21acceac9a221d3a938167e30a7 | 1e3cf9c1341083675fa9b716f11c2834e2d18374 | /src/pyphoplacecellanalysis/GUI/Qt/Widgets/FigureFormatConfigControls/Uic_AUTOGEN_FigureFormatConfigControls.py | 1471ab3498cd9a74783e9e909c6996ce59f70161 | [
"MIT"
] | permissive | CommanderPho/pyPhoPlaceCellAnalysis | a60313c98b3ad2834c2bf101f3463714df092cf5 | 212399d826284b394fce8894ff1a93133aef783f | refs/heads/master | 2023-09-01T20:27:43.792099 | 2023-09-01T03:24:19 | 2023-09-01T03:24:19 | 444,885,155 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,253 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'c:\Users\pho\repos\pyPhoPlaceCellAnalysis\src\pyphoplacecellanalysis\GUI\Qt\Widgets\FigureFormatConfigControls\FigureFormatConfigControls.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file wi... | [
"CommanderPho@users.noreply.github.com"
] | CommanderPho@users.noreply.github.com |
6bf5d212d3f9e78a66b872cca4a156a02e57ff90 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_28126.py | df691b0e9135089fcfe0a9d13739e85615964559 | [] | 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 | 118 | py | # How to capture only part of regex
>>> re.search(r';Video=([A-Z]{2})', 'nt;Video=SD-H.264;D').group(1)
'SD'
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
6878a567d42d9e1757938e0bb0df53b84b7c730a | 65b9a63e8c132f32aeb56961968f5e363bd9a087 | /20191104_归一化层Normalization/layernorm_keras.py | a605fbdc0613d5284fffcc85ef6fd7daea5d15e2 | [] | no_license | 346644054/examples2019 | e70f13cfb56c3478fc6e335c730e0e70e70a6226 | 5f9777e7a887e635971156354f56ce065fa3f41e | refs/heads/master | 2022-04-09T03:52:52.973414 | 2020-02-28T03:05:02 | 2020-02-28T03:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 598 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
"""
haikou layernorm
fun:
save csv
env:
Win7 64bit;anaconda 1.7.2;python 3.5;tensorflow1.10.1;Keras2.2.4
pip3,matplotlib2.2.3,seaborn0.9.0
"""
__author__ = 'elesun'
import keras
from keras_layer_normalization import LayerNormalization
print... | [
"elesun2018@gmail.com"
] | elesun2018@gmail.com |
c27b9621db997cd404dc63ed5f55c13eb70acff6 | a462a24ff937e151e8151f3a1bdc9c3714b12c0e | /predictTime_8_341.py | a121fab73e52627b40d1d129c3dd16e4a194d2ce | [] | no_license | noeliarico/kemeny | b4cbcac57203237769252de2c50ce959aa4ca50e | 50819f8bf0d19fb29a0b5c6d2ee031e8a811497d | refs/heads/main | 2023-03-29T14:36:37.931286 | 2023-03-16T09:04:12 | 2023-03-16T09:04:12 | 330,797,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,620,512 | py |
import numpy as np
import pandas as pd
import time
import kemeny.azzinimunda.azzinimunda3 as am3
rep = 3
results = np.zeros(0).reshape(0,7+rep)
##############################################################
om = np.array([
[0,176,176,158,187,160,191,181],
[165,0,170,143,185,137,171,176],
[165,171,0,171,210,180,190,1... | [
"noeliarico@uniovi.es"
] | noeliarico@uniovi.es |
1db367d4918110b8a0232d642973173af2617b77 | 66e6360325b781ed0791868765f1fd8a6303726f | /TB2009/WorkDirectory/5141 Number Of Samples Over Threshold/Count_108535.py | b35a81682068d313d7f63d34b079e98224e2decc | [] | no_license | alintulu/FHead2011PhysicsProject | c969639b212d569198d8fce2f424ce866dcfa881 | 2568633d349810574354ad61b0abab24a40e510e | refs/heads/master | 2022-04-28T14:19:30.534282 | 2020-04-23T17:17:32 | 2020-04-23T17:17:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,819 | py | import FWCore.ParameterSet.Config as cms
process = cms.Process("EventDisplay")
process.maxEvents = cms.untracked.PSet(
input = cms.untracked.int32(-1)
)
process.source = cms.Source("HcalTBSource",
fileNames = cms.untracked.vstring("file:/tmp/chenyi/HTB_108535.root"),
streams = cms.untracked.vstring('Chun... | [
"yichen@positron01.hep.caltech.edu"
] | yichen@positron01.hep.caltech.edu |
63ba110f6605deb2d39ba210975b637a8084fbb7 | 90cad1df7b7d424feb8e71ff3d77e772d446afdf | /alembic/versions/3147aa982e03_payment_application_datetime.py | 434fce6bc4ce03501fa4352481a996f74989e5e0 | [] | no_license | razagilani/billing | acb8044c22b4075250c583f599baafe3e09abc2e | fd2b20019eeedf0fcc781e5d81ff240be90c0b37 | refs/heads/master | 2021-05-01T14:46:32.138870 | 2016-03-09T18:55:09 | 2016-03-09T18:55:09 | 79,589,205 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 592 | py | """payment application datetime
Revision ID: 3147aa982e03
Revises: 4f2f8e2f7cd
Create Date: 2014-07-23 15:43:12.596865
"""
# revision identifiers, used by Alembic.
revision = '3147aa982e03'
down_revision = '4f2f8e2f7cd'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.types import DateTime, Date
def... | [
"dklothe@skylineinnovations.com"
] | dklothe@skylineinnovations.com |
61dec1d0e6f74a2fecd66c82df9047590d148082 | cf9158e73c3630bb6c76f5a849014df79e550471 | /paixu.py | e6239d3c47c6e108dbaa197b9970e50d9d62b9ba | [] | no_license | starmerxhcd/python1 | dbcc589c101421a38644f22cb2b7af0378d0e534 | f7ed4b129a4ec22d0e1eed99081d9d695b769229 | refs/heads/master | 2021-08-12T00:55:18.466596 | 2017-11-14T07:48:51 | 2017-11-14T07:48:51 | 110,618,349 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,628 | py | # -*- coding: UTF-8 -*-
# 快速排序
# 从数列中取出一个数作为基准数->分区过程,最终结果小的数 基准数 大的数->再对左右区间重复分区过程,知道区间只有一个数
# s list l左标志位 r右标志位 paixu 0为升序 1为降序
def quick_sort(s,l,r,paixu=0):
if(l>=r):
return 'r必须大于l'
if(not isinstance(s,list)):
return '请传入list类型'
if(l<r):
i=l
j=r
x=s[l]
#... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
e6999cec4013893c63f3967582a644f9a6d64d51 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/apimanagement/v20191201/get_group.py | 1ad33fd5f9a9cc3080ea190180c967ae733fe384 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 4,723 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__a... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
cf000ffd91c88cbfd2f59ee93dc3e4697700ce28 | c1ef1f1fa94b5dbecff2ec09e94ae29a9094d82a | /20210701.py | c13acabf4bce257bd66f37de2cc21ee67c7fa201 | [] | no_license | MONKEYZ9/algorithm | cd6039a2232615e9bd40f63e2509fddf7edcede7 | 4ffde1ac47294af87152ed740962db600e0b9755 | refs/heads/main | 2023-08-14T17:01:54.792376 | 2021-10-01T06:14:55 | 2021-10-01T06:14:55 | 380,917,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | # 약수 구하기
# 약수는 나눠서 나머지가 0인 것을 나타낸다.
# 그럼 그것들을 모아서 리스트에 나오게끔 하면 되다.
def solution(n):
num_list = []
for i in range(1, n+1):
if n % i == 0:
num_list.append(i)
return num_list[0], num_list[-1]
n = int(input())
max, min = solution(n)
print(max, min)
lsitasd = list(range(10, 0,-1))
print... | [
"sangmin3285@gmail.com"
] | sangmin3285@gmail.com |
c4c49205364f01979a89041cba0306dc7b3714a1 | 1a5e3871a403057fbbc3f0914a931fc0a6bf06c3 | /Server/app/docs/__init__.py | c1df725028415f127e2c74e054d89fcb8f008df7 | [
"MIT"
] | permissive | DSM-DMS/DMS-Backend-API-v2 | ec754b575bfa3ef831efaae242f0a8203c595dd1 | dfb49879ce81d7a3c1c4cda47b1de150f245cd86 | refs/heads/master | 2021-05-04T00:03:17.912351 | 2018-04-06T13:51:25 | 2018-04-06T13:51:25 | 120,405,963 | 0 | 0 | MIT | 2018-02-18T14:39:13 | 2018-02-06T05:25:05 | Python | UTF-8 | Python | false | false | 1,884 | py | TEMPLATE = {
'schemes': [
'http'
],
'tags': [
{
'name': '관리자 계정',
'description': '관리자 권한으로 접근 가능한 계정/계정 관리 API'
},
{
'name': '계정',
'description': '학생 권한으로 접근 가능한 계정 API'
},
{
'name': '신청 정보 관리',
... | [
"city7310@naver.com"
] | city7310@naver.com |
62a54329673eecda6470aab943460239d2c97a22 | fb82fdf706863465b1f357cd1fa0447474cd8a70 | /ServerComponent/venv/Lib/site-packages/rsrc/contrib/db/mongo/serializer.py | 4ce65d072d3cc5cf44fb07e5acfe9000727e374a | [
"MIT"
] | permissive | CDU55/FakeNews | d79e2a069b3f1392f779d5b2256cd54c696e789a | 707bd48dd78851081d98ad21bbdadfc2720bd644 | refs/heads/main | 2023-02-20T06:27:18.618837 | 2021-01-17T15:14:27 | 2021-01-17T15:14:27 | 305,167,221 | 0 | 1 | MIT | 2020-12-07T19:51:46 | 2020-10-18T18:16:49 | Python | UTF-8 | Python | false | false | 593 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from rsrc import settings
from jsonsir import Serializer
from jsonsir.contrib.intencoder import IntEncoder
from jsonsir.contrib.boolencoder import BoolEncoder
from jsonsir.contrib.regexencoder import RegexEncoder
from jsonsir.contrib.objectidencoder import ObjectIdEncoder
... | [
"48147775+BiancaChirica@users.noreply.github.com"
] | 48147775+BiancaChirica@users.noreply.github.com |
8a1620d7c5e238a937e8c5e317cd0d841bd6c9c1 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_12364.py | 078700cb2bbfce3105692f4e33e508d8b2f4b77d | [] | 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 | 150 | py | # backslash in a character set of a python regexp (how to specify 'not a backslash' character set)?
regexps.append({'left':r'[^\\]%.*', 'right':r''})
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
fd23120ffa6c03d72252d789dea7030132ea3bd4 | 31eadb37c1748ea37c9d978ae099f56f3d01d3be | /core/utils.py | ba5db3540ba38eb07995f3dd2da24fc7852637a7 | [] | no_license | geofferyj/simple_django_chat | daccf0b8e47b0a70d6bd4ad10da737da88fcc0a1 | ad9606bc42528bc24448e9786665f7fae034e51f | refs/heads/master | 2023-08-12T19:13:32.992640 | 2021-10-14T04:52:00 | 2021-10-14T04:52:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | from django.contrib.auth.models import AnonymousUser
from channels.db import database_sync_to_async
from django.db import close_old_connections
from rest_framework.authtoken.models import Token
from channels.middleware import BaseMiddleware
from channels.auth import AuthMiddlewareStack
from rest_framework.authenticati... | [
"geofferyjoseph1@gmail.com"
] | geofferyjoseph1@gmail.com |
7af3af409784414f72d30c21d0d452263f877838 | b5cba88ce8c86740c8c3453134610fd5bafbb8c4 | /AlgoExpert/Selection Sort/solution.py | 2f1ea5a4052470bf42473e09bd03a59a4df0f506 | [] | no_license | EduardoSantos7/Algorithms4fun | 55fcf9d515ea3b70b93298ac96a58d2ae68dee11 | 6ff182ed596b6322322b087f29e6ad98baec3f97 | refs/heads/master | 2023-07-23T01:38:08.216313 | 2023-07-23T01:35:58 | 2023-07-23T01:35:58 | 227,448,848 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | def selectionSort(array):
for i in range(len(array) - 1):
current_min = i
for j in range(i + 1, len(array)):
if array[j] < array[current_min]:
current_min = j
array[i], array[current_min] = array[current_min], array[i]
return array
| [
"eduardoluissd@gmail.com"
] | eduardoluissd@gmail.com |
42690924946bef5ab0da79ed1f252d7fc6198fff | 6e3d061f94468905841a918278a352d4e5df89a1 | /hashicorp_vault_client/test/test_body92.py | 87a8f24bd7cd68ac8fe9c87c8e3e6c826c7412f2 | [
"Apache-2.0"
] | permissive | drewmullen/HAC | 179a4188e6e6ce3a36d480e45f238fd0901a710f | fb185804fd244366f8f8d01df22835b3d96e7512 | refs/heads/master | 2020-08-03T12:13:08.785915 | 2019-10-03T18:33:04 | 2019-10-03T18:33:04 | 211,749,364 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | # coding: utf-8
"""
HashiCorp Vault API
HTTP API that gives you full access to Vault. All API routes are prefixed with `/v1/`. # noqa: E501
OpenAPI spec version: 1.2.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import unittest
... | [
"drew@nebulaworks.com"
] | drew@nebulaworks.com |
32102d490eaf01579a5fdfd91f758f8e60ddd1d3 | 3c6b3b0a92e5a290ba69d0f73af51ac82aff3509 | /exams/midterm2/list_set.py | 9e0137e47de684f4ff2f0f13a542abe3f3d2f362 | [] | no_license | sarae17/2019-T-111-PROG | ba6c6db7075acba16bbcd23e4c0d3db6e2bb374f | 017287b3300ec4fe809bfc81fee856ffb17b4800 | refs/heads/master | 2020-09-10T14:36:53.715479 | 2019-11-13T13:41:04 | 2019-11-13T13:41:04 | 221,722,173 | 1 | 0 | null | 2019-11-14T14:54:15 | 2019-11-14T14:54:14 | null | UTF-8 | Python | false | false | 1,018 | py | def unique_elements(a_list):
''' Returns a new list containing the unique elements in a_list '''
result = []
for elem in a_list:
if not elem in result:
result.append(elem)
return result
def make_sorted_set(a_list):
a_set = unique_elements(a_list)
return sorted(a_set)
def in... | [
"hrafnl@gmail.com"
] | hrafnl@gmail.com |
19c07d874f40176edcbf9fe01161f45a8eab33ac | acf314ab0fa399018764b2ebd96e33c66362994e | /0x0F-python-object_relational_mapping/model_city.py | de7071389d2f251afb219add79ea14ca20dfe060 | [] | no_license | glyif/holbertonschool-higher_level_programming | 98f9c2da0b71a4e9e2dd9f6fde755875e9015f34 | 14c02d79e2008db1b992b08f9faa55b20dbe0691 | refs/heads/master | 2021-01-20T06:53:16.179354 | 2017-09-28T18:14:12 | 2017-09-28T18:14:12 | 89,939,980 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 471 | py | #!/usr/bin/python3
"""
City Base Model
"""
from sqlalchemy import Column, Integer, String, ForeignKey
from model_state import Base, State
class City(Base):
"""
City Model
tablename: cities
id: id
name: name
state_id: state_id
"""
__tablename__ = "cities"
id = Column(Integer, aut... | [
"122@holbertonschool.com"
] | 122@holbertonschool.com |
e0fade2adeb0017c44bf7145e021bf79ff8828c2 | edfdc0d3a2fdeed95ba7aa3d0e198eb9dafe4064 | /operator_api/ledger/migrations/0034_auto_20180921_1222.py | 2fd8e466f164d186fb24a45d8da3bf7466401d5e | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | xiaobai900/nocust-hub | 880e72ba4e1d324ae36adea6c03c9761a7d91621 | 76f49f9b8a6c264fcbe9e0c110e98031d463c0a8 | refs/heads/master | 2023-05-28T08:18:17.402228 | 2020-11-01T19:48:17 | 2020-11-01T19:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.8 on 2018-09-21 12:22
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ledger', '0033_transfer_cancelled'),
]
operations = [
migrations.RenameField(
... | [
"guillaume@felley.io"
] | guillaume@felley.io |
f649243082383177f106b99b34768aba67f6e947 | 7c2e909991d608845bf9afca58909949cf056d2f | /solid/web/libs/session.py | c41ce7bb43be48d319fbea8dbf45095dfecac886 | [] | no_license | martinrusev/solid | a176dfc937865caafb485b111e288cda5c0a1376 | af2a43e644653d08a5d5d26a5ad5b6bf33e4ffe4 | refs/heads/master | 2020-05-20T16:41:55.327281 | 2013-07-01T08:31:19 | 2013-07-01T08:31:19 | 10,189,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,548 | py | # -*- coding: utf-8 -*-
"""
Sessions module for the Tornado framework.
Milan Cermak <milan.cermak@gmail.com>
USAGE:
======
Every session object can be handled as a dictionary:
self.session[key] = value
var = self.session[key]
The session data is saved automatically for you when the request
handler finishes.
Tw... | [
"martinrusev@zoho.com"
] | martinrusev@zoho.com |
96d2a76bc48ba275b4dc54827f951e5329d02f4b | 68d5dfd61fc2ea4dce4046d4ab83b5e837288781 | /trax/models/research/layerdrop_transformer.py | fa2378cea529ddab22e5f0c69245d9e777eabaca | [
"Apache-2.0"
] | permissive | lukaszkaiser/trax | e1bf055c40c1c2c69726b0fe23f3de87c2e6ec6f | d875d804b8503d36b5dba493efa22ace86bb68f0 | refs/heads/master | 2023-08-17T11:12:47.806355 | 2021-09-29T21:57:02 | 2021-09-29T21:57:02 | 411,838,526 | 3 | 0 | Apache-2.0 | 2021-09-29T21:46:56 | 2021-09-29T21:46:55 | null | UTF-8 | Python | false | false | 11,461 | py | # coding=utf-8
# Copyright 2021 The Trax 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 applicable law or a... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
87f6a95198355d88ac93093a58294e5b1c64dcf4 | 8f64d50494507fd51c0a51010b84d34c667bd438 | /BeautyForMe/myvenv/Lib/site-packages/win32/scripts/backupEventLog.py | 1a72db1578c00a5a37fa7d7486d95356f6238705 | [
"MIT"
] | permissive | YooInKeun/CAU_CSE_Capstone_3 | 5a4a61a916dc13c8635d25a04d59c21279678477 | 51405c4bed2b55661aa0708c8acea17fe72aa701 | refs/heads/master | 2022-12-11T15:39:09.721019 | 2021-07-27T08:26:04 | 2021-07-27T08:26:04 | 207,294,862 | 6 | 1 | MIT | 2022-11-22T04:52:11 | 2019-09-09T11:37:13 | Python | UTF-8 | Python | false | false | 1,040 | py |
# Generate a base file name
import time, os
import win32api
import win32evtlog
def BackupClearLog(logType):
datePrefix = time.strftime("%Y%m%d", time.localtime(time.time()))
fileExists = 1
retry = 0
while fileExists:
if retry == 0:
index = ""
else:
index = "-%d" % retry
try:
fname = os.path.join(wi... | [
"keun0390@naver.com"
] | keun0390@naver.com |
e4781373c7e3b7491d6ba5776799f89dbb0ac3ec | e724c4340ddf8a99fe7d887b5cc5453e46e7eb29 | /src/main/python/pgshovel/streams/sequences.py | a2a0f8037ef84174e19d62a735d20e0797e5ace0 | [
"Apache-2.0"
] | permissive | fuziontech/pgshovel | 1789369e2db6c82deba08bb86504840cef705d8f | 5107a9885785f702340d421bbae9f6b82f44e98a | refs/heads/master | 2021-01-17T07:07:25.383805 | 2015-08-14T08:33:54 | 2015-08-14T17:15:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,271 | py | """
Tools for validating input streams.
"""
import logging
logger = logging.getLogger(__name__)
class SequencingError(Exception):
"""
Error raised when a message contains an invalid sequence value.
"""
class InvalidPublisher(SequencingError):
"""
Error raised when a message is received from an... | [
"ted@kaemming.com"
] | ted@kaemming.com |
783e84a8fb9c3cbbecc3557157aa5917430ac426 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_164/ch128_2020_04_01_18_11_42_129452.py | ab64e7a6ec6a5e0b2d75d17984dba66242fc56bb | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | sim = ["sim"]
nao = ["nao"]
esta_se_movendo = input("Está se movendo?")
if esta_se_movendo in sim:
se_move = input("Deveria se mover?")
if se_move in sim:
print("Sem problemas!")
elif se_move in nao:
print("Silver Tape")
if esta_se_movendo in nao:
nao_se_move = input("Derveria se mover... | [
"you@example.com"
] | you@example.com |
d782c90e1f40be5b2502d577a699d8d716c9955b | 1b4672de3ee7eb823fb2a238ea767fe0e1e11e7e | /shared/migrations/0001_initial.py | 0c89461bd8ba3895f44aa18c3d23aaeb018a4b11 | [] | no_license | FriedrichK/gamecoach | ce6510115e58286cc5eb56ddfbd35e7457639379 | cfa0d8c686cbc7b48cfc86e1feabd30d575f3039 | refs/heads/master | 2016-09-06T04:08:52.746047 | 2014-11-03T21:20:39 | 2014-11-03T21:20:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,278 | py | from south.v2 import DataMigration
from django.conf import settings
class Migration(DataMigration):
def forwards(self, orm):
site = self._forward_ensure_primary_site_is_set_up_correctly(orm)
self._forward_ensure_facebook_provider_exists(orm, site)
def _forward_ensure_primary_site_is_set_up_co... | [
"friedrich@cartogami.com"
] | friedrich@cartogami.com |
a97a18124e03c1c5cba179560a3a8bcc88bc64ae | f3472d0f7c4c15d978dc74520ecebc7b6396da78 | /tests/http/test_request_data_property.py | 0d147ccbed4c4a77b5fe7fb35156fb3fa65c8468 | [
"MIT"
] | permissive | Lookyan/flex | a5b18e7f69ab4bc98ef810deebc22733b5346e4a | 284ea6d5b5a5f65d7f4abbe9d36ca6f31567c0ec | refs/heads/master | 2021-01-16T17:40:58.428296 | 2016-10-12T11:49:18 | 2016-10-12T11:49:18 | 67,237,824 | 0 | 1 | null | 2016-09-02T16:23:14 | 2016-09-02T16:23:13 | null | UTF-8 | Python | false | false | 898 | py | import pytest
import json
from flex.constants import EMPTY
from tests.factories import (
RequestFactory,
)
def test_null_body_returns_null():
request = RequestFactory(body=None)
assert request.data is None
def test_empty_string_body_returns_empty_string():
request = RequestFactory(body='')
asse... | [
"piper@simpleenergy.com"
] | piper@simpleenergy.com |
c600389a03e33cbfd54ea9b4103aba8b123f1cc5 | aa3f670fcc2b43d8a5eb8a131082510bed2eb4d8 | /scripts/ingestors/nass_quickstats.py | 2b7ee785badec8b6d8ea7c1b583e03b7621a4a51 | [
"MIT"
] | permissive | jamayfieldjr/iem | e0d496311d82790ad518c600c2fcffe44e834da1 | 275b77a65f3b12e26e6cbdb230786b9c7d2b9c9a | refs/heads/master | 2020-08-07T11:55:56.256857 | 2019-10-04T04:22:36 | 2019-10-04T04:22:36 | 213,439,554 | 1 | 0 | MIT | 2019-10-07T17:01:20 | 2019-10-07T17:01:20 | null | UTF-8 | Python | false | false | 5,165 | py | """Dump NASS Quickstats to the IEM database"""
from __future__ import print_function
import sys
import subprocess
import datetime
import os
import pandas as pd
from pyiem.util import get_dbconn
TMP = "/mesonet/tmp"
def get_file():
"""Download and gunzip the file from the FTP site"""
os.chdir("/mesonet/tmp")... | [
"akrherz@iastate.edu"
] | akrherz@iastate.edu |
94e54f003e8bf858139be8bc41ecdd20852a0d7b | 3e149e35fbe53c190d74da8b68a12a472e0e6552 | /footer_project/templatetags/footer_tags.py | f94449355897e353ddb401a08e4359feb5aeccc5 | [] | no_license | kamral/official_student_project | 20a5c02fc0a7769f209c33a8eeee6a3f748ea647 | fc585a20d46b858204c643cfa7f7b6f3e3a1655f | refs/heads/main | 2023-02-22T16:41:28.269882 | 2021-01-18T11:41:19 | 2021-01-18T11:41:19 | 323,295,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | from django import template
from footer_project.models import \
About_Company_Category,\
Opportunities_category,\
Ourpartners_category
register=template.Library()
@register.simple_tag()
def get_about_company_categories(name='get_about_company_categories'):
return About_Company_Category.objects.all(... | [
"kamral010101@gmail.com"
] | kamral010101@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.