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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
49517e70736f11514ca7a72baad84680a1fbc737 | 2ed13136c2139e994472df9ab0a0c1eebde1dd73 | /srcs/mahjong/model/hallModel.py | b809b01afdaeb68d48303ac14d2271792bdf0902 | [] | no_license | rolllyroman/monitoring | 5a98b312ef3ac04b758a807319473366861b7fbc | 5859af04ef15b6865ef7a4fb844168cfc6d93685 | refs/heads/master | 2020-03-27T17:42:58.542132 | 2018-09-10T06:21:53 | 2018-09-10T06:21:53 | 146,868,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,896 | py | #-*- coding:utf-8 -*-
#!/usr/bin/python
"""
Author:$Author$
Date:$Date$
Revision:$Revision$
Description:
大厅Model
"""
from web_db_define import *
from datetime import datetime,timedelta
from wechat.wechatData import *
from admin import access_module
from config.config import *
from datetime import datetime
import... | [
"1983654762@qq.com"
] | 1983654762@qq.com |
ed2d7ba12a554f73862f406384a7473d3bc00b64 | beaf759183cfb5a86aecdff12a85b572b6ad7d96 | /faro/test/test_faro_entrypoint.py | 4a49855e7bca5361034b5a94fa78c09ef3621453 | [
"MIT"
] | permissive | austinsonger/FARO | 6ad33318eb687a1be9deb725aef2edfc12d164d0 | dc075fa3af8d68ade571eeb14ff8359f28ee0083 | refs/heads/master | 2022-12-06T23:31:58.499815 | 2020-08-03T16:39:15 | 2020-08-03T16:39:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,401 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import unittest
import json
import argparse
import os
from os import path
from faro.faro_entrypoint import faro_execute
INPUT_FILE = 'sensitive_data.pdf'
INPUT_FILE_OCR = 'ocr.pdf'
INPUT_FILE_PROTECTED = 'protected.pdf'
INPUT_FILE_NO_METADATA = 'no_metadata.pdf'
INPUT_FILE... | [
"jose.torres@11paths.com"
] | jose.torres@11paths.com |
926f48063b1bb48ae00d07dc888717f3e602f13d | 3451a6d056098c83ff517960d1ecef51b35d266e | /blog_02/app_usuarios/views.py | 08f0a3f2b0f0672632b0e4a96daf608083748fed | [] | no_license | luisdebia123/blog_2 | aa9e3f03ebafdbad8741d30205dd1de5c48b83d0 | dc945114b7558e03e72dc084b48692a16fd8cee2 | refs/heads/master | 2023-05-28T11:54:03.444971 | 2021-06-17T04:23:14 | 2021-06-17T04:23:14 | 377,480,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | # app_detalle
import json
from django.shortcuts import render, redirect, get_object_or_404 #
from django.conf import settings
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required, permission_required
from django.contrib.auth.mixins import LoginRequiredMixin, UserPassesTestMixin... | [
"luis.debia@gmail.com"
] | luis.debia@gmail.com |
c2f3056d6eedeb364d87f6a1cf4eb4ee930dfc1f | af43615e07f2bfaa908d6d96b4c90f98ce3ad47b | /rdr_service/lib_fhir/fhirclient_3_0_0/models/auditevent.py | 1c26ac3c0771d8ba65433a426deca7d5f33fe601 | [
"BSD-3-Clause"
] | permissive | all-of-us/raw-data-repository | 11aa25385543f5f8ef706663b79ce181775c1c9a | 461ae46aeda21d54de8a91aa5ef677676d5db541 | refs/heads/devel | 2023-09-01T06:47:25.710651 | 2023-09-01T01:18:56 | 2023-09-01T01:18:56 | 66,000,771 | 46 | 22 | BSD-3-Clause | 2023-09-14T21:06:38 | 2016-08-18T13:47:08 | Python | UTF-8 | Python | false | false | 13,760 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 3.0.0.11832 (http://hl7.org/fhir/StructureDefinition/AuditEvent) on 2017-03-22.
# 2017, SMART Health IT.
from . import domainresource
class AuditEvent(domainresource.DomainResource):
""" Event record kept for security purposes.
A re... | [
"noreply@github.com"
] | all-of-us.noreply@github.com |
08116a00157fc76d178c93e63aba8866d03e1c4e | b9963ffb80aad7e057bc375edb85ac7ed5a837d0 | /adventofcode2019/02.py | 1f51e1764d11d946029f5ae774e31ffbf6f4705c | [
"MIT"
] | permissive | matslindh/codingchallenges | a2db9f4579e9f35189f5cdf74590863cf84bdf95 | a846e522f7a31e988c470cda87955ee3ef20a274 | refs/heads/main | 2022-12-23T15:56:19.776354 | 2022-12-15T21:03:37 | 2022-12-15T21:03:37 | 76,491,177 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,733 | py | def run(memory):
pc = 0
while memory[pc] != 99:
if memory[pc] == 1:
memory[memory[pc+3]] = memory[memory[pc+1]] + memory[memory[pc+2]]
elif memory[pc] == 2:
memory[memory[pc+3]] = memory[memory[pc+1]] * memory[memory[pc+2]]
pc += 4
return memory
def e... | [
"mats@lindh.no"
] | mats@lindh.no |
84c5d9573226e76a809023134456aa0ebbf95103 | 639359b9cfc88e02968923c9dfc57d626cdaec9b | /boardapp/board/migrations/0004_board.py | d7726e44bbd0dfeab8ee0697fc670fc156bdeaec | [] | no_license | ElvinKim/django-angular-board-project | ee220585a1f64804dff718066ca2d00f749e8c6c | de06a560c16a4f1db66afb15e54471ad0e9d104b | refs/heads/master | 2021-01-20T21:11:51.009496 | 2019-02-09T07:04:46 | 2019-02-09T07:04:46 | 62,854,114 | 3 | 1 | null | 2018-11-07T09:46:29 | 2016-07-08T02:55:53 | Python | UTF-8 | Python | false | false | 939 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.7 on 2016-07-11 05:38
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('board', '0003_delete_board'),
]
operations = [
migration... | [
"bonwho09@gmail.com"
] | bonwho09@gmail.com |
ed41664cc42a14be55f7006ebf125f618d472233 | 4e186c81ba3ad30b98e76eb6b684b66b8a5c61a8 | /src/devilry_settings/devilry_settings/default_settings.py | 778740418c78bdd373f7ead000bb57d845e9db90 | [] | no_license | unioslo/devilry-django | 0805e9d691586f17e52cef142de5ef4c232a3665 | 29b250ba1ed843e90bc70bc50561ab09a8c96721 | refs/heads/master | 2020-12-31T07:19:03.162554 | 2014-04-10T12:14:54 | 2014-04-10T12:14:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,426 | py | # Enable the Celery task queue
import djcelery
djcelery.setup_loader()
########################################################################
#
# Defaults for django settings
# - See: https://docs.djangoproject.com/en/dev/ref/settings/
#
########################################################################
DEBU... | [
"post@espenak.net"
] | post@espenak.net |
e81b788920912c0d9f56722dd3d855601c8582d6 | 40b42ccf2b6959d6fce74509201781be96f04475 | /mmocr/datasets/base_dataset.py | 5a39bf46548e9d20996abe52a3d2ffdda518eaeb | [
"Apache-2.0"
] | permissive | xdxie/WordArt | 2f1414d8e4edaa89333353d0b28e5096e1f87263 | 89bf8a218881b250d0ead7a0287526c69586c92a | refs/heads/main | 2023-05-23T02:04:22.185386 | 2023-03-06T11:51:43 | 2023-03-06T11:51:43 | 515,485,694 | 106 | 12 | null | null | null | null | UTF-8 | Python | false | false | 5,469 | py | # Copyright (c) OpenMMLab. All rights reserved.
import numpy as np
from mmcv.utils import print_log
from mmdet.datasets.builder import DATASETS
from mmdet.datasets.pipelines import Compose
from torch.utils.data import Dataset
from mmocr.datasets.builder import build_loader
@DATASETS.register_module()
class BaseDatas... | [
"xudongxie77@gmail.com"
] | xudongxie77@gmail.com |
e23459a3a02e02800b2ef6783cb1df6e5086e855 | d16fbe6ec22af65fb21e31839f3565cee6c32739 | /bin/casasim_go_v20190816.py | 7d1ee42466cc0d0c2a41374581f1c2aabd515542 | [] | no_license | 1054/Crab.Toolkit.PdBI | 4320ae59fc9e0c7e4334deb8e6b65aafd57a6321 | 037a589586c61ac0b27bbe5e1b556532847e85fb | refs/heads/master | 2023-08-13T13:42:39.282276 | 2023-07-28T20:15:27 | 2023-07-28T20:15:27 | 62,636,065 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,490 | py | #!/usr/bin/env python
#
# This code needs to be ran in CASA.
#
# This code simulates ALMA data.
#
# Usage:
# casa
# execfile(\'casasim_go.py\') <TODO>
#
# Usage 2:
# casa
# sys.path.append('/Users/dzliu/Cloud/Github/Crab.Toolkit.PdBI/bin')
# simfreq = '339.0 GHz'
# simcell = '0.062 arcsec'
... | [
"liudz1054@gmail.com"
] | liudz1054@gmail.com |
754c57955dc4711c3f1b16359dad22056c067dde | d97b9dc98c65ed3114a6449e0dab9c6c9bd1c01a | /tests/parser_tests.py | 7a9a7b1dc3b44895dab24b0cf46a9bec9402325c | [
"MIT"
] | permissive | blitzmann/evepaste | 19f7edbb0d15e44e898f575952d6322fe60a18ce | 78b2ca1553b0773e68978bce6858d37f445a927e | refs/heads/master | 2021-01-18T09:28:00.967532 | 2014-07-23T05:43:28 | 2014-07-23T05:43:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | from evepaste import parse
from tests import parsers, TableChecker
ALL_TABLES = [parsers.ASSET_TABLE,
parsers.BOM_TABLE,
parsers.CARGO_SCAN_TABLE,
parsers.CHAT_TABLE,
parsers.CONTRACT_TABLE,
parsers.DSCAN_TABLE,
parsers.EFT_TABLE,
... | [
"k3vinmcdonald@gmail.com"
] | k3vinmcdonald@gmail.com |
84bb6640e82b66ac5cf41c0c71d175c99bde1072 | c6123c9a071746cd72a7797e47cc6dfb6efc3f26 | /com/old/nlp/user_portrait_analysis/user_portrait_analysis.py | 85717da4a2f89140eaa74aeabc34c4178850c4ee | [] | no_license | happiless/AI | 74144d842e61a9c1ef09b6e4fe4b3b09cae285c5 | 31b8bd1e890a2d0519c65958da198a504ffe2e2d | refs/heads/master | 2023-08-07T18:35:54.509458 | 2020-11-23T18:47:29 | 2020-11-23T18:47:29 | 262,650,975 | 0 | 0 | null | 2023-07-06T21:36:58 | 2020-05-09T20:13:23 | Python | UTF-8 | Python | false | false | 11,048 | py | # 用户画像-案例
# 基于用户搜索关键词数据为用户打上标签(年龄,性别,学历)
# 整体流程
# (一)数据预处理
# 编码方式转换
# 对数据搜索内容进行分词
# 词性过滤
# 数据检查
# (二)特征选择
# 建立word2vec词向量模型
# 对所有搜索数据求平均向量
# (三)建模预测
# 不同机器学习模型对比
# 堆叠模型
# 将原始数据转换成utf-8编码,防止后续出现各种编码问题
# 由于原始数据比较大,在分词与过滤阶段会比较慢,这里我们选择了原始数据中的1W个
import csv
import pandas as pd
# import jieba
# import jieba.posseg
impor... | [
"1484212228@qq.com"
] | 1484212228@qq.com |
053e7c20b755a200f86dc65acb5e2982c3213c7f | 40b27bdd261a0d8a9e100bc4e83c9f76b9ef710e | /contests/ABC1-100/ABC3/a.py | ef238598da9c9f189cd50d282d535fac16896483 | [] | no_license | kouma1990/AtCoder-code-collection | 486d612ae1def6df49f4aa3632e06aae7ff73d2f | a3040a6025b43fb7dd3522945dce05a2626a92aa | refs/heads/master | 2020-04-16T22:42:39.023009 | 2019-08-29T07:05:43 | 2019-08-29T07:05:43 | 165,980,129 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | n = int(input())
s = 0
for i in range(1,n+1):
s+=i
print(s*10000/n) | [
"kouma1990@gmail.com"
] | kouma1990@gmail.com |
a6579d48d9a950469d219fe1691ca39caed063b2 | 1e58cee5b12b157b7b646bd06b09806f97d7fb57 | /tests/test_regex.py | acfeb0755a29804cbe490ff40b52e34bf82e8ba3 | [] | no_license | DRMacIver/FALBS | 3397612430ea8fbd60cb6c2452ac47a74e912452 | efd9231da4e64fd98c025eef86a106db72c96e80 | refs/heads/master | 2020-05-24T16:14:41.739260 | 2018-02-20T11:14:18 | 2018-02-20T11:14:18 | 84,857,328 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,111 | py | from tests.helpers import regex
import falbs.regex as rd
from hypothesis import given, assume, strategies as st, example
from pyrsistent import pset
import pytest
@given(regex())
def test_can_build_a_dfa(re):
assume(rd.has_matches(re))
rd.build_dfa(re)
def test_char_classes_1():
assert rd.character_clas... | [
"david@drmaciver.com"
] | david@drmaciver.com |
812face81685d31ba6466f309191646f1a14e8ad | cf4958e16c65c4445d0c3e749bb407a452a1d722 | /tests/identify/test_identify.py | 2a4a77aacfaad76c0adf1e9794bbf74a80fecb94 | [
"Apache-2.0"
] | permissive | greschd/NodeFinder | a4775566f22c85f880bd34ea4bcbc24e4e006000 | 0204789afb13fcd1ffb86fd3c013e7debafb2590 | refs/heads/dev | 2021-10-08T04:14:51.391769 | 2020-03-13T20:37:59 | 2020-03-13T20:37:59 | 96,325,459 | 3 | 2 | Apache-2.0 | 2020-03-13T20:38:01 | 2017-07-05T14:00:37 | Python | UTF-8 | Python | false | false | 3,103 | py | # -*- coding: utf-8 -*-
# © 2017-2019, ETH Zurich, Institut für Theoretische Physik
# Author: Dominik Gresch <greschd@gmx.ch>
"""
Tests for the identify step.
"""
import os
import pytest
import numpy as np
import nodefinder as nf
@pytest.fixture
def run_identify(sample):
"""
Fixture to run the identificat... | [
"greschd@gmx.ch"
] | greschd@gmx.ch |
c5c9b79a713e8c961f1d210aadef8e76768b6c54 | adfb55c4fe2027986cabb49bf58081241bbba5cc | /SingletonPyton/SingletonPY.py | d5768bd1084ab78954806511859b90bec435b92c | [] | no_license | juanmontes1224/SingletonJavayPython | 04003061fcf0a990455689c90fa227e8e921541b | 68cd5f09709d503b8ab755676cc357bda7442077 | refs/heads/master | 2020-07-25T00:18:23.250152 | 2019-09-12T16:34:11 | 2019-09-12T16:34:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | import singleton
class PatronSingleton:
def __new__(obj):
try:
obj.instance
except AttributeError:
obj.instance = super(PatronSingleton, obj).__new__(obj)
return obj.instance
x = singleton.PatronSingleton()
y = singleton.PatronSingleton()
print("LA ... | [
"you@example.com"
] | you@example.com |
f9ce079989453c45688be5ac2affa1080c642420 | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/calenderNotification/testcase/firstcases/testcase4_021.py | 72fdf8a65de555c26803c8d914f81dd294d2e3ae | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,600 | py | #coding=utf-8
import os
import subprocess
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulat... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
6a80192155d9e0511c8cc5db8443d8d3333429d0 | f70da0d011ad2d96ffd6a693e6cd36f1e1df56cb | /Proyecto2/Optimization/Instructions/Assignment.py | fd3c7e81489ded2d4756af82502cbb7a0c91433f | [] | no_license | diemorales96/OLC_Proyecto2_201503958 | aeaa2ba013f9ed643b324537cc6493710d407226 | 7779c619e635b7dc7cc2e47130a1c654ac84889a | refs/heads/main | 2023-09-02T05:11:57.732595 | 2021-11-13T04:54:04 | 2021-11-13T04:54:04 | 427,418,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | from Optimization.C3DInstruction import *
from Optimization.Expressions import *
class Assignment(C3DInstruction):
def __init__(self, place, exp, line, column):
C3DInstruction.__init__(self, line, column)
self.place = place
self.exp = exp
def selfAssignment(self):
if type(self... | [
"diemorab@gmail.com"
] | diemorab@gmail.com |
f9265fb504e00e40640d423894f0bbbba00b6493 | 947fa6a4a6155ffce0038b11f4d743603418ad68 | /.c9/metadata/environment/ib_miniprojects_backend/covid_dashboard/tests/presenters/test_raise_invalid_username_exception.py | 016394fe848a71bbce6cc3bdafa9be4381937364 | [] | no_license | bharathi151/bharathi_diyyala | bd75e10639d7d22b332d5ce677e7799402dc4984 | 99f8657d010c790a0e4e4c9d6b57f81814784eb0 | refs/heads/master | 2022-11-21T12:43:48.401239 | 2020-07-23T09:05:52 | 2020-07-23T09:05:52 | 281,903,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,973 | py | {"filter":false,"title":"test_raise_invalid_username_exception.py","tooltip":"/ib_miniprojects_backend/covid_dashboard/tests/presenters/test_raise_invalid_username_exception.py","undoManager":{"mark":29,"position":29,"stack":[[{"start":{"row":3,"column":60},"end":{"row":3,"column":70},"action":"remove","lines":["COMMEN... | [
"bharathi151273@gmail.com"
] | bharathi151273@gmail.com |
39887b28df78f262c8bbab74d1632da71f0305cb | 13130259156f6f9d16670cea88aa2608dd477d16 | /goeievraag/api.py | da5550ee4d634d841e456869f5e506e812c80368 | [] | no_license | fkunneman/DiscoSumo | d459251d543be5f4df38292a96f52baf4b520a0b | ed8f214834cf0c2e04a3bc429253502f7e79fbf8 | refs/heads/master | 2022-12-14T13:34:41.496963 | 2019-07-31T15:57:02 | 2019-07-31T15:57:02 | 140,422,779 | 2 | 1 | null | 2022-12-08T04:57:55 | 2018-07-10T11:36:00 | Python | UTF-8 | Python | false | false | 689 | py | import json
from flask import Flask, request
from main import GoeieVraag
app = Flask(__name__)
model = GoeieVraag()
@app.route("/rank", methods=['GET'])
def search():
'''
:return: return the 10 most semantic-similar questions to the query based on our official sysmte
'''
questions = {'code': 400}
... | [
"thiago.castro.ferreira@gmail.com"
] | thiago.castro.ferreira@gmail.com |
88aef09482138586ab261da2c44dcb42137269ec | e8912ed90e97730b465b1e65084c1dbcc741a73e | /기본/Cage D4/practice.py | 61641fe72db9d47335a7aec6862d65842133b0aa | [] | no_license | yhnb3/Algorithm_lecture | a0dcefc27ed17bec3cadae56d69e3cc64239cbfb | 461367e907e2b8a6a0cdc629e6a9029d9b03fba1 | refs/heads/master | 2020-12-22T05:39:05.412680 | 2020-04-10T09:16:19 | 2020-04-10T09:16:19 | 236,685,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | import sys
sys.stdin = open('samsung_bus.txt')
T = int(input())
for tc in range(1, T + 1):
N = int(input())
A = [list(map(int, input().split())) for _ in range(N)]
P = int(input())
C = [list(map(int, input())) for _ in range(P)]
cnt = [0] * 5002
print(C)
for i in range(N):
for j i... | [
"yhnb33@gmail.com"
] | yhnb33@gmail.com |
bb6f61c1e8ff19905364983a96a89e0015f61066 | bc441bb06b8948288f110af63feda4e798f30225 | /anxin_service_sdk/model/easy_flow/target_info_pb2.py | bb13e8970970155b8556c9e7d1ab4fbeac6f2cce | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | true | 11,758 | py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: target_info.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf... | [
"service@easyops.cn"
] | service@easyops.cn |
8207e03ca2def6f397ee315a6a5d7197f231c0b7 | e51c1abe850bacebaed50db66cf05f613db8c2f6 | /djangoevents/djangoevents/settings.py | b13380b36ea4611488a6ef4c35face2ce45651f9 | [] | no_license | zurcx/bkp_provi_djangoevents | 26a5932c170b52b2dd0e983265778d35bb9103ad | b7b4e5ec6ca3730c0c52b7e10341b10157104737 | refs/heads/master | 2021-01-19T13:33:25.967838 | 2013-06-10T12:43:08 | 2013-06-10T12:43:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,302 | py | # Django settings for djangoevents project.
import os
PROJECT_ROOT = os.path.dirname(__file__)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2... | [
"luizfabiodacruz@gmail.com"
] | luizfabiodacruz@gmail.com |
2b40d9cd03bf736e19b0d5cf91b979b04c27b6f2 | 4f3e9294fff97ec4d14bfa43e45501a5ba53de00 | /ver0028/py_subplot2.py | c752457f7da5ccf4fa5e05eaba84f239d2189e43 | [] | no_license | corrod/mittet_main | 6e7264df1d93d8f00437d4ab153d9c906057ce13 | 4dc60eee8ca1daf9ef70fd10ed300b6fa6a1e67d | refs/heads/master | 2021-01-06T20:38:30.150942 | 2015-02-26T05:17:44 | 2015-02-26T05:17:44 | 20,375,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,452 | py | # coding:utf-8
from pylab import *
import numpy as np
import scipy as sp
import matplotlib.pyplot as plt
f = figure()
subplots_adjust(hspace=0.001)
ax1 = subplot(411)
data1 = np.loadtxt('./ex1010.d')
x1 = data1[:,0]
y1 = data1[:,1]
plt.plot(x1,y1)
ax2 = subplot(412)
data2 = np.loadtxt('./ex1020.d')
x2 = data2[:,0]... | [
"takuya025@gmail.com"
] | takuya025@gmail.com |
a1638f815e06cb7c87660b8bb36c0ca73466c002 | aa9f21f74196960ab57ffa0ff664b2a19de17e0b | /surrogate/files/moeaJSON.py | 18cd24118fa15aa75333f0d8743d49d67f29db5d | [
"MIT"
] | permissive | onlymezhong/Surrogate-Model | 36a73a40f38bc9e4d86123a2a12f11a369195024 | 1e47b5eaff74ee3491ef436dd604fe2bc3af8f57 | refs/heads/master | 2021-04-28T22:54:48.947536 | 2016-12-22T15:38:09 | 2016-12-22T15:38:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,651 | py | import json
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.pyplot import cm
class JSON(object):
def __init__(self, fileName, numVar, numPop, numCon, numObj, numGen):
self.fileName = fileName
self.numPop = numPop
self.numVar = numVar
self.numCon = numCon
... | [
"quanpan302@hotmail.com"
] | quanpan302@hotmail.com |
d67369c8830125c0b3fbd5e61988f907aa13951b | f8d3f814067415485bb439d7fe92dc2bbe22a048 | /solem/examples/ch1_morphology.py | e0fe53f9ce60b8c8db29fecba431b2392b479042 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | gmonkman/python | 2f9ab8f159c01f6235c86cb0cd52062cd3fdedd3 | 9123aa6baf538b662143b9098d963d55165e8409 | refs/heads/master | 2023-04-09T15:53:29.746676 | 2022-11-26T20:35:21 | 2022-11-26T20:35:21 | 60,254,898 | 0 | 2 | null | 2023-03-24T22:58:39 | 2016-06-02T10:25:27 | Python | UTF-8 | Python | false | false | 649 | py | from __future__ import print_function
from PIL import Image
from numpy import *
from scipy.ndimage import measurements, morphology
"""
This is the morphology counting objects example in Section 1.4.
"""
# load image and threshold to make sure it is binary
im = array(Image.open('./data/houses.png').convert('L'))
im =... | [
"gmonkman@mistymountains.biz"
] | gmonkman@mistymountains.biz |
65605a0e75c94747baeb0f7b40c8c21546c038ac | 6874015cb6043d1803b61f8978627ddce64963b4 | /tests/multiple_database/tests.py | 412daa7e38e768082e77c627eb9d41b4d2dd197d | [
"BSD-3-Clause",
"Python-2.0"
] | permissive | yephper/django | 25fbfb4147211d08ec87c41e08a695ac016454c6 | cdd1689fb354886362487107156978ae84e71453 | refs/heads/master | 2021-01-21T12:59:14.443153 | 2016-04-27T09:51:41 | 2016-04-27T09:51:41 | 56,134,291 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 96,272 | py | from __future__ import unicode_literals
import datetime
import pickle
from operator import attrgetter
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.core import management
from django.db import DEFAULT_DB_ALIAS, connections, router, transact... | [
"smileszzh@163.com"
] | smileszzh@163.com |
1ff723030c57bb8f1374e9cf2945a6d7a1a2132d | fd8f429f146ae2e4455b5f9a19dfdfec9dcaaabf | /utils/fairseq_mod/fairseq_mod/modules/multi_head_attention_temp.py | 206260b43ac447601c45434adb4acedd15a7021b | [
"MIT"
] | permissive | mayank-k-jha/Knowledge-Distillation-Toolkit | 274448a10b7f9108bf886120481137e77eb6c348 | 2d4a2b87c757462a980f0ed0c2a7a9ccea0be683 | refs/heads/main | 2023-04-02T21:50:51.083071 | 2021-03-19T21:22:12 | 2021-03-19T21:22:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,605 | py | """
We simplified the logics in torch.nn.functional.multi_head_attention_forward, and only kept operations that are relevant to wav2vec 2.0.
"""
from __future__ import division
import warnings
import math
import torch
from torch._C import _infer_size, _add_docstr
from torch.nn import _reduction as _Reduction
from ... | [
"zilunpeng@gmail.com"
] | zilunpeng@gmail.com |
76f9d4a607fd502c71c1b37b1e0d92d48b6e5780 | 6c14069181f313e84eeb524dd495e3882156ef50 | /samples/basic/crud/models/cisco-ios-xr/Cisco-IOS-XR-ip-domain-cfg/nc-read-xr-ip-domain-cfg-10-ydk.py | f4b17cee4430379ce46492911c842f1526de80e5 | [
"Apache-2.0"
] | permissive | decolnz/ydk-py-samples | dde0fd64fd4df12a215588766a0f1fb8baf07fcd | 7fa3f53c4d458c3332d372fb2fe3c46c5e036f07 | refs/heads/master | 2021-01-19T03:24:19.877929 | 2017-04-04T17:16:46 | 2017-04-04T17:16:46 | 87,310,389 | 1 | 0 | null | 2017-04-05T13:06:57 | 2017-04-05T13:06:57 | null | UTF-8 | Python | false | false | 2,723 | py | #!/usr/bin/env python
#
# Copyright 2016 Cisco Systems, 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 applicab... | [
"saalvare@cisco.com"
] | saalvare@cisco.com |
f312c517f23c163fd877ebd3e6cd379560543899 | 4df3712caff818c0554e7fbe4b97dee5fcfd8675 | /testCase/is/test_registerUsingPOST.py | b24a2919f9393b559958aa146eef8ac54bfcca4d | [] | no_license | Qingyaya/interface | 456057a740bd77ba6c38eda27dd1aef658e0add9 | 3ae37816f52ad8c45e192596a854848d8e546b14 | refs/heads/master | 2020-03-22T07:16:04.171904 | 2018-12-05T05:20:25 | 2018-12-05T05:20:25 | 139,690,021 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py |
#-*-coding:utf-8-*-
import unittest
import paramunittest
from common import myHttp
from common.get_csv import *
from common.Log import Log
from common.checkResult import checkResult
import os
apifile,datapath,casename=get_dataname(os.path.abspath(__file__))
load_csv=get_testdata(datapath)
package=get_package(os.path.... | [
"dongchunyi@idscloud.cn"
] | dongchunyi@idscloud.cn |
22e90031b1c24c768d56487151773a8de59326f2 | 88e03e66109adb6325ccace96f37b31e15c5e86c | /docopt/example1.py | 91b2d16a7304e135fafe8a1dc1496d307bbc53e8 | [] | no_license | abevieiramota/learning-python | 53ee5d158af33f627c65a7d3960083a1242713ed | c9dfa37e5dd547ab03d1ff67932ff28be70bfbeb | refs/heads/master | 2021-01-10T21:05:48.021976 | 2014-07-11T20:28:03 | 2014-07-11T20:28:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | """Naval Fate.
Usage:
naval_fate.py ship new <name>...
naval_fate.py ship <name> move <x> <y> [--speed=<kn>]
naval_fate.py ship shoot <x> <y>
naval_fate.py mine (set|remove) <x> <y> [--moored|--drifting]
naval_fate.py -h | --help
naval_fate.py --version
Options:
-h --help Show this screen.
--versi... | [
"abevieiramota@gmail.com"
] | abevieiramota@gmail.com |
a01ada960931c5a2d450ca04cd612c3e4ced1d26 | 4d2a789ccc9fac1380b80b558569e29a71980c0f | /backend/model/open_chat/chatterbot_chat/chattrbot_chat.py | ef256414eafbdae32a642ceff4bfb9c5f2f4a4f0 | [] | no_license | zhuxianzhong/libot | d493853ca847498b7ea12fc22b62c8a4f831dd62 | 59f70c4e41e36f3743bd659d0fb038bedb40be72 | refs/heads/master | 2020-07-13T12:53:11.850328 | 2019-08-28T12:41:16 | 2019-08-28T12:41:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | # -*- coding: utf-8 -*-
# File: chatterbot_chat.py
# Author: Hualong Zhang <nankaizhl@gmail.com>
# CreateDate: 19-03-07
import os
import sys
# 模块路径引用统一回退到Libbot目录下
project_path = os.path.abspath(os.path.join(os.getcwd(), "../.."))
sys.path.append(project_path)
from chatterbot import ChatBot
from chatterbot.trainers im... | [
"nankaizhl@gmail.com"
] | nankaizhl@gmail.com |
fafe53a39da8ee583dc0c6eb3fcc4cee0ba2e479 | 6df76f8a6fcdf444c3863e3788a2f4b2c539c22c | /django code/p44/p44/settings.py | d6f5008e8a2e60f7f24dd5e91f4f61217b442cc7 | [] | no_license | basantbhandari/DjangoProjectsAsDocs | 068e4a704fade4a97e6c40353edb0a4299bd9678 | 594dbb560391eaf94bb6db6dc07702d127010b88 | refs/heads/master | 2022-12-18T22:33:23.902228 | 2020-09-22T13:11:01 | 2020-09-22T13:11:01 | 297,651,728 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,134 | py | """
Django settings for p44 project.
Generated by 'django-admin startproject' using Django 3.0.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import os
# Bui... | [
"36443209+basantbhandari@users.noreply.github.com"
] | 36443209+basantbhandari@users.noreply.github.com |
d845a2d41d812594b7e5c1c64f2625373db1d58c | 028e5d9ee8cc476459372843e759730faf4d7b73 | /Package/CONFIG.py | 12cf50ec1d6032598f68c4c67df58c27f64a788b | [
"Apache-2.0"
] | permissive | YuanYuLin/libiopccmd_client | a3635d59036ade6dfeacc0e556edb1fa16c7d65b | b9f320c28b631bb3ecea6289a2d50421a1561fd0 | refs/heads/master | 2021-01-11T19:05:30.422275 | 2017-04-23T04:54:37 | 2017-04-23T04:54:37 | 79,315,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | import ops
def MAIN_ENV(args):
env = {}
return env
def MAIN(args):
print "libiopccmd_client"
| [
"yuanyu.lin@gmail.com"
] | yuanyu.lin@gmail.com |
190a82839258ab6b37fcae6033559509b366b1d2 | ea57ef44636ce151b3ef5322466cdfcb02482515 | /tests/formatting/test_formatter.py | 14106396206bd4fd77b1e2c26fe6f06344ede303 | [
"MIT"
] | permissive | Sn3akyP3t3/pendulum | acb3dc5067576c4569a08b1d8a8ecfce918b4724 | 7ce170bdc64199d74e09e347402983f1bb015f63 | refs/heads/master | 2020-03-22T01:15:01.160870 | 2018-07-01T15:49:09 | 2018-07-01T15:49:09 | 139,292,657 | 0 | 0 | MIT | 2018-07-01T01:46:00 | 2018-07-01T01:46:00 | null | UTF-8 | Python | false | false | 7,274 | py | # -*- coding: utf-8 -*-
import pytest
import pendulum
from pendulum.formatting import Formatter
from pendulum.locales.locale import Locale
@pytest.fixture(autouse=True)
def setup():
Locale._cache['dummy'] = {}
yield
del Locale._cache['dummy']
def test_year_tokens():
d = pendulum.datetime(2009... | [
"sebastien@eustace.io"
] | sebastien@eustace.io |
8bb167bb9814265161c1b8eeddb4dcacc76b6bbf | 87879af0c48875acc14d7b31842f403cb29d93e3 | /isitfit/cli/core.py | 74f848a438e7cb075a711fcbda411d875f9bc413 | [
"Apache-2.0"
] | permissive | pgupta35/isitfit | bfcec5e03778837c7040a45fbc710c7d8dcc5366 | db69f0501486346e3794f1013ed0c57ce3895b8c | refs/heads/master | 2020-09-14T16:50:23.454724 | 2019-11-20T17:39:40 | 2019-11-20T17:39:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | # RuntimeError: Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment.
# Consult https://click.palletsprojects.com/en/7.x/python3/ for mitigation steps.
#
# Edit 2019-10-08: whatsapp's wadebug uses "click.disable_unicode_literals_warning = True"
# Ref: https://g... | [
"shadiakiki1986@gmail.com"
] | shadiakiki1986@gmail.com |
4f1e75369d5f0420fdc4f28eb1188153e869a7d9 | a34ec07c3464369a88e68c9006fa1115f5b61e5f | /B_HashTable/Basic/L0_1282_Group_the_People_Given_the_Group_Size_They_Belong_To.py | 92ea13493ced4cb225285f580300bf6fa20a0bcb | [] | no_license | 824zzy/Leetcode | 9220f2fb13e03d601d2b471b5cfa0c2364dbdf41 | 93b7f4448a366a709214c271a570c3399f5fc4d3 | refs/heads/master | 2023-06-27T02:53:51.812177 | 2023-06-16T16:25:39 | 2023-06-16T16:25:39 | 69,733,624 | 14 | 3 | null | 2022-05-25T06:48:38 | 2016-10-01T10:56:07 | Python | UTF-8 | Python | false | false | 440 | py | """ https://leetcode.com/problems/group-the-people-given-the-group-size-they-belong-to/
"""
class Solution:
def groupThePeople(self, groupSizes: List[int]) -> List[List[int]]:
cnt = defaultdict(list)
for i, x in enumerate(groupSizes):
cnt[x].append(i)
ans = []
fo... | [
"zhengyuan.zhu@mavs.uta.edu"
] | zhengyuan.zhu@mavs.uta.edu |
4a59b66d1aab3d4e8c93955f5bad4b91c49bb18f | b0a350df2e6eef86b753e2eff9e57b21bd113019 | /users/models.py | 9ea4638742a4c278f8a25a672944e04bdd4c7bab | [] | no_license | fazer1929/Go-Collab | 8ba92ce926bb163e50ffcf3eb4eecb29d8e0a94b | 75efb243ee6143603026dee45ca73aabf8d9ddff | refs/heads/main | 2023-02-24T01:08:25.440449 | 2021-01-30T21:50:08 | 2021-01-30T21:50:08 | 334,199,821 | 0 | 0 | null | 2021-01-30T21:30:58 | 2021-01-29T16:24:56 | HTML | UTF-8 | Python | false | false | 655 | py | from django.db import models
from django.contrib.auth.models import User
from django.db.models.signals import post_save
from django.dispatch import receiver
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE,null=True,blank=True)
bio = models.TextField(max_length=500, blank... | [
"abhishekagrawal8888@gmail.com"
] | abhishekagrawal8888@gmail.com |
69ac7f2c16d34374a622fb6417163aa64a013b79 | 1df82fa8ef888b74fb9095c9ade89e16895366b1 | /14.Lambdas and Buit In Functions - Exercise/06. Unique Numbers.py | 6980fd7dc051a806142c78f6ce701771e8ffbacc | [] | no_license | filipov73/python_advanced_january_2020 | 868eb4bc365f7774c373183760e7ac584e1bd20c | a5e24190ee08bd1a0534dc04f91a5ba1927d1b19 | refs/heads/master | 2020-11-26T14:07:12.423309 | 2020-02-23T15:20:13 | 2020-02-23T15:20:13 | 229,097,988 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | numbers = [float(x) for x in input().split()]
round_numbers = sorted(set(map(round, numbers)))
print(min(round_numbers))
print(max(round_numbers))
mul_x_3 = [x * 3 for x in round_numbers]
print(" ".join(map(str, mul_x_3)))
# min and max and multiply the numbers by 3.
# Print only the unique numbers in ascending ord... | [
"m_filipov@yahoo.com"
] | m_filipov@yahoo.com |
39079db82e3a8b93fef53ad1103579bf166f8128 | a99bf471ebc6b3753a17bfe74b711185e72d9194 | /map/cats.py | 737f1b41deff42b9cd67e2245c1de437339c47ed | [] | no_license | andrewpilon/decals-web | efd6ecaa00196636f7c2979b308eab1c96bfd971 | 50602dea0696f3e81e57f47cab435b3f1433e092 | refs/heads/master | 2020-04-03T13:26:11.428079 | 2018-10-24T11:13:51 | 2018-10-24T11:13:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37,308 | py | from __future__ import print_function
import os
import fitsio
if __name__ == '__main__':
import sys
sys.path.insert(0, 'django-1.9')
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'viewer.settings'
import django
django.setup()
from django.http import HttpResponse, StreamingHttpResponse
from ... | [
"dstndstn@gmail.com"
] | dstndstn@gmail.com |
6256100f755fc35f9df3f524d14acea287224c27 | 5ea2ff68ba98c8034d2f21d69752af45e9bf61dd | /imodels/rulefit/rulefit.py | 02990962779f4af1465bece5a0f7bb3dca8abaf8 | [] | permissive | Pacmed/interpretability-implementations-demos | 160181d03a0fd8c7276f602e33afa22a5138eb41 | 4b5f21da2ca8eb17e38185c00621df3fa1308695 | refs/heads/master | 2021-07-04T04:56:30.558899 | 2020-12-21T10:55:03 | 2020-12-21T10:55:03 | 201,427,811 | 1 | 1 | MIT | 2019-11-11T16:58:43 | 2019-08-09T08:40:32 | Jupyter Notebook | UTF-8 | Python | false | false | 21,997 | py | """Linear model of tree-based decision rules
This method implement the RuleFit algorithm
The module structure is the following:
- ``RuleCondition`` implements a binary feature transformation
- ``Rule`` implements a Rule composed of ``RuleConditions``
- ``RuleEnsemble`` implements an ensemble of ``Rules``
- ``RuleFit... | [
"chandan_singh@berkeley.edu"
] | chandan_singh@berkeley.edu |
73ce286191945ea0d7b3750e084b44c850201d99 | bbf7787d94e97d4e0c9bceb46203c08939e6e67d | /python_test_case/Data.py | de2ca81bcab87030d2f956c769b3e395ba99f41f | [] | no_license | llanoxdewa/python | 076e6fa3ed2128c21cdd26c1be6bc82ee6917f9c | 6586170c5f48827a5e1bcb35656870b5e4eed732 | refs/heads/main | 2023-06-16T05:31:52.494796 | 2021-07-09T09:04:30 | 2021-07-09T09:04:30 | 362,782,196 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 534 | py |
class Siswa:
def __init__(self,nama,kelas,nilai):
self.__nama = nama
self.__kelas = kelas
self.__nilai = nilai
def hasil(self):
return {
'nama':self.__nama,
'kelas':self.__kelas,
'nilai':self.__nilai
}
def getNama(self):
return self.__nama
def getKelas(self):
return self.__kelas
def getNi... | [
"llanoxdew4@gmail.com"
] | llanoxdew4@gmail.com |
802d6402d865c869adb1e04cefcef3152c37917e | 357fefa288745c9ab3bc276a7ef0bc815f3fec2a | /src/gui/descriptive_statistics.py | e5768c5bf81b94911ecfc0e7ac1bc4dd97c8ef83 | [
"MIT"
] | permissive | jdvelasq/techminer | 61da47f44719e462732627edcc1094fab6c173f1 | 7a34a9fd684ce56cfbab583fa1bb71c1669035f9 | refs/heads/main | 2023-03-15T23:26:22.876051 | 2023-03-13T21:47:24 | 2023-03-13T21:47:24 | 204,352,276 | 0 | 1 | MIT | 2019-12-09T02:37:11 | 2019-08-25T21:34:19 | Jupyter Notebook | UTF-8 | Python | false | false | 9,149 | py | import numpy as np
import pandas as pd
import ipywidgets as widgets
from ipywidgets import GridspecLayout, Layout
from IPython.display import display
from techminer.core.filter_records import filter_records
##
##
## Term extraction and count
##
##
def _extract_terms(x, column):
x = x.copy()
x[column] = x[c... | [
"jdvelasq@unal.edu.co"
] | jdvelasq@unal.edu.co |
8bd5f7297672cd1bcc6f7bac4d676841b7226b48 | f5c3fde6a1f0825ef03c73c659ad61a9ca15eac9 | /backend/course/api/v1/urls.py | d3fda365b5a60402915d8df5400dd7132d425b80 | [] | no_license | crowdbotics-apps/meira-20558 | 654cf2c71b7c1bb22a419dc4eb20f41391ca20bb | 2ff22fb39ca7c380389524805c21b70bf4c53611 | refs/heads/master | 2022-12-25T00:22:10.427658 | 2020-09-22T12:23:05 | 2020-09-22T12:23:05 | 297,630,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 944 | py | from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .viewsets import (
RecordingViewSet,
EventViewSet,
SubscriptionViewSet,
CourseViewSet,
GroupViewSet,
ModuleViewSet,
PaymentMethodViewSet,
SubscriptionTypeViewSet,
EnrollmentViewSet,
Lesson... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
f030a759d8cdbb9ea7ca151b2e0defbfaa9762d6 | 48894ae68f0234e263d325470178d67ab313c73e | /sa/profiles/DLink/DGS3100/get_interface_status.py | c9e8246ac2d799ba19927cd9ff87b7157fcd836d | [
"BSD-3-Clause"
] | permissive | DreamerDDL/noc | 7f949f55bb2c02c15ac2cc46bc62d957aee43a86 | 2ab0ab7718bb7116da2c3953efd466757e11d9ce | refs/heads/master | 2021-05-10T18:22:53.678588 | 2015-06-29T12:28:20 | 2015-06-29T12:28:20 | 118,628,133 | 0 | 0 | null | 2018-01-23T15:19:51 | 2018-01-23T15:19:51 | null | UTF-8 | Python | false | false | 2,088 | py | # -*- coding: utf-8 -*-
##----------------------------------------------------------------------
## DLink.DGS3100.get_interface_status
##----------------------------------------------------------------------
## Copyright (C) 2007-2014 The NOC Project
## See LICENSE for details
##----------------------------------------... | [
"dmitryluhtionov@gmail.com"
] | dmitryluhtionov@gmail.com |
72d33eb12312e3ec1ce19ff5b0ab6f6eae075df6 | 1d01149498a26385eb0e47b35a1045d37a1584b4 | /pyntcloud/io/ply.py | 938cdcd52aabd2ce9263e5e594e767cec8d040fe | [
"Unlicense"
] | permissive | iindovina/pyntcloud | f54c0dc528385bbeb1d37952abbfe631594e7060 | e2499f7f1a897d3ff0b526a12b88f3914a663067 | refs/heads/master | 2021-07-21T07:35:19.129049 | 2017-10-31T14:34:23 | 2017-10-31T14:34:23 | 107,396,333 | 0 | 0 | null | 2017-10-18T11:03:46 | 2017-10-18T11:03:46 | null | UTF-8 | Python | false | false | 7,055 | py | # HAKUNA MATATA
import sys
import numpy as np
import pandas as pd
from collections import defaultdict
ply_dtypes = dict([
(b'int8', 'i1'),
(b'char', 'i1'),
(b'uint8', 'u1'),
(b'uchar', 'b1'),
(b'uchar', 'u1'),
(b'int16', 'i2'),
(b'short', 'i2'),
(b'uint16', 'u2'),
(b'ushort',... | [
"daviddelaiglesiacastro@gmail.com"
] | daviddelaiglesiacastro@gmail.com |
e913c4515484c39cb110b8eeb50f63d53599c617 | cec916f882afbd09fe68f6b88879e68eaea976f6 | /bigmler/options/multilabel.py | c7cad984064814fe938c6fa487987c77e151eef4 | [
"Apache-2.0"
] | permissive | jaor/bigmler | d86db6d7950768d7ba3e21b5f29bc265467f4cad | bbf221e41ef04e8d37a511a35a63216b64689449 | refs/heads/master | 2023-04-26T12:07:49.428263 | 2023-04-12T15:22:20 | 2023-04-12T15:22:20 | 15,663,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,530 | py | # -*- coding: utf-8 -*-
#
# Copyright 2014-2023 BigML
#
# 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 ... | [
"merce@bigml.com"
] | merce@bigml.com |
e4f471f5de8a7768f739889d5f7bdae7996aecb4 | de75304d96e433f67dba3438f2456dd3dbb2ce08 | /scriptsLinAlg/06_matrix-properties.py | dd6fc05f9695dbbf6cadf91808dc93466ce05c6f | [] | no_license | dalerxli/slides_linear-algebra-intro | ef7486a2779d5cd6633222662c629eae0ee59997 | 9bdbafeecd620a13e2c152bc3eb331543a5d7674 | refs/heads/master | 2023-07-14T14:35:24.395828 | 2021-08-10T17:55:04 | 2021-08-10T17:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | #!/usr/bin/env python3
# _*_ coding: utf-8 _*_
import numpy as np
A = np.array([
[7, 1],
[2, -3],
[4, 8],
])
B = np.array([
[ 1, 6 ],
[-2, 3 ],
])
C = np.array([
[4, 1],
[7, 3],
])
# Associative
ABC = A.dot(B.dot(C))
AB_C = A.dot(B).... | [
"torresc.rafael@gmail.com"
] | torresc.rafael@gmail.com |
da6b586298b34518a6dec9ed0a3e1211f0ea97b6 | cda2c95ee6167a34ce9ba3ea25707469a2c357ca | /neural_augmented_simulator/old-code/simple_joints_lstm/dataset_ergoreachersimple_v2.py | ef2f878e4c98cdf6b58abc25f8daf9dec3c33b7a | [] | no_license | fgolemo/neural-augmented-simulator | f43d9a88187fbef478aba9b4399eaa59d8795746 | eb02f20d92e6775824dbac221771f8b8c6dda582 | refs/heads/master | 2020-06-23T15:50:35.957495 | 2020-03-06T21:16:34 | 2020-03-06T21:16:34 | 198,666,041 | 0 | 1 | null | 2019-12-04T22:19:27 | 2019-07-24T15:49:48 | Jupyter Notebook | UTF-8 | Python | false | false | 2,498 | py | import os
from torch.utils.data import Dataset
import numpy as np
class DatasetErgoreachersimpleV2(Dataset):
def __init__(self, path="~/data/sim2real/data-ergoreachersimple-v2.npz", train=True, nosim=False):
super().__init__()
ds = np.load(os.path.expanduser(path))
self.nosim = nosim
... | [
"fgolemo@gmail.com"
] | fgolemo@gmail.com |
b5aed2abd39b21240499c9a0569177c51db73fb1 | 436290052fdd3a7c8cabfdaffd9f8bf7ff6d325b | /analysis/generate_dendrogram_2.py | f04b5eb96a4f539e9f55923e418a54389b453ece | [] | no_license | mf1832146/bi-tbcnn | bcf7abc3bb8c6022c1b21aac481e6fe0ac21b40f | 309f5f16c3211f922fa04eed32fa7d6c58978faf | refs/heads/master | 2020-07-30T05:48:35.117150 | 2019-03-23T14:22:54 | 2019-03-23T14:22:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,937 | py | from scipy.cluster.hierarchy import dendrogram, linkage
import random
from matplotlib.pyplot import show
import matplotlib.pyplot as plt
from scipy.cluster.hierarchy import fcluster
from matplotlib import pyplot as plt
import numpy as np
import matplotlib.colors as colors
from sklearn.decomposition import PCA
from coll... | [
"bdqnghi@gmail.com"
] | bdqnghi@gmail.com |
bc7b26f53ee58f08c0235b1f7d00ab1788620dcd | 3899dd3debab668ef0c4b91c12127e714bdf3d6d | /venv/Lib/site-packages/tensorflow/python/util/decorator_utils.py | 4b4ce90e1210574d10a44de4deb88c68fb84c884 | [] | no_license | SphericalPotatoInVacuum/CNNDDDD | b2f79521581a15d522d8bb52f81b731a3c6a4db4 | 03c5c0e7cb922f53f31025b7dd78287a19392824 | refs/heads/master | 2020-04-21T16:10:25.909319 | 2019-02-08T06:04:42 | 2019-02-08T06:04:42 | 169,691,960 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,741 | py | # Copyright 2016 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... | [
"a@bogdanov.co"
] | a@bogdanov.co |
dd950c1d86e56494571de4f4f7db8c6f7925e6d9 | a5fcf5efa26615922ad3a8169d4f8911ab6cefe7 | /candidate/controllers.py | e034d3d0337471541f7c4b5a8e18b4d5aa910037 | [
"MIT"
] | permissive | eternal44/WeVoteServer | c0bc5ad96c0c72c6b4b3198a91ef44b6f347cc93 | acaae24d7cb0ec34ec4470247ea1072ee34510cb | refs/heads/master | 2021-01-15T12:44:19.988036 | 2016-04-28T05:03:42 | 2016-04-28T05:03:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,527 | py | # candidate/controllers.py
# Brought to you by We Vote. Be good.
# -*- coding: UTF-8 -*-
from .models import CandidateCampaignList, CandidateCampaignManager
from ballot.models import CANDIDATE
from config.base import get_environment_variable
from django.contrib import messages
from django.http import HttpResponse
from... | [
"dale.mcgrew@wevoteusa.org"
] | dale.mcgrew@wevoteusa.org |
4abad0338b29831728ac721fc4205a6c61efa18c | 48c4bb95c2d49ca9dca1e6356e61784d6f36a01d | /analysis/summary.py | b14e5896cb708693292283e6c2a96ccbab90bb1e | [] | no_license | afcarl/SpatialMoney | 2a5e5caf91ed7b0925317d4ec949d9ca4752f416 | 6c9339ae556c842f228cd1cce65842b5b346f060 | refs/heads/master | 2020-03-16T16:11:36.835280 | 2018-03-19T20:31:31 | 2018-03-19T20:31:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,032 | py | import numpy as np
import enum
import os
import matplotlib.pyplot as plt
class MoneyAnalysis:
def __init__(self, m0, m1, m2, interruptions):
self.m0 = m0
self.m1 = m1
self.m2 = m2
self.interruptions = interruptions
class MoneyAnalyst(object):
money_threshold = .75
@cl... | [
"nioche.aurelien@gmail.com"
] | nioche.aurelien@gmail.com |
ede1ced08cc6a341318a155c9fb090799f49fafd | 7a54cb77f8a900335834291a452b57c24df6faff | /docs/src/LectureNotes/_build/jupyter_execute/chapter6.py | 9f94eb16969599dd00331b16cc90c82d6cf42a4a | [] | no_license | CompPhysics/InsightPhysicsImmersionWeek | 76e016b8637aa60be0f92405769c6fffd8556d60 | 3d7d58f30ef906f2c05b52edc507ab4e11ac34a7 | refs/heads/main | 2023-06-08T23:16:03.597940 | 2021-06-25T13:36:57 | 2021-06-25T13:36:57 | 374,204,873 | 2 | 2 | null | 2021-06-15T13:56:22 | 2021-06-05T20:18:26 | null | UTF-8 | Python | false | false | 108,524 | py | # Two-body problems
## Introduction and Definitions
Central forces are forces which are directed towards or away from a
reference point. A familiar force is the gravitional
force with the motion of our Earth around the Sun as a classic. The Sun, being
approximately sixth order of magnitude heavier than the Earth ser... | [
"morten.hjorth-jensen@fys.uio.no"
] | morten.hjorth-jensen@fys.uio.no |
41c19da94508fae06a1c001e18307c47af389914 | 556403cb93b2fdd464c3aef4cba4f1c3dc42e9d7 | /Python/venv/Scripts/easy_install-script.py | 7f846650c43e425c3d8dd49ca82ecb1272cbbe96 | [] | no_license | msivakumarm/PycharmProjects | 4d90a0105f334f2393d30fe46dc650808002b4fd | 7d84194a576f9ec8356ff272642d07dbddc48d42 | refs/heads/master | 2020-09-06T14:42:12.945424 | 2019-11-08T11:42:14 | 2019-11-08T11:42:14 | 219,989,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 448 | py | #!C:\Users\SIVA\PycharmProjects\Python\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.ex... | [
"sivakumarm.mamillapalli@gmail.com"
] | sivakumarm.mamillapalli@gmail.com |
b042fdcacc6b466da8f278faceace2ce9a4f2584 | ae81b16cf4242d329dfcb055e85fafe87262cc7f | /leetcode/509斐波那切数列.py | ec74e05e99dfed630718815437601a4785cd97d8 | [] | no_license | coquelin77/PyProject | 3d2d3870b085c4b7ff41bd200fe025630969ab8e | 58e84ed8b3748c6e0f78184ab27af7bff3778cb8 | refs/heads/master | 2023-03-18T19:14:36.441967 | 2019-06-19T02:44:22 | 2019-06-19T02:44:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,009 | py | '''斐波那契数,通常用 F(n) 表示,形成的序列称为斐波那契数列。该数列由 0 和 1 开始,后面的每一项数字都是前面两项数字的和。也就是:
F(0) = 0, F(1) = 1
F(N) = F(N - 1) + F(N - 2), 其中 N > 1.
给定 N,计算 F(N)。
示例 1:
输入:2
输出:1
解释:F(2) = F(1) + F(0) = 1 + 0 = 1.
示例 2:
输入:3
输出:2
解释:F(3) = F(2) + F(1) = 1 + 1 = 2.
示例 3:
输入:4
输出:3
解释:F(4) = F(3) + F(2) = 2 + 1 = 3.'''
class Solut... | [
"zhangyiming748@users.noreply.github.com"
] | zhangyiming748@users.noreply.github.com |
31e4b5de766ec1ab842af725b94e2c8ce8339e03 | 7c04a4dd2159284fe1a1dfef1e88a53757abf843 | /orm/sqlalchemy复习/s17.py | bce14ab6016578d3fbc969a6a6996fd70150afbe | [] | no_license | RelaxedDong/flask_advance | f6c24c38e4f3143bb49f3c461011bcad15ea03ae | 1cc42cb6c7607f35903f1a2edc3d11a34a5046e1 | refs/heads/master | 2022-01-07T18:26:00.010508 | 2019-04-13T09:51:17 | 2019-04-13T09:51:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | from sqlalchemy import create_engine, Column, Integer, String, func
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declarative_base
engine = create_engine("mysql+pymysql://root:root@127.0.0.1/ormreview?charset=utf8",
encoding='utf8')
session = sessionmaker(engine... | [
"1417766861@qq.com"
] | 1417766861@qq.com |
079d5a036fab015463d7d3b7689f744e6925af06 | 2781ffdb7dd131c43d5777d33ee002643c839c28 | /WebScraping/DatasetScriping.py | 949a2f2d7b0afe8876a8d4464e6de15688ba91fb | [] | no_license | AbuBakkar32/Python-Essential-Practice | b5e820d2e27e557b04848b5ec63dd78ae5b554c4 | 8659cf5652441d32476dfe1a8d90184a9ae92b3b | refs/heads/master | 2022-11-13T23:07:16.829075 | 2020-06-27T18:46:52 | 2020-06-27T18:46:52 | 275,432,093 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | import requests
from bs4 import BeautifulSoup
link = requests.get('https://www.data.gov/')
soup = BeautifulSoup(link.text, 'html.parser')
data = soup.find_all('small')
for i in data:
a = i.find('a').text[0:]
print('This website has :{}'.format(a))
| [
"abu35-1994@diu.edu.bd"
] | abu35-1994@diu.edu.bd |
74de4d362f296692eacb457593fecbd74f4e209d | 214bfc26b3982c5c662b50a35756d7070e1664a2 | /initial/lm/trainAttention/ARCHIVE_September_2021/matchData_EYE.py | dc65bdc172a3dff3c1273fc2132c6cade23b6b2c | [] | no_license | m-hahn/forgetting-model | cf3f51e40fb53a49e9dfa0c648cd296803eec7ed | 4ee0f06c6cd01ffff579cfbca67287cc32fac66c | refs/heads/master | 2022-09-03T02:29:56.607656 | 2022-08-27T13:51:36 | 2022-08-27T13:51:36 | 252,456,546 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | import os
import sys
import random
from collections import defaultdict
with open("/u/scr/mhahn/Dundee/DundeeTreebankTokenized.csv", "r") as inFile:
dundee = [x.split("\t") for x in inFile.read().strip().split("\n")]
header = dundee[0]
header = dict(zip(header, list(range(len(header)))))
dundee = dundee[1:]
... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
9648e10ec3c1b48598944069a8af287b4bf97fe1 | 2a1cbd7570ade00e6efb5c39ca9246f05c7f500b | /21/00/0.py | 9db06c49841196fdd6336ffd86da7b9713ae110a | [
"CC0-1.0"
] | permissive | pylangstudy/201707 | dd5faf446cb0cc3d95f7f9db30f47e0f15400258 | c1cc72667f1e0b6e8eef4ee85067d7fa4ca500b6 | refs/heads/master | 2020-12-03T02:19:42.341198 | 2017-07-31T00:11:35 | 2017-07-31T00:11:35 | 95,927,705 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from abc import ABCMeta
class MyABC(metaclass=ABCMeta): pass
MyABC.register(tuple)
assert issubclass(tuple, MyABC)
assert isinstance((), MyABC)
| [
"pylangstudy@yahoo.co.jp"
] | pylangstudy@yahoo.co.jp |
ccf77c6dbb63b159be375a0549f4330ed4b77ada | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_phalanges.py | 95a07958093f090cc6658575ecaed636093c7c0e | [
"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 | 247 | py |
from xai.brain.wordbase.nouns._phalanx import _PHALANX
#calss header
class _PHALANGES(_PHALANX, ):
def __init__(self,):
_PHALANX.__init__(self)
self.name = "PHALANGES"
self.specie = 'nouns'
self.basic = "phalanx"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
df3851986643d89986f27702969b422b0c5e4585 | 17d05858112c2aa73feab0c054457ce9808797df | /setup.py | 6bcb2919589ac0e9e4988473f5290cdcb93a9395 | [] | no_license | invisibleroads/invisibleroads-macros-descriptor | ffad4b56c1b9191131a1d85e16a82ea19801ca30 | de428ead5cea757ea2f800ace556ded069e53586 | refs/heads/master | 2023-08-11T17:33:00.458008 | 2020-11-30T03:48:54 | 2020-11-30T03:48:54 | 248,628,719 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | from os.path import abspath, dirname, join
from setuptools import find_packages, setup
ENTRY_POINTS = '''
'''
APP_CLASSIFIERS = [
'Programming Language :: Python',
'License :: OSI Approved :: MIT License',
]
APP_REQUIREMENTS = [
]
TEST_REQUIREMENTS = [
'pytest',
'pytest-cov',
]
FOLDER = dirname(abspat... | [
"rhh@crosscompute.com"
] | rhh@crosscompute.com |
d62ec5ded84e385a5a6f52da4618333cd3e5cec7 | 037877a31670a85fa78b61df9ceabe981cfdfbf6 | /sympy/concrete/gosper.py | 76f439ce5d72929e5d79906a18fcaefc30adc036 | [] | no_license | certik/sympy_gamma | 6343b02e5d6d1c7d511a3329bbbd27cd11cd7ec8 | b0e555ca03f8476533cb1c19575f4461533837de | refs/heads/master | 2020-12-25T03:52:40.132034 | 2010-02-15T08:02:31 | 2010-02-15T08:02:31 | 344,391 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,661 | py | """
"""
from sympy.core.basic import Basic, S
from sympy.core.symbol import Symbol
from sympy.core.add import Add
from sympy.core.mul import Mul
from sympy.core import sympify
from sympy.polys import gcd, quo, roots, resultant
def normal(f, g, n=None):
"""Given relatively prime univariate polynomials 'f' and 'g... | [
"ondrej@certik.cz"
] | ondrej@certik.cz |
64d9dc0646e47648a14378c7f64e13b43bf794aa | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/fc/receivefeccountershist.py | 0e8130b82af1eba3932723f59a0bef420d485acf | [] | 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 | 19,036 | 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 |
bee39884f4e19d05af666738a1bb2b126d605f33 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/insights/v20170401/outputs.py | 7ca157a0564561fd13512aa45f207d8e08294d4e | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 21,889 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
81efde228ef6de285080c846e3a219b46e2322e7 | d5a4fe6a8d466dce3c131c9678e86398b17b27c5 | /Finite Difference Computing with Exponential Decay_HPL/SF_FDCED/softeng/decay_flat.py | 26557b62d82049ce8043028498525738a4bb08ef | [] | no_license | AaronCHH/B_PYTHON_Numerical | d8fe3ec843dc1b1b35a407134980027ac5516721 | d369d73f443cc9afdb0a10912b539bc8c48f7d4a | refs/heads/master | 2021-01-19T10:14:57.903055 | 2017-06-21T05:21:21 | 2017-06-21T05:21:21 | 87,845,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 840 | py | from numpy import *
from matplotlib.pyplot import *
I = 1
a = 2
T = 4
dt = 0.2
Nt = int(round(T/dt)) # no of time intervals
u = zeros(Nt+1) # array of u[n] values
t = linspace(0, T, Nt+1) # time mesh
theta = 1 # Backward Euler method
u[0] = I # assign initial condition
... | [
"aaronhsu219@gmail.com"
] | aaronhsu219@gmail.com |
8a569eaf12f58d883faecc822a171a6d31d01b88 | de9fe69314068eea0e66500144c382de149e1882 | /backend/bruhcult_18193/wsgi.py | f972466a75ac627b92d1a22c6584755e6c690ba6 | [] | no_license | crowdbotics-apps/bruhcult-18193 | 35d7ee7c14fb92ae8d52b9f4a5688ef725421735 | c82fd627b8e28155292a073e2c1fd8d2422cf72f | refs/heads/master | 2022-11-08T12:18:49.426568 | 2020-06-18T19:15:10 | 2020-06-18T19:15:10 | 273,281,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for bruhcult_18193 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.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANG... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
aa609bf28d3a0cdc57bab21c53b69728615ad8d5 | 93e55f080779f16f47a7382a3fb0b29a4189e074 | /convertor/huawei/te/tik/tik_lib/tik_conf_.py | 8a618ab5b76cc48f38139fb0c205cb300d15e6f9 | [] | no_license | jizhuoran/caffe-huawei-atlas-convertor | b00cfdec3888da3bb18794f52a41deea316ada67 | 148511a31bfd195df889291946c43bb585acb546 | refs/heads/master | 2022-11-25T13:59:45.181910 | 2020-07-31T07:37:02 | 2020-07-31T07:37:02 | 283,966,371 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,844 | py | """
Copyright (R) @huawei.com, all rights reserved
-*- coding:utf-8 -*-
FILE: tik_conf_.py
DESC: configuration of tik
CREATED: 2019-04-18 18:53:42
MODIFIED: 2019-07-25 09:59:30
"""
from te.platform.cce_conf import te_set_version
from te.platform.cce_conf import cceProduct
from te.platform.cce_conf import get_s... | [
"jizr@connect.hku.hk"
] | jizr@connect.hku.hk |
460b60c4a8cdb5b8753f5e3e2789318b3fea73b4 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /jmZe7R4ibXkrQbogr_0.py | 46152937d3897c2b43d87c5e4b43b440156a655f | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 847 | py | """
Write a **regular expression** that checks to see if a password is valid. For
a password to be valid, it must meet the following requirments:
1. The password must contain at least one uppercase character.
2. The password must contain at least one lowercase character.
3. The password must contain at least ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
fa23bb740b0242e213687ec80b61153c25233105 | 1cadec31e3f5c71407a67b4676fdc9e1ab9891bf | /modoboa/extensions/admin/forms/__init__.py | 5bfbed71114c50c36aac8fb32d3ac51b92833677 | [
"ISC"
] | permissive | SonRiab/modoboa | 9b840b639e6e05a8e6145bffd45ddd1ce90a2b8b | 97db0811c089aa477b21f28f318ab631d20cf108 | refs/heads/master | 2020-12-25T09:09:27.286185 | 2014-08-13T09:58:22 | 2014-08-13T09:58:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | from .domain import DomainFormGeneral, DomainFormOptions, DomainForm
from .account import (
AccountFormGeneral, AccountFormMail, AccountPermissionsForm,
AccountForm
)
from .alias import AliasForm
from .forward import ForwardForm
from .import_ import ImportDataForm, ImportIdentitiesForm
from .export import Expor... | [
"tonio@ngyn.org"
] | tonio@ngyn.org |
7e2e79ddfb16ee42977e799c3cf15480e2b87a9f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04046/s526215955.py | 321044d84612a39406e8d438749ed1e56e37746f | [] | 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 | 200 | py | m=10**9+7
h,w,a,b=map(int,input().split())
d=c=1
for i in range(h-1):
d=c=c*(w+h-b-2-i)*pow(i+1,m-2,m)%m
for i in range(1,h-a):
c=c*(b-1+i)*(h-i)*pow(i*(w+h-b-1-i),m-2,m)%m
d+=c
print(d%m) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
471f4a97647808b279d4134c0ea9d027ab9c2229 | ce76b3ef70b885d7c354b6ddb8447d111548e0f1 | /place/different_eye/new_time.py | c6abfe47f36c42f4f14c519a34724907fd677864 | [] | no_license | JingkaiTang/github-play | 9bdca4115eee94a7b5e4ae9d3d6052514729ff21 | 51b550425a91a97480714fe9bc63cb5112f6f729 | refs/heads/master | 2021-01-20T20:18:21.249162 | 2016-08-19T07:20:12 | 2016-08-19T07:20:12 | 60,834,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py |
#! /usr/bin/env python
def way_or_child(str_arg):
week(str_arg)
print('case_or_week')
def week(str_arg):
print(str_arg)
if __name__ == '__main__':
way_or_child('last_government_and_next_fact')
| [
"jingkaitang@gmail.com"
] | jingkaitang@gmail.com |
55bfa04f5f0c6a8178be290cfe54075f6133963e | e2969ce860cba03add07d3b6412397d337b8b0a1 | /algorithms/sorting/2_median_of_medians/solution/solution.py | af924bcc4a21f05025bc57bdf3318b334ac67747 | [] | no_license | AshRavi7/Exercises | cfe16ef1d7a248b1fead12e3fb4dd0b26205de07 | 0a2738771e03b36e353cc25edfc7d8b8a0e4b2fe | refs/heads/master | 2022-12-20T08:30:04.104476 | 2020-09-11T15:58:46 | 2020-09-11T15:58:46 | 290,986,365 | 0 | 0 | null | 2020-08-28T07:56:53 | 2020-08-28T07:56:52 | null | UTF-8 | Python | false | false | 36 | py | def median_of_medians(lst):
pass | [
"avelikevitch@gmail.com"
] | avelikevitch@gmail.com |
ca7a2aa1310b5cf5fe2bc79a782b7d9bba4daaed | 46ac378de81b13359ceff567b8ec1b04cda1d4d5 | /luddite/app.py | dc79b95750eafccdf985da0f64d4caa7ea8b20f0 | [
"MIT"
] | permissive | ntoll/luddite | f54f8c4564590e57bdc97b7f3ee9847f7e940849 | e234a955db16391d9cd9b4cd97c214c954e5697d | refs/heads/master | 2021-01-11T22:10:52.120319 | 2017-01-23T09:53:29 | 2017-01-23T09:53:29 | 78,933,221 | 7 | 2 | null | 2017-01-20T20:46:05 | 2017-01-14T10:15:20 | Python | UTF-8 | Python | false | false | 871 | py | """
Luddite - the anti-browser. :-)
"""
import os
import logging
from luddite import __version__
from luddite.browser import Browser
def setup_logging():
"""
This could probably be more elegant.
"""
home = os.path.expanduser('~')
log_dir = os.path.join(home, 'luddite')
log_file = os.path.join(... | [
"ntoll@ntoll.org"
] | ntoll@ntoll.org |
8f181a38345a7cd75b67289817a44b5871fe08f4 | 000d7a149b59b9e23ca31a34cd07ce62bb7bcae4 | /models/linktracker.py | 83e9e4d6130876b20bb212924e6914ad9e00e321 | [
"MIT"
] | permissive | Lumiare1/tyggbot | 37ce0f2d2a697b0e673b83b02eb032c43deced3a | 5a1e09504304f966f73344ca6ee27d7f4c20fc6e | refs/heads/master | 2021-01-16T17:59:14.656659 | 2015-10-04T11:03:45 | 2015-10-04T11:03:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,792 | py | import logging
import datetime
import pymysql
from urllib.parse import urlsplit
log = logging.getLogger('tyggbot')
class LinkTrackerLink:
@classmethod
def load(cls, cursor, url):
link = cls()
cursor.execute('SELECT * FROM `tb_link_data` WHERE `url`=%s', [url])
row = cursor.fetchone()... | [
"pajlada@bithack.se"
] | pajlada@bithack.se |
518672544e321b6bed89cfb0a084186f20f524b8 | 38422c3edeb269926502fed31a0761aff8dd3d3b | /Swanepoel_analysis/Swanepoel_analysis/config_files/ek036-4_config.py | 79e82e0ebd6416bc263e9bebbc4bb486c1ccf30f | [] | no_license | vfurtula/Alle-projekter | 2dab3ccbf7ddb6be3ee09f9f5e87085f354dd84a | da3d7c9611088043e2aea5d844f1ae6056215e04 | refs/heads/master | 2022-06-07T05:17:35.327228 | 2020-04-30T10:28:48 | 2020-04-30T10:28:48 | 260,180,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | loadSubOlis=["/home/vfurtula/Documents/Projects/Swanepoel_analysis/data/sapphirejune16.asc",True]
loadSubFilmOlis=["/home/vfurtula/Documents/Projects/Swanepoel_analysis/data/ek036-4.asc",True]
loadSubFTIR=["/home/vfurtula/Documents/Projects/Swanepoel_analysis/data/SAPPHIREJUNE16.DPT",True]
loadSubFilmFTIR=["/home/vfurt... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
49ad7fbd531626b902b58ec3a7df9d440d97e36b | a518141ca3ba2b6fa63a7961b51936d9438ff022 | /401 - Palindromes.py | c489ec9ee8ebc9e83818d1be9f90a8116897be74 | [] | no_license | jlhung/UVA-Python | ec93b2c98e04c753e8356f3e4825584fae4a8663 | 7a0db4fecffd7ac4f377f93da41291a8e998ee9b | refs/heads/master | 2022-11-28T04:47:49.270187 | 2020-08-10T13:19:58 | 2020-08-10T13:19:58 | 116,969,745 | 19 | 9 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | '''
20180203 jlhung v1.0
'''
a = "A000300HIL0JM0O0002TUVMXY51SE0Z0080"
def cal(z):
if z >= 65:
return z - 65
else:
return z - 49 + 26
while True:
try:
n = input()
except EOFError:
break
if n == n[::-1]:
p = 1
else:
p = 0
m = 1
for i in range(len(n)//2 + 1):
x = cal(ord(n[i]))
if a[x] !=... | [
"35291112+jlhung@users.noreply.github.com"
] | 35291112+jlhung@users.noreply.github.com |
d172f7350f6aaeb3f780cbf04830ffcac3896f82 | deae8bc2da1936c4f9afbd8e9412af8df39e96a2 | /src/spaceone/inventory/connector/__init__.py | c89ed55465d6f21041cb30667531f80727c4f47b | [
"Apache-2.0"
] | permissive | choonho/inventory | 11a3ef0ec327214cc26260ace049305021c892cf | cc89757490d28fecb7ffccdfd6f89d4c0aa40da5 | refs/heads/master | 2023-04-17T05:51:20.373738 | 2020-06-16T07:14:27 | 2020-06-16T07:14:27 | 273,175,186 | 0 | 0 | null | 2020-06-18T07:49:19 | 2020-06-18T07:49:18 | null | UTF-8 | Python | false | false | 394 | py | from spaceone.inventory.connector.identity_connector import IdentityConnector
from spaceone.inventory.connector.plugin_connector import PluginConnector
from spaceone.inventory.connector.secret_connector import SecretConnector
from spaceone.inventory.connector.collector_connector import CollectorPluginConnector
from spa... | [
"whdalsrnt@megazone.com"
] | whdalsrnt@megazone.com |
87c88e8b5fe16b76cb62ec4af876bdc38c0526de | a74cabbe1b11fc8ef575ea86f2543cd95db78ec9 | /python_program/q1348_Tweet_Counts_Per_Frequency.py | 0ebd6ba5dc2c6918e1155392e2fb98e3ccab9546 | [] | no_license | tszandy/leetcode | 87e3ccf291b2879637d2d8238935a455b401a78a | f1f4361541dcffbb291285663c8820d7ffb37d2f | refs/heads/master | 2023-04-06T15:34:04.847875 | 2023-03-26T12:22:42 | 2023-03-26T12:22:42 | 204,069,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | from typing import List
from collections import Counter,defaultdict
from math import *
from functools import reduce,lru_cache
import numpy as np
from heapq import *
from bisect import bisect_left
class TweetCounts:
def __init__(self):
self.counter = Counter()
def recordTweet(self, tweetName: str, tim... | [
"444980834@qq.com"
] | 444980834@qq.com |
0996721394223768eb7b2c15f84c02d6f59230e9 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/vaster.py | a727153d233f607502258f30f0c7640bac736fa4 | [] | 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 | 45 | py | ii = [('BentJDO2.py', 1), ('SadlMLP2.py', 1)] | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
844ef7dcae523873a814431086047825c6846d7b | cde6893942b906bc7388e2af69dd33c2cca6bb8b | /docs/source/conf.py | d2cb29be5dd0a759ae77be5f9c5a2db66da1b5d9 | [
"MIT"
] | permissive | samirelanduk/fuzz | 9b482d51436caf3ca576ae57639031f61da498c3 | c2b75009686ca9775d8bfaa4e489e7e1db5ac22b | refs/heads/master | 2020-12-03T08:13:05.763707 | 2020-12-02T15:57:08 | 2020-12-02T15:57:08 | 95,669,452 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,796 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# fuzz documentation build configuration file, created by
# sphinx-quickstart on Sun Jun 18 15:49:06 2017.
#
# This file is execfile()d with the current directory set to its
# containing dir.
#
# Note that not all possible configuration values are present in this
# autog... | [
"sam.ireland.uk@gmail.com"
] | sam.ireland.uk@gmail.com |
d1a69c770860c71d4ea8cbe1f0d096cc33ed146f | 9e36b3a0a609f862aa2894a1473896c8465c41a1 | /arelle/ViewWinGrid.py | b2cea677258415d91d3d4774b0643e666a8e869e | [
"Apache-2.0"
] | permissive | marado/Arelle | 7cd74a66d19be174c9f1fe66f788dd53447bffac | 7ca2bf09c852787cd7a38d68b13c11d5e33e72a2 | refs/heads/master | 2020-04-08T00:27:54.212337 | 2011-10-28T17:49:49 | 2011-10-28T17:49:49 | 2,658,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,703 | py | '''
Created on Oct 9, 2010
@author: Mark V Systems Limited
(c) Copyright 2010 Mark V Systems Limited, All rights reserved.
'''
from tkinter import *
from tkinter.ttk import *
from arelle.CntlrWinTooltip import ToolTip
from arelle.UiUtil import (scrolledHeaderedFrame, scrolledFrame)
class ViewGrid:
def __init__(se... | [
"fischer@markv.com"
] | fischer@markv.com |
0b5a6d6033e0072d7b2378fe1573de7aa7606581 | 9673db0d489c0cfa0a304844b9ff5ba8c6024621 | /cwmipermanentevents/win_cwmieventlogconsumer.py | 319871554f23f8852e9a806d3457eb0744bf007b | [] | no_license | daveres/Ansible-Auto-Generated-Modules | a9ec1ad2f9ff9c741b77f5d411b927f1a48c6ce3 | a91b484171be12b9e2bc7c0a9c23bdd767877e38 | refs/heads/master | 2020-12-25T03:29:37.751104 | 2015-12-22T19:24:01 | 2015-12-22T19:24:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,930 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
# <COPYRIGHT>
# <CODEGENMETA>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, ... | [
"trond@hindenes.com"
] | trond@hindenes.com |
de2ae8f2273970279ea9cb452dd78cf5bfdf252b | 9645bdfbb15742e0d94e3327f94471663f32061a | /Python/394 - Decode String/394_decode-string.py | 1f0ffd16417ab8710b0220c574306888c52a0085 | [] | no_license | aptend/leetcode-rua | f81c080b2260adb2da677612e5c437eda256781d | 80e44f4e9d3a5b592fdebe0bf16d1df54e99991e | refs/heads/master | 2023-06-22T00:40:05.533424 | 2021-03-17T13:51:28 | 2021-03-17T13:51:28 | 186,434,133 | 2 | 0 | null | 2023-06-21T22:12:51 | 2019-05-13T14:17:27 | HTML | UTF-8 | Python | false | false | 1,013 | py | from leezy import Solution, solution
class Q394(Solution):
@solution
def decodeString(self, s):
# 20ms 49.53%
i = 0
while i < len(s) and s[i].isalpha():
i += 1
if i == len(s): # pure string
return s
lead_str = s[:i]
# s[i] is digit or [
... | [
"crescentwhale@hotmail.com"
] | crescentwhale@hotmail.com |
322d450662d582c2c1f19c213517f29168d4ec15 | a9f676c06bacee1f8b27e08d3c411c89a69cfd40 | /falmer/events/migrations/0031_auto_20180928_1223.py | f7d76238b0effcfd8ed14b357d772ca4cd902f86 | [
"MIT"
] | permissive | sussexstudent/falmer | 1b877c3ac75a0477f155ce1a9dee93a5ada686d6 | ae735bd9d6177002c3d986e5c19a78102233308f | refs/heads/master | 2022-12-11T19:40:12.232488 | 2020-03-20T13:01:47 | 2020-03-20T13:01:47 | 88,043,958 | 2 | 3 | MIT | 2022-12-08T03:17:26 | 2017-04-12T11:24:02 | Python | UTF-8 | Python | false | false | 537 | py | # Generated by Django 2.0.8 on 2018-09-28 11:23
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('events', '0030_brandingperiod_override_listings_root'),
]
operations = [
migrations.AlterField(
model_name='event',
... | [
"james@brudil.com"
] | james@brudil.com |
eaa42c766189d48ffb00f361d854aead4aac7002 | 1534531d248728e583310214c84cd329cfeb243b | /accelerator/examples/a_dsexample_multipledatasets.py | 1539fa2b787d90fd2240e9cfee47148b70491c9b | [
"Apache-2.0"
] | permissive | eBay/accelerator | 415a006d18283940661c0f3cbae2c311acc1ffaa | 8376d289e39cd90562de7dc2e3cdaa0bf080587b | refs/heads/master | 2023-03-10T11:08:58.828517 | 2022-07-14T19:15:46 | 2022-07-14T19:15:46 | 130,265,539 | 146 | 30 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | def prepare(job):
dw1 = job.datasetwriter(name='first')
dw2 = job.datasetwriter(name='second')
dw3 = job.datasetwriter(name='third')
dw1.add('col1', 'int64')
dw2.add('col1', 'json')
dw3.add('col1', 'number')
dw3.add('col2', 'ascii')
dw3.add('col3', 'bool')
return dw1, dw2, dw3
def analysis(sliceno, prepare_r... | [
"anders@berkeman.org"
] | anders@berkeman.org |
1ad148f1ed603386468eba8abf94ca4498c06ff7 | 70cdf0741a22c678401a306229003bf036ffe5a6 | /ocbind/bgp/peer_groups/peer_group/afi_safis/afi_safi/ipv4_labeled_unicast/prefix_limit/__init__.py | c7c0b7216ecbdb740eabfcde08d780c3cf6e5192 | [] | no_license | zsblevins/nanog81-hackathon | 5001e034339d6b0c6452ae2474f06916bcd715cf | 1b64fd207dd69837f947094fbd6d6c1cea3a1070 | refs/heads/main | 2023-03-03T09:39:28.460000 | 2021-02-15T13:41:38 | 2021-02-15T13:41:38 | 336,698,856 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 49,081 | py | # -*- coding: utf-8 -*-
from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListTy... | [
"zblevins@netflix.com"
] | zblevins@netflix.com |
41423559ea1814593584b0719e067271b835e2f5 | 36de14c6b188886df6a284ee9ce4a464a5ded433 | /Solutions/0481/0481.py | 9cb5c5f805a1753547fb9a793374fca17c61eb5e | [] | no_license | washing1127/LeetCode | 0dca0f3caa5fddd72b299e6e8f59b5f2bf76ddd8 | b910ddf32c7e727373449266c9e3167c21485167 | refs/heads/main | 2023-03-04T23:46:40.617866 | 2023-02-21T03:00:04 | 2023-02-21T03:00:04 | 319,191,720 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | # -*- coding:utf-8 -*-
# Author: washing
# DateTime: 2022/10/31 07:56
# File: 0481.py
# Desc:
class Solution:
def magicalString(self, n: int) -> int:
if n <= 3: return 1
l = [1,2,2]
gai = 1
idx = 2
for _ in range(2, n):
l.extend([gai] * l[idx])
... | [
"1014585392@qq.com"
] | 1014585392@qq.com |
4c27d86afe78672f295177ebcb30ea11b71ae563 | 727f1bc2205c88577b419cf0036c029b8c6f7766 | /out-bin/py/google/fhir/models/run_locally.runfiles/pypi__tensorboard_1_12_1/tensorboard/backend/event_processing/db_import_multiplexer.py | b3af8b8b84de188f8bd2edf64b42541f54c25b77 | [
"Apache-2.0"
] | permissive | rasalt/fhir | 55cf78feed3596a3101b86f9e9bbf6652c6ed4ad | d49883cc4d4986e11ca66058d5a327691e6e048a | refs/heads/master | 2020-04-13T00:16:54.050913 | 2019-01-15T14:22:15 | 2019-01-15T14:22:15 | 160,260,223 | 0 | 0 | Apache-2.0 | 2018-12-03T22:07:01 | 2018-12-03T22:07:01 | null | UTF-8 | Python | false | false | 172 | py | /home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__tensorboard_1_12_1/tensorboard/backend/event_processing/db_import_multiplexer.py | [
"ruchika.kharwar@gmail.com"
] | ruchika.kharwar@gmail.com |
6fc9932f4c30db04bb30d77843208976772512e4 | ca4b23956a888c0c26106eafb665bf60d067161e | /stepik-union/src/test/resources/samples/python3/expected_replaced/5.py | 7d90a37efa7a26919641cef8f49997350f660afa | [] | no_license | shanedecamp/intellij-plugins | c9f332ca20eaecd6736e6582641b7b725a025d8c | 27475af7baa78de7c9506b06046287f163bebae3 | refs/heads/master | 2020-04-13T18:22:17.996572 | 2017-11-23T12:08:08 | 2017-11-23T12:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | replaced
# Stepik code: end
some
text | [
"meanmail@mail.ru"
] | meanmail@mail.ru |
174372ef8d2ca43068f5360b308aef75060ce3fb | 4766d241bbc736e070f79a6ae6a919a8b8bb442d | /archives/20190519python/0977. Squares of a Sorted Array.py | 31e803b0f0a7a1799a41547fd8cdb2db90103d5c | [] | no_license | yangzongwu/leetcode | f7a747668b0b5606050e8a8778cc25902dd9509b | 01f2edd79a1e922bfefecad69e5f2e1ff3a479e5 | refs/heads/master | 2021-07-08T06:45:16.218954 | 2020-07-18T10:20:24 | 2020-07-18T10:20:24 | 165,957,437 | 10 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | class Solution:
def sortedSquares(self, A: List[int]) -> List[int]:
if not A:
return A
if A[0]>=0:
return self.getSquares(A)
if A[0]<0:
if A[-1]<0:
A=self.getSquares(A)
return A[::-1]
k=0
... | [
"noreply@github.com"
] | yangzongwu.noreply@github.com |
f2751c6ffd13b7ca049b44caf699c03881be8ee1 | 6e34d59a5220d42b8baa39bd5bc49d69f77103b6 | /timelapse_stack.py | faa41545ac02dbba0480be8e54f29d69fd136595 | [] | no_license | pbmanis/timelapse | 034dc6633fa98d43cba03faf68eb9d2636da8120 | 6a989545cbf83e2a40e2d8f87120860104ee24b6 | refs/heads/master | 2021-06-29T18:38:41.726219 | 2020-07-14T01:33:03 | 2020-07-14T01:33:03 | 66,783,357 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,952 | py | """
Script used to convert timelapse+zstack data into a max-filtered video.
Luke Campagnola and Paul Manis, 4-2015 and 3, 4-2016.
Input data structures:
1. 'auto': ImageSequence_nnn has a number if image_nnn.ma files; each of those files is a single
time point in the sequence.
2. 'manual': Each ImageSequence_nn... | [
"pmanis@med.unc.edu"
] | pmanis@med.unc.edu |
a2912aa8082dd0c86f50d80a953f898ece522e01 | e733d07a1492f6e9b762d9ca496ec59668aedb95 | /qcloudsdkcvm/InquiryInstancePriceHourRequest.py | 906b50e9717e953b7d3cb28273d3cd7f2de595fb | [
"Apache-2.0"
] | permissive | QcloudApi/qcloudcli | 1f67d8467b81ac8964362491cd4f3104f8e59161 | ba16161f65df5f621d9f1c5587b9900dca600cb5 | refs/heads/master | 2023-08-15T01:51:05.236254 | 2018-07-11T08:07:29 | 2018-07-11T08:07:29 | 100,922,202 | 8 | 6 | null | 2018-03-29T11:57:26 | 2017-08-21T06:55:45 | Python | UTF-8 | Python | false | false | 2,262 | py | # -*- coding: utf-8 -*-
from qcloudsdkcore.request import Request
class InquiryInstancePriceHourRequest(Request):
def __init__(self):
super(InquiryInstancePriceHourRequest, self).__init__(
'cvm', 'qcloudcliV1', 'InquiryInstancePriceHour', 'cvm.api.qcloud.com')
def get_bandwidth(self):
... | [
"zhiqiangfan@tencent.com"
] | zhiqiangfan@tencent.com |
24de9783acf09079e0e372ead54d08b82db5e567 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /storagegateway_write_f/smb-file-share_update.py | 3357133385bf1dc97e35672040d499ce1326752f | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 676 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/ec2/describe-instances.html
if __name__ == '__main__... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
2dd74bd70f39713191de8dc6a0ece7478c6387db | 6e158a54409937515b14676730adfadfd457d4ae | /gaussian_spheres/pwl.py | 829e513a721f8fe6245d003f3e220aab7e410ea8 | [] | no_license | Tjstretchalot/machinelearning | e2b277efd99f6e45005cb92a0cc17e90bf7d37e4 | 5a3b17c49211a63f71cdf40ca35e00a3af4b198a | refs/heads/master | 2020-05-02T09:25:25.032430 | 2019-07-25T14:37:43 | 2019-07-25T14:37:43 | 177,871,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,665 | py | """A gaussian spheres input technique. Randomly places cluster centers in an n-dimensional cube.
Then assigns each cluster a label. To generate points, a cluster is selected uniformly at random,
then a radius is selected from a normal distribution, then a point is selected uniformly from
within a sphere centered at ... | [
"mtimothy984@gmail.com"
] | mtimothy984@gmail.com |
e9ad0d1f8948db6b00d4c77f6d1d720bfbf254d9 | 6b699b7763a0ff8c32b85014d96f6faf02514a2e | /models/research/object_detection/models/embedded_ssd_mobilenet_v1_feature_extractor.py | 96586e17f65a9ead1cb9d1c93540cd46477f3b2f | [
"Apache-2.0"
] | permissive | leizeling/Base_tensorflow-object_detection_2Dcord | df7c195685fed21fd456f1dd79881a198cf8b6e0 | d07418eb68543adc2331211ccabbc27137c8676e | refs/heads/master | 2020-03-19T11:51:57.961688 | 2018-06-07T14:47:16 | 2018-06-07T14:47:16 | 136,481,479 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,185 | py | # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"1072113944@qq.comm"
] | 1072113944@qq.comm |
8f1f76c2428f1baf72a698618a67511bdb315528 | fb8909f8ca2418e3ee25469073fa06636c3d294b | /src/unity/python/turicreate/toolkits/regression/decision_tree_regression.py | cde30984bb969b7d260d1210461c4ede7f907451 | [
"BSD-3-Clause"
] | permissive | fossabot/turicreate | a1e9d95fc1f68e7074d1d8024ffd64de82463d39 | a500d5e52143ad15ebdf771d9f74198982c7c45c | refs/heads/master | 2020-12-02T21:45:09.045339 | 2019-12-31T17:50:02 | 2019-12-31T17:50:02 | 231,127,861 | 0 | 0 | BSD-3-Clause | 2019-12-31T17:50:01 | 2019-12-31T17:50:00 | null | UTF-8 | Python | false | false | 18,183 | py | # -*- coding: utf-8 -*-
# Copyright © 2017 Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can
# be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
"""
This package contains the decision tree model class and the create function.
"""... | [
"znation@apple.com"
] | znation@apple.com |
1bcc583b18dbe1c149df61636316daf19ebb3da8 | bc3bd7601fa427d638f872b4ddfdebe4ce23a25c | /bitbucketopenapi/models/branching_model_all_of_branch_types.py | 5c19cc4a2bfc8439d01eead784bcecbd8c6be7a7 | [] | no_license | magmax/bitbucket-openapi | 59ef55ab3aa42940c8211d3ecd16ef7d6fc74c21 | 836ae762735ae5b1ececcee5287fa271d7d8de5b | refs/heads/master | 2020-07-28T16:10:32.736169 | 2019-09-19T04:17:09 | 2019-09-19T04:17:09 | 209,460,884 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,858 | py | # coding: utf-8
"""
Bitbucket API
Code against the Bitbucket API to automate simple tasks, embed Bitbucket data into your own site, build mobile or desktop apps, or even add custom UI add-ons into Bitbucket itself using the Connect framework. # noqa: E501
The version of the OpenAPI document: 2.0
Con... | [
"miguelangel.garcia@gmail.com"
] | miguelangel.garcia@gmail.com |
00d30d1d0c99da6ea3aafe35fc7e3c3e88eb6f3e | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/domain/ZMGOCycleFlexConfig.py | a346c3b220c6ea3812a72dfb56fd69a64303cdc3 | [
"Apache-2.0"
] | permissive | alipay/alipay-sdk-python-all | 8bd20882852ffeb70a6e929038bf88ff1d1eff1c | 1fad300587c9e7e099747305ba9077d4cd7afde9 | refs/heads/master | 2023-08-27T21:35:01.778771 | 2023-08-23T07:12:26 | 2023-08-23T07:12:26 | 133,338,689 | 247 | 70 | Apache-2.0 | 2023-04-25T04:54:02 | 2018-05-14T09:40:54 | Python | UTF-8 | Python | false | false | 2,868 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class ZMGOCycleFlexConfig(object):
def __init__(self):
self._cycle_flex_withhold_fee_name = None
self._cycle_flex_withhold_max_price = None
self._cycle_flex_withhold_total_perio... | [
"jishupei.jsp@alibaba-inc.com"
] | jishupei.jsp@alibaba-inc.com |
33142582fc29000c271ed5a172c7f98479c6dbda | 2f09a5d75343702a0aecf10112b77b00c2063816 | /setup.py | 466ca0e3e205500ff3041ffbb29c2b4101f5c4d1 | [
"Apache-2.0"
] | permissive | tracer0tong/statsitemap | 8ac963d03ab53a61c942eeb7c1d63d4fb03c0c24 | 0e0cc4387b98cd91ffc717f5494e0a2168127992 | refs/heads/master | 2016-09-10T21:36:22.734268 | 2015-04-21T22:02:49 | 2015-04-21T22:02:49 | 34,352,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | from distutils.core import setup
setup(
name='statsitemap',
packages=['statsitemap'],
version='0.1',
description='Library for building statistical graph (sitemap) from called URI/referer pairs',
author='Yury Leonychev (@tracer0tong)',
author_email='yuriy.leonychev@gmail.com',
url='https://g... | [
"johndoe@example.com"
] | johndoe@example.com |
c8f7add0004abb00bdec5a84216d5e250182acc9 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/agc007/B/4738230.py | 5ff3a4324a3c6b6e9adee2311585322f49bfc888 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | n = int(input())
x = list(map(int, input().split()))
a = [20001*i for i in range(1,n+1)]
b = [20001*(n+1-i) for i in range(1,n+1)]
for i in range(n):
b[x[i]-1] += i
for x in a:print(x, end=' ')
print()
for x in b:print(x, end=' ') | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.