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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24df83eb25619ce8e46fb75b183a3383fcfa4c2e | 81539aba88c22cf75bd2e14f5e0e92f2bf54e962 | /DarkMatterMap2017/TTbarDMJets_Inclusive_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8/TTbarDMJets_Inclusive_pseudoscalar_LO_Mchi-1_Mphi-500_TuneCP5_13TeV-madgraph-mcatnlo-pythia8/TTbarDMJets_Inclusive_pseudoscalar_LO_TuneCP5_13TeV_madgraph_mcatnlo_pythia8_230000_16_cff.py | 3cdb7561b538496f2e9a618dd42fad660feca1fd | [] | no_license | nistefan/RandomizedParametersSeparator | ad35b48b95e9745814c0bf9d8d8b6eb8aa479177 | 66a0e291b59113c6b5301768f1c10e36cf23d3c3 | refs/heads/master | 2021-01-03T00:41:17.415005 | 2020-02-19T13:30:54 | 2020-02-19T13:30:54 | 239,838,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,161 | py | import FWCore.ParameterSet.Config as cms
maxEvents = cms.untracked.PSet( input = cms.untracked.int32(-1) )
readFiles = cms.untracked.vstring()
source = cms.Source ("PoolSource",fileNames = readFiles, lumisToProcess = cms.untracked.VLuminosityBlockRange(*('1:30307', '1:39862', '1:22086', '1:47940', '1:17804', '1:29416',... | [
"Nicole.Stefanov@cern.ch"
] | Nicole.Stefanov@cern.ch |
d480e78117dbd2bcd649d4849a8b74e6f0b47c76 | aaabf5c6cea75fb6649fafff57d4e92e9b7142b8 | /smote_variants/base/_undersampling.py | 725bda654ab9f60c2ad38fcef58e0e0c830f8164 | [
"MIT"
] | permissive | analyticalmindsltd/smote_variants | febcdad7c64c5d6bce5a69a51d7228ea629aa7c4 | 708568e5b44abdc798d9329f993ac6561ad1439d | refs/heads/master | 2023-05-12T21:24:57.222534 | 2023-04-17T10:43:06 | 2023-04-17T10:43:06 | 151,773,885 | 434 | 106 | MIT | 2023-05-04T14:18:28 | 2018-10-05T20:21:54 | Jupyter Notebook | UTF-8 | Python | false | false | 1,345 | py | """
This module implements the UnderSampling base class.
"""
from ._base import StatisticsMixin, ParametersMixin, RandomStateMixin
__all__= ['UnderSampling']
class UnderSampling(StatisticsMixin,
ParametersMixin,
RandomStateMixin):
"""
Base class of undersam... | [
"gyuriofkovacs@gmail.com"
] | gyuriofkovacs@gmail.com |
f35214fd238897cb1f7317d0d779bac7d926a211 | 717f7d68e5f36c1d30d223cb201407b0f9c11f9c | /numpy/06_array_from_existing_data.py | 62c6f0c1513d7d1d91e58bec7523ccb1eae534be | [] | no_license | raunakshakya/PythonPractice | 7f54508f9adb8541a9cedc7a58e3629bcfb9b6f5 | 3643e9f526401d31ca706f036af0cdae3da04984 | refs/heads/master | 2020-03-22T18:01:54.357735 | 2019-06-05T03:32:07 | 2019-06-05T03:32:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | # https://www.tutorialspoint.com/numpy/numpy_array_from_existing_data.htm
import numpy as np
x = [1, 2, 3]
a = np.asarray(x) # convert list to ndarray
print(a) # [1 2 3]
a = np.asarray(x, dtype=float) # dtype is set
print(a) # [1. 2. 3.]
# ndarray from tuple
a = np.asarray(x)
print(a) # [1 2 3]
# ndarray from... | [
"rkshakya99@gmail.com"
] | rkshakya99@gmail.com |
ae3da1aab43f748200541eb3a5b2b0146cecd2c4 | 8b1945b9698fcba3ea409e838c3ed9b18bba05b1 | /day02/web/app1/migrations/0001_initial.py | bd7264a5d03fb002c1ca3880714b5a509e07ef32 | [
"Apache-2.0"
] | permissive | Vanessa-kriby/Python | 659a67c9c9b1a79490374c3991fcd63bfbde9d56 | 1fbef67852fb362712fc48fa5c3c29eac68fe202 | refs/heads/main | 2023-08-22T19:40:03.538141 | 2021-10-16T10:09:03 | 2021-10-16T10:30:15 | 417,788,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,696 | py | # Generated by Django 3.0.8 on 2020-08-08 01:47
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Achievement',
fields=[
... | [
"1823954042@qq.com"
] | 1823954042@qq.com |
ff4e32a8a9166fa12d50ef9a5ae6dd34302bc83f | 4f972877da14226125440b3da9bdb058764d8a54 | /ElasticSearchDemo/writeESdemo.py | 211cc3018e3c47ffc07c1319d0258a9acf0733a1 | [] | no_license | ZhiYinZhang/study | 16c29990cb371e7e278c437aa0abc7c348614063 | 8c085310b4f65e36f2d84d0acda4ca257b7389af | refs/heads/master | 2021-07-09T16:05:02.925343 | 2020-06-30T07:53:05 | 2020-06-30T07:53:05 | 153,767,096 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
from elasticsearch import Elasticsearch
import elasticsearch.helpers as help
import time
import random
import numpy as np
#循环写入es
es=Elasticsearch(hosts='http://10.18.0.34',port=9200)
index='griffin'
if not es.indices.exists(index):
map = {"mappings": {
"log": {... | [
"2454099127@qq.com"
] | 2454099127@qq.com |
ca3d4ef289e4c6751640c0f9032c9ca3687ce9a2 | eea01a7a4625b0ffada7f5ea9909537f159a706e | /hardware-testing/hardware_testing/scripts/belt_calibration_ot3.py | 2ce58359d32001caba8cebca14e2c3355394dd9c | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | XifanRD/opentrons | b9fe114232fba26d789a9c4cf24b6ec6338134dc | d02dc6f77c40d85daa1c37f2073e4672e5f5f445 | refs/heads/edge | 2023-07-09T06:43:13.526571 | 2023-06-30T01:12:18 | 2023-06-30T01:12:18 | 207,443,994 | 0 | 0 | Apache-2.0 | 2019-12-19T09:41:37 | 2019-09-10T02:05:43 | null | UTF-8 | Python | false | false | 3,692 | py | """Belt Calibration OT3."""
import argparse
import asyncio
from opentrons.hardware_control.ot3api import OT3API
from opentrons.config.defaults_ot3 import DEFAULT_MACHINE_TRANSFORM
from opentrons_shared_data.deck import get_calibration_square_position_in_slot
from opentrons.hardware_control.ot3_calibration import (
... | [
"noreply@github.com"
] | XifanRD.noreply@github.com |
63a9629c1ff39bf5c2d7d4b4cf487e42bd617e94 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /120_design_patterns/006_adapter/_exercises/templates/adapter_006.py | 898f16ed6300e4b61fd9a0839d8305f0435880d8 | [] | no_license | syurskyi/Python_Topics | 52851ecce000cb751a3b986408efe32f0b4c0835 | be331826b490b73f0a176e6abed86ef68ff2dd2b | refs/heads/master | 2023-06-08T19:29:16.214395 | 2023-05-29T17:09:11 | 2023-05-29T17:09:11 | 220,583,118 | 3 | 2 | null | 2023-02-16T03:08:10 | 2019-11-09T02:58:47 | Python | UTF-8 | Python | false | false | 1,267 | py | # # coding: utf-8
#
# """
# Адаптер - паттерн, структурирующий классы и объекты.
#
# Преобразует интерфейс одного класса в интерфейс другого, который ожидают клиенты.
# Адаптер обеспечивает совместную работу классов с несовместимыми интерфейсами, которая без него была бы невозможна.
# """
#
#
# c_ Dog o..
# ___ - n... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
c5a3a07542c7ce7543397565731ad5fe73ce4d16 | d5125ccc1ef9915ffd72c575225a620aac5cb347 | /TriAquae/TriAquae/backend/Tri_Scrwer.py | ff8c3024a03eaf416ff771c31bdf8d280bc51ee6 | [] | no_license | yurui829/stefanbo | 2231074e0e4f04438aff647563299ad1947bd760 | 449f862c81a3b4ae3e079ecb4a15b3a5cbcca701 | refs/heads/master | 2021-01-24T23:42:52.064783 | 2014-07-02T03:05:04 | 2014-07-02T03:05:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,128 | py | #!/usr/bin/env python
#Author: Deng Lei
import os
import sys
import crypt
import subprocess
import platform
triaquae_user='triaquae'
save_dir='/tmp'
old_passwd='td0sn8'
try:
if sys.argv[1] == '-h':
print '''
usage : ./Hardware_Check_Client_Script.py option
-y : if you run this check script in... | [
"stefan_bo@163.com"
] | stefan_bo@163.com |
fad1fe3b0e9eb8fc90aefbf9b0b941a7ad29ee45 | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/artificial/transf_None/trend_MovingAverage/cycle_7/ar_/test_artificial_1024_None_MovingAverage_7__100.py | b97c6f2d4b1d77999307c67cd099260ce000e9bc | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 270 | py | import pyaf.Bench.TS_datasets as tsds
import pyaf.tests.artificial.process_artificial_dataset as art
art.process_dataset(N = 1024 , FREQ = 'D', seed = 0, trendtype = "MovingAverage", cycle_length = 7, transform = "None", sigma = 0.0, exog_count = 100, ar_order = 0); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
ce6e53cf6a2f213a54c428917874f2ae9bb3abc4 | 1ab7b3f2aa63de8488ce7c466a67d367771aa1f2 | /Ricardo_OS/Python_backend/venv/lib/python3.8/site-packages/pandas/core/tools/datetimes.py | 7aac2f793f61a12b3dcdc7abd7d6c97533c30827 | [
"MIT"
] | permissive | icl-rocketry/Avionics | 9d39aeb11aba11115826fd73357b415026a7adad | 95b7a061eabd6f2b607fba79e007186030f02720 | refs/heads/master | 2022-07-30T07:54:10.642930 | 2022-07-10T12:19:10 | 2022-07-10T12:19:10 | 216,184,670 | 9 | 1 | MIT | 2022-06-27T10:17:06 | 2019-10-19T09:57:07 | C++ | UTF-8 | Python | false | false | 32,789 | py | from collections import abc
from datetime import datetime
from functools import partial
from itertools import islice
from typing import (
TYPE_CHECKING,
Callable,
List,
Optional,
Tuple,
TypeVar,
Union,
overload,
)
import warnings
import numpy as np
from pandas._libs import tslib, tslib... | [
"kd619@ic.ac.uk"
] | kd619@ic.ac.uk |
62a4fdec7aaa401430b0f08865e493af1313220c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/94/usersdata/181/56153/submittedfiles/mediaLista.py | 5c96e772c65abb01ef83b9cfd5773c8dfafa6e20 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | # -*- coding: utf-8 -*-
n=int(input('digite o valor n:'))
a=[]
soma=0
for i in range (0,n,1):
numero=float(input('numero:'))
a.append(numero)
soma=soma+a[i]
media=soma/len(a)
print (a[0])
print (a[i])
print (media)
print (a)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
959f535dfd24d4198c5f713cf6622aa437b7e05a | bd1b1fda138e6687dadc57317c3e312bc8872600 | /mycode/leetcode_old/1 array(12)/66. Plus One.py | fed987adfbc8478d4e48f2390e6caf23be7bf614 | [] | no_license | dundunmao/lint_leet | fc185038f57e0c5cbb82a74cebd4fe00422416cb | 5788bd7b154649d2f787bbc4feb717ff2f4b4c59 | refs/heads/master | 2020-11-30T04:56:25.553327 | 2017-10-22T07:11:01 | 2017-10-22T07:11:01 | 96,705,212 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py |
# -*- encoding: utf-8 -*-
# 2级
# 内容:数字按digit转成nums,在这个数字上加1,再转成list
# 思路:乘以和除以10的幂数。
def plusOne(digits):
num = 0
for i in range(0,len(digits)):
num +=10**(len(digits)-1-i)*digits[i]
num = num+1
out = []
l = len(str(num))
for j in range(0,l):
power = 10**(l-j-1)
out.ap... | [
"dundunmao@gmail.com"
] | dundunmao@gmail.com |
ebfa169c921d11d76eb9f6c0d691abcaffe2d434 | bb33e6be8316f35decbb2b81badf2b6dcf7df515 | /source/res/scripts/client/gui/miniclient/event.py | 30237320472432c0665a7453fc3662334a8bc362 | [] | no_license | StranikS-Scan/WorldOfTanks-Decompiled | 999c9567de38c32c760ab72c21c00ea7bc20990c | d2fe9c195825ececc728e87a02983908b7ea9199 | refs/heads/1.18 | 2023-08-25T17:39:27.718097 | 2022-09-22T06:49:44 | 2022-09-22T06:49:44 | 148,696,315 | 103 | 39 | null | 2022-09-14T17:50:03 | 2018-09-13T20:49:11 | Python | UTF-8 | Python | false | false | 772 | py | # Python bytecode 2.7 (decompiled from Python 2.7)
# Embedded file name: scripts/client/gui/miniclient/event.py
from helpers import aop
class _ParametrizeInitAspect(aop.Aspect):
def atCall(self, cd):
cd.avoid()
return False
class _DisableEventBoards(aop.Aspect):
def atCall(self, cd):
... | [
"StranikS_Scan@mail.ru"
] | StranikS_Scan@mail.ru |
67488919868a2c2e637ac74009952a87e3a5b722 | 7cd2c3868d83be96f2699eeed4f6f4ae9dbf3a35 | /programmers/피보나치 수.py | d18756678a9f146f5211311b63fa65fde6135f6a | [] | no_license | Kimyechan/codingTestPractice | 4189e97f8543b9afc87374539acb5d1cecf40ce6 | c9d3878eb0d47fab22151fc0d39eef1dfd2210b5 | refs/heads/master | 2023-06-09T14:34:55.984710 | 2021-06-27T18:30:45 | 2021-06-27T18:30:45 | 282,819,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | def solution(n):
F = [0] * (n + 1)
F[1] = 1
if n == 1:
return F[1]
else:
for i in range(2, n + 1):
F[i] = F[i - 1] + F[i - 2]
return F[n] % 1234567 | [
"vlvkcjswo7@naver.com"
] | vlvkcjswo7@naver.com |
aa88224040843ccefc0565a06e0a0845e944f400 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_brazen.py | 2fca4c5044388d922dd631c17395d26ecdfaf0b4 | [
"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 | 461 | py |
#calss header
class _BRAZEN():
def __init__(self,):
self.name = "BRAZEN"
self.definitions = [u'obvious, without any attempt to be hidden: ', u'made of or covered in brass (= a bright yellow metal): ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.specie = 'adjecti... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
b8b135c3213d08e579f7b9648924d07bbfe27d9f | 97bc1d18cfe06705c4208eff4eb0cc86238a12a5 | /app/auth_app/urls.py | 165509e90b261731f09c5454faff5879d1fc38a4 | [
"Apache-2.0"
] | permissive | ganggas95/E-Wisata | 422ac1acd451c6f6d40d1ec5ff18de29cb890094 | fb66fc7d3d4cc5a45ad9acea42fb306140a6449f | refs/heads/master | 2020-03-24T20:01:33.828622 | 2018-07-31T03:14:36 | 2018-07-31T03:14:36 | 142,955,756 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | from .blueprint import auth_blueprint
from .views import LoginView
auth_blueprint.add_url_rule(
'/authenticate',
view_func=LoginView.as_view(
'login_page',
'login_page.html'
),
methods=['GET', 'POST']
) | [
"subhannizar25@gmail.com"
] | subhannizar25@gmail.com |
64925a7e928b8ecdea0d5da2860100be8cefcfd4 | f3057f554643bd68ccf5fb34966f8233c57c600f | /djtemps/djtemps/urls.py | 59b30dd0235287d6f7b8dcf34744ff03149afc0b | [] | no_license | travishen/djcore | e917eeefc0d8a985fa083bbaf6b426ad4af31dcb | e611d82797abd04f5909b809e6c4debb46eece11 | refs/heads/master | 2021-09-03T02:52:38.336089 | 2018-01-05T02:24:16 | 2018-01-05T02:24:16 | 113,840,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | """djtemps URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-ba... | [
"travishen.tw@gmail.com"
] | travishen.tw@gmail.com |
e4f9c9bfb3faec9593e02b9638246f9a52384884 | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/모듈과 패키지/외장함수_20200711174458.py | 7e139b3ed185e14eb3fc7ea6f9147cabaee02f6f | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | # list of python modules라고 검색한다
# Python Module Index라는 페이지를 들어간다.
| [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
548f5241b09afee9d2c0a2513fb12cf978b11a7c | 0c54ef16bf3ed5360184e8dbf106a490582ae47a | /examples/13_write_array.py | e4051ab7dc10a38fdc91a49eea273a63ffc6ce1c | [
"Apache-2.0"
] | permissive | dmroeder/pylogix | b94bb8baf2aaedeb0d23cc59a7035f92a2f829ed | 32e073be3cf25446cf22dc7c35c01dc372b43e3b | refs/heads/master | 2023-08-23T09:24:37.705569 | 2023-08-21T19:24:46 | 2023-08-21T19:24:46 | 63,923,077 | 501 | 213 | Apache-2.0 | 2023-08-21T19:24:48 | 2016-07-22T04:16:10 | Python | UTF-8 | Python | false | false | 426 | py | """
Write an array of values
I have a tag called "LargeArray", which is DINT[10000]
We can write a list of values all at once to be more efficient.
You should be careful not to exceed the ~500 byte limit of
the packet. You can pack quite a few values into 500 bytes.
"""
from pylogix import PLC
values = [8, 6, 7, 5, ... | [
"dmroeder@gmail.com"
] | dmroeder@gmail.com |
0959bbe61facb365756f4391892f97322118be66 | e802ed36cbfb55b87654b8aa7932ae2fc2ae7d43 | /u025q13.py | d70771b713b8fb70e2c53329b4a1a072b3b0dc65 | [] | no_license | maryammouse/cs101 | 29f493ab421117fb9bc038da4de7c5bdc29ca7ac | 6c15855c7cdc24972a0ff370d417c5de8278ce9c | refs/heads/master | 2016-09-01T22:34:16.016963 | 2014-05-26T21:54:49 | 2014-05-26T21:54:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,558 | py | # By Websten from forums
#
# Given your birthday and the current date, calculate your age in days.
# Compensate for leap days.
# Assume that the birthday and current date are correct dates (and no time travel).
# Simply put, if you were born 1 Jan 2012 and todays date is 2 Jan 2012
# you are 1 day old.
#
# Hint
# A who... | [
"stellanova@Maryams-MacBook-Air.local"
] | stellanova@Maryams-MacBook-Air.local |
13be90137e89c1236b2980f1085ce2d68372b19c | 3416464630bc3322dd677001811de1a6884c7dd0 | /fast_slow_pointers/q287_find_the_duplicate_number/solution.py | cf0cdc413ab6cc010479e217447ced2066a7da20 | [] | no_license | ttomchy/LeetCodeInAction | f10403189faa9fb21e6a952972d291dc04a01ff8 | 14a56b5eca8d292c823a028b196fe0c780a57e10 | refs/heads/master | 2023-03-29T22:10:04.324056 | 2021-03-25T13:37:01 | 2021-03-25T13:37:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
FileName: solution.py
Description:
Author: Barry Chow
Date: 2020/11/7 4:45 PM
Version: 0.1
"""
| [
"zhouenguo@163.com"
] | zhouenguo@163.com |
db2c7939e2629df41f5c90bd583f09f4833e69f9 | 4893269a322f5bdb4e86efcdf02542d042e69612 | /ev3dev_ws/build/kobuki_desktop/kobuki_qtestsuite/catkin_generated/pkg.develspace.context.pc.py | 55049fb4a884b694bcefe08759f798252282548a | [] | no_license | Vibashan/Summer_intern | fd59aa107bc7c0582dd0897cb864f1e6daff4e35 | 280f76844ea9cd52c872e5621ec4dd9a0c566380 | refs/heads/master | 2021-09-24T12:16:41.165801 | 2018-10-10T01:07:22 | 2018-10-10T01:07:22 | 152,341,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 385 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "kobuki_qtestsuite"
PROJECT_SPACE_DIR ... | [
"vibashanvs@gmail.com"
] | vibashanvs@gmail.com |
a9d5d8e9ba2510aeca295880b86334a1aaff9eb7 | 6bb9efd8d7dfd3c77d9884007f43ac66f872e412 | /main.py | 748d0df3e75b4661458e10a7c1d918823c412343 | [
"MIT"
] | permissive | afcarl/split-screen-communication-learning | 6b92c4762bf5353a96252cca00dac2e3702bf928 | 426edaa1ee58b467dfc0f46fe1f83ceea26f2ed7 | refs/heads/master | 2020-03-18T14:57:05.826228 | 2017-12-06T09:40:25 | 2017-12-06T09:40:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,272 | py | from __future__ import print_function
import argparse
import os
import sys
import time, random
import torch
import torch.optim as optim
import torch.multiprocessing as mp
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
from functools import reduce
from model import Comm
from train_uni impor... | [
"noreply@github.com"
] | afcarl.noreply@github.com |
caa80fb350d46e12fbb9f685527606cf58fbeb56 | 0bd7a6bef178bb93b2c3fb19e789c7e3b364e6d1 | /simple_frame/experiment_planning/alternative_experiment_planning/experiment_planner_baseline_3DUNet_v21_32GB.py | 546cdf9d3634baa36f03c921a3b8a92c0adacaa6 | [] | no_license | Magnety/Simple_Frame_linux | 090e07491e170314718c9ba5f2da2a4393bdb1ad | 7e1ef5d11e3baa8784fd9b6bbf81b0d954dd1ca6 | refs/heads/main | 2023-06-02T09:35:36.023461 | 2021-06-17T09:23:01 | 2021-06-17T09:23:01 | 371,412,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,692 | py | # Copyright 2020 Division of Medical Image Computing, German Cancer Research Center (DKFZ), Heidelberg, Germany
#
# 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://w... | [
"liuyiyao0916@163.com"
] | liuyiyao0916@163.com |
561fc5a711a86c5eafea22de8ca9a86e835d5701 | 34b4d55b753773b9dcfdd086cf0c2532e30025e0 | /models/financiera_tablero.py | 4060f8b71a4dd61e6c5ca8e4a636a72faaa1a54e | [] | no_license | levislibra/financiera_tablero_control | fe3badd61a5d6a3a576ccb85a2c441f3d4f79fcf | d71dfaddeee80898b2eb5b1862c4c72959414e3f | refs/heads/master | 2023-07-31T11:22:40.042868 | 2023-07-09T18:58:59 | 2023-07-09T18:58:59 | 224,718,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,909 | py | # -*- coding: utf-8 -*-
from openerp import models, fields, api
from calendar import monthrange
from datetime import datetime, timedelta
import base64
import requests
import random
MESES = ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Setiembre', 'Octubre', 'Noviembre', 'Diciembre']
PRE... | [
"levislibra@hotmail.com"
] | levislibra@hotmail.com |
3cb29bb9ae8c51aef26b0022186bec0aded7b589 | 0a28bcde2499e6a41e16d88ed62cd2e80a5b464d | /hb_quant/huobi/model/wallet/chain_deposit_address.py | b2f6ce08821daba9d1539a1293117297ff1a894b | [
"MIT"
] | permissive | wenli135/Binance-volatility-trading-bot | 2cfe66007294b13a89b16d1622d50ce1615f1d66 | 75a03ad61df0e95492128fb6f1f419d4dc256ab3 | refs/heads/main | 2023-06-13T06:40:43.855256 | 2021-07-01T02:03:25 | 2021-07-01T02:03:25 | 373,853,320 | 0 | 0 | MIT | 2021-06-04T13:38:26 | 2021-06-04T13:38:26 | null | UTF-8 | Python | false | false | 760 | py |
class ChainDepositAddress:
"""
The deposit address.
:member
currency: The crypto currency to deposit.
address: Deposit address
addressTag: Deposit address tag.
chain: Block chain name.
"""
def __init__(self):
self.currency = ""
self.address = ""
... | [
"wenli@quchaogu.com"
] | wenli@quchaogu.com |
9fbd8df0cbe2dbc2e4d04e23c6503c96d6ba14df | f9ff4995d13583640351b4fffaa3f6c7393257b2 | /tests/test_certificates.py | d4dac3fe2a7f9e8238872bc82d41cfbe31671dc1 | [
"Apache-2.0"
] | permissive | cassiobotaro/certificates | ccc82b9f8a6baad1d7ac52e19fa43605af5f8efa | 82ec1f8fbee4e5451491e6849767ee23e6f331f9 | refs/heads/main | 2023-08-05T09:30:04.164513 | 2023-07-31T23:23:44 | 2023-07-31T23:23:44 | 129,948,035 | 57 | 11 | Apache-2.0 | 2023-09-11T21:55:29 | 2018-04-17T18:26:05 | Python | UTF-8 | Python | false | false | 85 | py | def test_ok():
'''test ok to configure continuous integration'''
assert True
| [
"cassiobotaro@gmail.com"
] | cassiobotaro@gmail.com |
9ed92a4040a1dd96b38ba0c135e4ae889bc71173 | 772915fc1d85ba50892d6aadcff9d5d55e1a62b5 | /11_Standart_library/task_11_02_03_File_parsing/code/main.py | 42601857e66a1b8609096409230716a52d781b4f | [] | no_license | dolphin-in-a-coma/python-course | eb90b9797e4ef397acd1577b30c31e372ffb6ed7 | c5dd67c3e699a62eb5f9594bc13dabbed830fecc | refs/heads/master | 2020-04-15T19:24:53.277011 | 2019-01-09T22:48:04 | 2019-01-09T22:48:04 | 164,948,718 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,502 | py | import os.path
import sys
from customer_list import CustomerList
if __name__ == "__main__":
app_path = os.path.abspath(os.path.dirname(sys.argv[0]))
# 1. Генерация текстового файла с данными
# используйте модуль data_generator.pyc (один раз).
filename = os.path.join(app_path, "data.txt")
# ... | [
"eugenartemovich@gmail.com"
] | eugenartemovich@gmail.com |
ff4689a9ed6e223fdfb4ef24c37da0ddc75e7868 | 1c69aaf4ff5c9bbabd4e4e3486e3f442808f96ea | /models/r4/schedule_tests.py | 57470ce1a1a4df12e2d262889ec09386e68ea1f9 | [] | no_license | glow-mdsol/devday-boston-clinical-research | 72565289b27e9d6105640ec14749e07d7bc14014 | 560a8141bc3bd1ae5a31b110e82863e25b4ce9f8 | refs/heads/master | 2020-03-20T00:48:32.862642 | 2018-06-20T15:33:29 | 2018-06-20T15:33:29 | 137,056,522 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,808 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 3.3.0 on 2018-05-12.
# 2018, SMART Health IT.
import os
import io
import unittest
import json
from . import schedule
from .fhirdate import FHIRDate
class ScheduleTests(unittest.TestCase):
def instantiate_from(self, filename):
datadi... | [
"glow@mdsol.com"
] | glow@mdsol.com |
723fab84e95f282d21bb858f64d70a2042e6d502 | 7f203d6d2d48bdc0b768215798f0694803268818 | /test/vnx/resource/verifiers.py | 3fa33f988e19666569aaa38ffddacd8af452f22d | [
"Apache-2.0"
] | permissive | thotypous/storops | 1108a314658def0dac69e0b0d14578283aab50b4 | 8ea8c5a71f2bf93b710c854ee6c3b01f334673a0 | refs/heads/master | 2021-01-21T17:03:31.935679 | 2016-08-22T15:30:54 | 2016-08-22T15:30:54 | 66,502,757 | 0 | 0 | null | 2016-08-24T21:57:36 | 2016-08-24T21:57:35 | null | UTF-8 | Python | false | false | 7,626 | py | # coding=utf-8
# Copyright (c) 2015 EMC 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... | [
"cedric.zhuang@emc.com"
] | cedric.zhuang@emc.com |
f788bfa8d423041265bf77aa609db9ce71933323 | 1df6e91c10c1004183d5c060d97acf994dc725cc | /app/productdb/tests/test_productdb_views.py | aa976ef6435120503b28b65112f8a2fbc1675b2f | [
"MIT"
] | permissive | tsg-ssd/product-database | 1e64c8229f792a0328ba007f486a74e6809a54d9 | 481f0582d6d764b04f6422a934aeb6fed11fb74e | refs/heads/master | 2020-09-06T13:29:56.399603 | 2017-04-03T19:56:01 | 2017-04-03T19:56:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52,127 | py | """
Test suite for the productdb.views module
"""
import datetime
import pytest
from django.contrib.messages.storage.fallback import FallbackStorage
from django.contrib.auth.models import AnonymousUser, Permission
from django.core.exceptions import PermissionDenied
from django.core.files.uploadedfile import SimpleUploa... | [
"henry@codingnetworker.com"
] | henry@codingnetworker.com |
c7da4d414bf5042644fe84479bd5c1ed97b13689 | 7066555f4c2ff9b405754d2e793b97bf04b6ab98 | /interview/047.py | 57a8e09e75288f68acb83e09af137c63b804c977 | [] | no_license | yangtao0304/hands-on-programming-exercise | c0d0fe324ffaf73c7b4c45aba721a245a8cc9ce2 | cc7740026c3774be21ab924b99ae7596ef20d0e4 | refs/heads/master | 2020-09-11T02:05:51.305196 | 2020-03-19T03:45:53 | 2020-03-19T03:45:53 | 221,904,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 549 | py | class Solution:
def permuteUnique(self, nums: List[int]) -> List[List[int]]:
def helper(first=0):
if first == len(nums)-1:
res.append(nums[:])
s = set()
for i in range(first, len(nums)):
if nums[i] in s:
continue
... | [
"im.yangtao0304@gmail.com"
] | im.yangtao0304@gmail.com |
e1033a9b287424a0af814f6c4d9e633476d9c6ed | fef19f8073762de02edfc4227e9d971fd4b3ba63 | /Part_I_Basics/exercises/exercise_4_4_one_million.py | 4f767e9d809d626ea1b8ad89db1147626944ca72 | [] | no_license | shaoda06/python_work | a461bed73d3e6ef9fddaacc5abeb01d3c75de3e0 | f7c3f77e8165019536c76edd9fbe24615f58e433 | refs/heads/master | 2020-05-07T20:36:48.695960 | 2020-02-10T23:22:54 | 2020-02-10T23:22:54 | 180,868,360 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | # 4-4. One Million: Make a list of the numbers from one to one million, and then
# use a for loop to print the numbers. (If the output is taking too long, stop it by
# pressing ctrl-C or by closing the output window.
values = list(range(1, 1000001))
for value in values:
print(value)
| [
"shaoda06@gmail.com"
] | shaoda06@gmail.com |
6b27dc5410f8c79764dd07e85739faa44719f75e | b9f8e0ab9a5f73b405f865fe38358b656be28f17 | /project/ssk_impl/test_ssk_approx.py | 9f8da3520fa756a4fe19920e173a2a0b759e4514 | [] | no_license | chris4540/DD2434_Advanced_ML | a9e6d5257459eb669d61a7bd6760161baac2181d | c3aca331a08ec6902e1b254ece08495693cf0087 | refs/heads/master | 2023-02-10T13:53:37.089703 | 2021-01-09T23:54:33 | 2021-01-09T23:54:33 | 328,268,994 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | """
Simple text for the correctness of code
"""
import numpy as np
import ssk_kernel_approx_c as kernel
if __name__ == '__main__':
decay = 0.8
k = kernel.ssk_kernel_approx("cat", "car", 2, decay, ["ca", "ar", "at"])
print(k)
# ans = 1.0 / (2 + decay**2)
#
# assert (np.abs(k - ans) < 1e-6 )
| [
"chris4540@gmail.com"
] | chris4540@gmail.com |
80c7f378d380f497ee097ded7a09dcc2cf92b1ec | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/02_preprocessing/merraLagScripts/428-tideGauge.py | 6f7eecf7b00ab87f66fcfe5056d191eda896f0bc | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,772 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Mar 31 17:12:23 2020
****************************************************
Load predictors & predictands + predictor importance
****************************************************
@author: Michael Tadesse
"""
#import packages
import os
import pandas as pd
import datetime a... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
2c2a1b9cfe5963b9687e33c3202cf5731fa112fa | 8ae9e0da49f046dc419ba34d3056baee8c616141 | /sim_utils/test.py | a9ca84ed9b230d3993050aead77b2011b793b34d | [
"MIT"
] | permissive | MichaelAllen1966/2004_covid_testing_lab_simulation | 31a4637b371ed304e9f1d52b1e1a72e91ccd67d1 | ad6b3d473cc75dc67e1946caacf59682fcd678cd | refs/heads/master | 2023-05-13T06:37:05.604350 | 2021-06-02T18:45:19 | 2021-06-02T18:45:19 | 257,628,080 | 1 | 0 | MIT | 2021-06-02T18:41:33 | 2020-04-21T14:49:47 | Jupyter Notebook | UTF-8 | Python | false | false | 80 | py | x = 10
go = True
while True:
x -= 1
print(x)
if x < 0:
break | [
"michael.allen1966@gmail.com"
] | michael.allen1966@gmail.com |
fd4611dfb871f4c2720b1c85e78e3b1438b57343 | 17e3234ab01fd93233cc453f1495d50424c3bd8f | /latte/monkey_patches/werkzeug/local.py | b4d2c97576129437fe3124278627cc44d0fb2686 | [
"MIT"
] | permissive | sunnyakaxd/latte | 8943dbf70ce934e04e51b147a54e6dd02dfe43db | de74065122a1f858bd75f8e1a36fca3b23981f4c | refs/heads/master | 2023-06-11T10:25:31.217047 | 2021-07-06T06:40:19 | 2021-07-06T06:40:19 | 383,363,137 | 0 | 0 | NOASSERTION | 2021-07-06T06:26:49 | 2021-07-06T06:26:49 | null | UTF-8 | Python | false | false | 2,075 | py | from werkzeug.local import Local
import latte
import os
import greenlet
from frappe import local
from time import perf_counter
from gevent import hub
if os.environ.get('PATCH_WERKZEUG_LOCAL'):
slots = [
'error_log', 'message_log', 'debug_log', 'realtime_log',
'flags', 'rollback_observers', 'test_objects', 'site',... | [
"himanshu.mishra@elastic.run"
] | himanshu.mishra@elastic.run |
b5a64278cff11109d6bf3a086d0c4464fe69be3a | 9ba0e059a15f2b24d7c031e039d3564c647a9336 | /tuva/imports/models/simplebinding.py | 9b003545c1d3fb980ede7c662774d883dc24d2e9 | [] | no_license | vatir/tuva | 98714d262cc0fbaf714c29e81af25bad8bb02c6c | a105280951c0a21dd0d9eab60d24545e423e0479 | refs/heads/master | 2023-01-25T04:27:38.558356 | 2023-01-11T17:58:47 | 2023-01-11T17:58:47 | 129,917,130 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,030 | py | import Data
from numpy import inf
from collections import OrderedDict
from FuncDesigner import oovars
if Data.model_init == False:
Data.constrained = False
Data.param = OrderedDict()
Data.param = {
's' : 0.19,
'k1' : 0.01,
'offset' : 0.01,
}
... | [
"grok_me@hotmail.com"
] | grok_me@hotmail.com |
53501fe0721412ef9eda91482d5cf1f33d1e7f9f | 6ad119fba2e32353bf8f0e1b47d47b796002e637 | /l10n_br_point_of_sale/models/invoice_eletronic.py | ac82417b953b5e7c165c06b6258c2bcfc1cfb73f | [
"MIT"
] | permissive | gortiz-v/odoo-brasil | 6e1fdf08709ddadbfd0c639065825f2d4f2b449c | a7a494f88660a8aab7bfc3ed52f8acce5ca9959d | refs/heads/13.0 | 2021-12-14T21:52:05.852117 | 2020-11-06T22:00:44 | 2020-11-06T22:00:44 | 311,741,398 | 1 | 0 | MIT | 2020-11-10T21:10:56 | 2020-11-10T17:53:47 | null | UTF-8 | Python | false | false | 2,760 | py | # -*- coding: utf-8 -*-
# © 2016 Danimar Ribeiro <danimaribeiro@gmail.com>, Trustcode
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import re
from odoo import api, fields, models
class EletronicDocument(models.Model):
_inherit = 'eletronic.document'
pos_order_id = fields.Many2one(
... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
53098329a312b8f8da856d24bb4e8eda8a20ffeb | 3fef91a7856105428a04c26e70434039c5d74ded | /77.组合.py | 9212485d6759818c9c0d4c5bbe01b32081ebad1d | [] | no_license | vivid-k/Leetcode | 77b1a13795cc1a337b680e43ca29660edcbd1688 | 5d666b55f65368a2458742da70de429498dbb16c | refs/heads/master | 2022-11-16T02:03:17.178858 | 2020-07-14T01:49:35 | 2020-07-14T01:49:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,084 | py | #
# @lc app=leetcode.cn id=77 lang=python3
#
# [77] 组合
#
# @lc code=start
class Solution:
def combine(self, n: int, k: int) -> List[List[int]]:
nums = list(range(1, n + 1))
res = []
def backtrack(nums, tmp):
if len(tmp) == k:
res.append(tmp[:])
... | [
"luzhangxd@outlook.com"
] | luzhangxd@outlook.com |
4743251a3287094fe7adae3b25aa41a12a76caf9 | e97e727972149063b3a1e56b38961d0f2f30ed95 | /knetik_cloud/models/property_field_list_resource.py | 4241c774bcb7790532d632485c382fa3f271c8f8 | [] | no_license | knetikmedia/knetikcloud-python-client | f3a485f21c6f3e733a864194c9acf048943dece7 | 834a24415385c906732437970db105e1bc71bde4 | refs/heads/master | 2021-01-12T10:23:35.307479 | 2018-03-14T16:04:24 | 2018-03-14T16:04:24 | 76,418,830 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,590 | py | # coding: utf-8
"""
Knetik Platform API Documentation latest
This is the spec for the Knetik API. Use this in conjunction with the documentation found at https://knetikcloud.com.
OpenAPI spec version: latest
Contact: support@knetik.com
Generated by: https://github.com/swagger-api/swagger-codeg... | [
"shawn.stout@knetik.com"
] | shawn.stout@knetik.com |
1e448d6b7f04a26f3906f6dcbf04b2a8f1141784 | 30a6975de792d613db836346ff758a7c0797d400 | /lldb/test/API/lang/swift/foundation_value_types/global/TestSwiftFoundationTypeGlobal.py | 698acb62421b413283695523fc7fb6c38fd1272d | [
"NCSA",
"LLVM-exception",
"Apache-2.0"
] | permissive | WYK15/swift-Ollvm11 | 0a2aa1b216c8e3f38829ae16db846039e8de149e | b28dba1ebe1186790650c72d5e97d8b46f1bc6e0 | refs/heads/main | 2023-06-27T18:14:47.652175 | 2021-06-10T12:47:56 | 2021-06-10T12:47:56 | 367,350,198 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | import lldb
from lldbsuite.test.lldbtest import *
from lldbsuite.test.decorators import *
import lldbsuite.test.lldbutil as lldbutil
import os
import unittest2
class TestSwiftFoundationValueTypeGlobal(TestBase):
mydir = TestBase.compute_mydir(__file__)
def setUp(self):
TestBase.setUp(self)
@swif... | [
"wangyankun@ishumei.com"
] | wangyankun@ishumei.com |
a43f30d55a6a6916ddc759d40b970b13d16c942b | 4e5b20fdcca20f458322f0a8cd11bbdacb6fb3e5 | /suning/api/transaction/OrderselfdistAddRequest.py | 0d6d99c91bfb540a7810a32d00e737b7055a165e | [] | no_license | shijingyu/sunningAPI | 241f33b0660dc84635ce39688fed499f5c57a5da | 4a3b2ef7f9bdc4707d1eaff185bc7eb636fe90d5 | refs/heads/master | 2020-04-24T22:15:11.584028 | 2019-02-24T06:41:20 | 2019-02-24T06:41:20 | 172,305,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | # -*- coding: utf-8 -*-
'''
Created on 2014-9-25
@author: suning
'''
from suning.api.abstract import AbstractApi
class OrderselfdistAddRequest(AbstractApi):
'''
'''
def __init__(self):
AbstractApi.__init__(self)
self.orderCode = None
self.deliveryPerName = None
s... | [
"945090896@qq.com"
] | 945090896@qq.com |
238e1cf92410705581374250bdbc602b246fa09f | f09dc121f213f2881df3572288b7ee5b39246d73 | /aliyun-python-sdk-ccc/aliyunsdkccc/request/v20170705/ListAgentEventsRequest.py | 58195010abecf32165a82dce1d4389ec2fbfe2bc | [
"Apache-2.0"
] | permissive | hetw/aliyun-openapi-python-sdk | 2f31378ad6be0896fb8090423f607e9c7d3ae774 | 7443eacee9fbbaa93c7975c6dbec92d3c364c577 | refs/heads/master | 2023-01-19T22:42:36.214770 | 2020-12-04T10:55:14 | 2020-12-04T10:55:14 | 318,689,093 | 1 | 0 | NOASSERTION | 2020-12-05T03:03:03 | 2020-12-05T03:03:03 | null | UTF-8 | Python | false | false | 2,260 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
2c4154c1bfd0f9bc2b65fb1d5822aa19c48c5ee6 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-workspaceapp/huaweicloudsdkworkspaceapp/v1/model/update_policy_group_response.py | da5eb852876f381798bc32c80340cd199f7598c9 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,123 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class UpdatePolicyGroupResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and t... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
c44a06ebce3d904c98183c31f36186e4403a864a | 248c076252f7710d215f3b7b9e7cc7ef568dd205 | /register/urls.py | e7744abedfc1e821e1e3d750c59723b89f6c3503 | [] | no_license | venugopalgodavarthi/generic-specific-url-navigation-page-to-page | caefc2838a529972fc22438abea4e888e2a9107c | e403dbdde0ff9e19af41dcff3572222bc66be0d0 | refs/heads/main | 2023-08-25T03:45:40.511128 | 2021-10-28T08:38:09 | 2021-10-28T08:38:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 229 | py | from django.urls import path
from register import views
urlpatterns=[
path('register/',views.register,name="register"),
path('login/',views.login,name="login"),
path('home/<name>/',views.homepage,name="home"),
] | [
"venugopalgodavarthi@gmail.com"
] | venugopalgodavarthi@gmail.com |
81b214217c895d604277c48fef0688ecfecae0c9 | 33b42731826cd531abdda0740a840e20e137f719 | /www/kluczowe-glosowania-2014/backend/questions2json.py | 3ae39600b11356ace1803f010d91972293211173 | [] | no_license | KohoVolit/vaa2012-2 | 5fd67ac1d358ea51b8ef69d56a7fa29b1652855b | ccc04bb0ce2345b4cb95e2ac29d68bac317825b7 | refs/heads/master | 2023-03-09T04:13:21.820376 | 2022-08-30T16:50:26 | 2022-08-30T16:50:26 | 5,830,482 | 4 | 12 | null | 2023-03-06T09:53:39 | 2012-09-16T15:37:46 | HTML | UTF-8 | Python | false | false | 747 | py | '''creates questions.json from google sheet
'''
import json
import requests
url = "https://spreadsheets.google.com/feeds/list/1sk_hz5VS7V5y2jGQVwYgucAbcMyyVSITMZEWRUoG4KU/1/public/full?alt=json"
r = requests.get(url)
r.raise_for_status()
spreadsheet = json.loads(r.text)
data = []
for row in spreadsheet["feed"]["ent... | [
"michal.skop@kohovolit.eu"
] | michal.skop@kohovolit.eu |
fcf4643ad640cb0f7cf5ba69d8b2c1fc507f39d9 | 85d4b677f926b6b6c312cdb00c925d6efa1d1ae9 | /consentrecords/migrations/0009_auto_20151004_0326.py | e6c39bac6d313805602e36d79924321242b24235 | [] | no_license | fakaba/consentrecords | 4469c190dbfb4f2aedbdc9bf6cfec68e11e9d0d8 | 9938d04c83ccb408bc20444e41ad18faf311d071 | refs/heads/master | 2021-01-17T04:23:55.395702 | 2016-07-07T13:58:46 | 2016-07-07T13:58:46 | 62,158,873 | 0 | 0 | null | 2016-06-28T16:54:47 | 2016-06-28T16:54:47 | null | UTF-8 | Python | false | false | 2,847 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import uuid
class Migration(migrations.Migration):
dependencies = [
('consentrecords', '0008_auto_20150909_2315'),
]
operations = [
migrations.CreateModel(
name='DeletedI... | [
"michaelcrubenstein@gmail.com"
] | michaelcrubenstein@gmail.com |
92161e46d9c332a20be2d25ba4cb40cc0ca4782f | 0090dcd4c6515b30a43980545ce0317250da6725 | /pygst_utils/video_source.py | fd6b3ed55a850d61a5641f6ac78a8bf22d15c961 | [] | no_license | ajitpawar/pygst_utils | 71d8598be5cb1ec5834ff381ba28cf72433f9601 | e3e93911c0e71239c203338f446aa405a42b5b53 | refs/heads/master | 2021-01-13T06:49:22.561808 | 2016-03-01T22:12:46 | 2016-03-01T22:12:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,289 | py | # coding: utf-8
from path_helpers import path
import gst
import pandas as pd
import platform
if platform.system() == 'Linux':
VIDEO_SOURCE_PLUGIN = 'v4l2src'
DEVICE_KEY = 'device'
else:
VIDEO_SOURCE_PLUGIN = 'dshowvideosrc'
DEVICE_KEY = 'device-name'
class DeviceNotFound(Exception):
pass
def g... | [
"christian@fobel.net"
] | christian@fobel.net |
687afa47959fd4e14df9912b5fba458b1023c301 | 6450234cc5339e9d05102b25b25ba38e2bd9e4cb | /HEPHYPythonTools/scripts/updateNFS.py | 2e15c753c9814e9a6f2aeaef92a7e0bd8e092bc7 | [] | no_license | wa01/Workspace | 57b87481005c441ab91a8180ddf6ea00b520aca7 | 47759c6a20473f7a694ca9e3fd4e0e8343c8018c | refs/heads/master | 2021-01-15T10:36:55.429420 | 2014-09-20T17:44:54 | 2014-09-20T17:44:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,913 | py | #!/bin/env python
import subprocess
import os
from optparse import OptionParser
parser = OptionParser()
parser.add_option("--userNameDPM", dest="userNameDPM", default="mhickel", type="string", action="store", help="username of DPM User")
parser.add_option("--userNameNFS", dest="userNameNFS", default="schoef", type="s... | [
"robert.schoefbeck@cern.ch"
] | robert.schoefbeck@cern.ch |
0b2f0bd92ce7a932539d9dbda9c40b85756f4f42 | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractTranslatingmechWordpressCom.py | c9314eb72b40fedd21b9dc85e8cfbb49655266d2 | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 570 | py |
def extractTranslatingmechWordpressCom(item):
'''
Parser for 'translatingmech.wordpress.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translated'... | [
"something@fake-url.com"
] | something@fake-url.com |
d1365b604543f3c5445c0e8b79fc6b90333e47ae | 8fb1d41797595550418ecfc0e7558f38254b4606 | /django/core/management/commands/sqlflush.py | 8ffe3904dc60165dd0af6759b94985a77636f4dc | [
"MIT"
] | permissive | hunch/hunch-gift-app | 2aad70a9f18124bf0de02d7a125fa93c765da008 | 8c7cad24cc0d9900deb4175e6b768c64a3d7adcf | refs/heads/master | 2016-09-06T03:13:52.153974 | 2012-03-26T18:11:59 | 2012-03-26T18:11:59 | 1,191,221 | 6 | 3 | null | null | null | null | UTF-8 | Python | false | false | 872 | py | from optparse import make_option
from django.core.management.base import NoArgsCommand
from django.core.management.sql import sql_flush
from django.db import connections, DEFAULT_DB_ALIAS
class Command(NoArgsCommand):
help = "Returns a list of the SQL statements required to return all tables in the databas... | [
"gleitz@hunch.com"
] | gleitz@hunch.com |
27a9287d0d67d984984b5ddff4ab1d867f08d1e1 | fffafa3a677dbf321d6993014bee67a91910eab1 | /products/migrations/0001_initial.py | 3a5e58009e5cfed3668ca17e8de99589c868cef1 | [
"MIT"
] | permissive | Deirdre18/yoda-design-ecommerce-app-Milestone4-project | 06793e4d977dc1f759a129c686ad34f800bbcd5a | 0e3d5d4795b854d030af61fb4331738bb827def4 | refs/heads/master | 2022-12-16T18:05:26.328170 | 2020-01-13T04:51:45 | 2020-01-13T04:51:45 | 230,626,138 | 0 | 1 | MIT | 2022-11-22T04:55:59 | 2019-12-28T15:14:09 | Python | UTF-8 | Python | false | false | 764 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.23 on 2019-12-29 02:36
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Produ... | [
"deirdreweldon18@gmail.com"
] | deirdreweldon18@gmail.com |
5d8ce5abaaca49142c6bc847e50bb26a0c3406fb | 29da2ca6def1270be13a3096685a8e5d82828dff | /CIM14/ENTSOE/Equipment/Generation/__init__.py | 26724e6b1014465f26b134eef71e99ff8274ae7a | [
"MIT"
] | permissive | rimbendhaou/PyCIM | 75eb3bcd3729b2410c03f3d5c66d6f1e05e21df3 | d578bb0bf1af344342bd23344385ed9c06c2d0ee | refs/heads/master | 2022-04-28T01:16:12.673867 | 2020-04-16T02:19:09 | 2020-04-16T02:19:09 | 256,085,381 | 0 | 0 | MIT | 2020-04-16T02:15:20 | 2020-04-16T02:08:14 | null | UTF-8 | Python | false | false | 1,382 | py | # Copyright (C) 2010-2011 Richard Lincoln
#
# 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 restriction, including without limitation the
# rights to use, copy, modify, merge, publish... | [
"rwl@thinker.cable.virginmedia.net"
] | rwl@thinker.cable.virginmedia.net |
c4830868a24328f70e629163fe0398a65a4c4425 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Pdf_docx_pptx_xlsx_epub_png/source/pptx/dml/fill.py | fe953da79a5990accb32945d47c934c086f9f6f9 | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 5,615 | py | # encoding: utf-8
"""
DrawingML objects related to fill, FillFormat being the top-most.
"""
from __future__ import absolute_import, print_function, unicode_literals
from ..enum.dml import MSO_FILL
from ..oxml.dml.fill import (
CT_BlipFillProperties, CT_GradientFillProperties, CT_GroupFillProperties,
CT_NoFil... | [
"ryfeus@gmail.com"
] | ryfeus@gmail.com |
45261cf6199729b4e08c7022cc6cc75553686630 | 8a0564e84e7a79fffb87e3ddef03cbb2ed83e098 | /Backup/Backup/Backup/multiple_Greedy.py | 5459e2f530fc499800fae6adcc7198b45a1cd9e5 | [] | no_license | dimanzt/NetworkTomography | 7c302616c2fca3d8c3f8f94261a4b182e08f55b0 | 96e13761a9d45df267dab43c983470c6d7ed9162 | refs/heads/master | 2021-09-15T10:26:45.359278 | 2018-05-30T14:19:08 | 2018-05-30T14:19:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,181 | py | __author__ = 'Diman'
import os
from my_lib import *
path_to_image_store='..\..\..\image_graph_dot\store_images'
######################################################
if len(sys.argv)>1:
num_couple_passed=int(sys.argv[1])
filename_graph=str(sys.argv[2])
print num_couple_passed
else:
num_couple_passed=-... | [
"dxz149@psu.edu"
] | dxz149@psu.edu |
c1862bd6333348933329a92d13598b437bdb8d3e | bde6ed092b7b29703737e11c5a5ff90934af3d74 | /AtCoder/ABC/026/b.py | c05d029bd74e6035062e33c5783be33469462ff8 | [] | no_license | takecian/ProgrammingStudyLog | 2ab7ea601e0996b3fa502b81ec141bc3772442b6 | 94485d131c0cc9842f1f4799da2d861dbf09b12a | refs/heads/master | 2023-04-28T16:56:18.943574 | 2023-04-18T06:34:58 | 2023-04-18T06:34:58 | 128,525,713 | 4 | 0 | null | 2022-12-09T06:15:19 | 2018-04-07T12:21:29 | Python | UTF-8 | Python | false | false | 572 | py | # https://atcoder.jp/contests/abc026/tasks/abc026_b
import sys
sys.setrecursionlimit(12345678)
import itertools
from collections import Counter
from collections import defaultdict
from collections import deque
import bisect
from heapq import heappush, heappop
def main():
n = int(input())
rl = [int(input()) fo... | [
"takecian@gmail.com"
] | takecian@gmail.com |
ba79e98935fe9425b7d78ab18033c5205e8cba93 | e34cbf5fce48f661d08221c095750240dbd88caf | /python/day25/LuffyCRM/luffyAdmin/admin_base.py | 38f22f9593815967122793a075118ccc74ae3456 | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 788 | py | class BaseAdmin(object):
list_display = ()
list_filter = ()
list_per_page = 5
class AdminSite(object):
def __init__(self):
self.registered_admins = {}
def register(self, model_or_iterable, admin_class=BaseAdmin, **options):
"""
负责把每个App下的表注册self.registered_ad... | [
"284607860@qq.com"
] | 284607860@qq.com |
53d70e56d3b228140b31a8aedaec02b604dccfe5 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-lakeformation/huaweicloudsdklakeformation/v1/model/list_lake_formation_instances_response.py | 400474bb02cb894aea63d8403f1022edc5716fc3 | [
"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 | 5,228 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ListLakeFormationInstancesResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
b42ed320046bb7a924cd5213bfb7a35112e162be | 4bb1a23a62bf6dc83a107d4da8daefd9b383fc99 | /work/abc036_c.py | 3ab045bb7f2a85f14b1f2910f4352cef9da5feec | [] | no_license | takushi-m/atcoder-work | 0aeea397c85173318497e08cb849efd459a9f6b6 | f6769f0be9c085bde88129a1e9205fb817bb556a | refs/heads/master | 2021-09-24T16:52:58.752112 | 2021-09-11T14:17:10 | 2021-09-11T14:17:10 | 144,509,843 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | n = int(input())
al = [int(input()) for _ in range(n)]
d = {}
s = -1
idx = -1
for a in sorted(al):
if a!=s:
s = a
idx += 1
d[s] = idx
for a in al:
print(d[a]) | [
"takushi-m@users.noreply.github.com"
] | takushi-m@users.noreply.github.com |
f6a09dd79671499cdce35e60f6c2221c88a140a6 | dfc827bf144be6edf735a8b59b000d8216e4bb00 | /CODE/experimentcode/Thesis/Forced/GaussianBumpoverPeriodicBed/FEVMtoFDVM/FEVMRb&db&ddb&u/SecondFemSolver_legacy.py | 5874506b4709e30dcb68f68990bc8a509b75a1f4 | [] | no_license | jordanpitt3141/ALL | c5f55e2642d4c18b63b4226ddf7c8ca492c8163c | 3f35c9d8e422e9088fe096a267efda2031ba0123 | refs/heads/master | 2020-07-12T16:26:59.684440 | 2019-05-08T04:12:26 | 2019-05-08T04:12:26 | 94,275,573 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 78,525 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 5 14:24:26 2017
@author: jp
"""
from Serre2dc import *
from scipy import *
from pylab import plot, show, legend,xlim,ylim,savefig,title,xlabel,ylabel,clf, loglog
import csv
import os
from numpy.linalg import norm,solve
from time import time
from scipy.interpolate import ... | [
"jordanpitt3141@github.com"
] | jordanpitt3141@github.com |
19bfe50f72e76c0b5e7a526bf75c8bf10e21eed6 | 39430eafe6b5f1ce321b14d82b69a368bc3b0b82 | /utils/gmm-em-clustering/main.py | c7f095e615a3cb57e3edad3b3a30f6310815e23e | [] | no_license | hy-zpg/EPGA-Multitask | bd534a080d681e97f76aa52d5f17c97d19c1136d | 2da4a2bd2eff8fed3a06d0f352fed7a64c80ba3b | refs/heads/master | 2020-04-30T21:48:59.658415 | 2019-03-22T08:50:33 | 2019-03-22T08:50:33 | 177,103,019 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,977 | py | # -*- coding: utf-8 -*-
# ----------------------------------------------------
# Copyright (c) 2017, Wray Zheng. All Rights Reserved.
# Distributed under the BSD License.
# ----------------------------------------------------
import matplotlib.pyplot as plt
from gmm import *
# 载入数据
Y = np.loadtxt("gmm.dat... | [
"noemail"
] | noemail |
55353e932894e01d6b2574bc3e0cb27cd073e950 | fd919ed1aef8ece29bed9cf4b435b2daac44f034 | /runout gen 1_simple/mpl time clecker - Copy (9) working(250).py | 56a228dfa5eb119b141cc066eccd177280aaf988 | [] | no_license | Mayank-Bhatt-450/mpl-runout-bot | da220250956916581b2649b7aae5a360987982d0 | fb23c1c2d3c776bed610675b901d3cfed20f55c4 | refs/heads/main | 2022-12-20T06:39:19.731652 | 2020-10-07T14:49:57 | 2020-10-07T14:49:57 | 302,068,243 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,567 | py | import pyautogui
import time
'''
#it reaches to top in 0.4 second
'''
print('move value: ')
#m=int(input())
k=0
wind_angle=27
def inthis(u,l,v):
if ((v[0]>=l[0] and v[0]<=u[0] )and((v[1]>=l[1] and v[1]<=u[1] ))and((v[1]>=l[1] and v[1]<=u[1]))):
return True
else:
return False
while True:
... | [
"mayankbhatt457@gmail.com"
] | mayankbhatt457@gmail.com |
aae570b4d11c54218f6407741b61de01cbb8dbba | ffc5867b8817fcbdd4f8e8bb03372aef20e72140 | /lib/initialize.py | 33cfe2f2bfcea998e371321c9d26df46cf7ae108 | [
"MIT"
] | permissive | sterlingbaldwin/acme_processflow | 5b7507630fd25a2adecb7dce8bb776a77a36cf40 | 2767060fcc9fe0b42befc2d3611f0b9ad3d35cb5 | refs/heads/master | 2023-03-08T23:21:13.444282 | 2018-07-24T17:48:41 | 2018-07-24T17:48:41 | 74,049,812 | 2 | 0 | MIT | 2020-04-06T20:52:50 | 2016-11-17T17:15:24 | Python | UTF-8 | Python | false | false | 11,188 | py | import sys
import os
import logging
import json
import time
import stat
import argparse
from pprint import pformat
from shutil import rmtree, copy
from configobj import ConfigObj
from shutil import copyfile
from filemanager import FileManager
from runmanager import RunManager
from mailer import Mailer
from JobStatus ... | [
"baldwin32@llnl.gov"
] | baldwin32@llnl.gov |
2cab98264266305553eff3e5ebe0b92557438036 | 72acd91b072c8470335bde681dc85fb51388ab30 | /128_longest_consecutive_sequence/longest_consecutive_sequence.py | fb6739413a0a7799780051c1718258b67f9ef041 | [] | no_license | BubbleXu/leetcode | ff5f50f3a7873501d5c05ea6dd16176815deda02 | 3f34e16bd77100cdf7537df42d224dff0283d811 | refs/heads/master | 2021-09-23T15:29:57.322067 | 2018-09-25T05:43:26 | 2018-09-25T05:43:26 | 119,626,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,361 | py | # Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
#
# For example,
# Given [100, 4, 200, 1, 3, 2],
# The longest consecutive elements sequence is [1, 2, 3, 4]. Return its length: 4.
#
# Your algorithm should run in O(n) complexity.
class Solution(object):
def lon... | [
"xuyichang@dajiazhongyi.com"
] | xuyichang@dajiazhongyi.com |
3bb709cb7d85a7a158a7f9d708f76bc73933835b | fbddd92b0eafcc79a24c05cbfe5e688174a5be27 | /day3/test10.py | ace9f8f10d3b53cba4eea09d185c0500d15d813d | [] | no_license | priyankakumbha/python | 968902b82811c31020b6ad2d853fee8ef64ec1a5 | ae428d56e4afffa2fc16a8e03e99eeb6bf560037 | refs/heads/master | 2022-08-26T13:31:26.874275 | 2020-05-22T12:47:22 | 2020-05-22T12:47:22 | 266,107,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py |
if True :
print('if1 begin')
if True
print('if2 begin')
print('if2 begin')
print('if2 begin')
print('if2 begin')
print('if1 end')
print(end of program')
| [
"priyankakumbhar789@gmail.com"
] | priyankakumbhar789@gmail.com |
fe540124b5bccf3de051e09c14c7620a684b5416 | 097a7cb751a7c5b311b11fea60278081c751dcc1 | /src/twisted/conch/test/test_channel.py | c03bf228eba713ecd48103506049e64c7b9f1019 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | dchenk/twisted | b12449d968804ebd832d4a814e3fc858420b0e51 | 4a0ac6edba947c77ea95085e75f5b7bc7ddffb12 | refs/heads/master | 2021-07-24T15:59:39.735816 | 2020-08-24T23:12:15 | 2020-08-24T23:12:15 | 211,361,245 | 0 | 1 | NOASSERTION | 2019-10-02T18:36:33 | 2019-09-27T16:34:31 | null | UTF-8 | Python | false | false | 12,121 | py | # Copyright Twisted Matrix Laboratories.
# See LICENSE for details.
"""
Test ssh/channel.py.
"""
from unittest import skipIf
from zope.interface.verify import verifyObject
try:
from twisted.conch.ssh import channel
from twisted.conch.ssh.address import SSHTransportAddress
from twisted.conch.ssh.transpor... | [
"dcherchenko@gmail.com"
] | dcherchenko@gmail.com |
8246cb5d971295b5f9456b02ba1b45fa26775823 | ce03ceec096f467a27461506e2f278e1f83bd4b2 | /v2/api/assets/campaigns.py | 833bd37d924f3bcc0a3c3f6f6bce8b1fd23205f0 | [] | no_license | CalebKester/kdm-manager | 729ef10ad4fcb615762f2f607aa3b347a2738b11 | 76e5e90f38f90ad8770c8077d2f4e597c25d020b | refs/heads/master | 2021-08-15T23:41:40.230703 | 2017-11-18T16:03:56 | 2017-11-18T16:03:56 | 107,457,554 | 0 | 0 | null | 2017-10-18T20:10:03 | 2017-10-18T20:10:03 | null | UTF-8 | Python | false | false | 19,028 | py | #!/usr/bin/python2.7
from assets import monsters as monster_assets
#
# This assets file is more complicated than others, since a lot of it drives
# the business logic of campaigns, i.e. the rules and things that affect or
# interact with lesser game assets.
#
#
# default and baseline ("standard") campaign ... | [
"toconnell@tyrannybelle.com"
] | toconnell@tyrannybelle.com |
f8b857e992a4f1d4723ad034fadd4930cf5117f1 | 8b25a7984bd18fc356232083da0bb2f829a1dbd4 | /account_followup/account_followup.py | 285a3529ee78aafa0941f82551f4cd4be4f4b244 | [] | no_license | anndream/new_mixprint_addons | f94067a1248cf3d30ce4e937d5fb3c96bc9cb482 | 1b4b04388e723dc7137dd8d2a29fdef3f59f4861 | refs/heads/master | 2020-04-09T19:17:36.882746 | 2015-09-10T04:41:13 | 2015-09-10T04:41:13 | 42,242,457 | 0 | 2 | null | 2015-09-10T12:13:56 | 2015-09-10T12:13:56 | null | UTF-8 | Python | false | false | 25,429 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"thitithup@gmail.com"
] | thitithup@gmail.com |
24c6fdf8ae840dea5ef94a60d0344ce7ec83f64e | ab56ecd8862c2187f84c74031bcae181af3cc544 | /plot3d.py | 1f43b4c97a8166879b292a422c95b1d9145ddbab | [] | no_license | Aluriak/3Dplot | 01418012604eed37fd19cb995725850a2892cf0e | 3faaffaf9007a346166255d96fd7f86e28442ec7 | refs/heads/master | 2021-07-11T05:34:47.471108 | 2017-10-12T17:33:00 | 2017-10-12T17:33:00 | 106,725,041 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,587 | py | """Plot 3D graph.
See cli.py for CLI around these.
"""
import itertools
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
from matplotlib import cm
from matplotlib.ticker import LinearLocator, FormatStrFormatter
import numpy as np
COLORS = itertools.cycle([cm.plasma, cm.rainbow])
def plot_z... | [
"lucas.bourneuf@laposte.net"
] | lucas.bourneuf@laposte.net |
4950f4be71cc53af7cf171f831b146bb95e810a3 | 4eddf6a34715752dc652571b1ab274f51ceb5da0 | /knn algorithm/tensorhello.py | b85de98f4fec93a4f68c7bf3a2dc2d2ff07f646f | [] | no_license | Suelt/Hust-SE-introduction-to-ML | 649aba0e5b41363ceac03330ef02982982a0615d | a66785c3085da573f5748d13608eabf02e616321 | refs/heads/master | 2023-05-27T13:13:41.058545 | 2021-06-10T05:44:02 | 2021-06-10T05:44:02 | 375,582,438 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155 | py | import tensorflow as tf
tf.compat.v1.disable_eager_execution()
hello = tf.constant('hello,tensorflow')
sess= tf.compat.v1.Session()
print(sess.run(hello))
| [
"2552925383@qq.com"
] | 2552925383@qq.com |
f5953831acaeb67fe4a4d0b99d415107d2270131 | 1fb87c2038ea178ab8b7d600da6a105ccd35b44a | /ucscsdk/mometa/compute/ComputeDomainHwChangeDiscPolicy.py | 529201cfd20b6b13c29c7605f2466e6e557b555b | [
"Apache-2.0"
] | permissive | hrupprecht/ucscsdk | 72fe255dfb2d68b620b52793eae38e4d1b1ed7e7 | 1a62184548300ad1071780a2519c60552f0a21a2 | refs/heads/master | 2020-09-28T23:30:23.074800 | 2019-12-17T08:20:28 | 2019-12-17T08:20:28 | 226,891,866 | 0 | 0 | NOASSERTION | 2019-12-09T14:32:53 | 2019-12-09T14:32:52 | null | UTF-8 | Python | false | false | 3,808 | py | """This module contains the general information for ComputeDomainHwChangeDiscPolicy ManagedObject."""
from ...ucscmo import ManagedObject
from ...ucsccoremeta import UcscVersion, MoPropertyMeta, MoMeta
from ...ucscmeta import VersionMeta
class ComputeDomainHwChangeDiscPolicyConsts():
INT_ID_NONE = "none"
POL... | [
"paragsh@cisco.com"
] | paragsh@cisco.com |
12a182dc9438d59efb0ced67258b05dce91a5b0c | 7e2c78e24d5d9172be93993b257fdfb22341e94f | /server.py | b0c8862e6df6caae2f0853b66dcfd9234c8fded0 | [
"MIT"
] | permissive | DevconX/Tello-Python | 3c8fea9ed806f063671fc8aa350e8717dcc7028a | 0e7ef8375e6904a536ff274ec7c868388424327e | refs/heads/master | 2020-03-19T08:25:22.645880 | 2018-08-02T12:45:12 | 2018-08-02T12:45:12 | 136,202,953 | 14 | 4 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | from flask import Flask, Response
from flask_socketio import SocketIO, send, emit
from queue import Queue
import base64
import cv2
import numpy as np
from PIL import Image
import io
d = dirname(dirname(abspath(__file__)))
app = Flask(__name__)
app.queue = Queue()
socketio = SocketIO(app)
@socketio.on('connect', names... | [
"husein.zol05@gmail.com"
] | husein.zol05@gmail.com |
d608c5b75705b110caa15cc602a8fb8bf4a4dfdf | a0e5938540f0c22d1191b95701692da32423b6a2 | /main.py | e62d4ecc835e12b1faa1f9a435f814751eb9f0cf | [
"Apache-2.0"
] | permissive | wicky08/DeepRL | 8623b158d38f2f6f893cae52b1744dd398488605 | 8ea108e4bb8dee6712e266e28f226aaf48d1ab43 | refs/heads/master | 2020-01-19T21:25:56.870728 | 2017-06-11T03:08:40 | 2017-06-11T03:08:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,223 | py | from async_agent import *
from dqn_agent import *
import logging
def dqn_cart_pole():
config = dict()
config['task_fn'] = lambda: CartPole()
config['optimizer_fn'] = lambda params: torch.optim.RMSprop(params, 0.001)
config['network_fn'] = lambda optimizer_fn: FCNet([8, 50, 200, 2], optimizer_fn)
# ... | [
"zhangshangtong.cpp@icloud.com"
] | zhangshangtong.cpp@icloud.com |
81a80215477d29d91fb6966bb474e8c8104b7d38 | 287fcd6bc49381d5b116dd541a97c0ff37141214 | /app/theme/migrations/0010_auto_20201006_2208.py | 7147145b6b971342cc77799d44df95329886956c | [] | no_license | elcolono/wagtail-cms | 95812323768b90e3630c5f90e59a9f0074157ab5 | b3acb2e5c8f985202da919aaa99ea9db2f6b4d51 | refs/heads/master | 2023-05-26T05:24:42.362695 | 2020-10-08T17:23:22 | 2020-10-08T17:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 897 | py | # Generated by Django 3.1.2 on 2020-10-06 22:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('theme', '0009_auto_20201006_2040'),
]
operations = [
migrations.AlterField(
model_name='appearance',
name='navbar_he... | [
"andreas.siedler@gmail.com"
] | andreas.siedler@gmail.com |
2dca310c4e767043d5b21b43b59049d05a409b27 | 94a2bf4e28f4115e9f5fb1ac9398657d16e439b5 | /ROS/Angry Turtle/usi_angry_turtle/Backup/Capital.py | 84d77925e2bba7d17574e079ae6a780ee5c62a96 | [
"MIT"
] | permissive | gyani91/Robotics | 627d30b2473feff306da538406b1e796bd2bad7b | 124b9df7ae82e8c9b9ad54c74292585e81c7a3bb | refs/heads/master | 2021-07-08T04:10:01.685027 | 2020-08-12T14:50:27 | 2020-08-12T14:50:27 | 130,822,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,482 | py | #!/usr/bin/env python
import rospy
from geometry_msgs.msg import Twist
from math import radians
import roslib
roslib.load_manifest('learning_tf')
import math
import tf
import geometry_msgs.msg
import turtlesim.srv
from turtlesim.msg import Pose
PI = 3.1415926535897
#def euclidean_distance(goal_pose):
#"""Euclide... | [
"noreply@github.com"
] | gyani91.noreply@github.com |
7dfe0a41bc8f0dee4e905de0210fbb34004f9c97 | d8d47a90a510ae170bb111f4f80726e7932a168c | /backend/home/migrations/0002_load_initial_data.py | 0157d1dfc0626e31825d6b0af02b48271a28bf28 | [] | no_license | crowdbotics-apps/serenify-1-0-25532 | a86df1b0ff4a7c5ea30bc920c94248e75a28a030 | 3b9494697968f296e0ee61b88ce5629ecce4bfa5 | refs/heads/master | 2023-04-04T06:10:15.235364 | 2021-04-08T02:57:56 | 2021-04-08T02:57:56 | 355,745,957 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,302 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Serenify 1-0"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
cdc0a729cf9fc540811bd62192115d7db3aa024c | b66712b087e83e793645d24342a0d23191206def | /routing_rules/urls.py | 3c9220c83f5ab3287c4796283b6fd6160d6b102b | [
"MIT"
] | permissive | uktrade/lite-internal-frontend | cd2a651c41d4f108411c9aefb8cef7b903d08768 | 39151854b1225f7956963a22ef1a8beb6897eccf | refs/heads/master | 2021-07-10T03:54:04.040278 | 2020-08-06T11:16:40 | 2020-08-06T11:16:40 | 174,536,384 | 4 | 0 | MIT | 2020-08-06T11:16:42 | 2019-03-08T12:45:58 | Python | UTF-8 | Python | false | false | 423 | py | from django.urls import path
from routing_rules import views
app_name = "routing_rules"
urlpatterns = [
path("", views.RoutingRulesList.as_view(), name="list"),
path("create/", views.CreateRoutingRule.as_view(), name="create"),
path("<uuid:pk>/edit/", views.EditRoutingRules.as_view(), name="edit"),
p... | [
"noreply@github.com"
] | uktrade.noreply@github.com |
6b2ef7b285625b420e811aef9e7030714be20d08 | 2bd9dfbd2dfd0b3909ba907b7272c1ad18236c70 | /circle/install_cmake.py | fc15aa168af642fe59000fd33298006e3620c336 | [
"Apache-2.0"
] | permissive | jbvimort/scikit-ci-addons | 1a57f05894371cc9576b175622b48b76c64d9d8f | e67d0fd79b5a7a6c7d15f5c787e340b52ecc6ef9 | refs/heads/master | 2021-07-21T22:43:28.797188 | 2017-07-27T22:59:32 | 2017-07-27T22:59:32 | 109,148,270 | 0 | 0 | null | 2017-11-01T15:24:32 | 2017-11-01T15:24:32 | null | UTF-8 | Python | false | false | 2,487 | py |
"""
Usage::
import install_cmake
install_cmake.install()
"""
import os
import subprocess
import sys
from subprocess import CalledProcessError, check_output
DEFAULT_CMAKE_VERSION = "3.5.0"
def _log(*args):
script_name = os.path.basename(__file__)
print("[circle:%s] " % script_name + " ".join(args... | [
"jchris.fillionr@kitware.com"
] | jchris.fillionr@kitware.com |
6943fd735099eabc872160587963d546cf9e4945 | 7cdfbe80ac56a042b9b99c1cb17766683da439b4 | /scripts_py/setup_files/m51_arm2_twostage_quarter.py | f923b8bbdf5cff35faecc1399b8492ce98d78378 | [] | no_license | bacook17/pixcmd | 1e918cc6b147abe1885f9533836005b9f2b30012 | fac20ced14492fd32448d2722c377d88145f90a1 | refs/heads/master | 2021-01-18T11:54:13.625834 | 2019-07-30T15:13:12 | 2019-07-30T15:13:12 | 67,228,636 | 0 | 0 | null | 2016-09-02T14:18:59 | 2016-09-02T14:18:58 | null | UTF-8 | Python | false | false | 8,540 | py | # Template configuration file for Tau->NP 2 stage
# Ben Cook (bcook@cfa.harvard.edu)
###############################################
# CONFIG FILE for mock run
# MOCK Galaxy 1: DETAILS HERE
# MOCK Galaxy 2: DETAILS HERE
# MODEL Galaxy: DETAILS HERE
import pcmdpy as ppy
import multiprocessing
import time
import nump... | [
"bcook@cfa.harvard.edu"
] | bcook@cfa.harvard.edu |
8a892a6cb8a6d32917b050bad90e394a1907e446 | e8cac4db53b22a28f7421ede9089bd3d4df81c82 | /TaobaoSdk/Request/FenxiaoDiscountsGetRequest.py | 0bb0b83c0afd568cc442b7f2ace9f07d80eeffab | [] | no_license | wangyu0248/TaobaoOpenPythonSDK | af14e84e2bada920b1e9b75cb12d9c9a15a5a1bd | 814efaf6e681c6112976c58ec457c46d58bcc95f | refs/heads/master | 2021-01-19T05:29:07.234794 | 2012-06-21T09:31:27 | 2012-06-21T09:31:27 | 4,738,026 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,340 | py | #! /usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set ts=4 sts=4 sw=4 et:
## @brief 查询折扣信息
# @author wuliang@maimiaotech.com
# @date 2012-06-21 17:17:41
# @version: 0.0.0
import os
import sys
import time
def __getCurrentPath():
return os.path.normpath(os.path.join(os.path.realpath(__file__), os.path.pardi... | [
"liyangmin@maimiaotech.com"
] | liyangmin@maimiaotech.com |
ea237fd2b20293b452cae807b69bd6ade1c5fffa | d83ac34da30853ad945504db982711d58f910859 | /beginner level/sum of the digit for a givennumber.py | ee31fd5b08931eb514aa82066c523a4af40083a6 | [] | no_license | ramyasutraye/python-programming-27 | cd5a8d51f8396ec9f5db6ad171e37150044970a3 | 13c058a155ac59ec51bfae0098badf11b248f364 | refs/heads/master | 2020-04-23T21:03:09.512479 | 2018-08-16T11:23:25 | 2018-08-16T11:23:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | a=int(input())
c=0
while(a>0):
b=a%10
c=c+b
a=a/10
print(c)
| [
"noreply@github.com"
] | ramyasutraye.noreply@github.com |
61d1303630d5d21ba1758b3707a840a3462f9338 | c9a222631e4a0b827ee4efbd4e362d00b7cc6d48 | /demo/python3-实例/bottleTest.py | b9d18faa6f2642fd6277cae64ea53677e0f88628 | [] | no_license | enticejin/python | d86b1727048bae24bce0fedc911953a20d11947c | 09dea6c62e6be8389fb23f472a1f02896a74c696 | refs/heads/master | 2023-03-12T18:00:06.322335 | 2021-11-09T01:38:13 | 2021-11-09T01:38:13 | 234,876,815 | 3 | 1 | null | 2023-03-04T01:24:08 | 2020-01-19T09:54:07 | Python | UTF-8 | Python | false | false | 846 | py | from bottle import route, run
from bottle import template
'''
@route('/hello') # 定义路由,即浏览器访问的地址
def hello(): # 函数名根据功能随意定义吧,只要不使用系统关键字便可,一般推荐按功能命名吧
return "Hello www.gejin.com" # 浏览器返回的内容
run(host='127.0.0.1', port=8080) # 开启服务,端口是8080,授受任何IP地址访问
'''
'''
@route('/test')
def test():
return "this is a test... | [
"www.403367632@qq.com"
] | www.403367632@qq.com |
aa2763ea68fe40cd54af191c3b9c71d5e462319c | d9a22d4dcdfc0c28176c0e8afd784b30d275597e | /test_suite/shared_data/dispersion/profiling/profiling_tsmfk01.py | 02660a4f5fcab222f03ba69c528fc30c08648419 | [] | no_license | jlec/relax | fda1b3ff77be0afc21c2e6cc52348ae7635cd07a | c317326ddeacd1a1c608128769676899daeae531 | refs/heads/master | 2016-09-08T00:27:57.256090 | 2015-02-10T12:24:55 | 2015-02-10T12:24:55 | 30,596,131 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,277 | py | #!/usr/bin/env python
###############################################################################
# #
# Copyright (C) 2014 Troels E. Linnet #
# Copyright (C) 2014 Edward d'Auvergne ... | [
"bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5"
] | bugman@b7916896-f9f9-0310-9fe5-b3996d8957d5 |
47c40b2a45767b0178342f5945e9f9f012f00c01 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/109/usersdata/167/63797/submittedfiles/av2_p3_civil.py | b0ceb95ca10564c73d65cd4b252685d1bbec75d1 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 721 | py | # -*- coding: utf-8 -*-
import numpy as np
n=input('digite o num lin/col:')
x=input('digite a pos x:')
y=input('digite a pos y:')
def peso(a,x,y):
lv=[]
lh=[]
for i in range(0,a.shape[0],1):
for j in range(0,a.shape[1],1):
if j==y:
lv.append(a[i,j])
if i==... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6ed0d00e369f973dc2723877094e4e702261c5ef | a140fe192fd643ce556fa34bf2f84ddbdb97f091 | /.history/quiz03_20200628150235.py | 5757c58cf882e61f3a6f5f11c7313dd745294c17 | [] | no_license | sangha0719/py-practice | 826f13cb422ef43992a69f822b9f04c2cb6d4815 | 6d71ce64bf91cc3bccee81378577d84ba9d9c121 | refs/heads/master | 2023-03-13T04:40:55.883279 | 2021-02-25T12:02:04 | 2021-02-25T12:02:04 | 342,230,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | # 사이트별로 비밀번호를 만들어 주는 프로그램을 작성하시오.
# 예) http://naver.com
# 규칙 1 : http:// 부분은 제외 => naver.com
# 규칙 2 : 처음 만나는 점(.) 이후 부분은 제외 => naver
# 규칙 3 : 남은 글자 중 처음 세자리 + 글자 갯수 + 글자 내 'e' 갯수 + "!" 로 구성
# 예) 생성된 비밀번호 : nav51!
site = "http://naver.com"
index = site.index("/")
rule1 = site.index("/", index + 1)
pass1 = site[rule1 ... | [
"sangha0719@gmail.com"
] | sangha0719@gmail.com |
5a812c612efa4c791b41162aba487347cb0242f4 | c630b9a72bb1cc780a0c0ab4e99c633cc58c9ce5 | /data_service/cron/routes.py | e1dfb871a26282cecd4a1ebbf5d8009a2b3709bf | [
"MIT"
] | permissive | webclinic017/gcp-database-as-a-service-stock-markets | 4e48386da216167974215084fb81d936d3be0390 | 7d6a12c33db238ca2f748bf4ddea6d2cf3c16da3 | refs/heads/main | 2023-07-28T18:04:05.224924 | 2021-08-29T16:29:47 | 2021-08-29T16:29:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,431 | py | """
entry point to cron jobs
"""
from flask import Blueprint
from data_service.api.api_authenticator import handle_auth
from data_service.cron.eod_close_data.exchange_close_data_calls import cron_call_close_data_apis, \
cron_call_crypto_close_data_api
from data_service.cron.operational_jobs.operational_jobs i... | [
"mobiusndou@gmail.com"
] | mobiusndou@gmail.com |
fa90095fd4e5bae90591bb784f09326b56edd3dc | f850e1e34ecf5c3c9470de60331abfa6a081361a | /vision_ai/models/unet.py | a6f6ca48e2eed35a881c9346dfe1362a892b0c41 | [] | no_license | yuzhihu1/Vision-AI | 790e66e4e075410a25f106c34b8afbb6c7aeb37f | 1878b0160f8aed42eb07c0ce2ab75ed54842536f | refs/heads/master | 2022-03-27T09:21:19.101705 | 2020-01-04T20:53:15 | 2020-01-04T20:53:15 | 211,382,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 963 | py | import torch
import vision_ai
class Unet(torch.nn.Module):
def __init__(self, layers, shortcuts):
super().__init__()
assert layers
assert len(layers) == len(shortcuts) + 1
self.layers = torch.nn.ModuleList(layers)
self.shortcuts = torch.nn.ModuleList(shortcuts)
def f... | [
"ychnlgy@gmail.com"
] | ychnlgy@gmail.com |
2832c288d83eaf5299886c763926b77c15ab5b4d | 81b20a9c51779c21b779ac0b1c5bf669359521ef | /py_object_detection/tf_api/object_detection/protos/box_predictor_pb2.py | 33591fa54696ce00c5946e7b07385a98acce3d27 | [] | no_license | thekindler/py-object-detection | bae1401f025458605c9244f9a763e17a0138d2ec | a8d13c496bab392ef5c8ad91a20fbfa9af1899bb | refs/heads/master | 2023-06-23T02:42:08.180311 | 2021-07-17T18:40:46 | 2021-07-17T18:40:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 27,881 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: object_detection/protos/box_predictor.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.protob... | [
"uniquetrij@gmail.com"
] | uniquetrij@gmail.com |
4c537a74b73ea04bf35ef10a8ed72a3a438737b3 | ee4c4c2cc6c663d4233d8145b01ae9eb4fdeb6c0 | /tools/r2cnn/test_dior_r.py | b8f3cac45444c5fe7ec036abbe41d31ea2ce76ec | [
"Apache-2.0"
] | permissive | yangcyz/RotationDetection | c86f40f0be1142c30671d4fed91446aa01ee31c1 | 82706f4c4297c39a6824b9b53a55226998fcd2b2 | refs/heads/main | 2023-09-01T23:25:31.956004 | 2021-11-23T13:57:31 | 2021-11-23T13:57:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,457 | py | # -*- coding:utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
import sys
sys.path.append("../../")
from alpharotate.libs.models.detectors.r2cnn import build_whole_network
from tools.test_dior_r_base import TestDIORR
from configs import ... | [
"yangxue0827@126.com"
] | yangxue0827@126.com |
d5850a19e4e9e67188046756a4f8ae6c53e575f7 | f0932f59d37adfbba9307ee31e6f78ce3c256c4a | /flow_cytometry/events_per_sec.py | 1d7f6417587b8dc334eb6e28f735102ffd3c8c93 | [] | no_license | kalekundert/ligrna | 3785a1e5fb8ed6d07839a5314029f3fc882d4471 | 843963973c34c4976f5adfbd4d03f5f1d0344423 | refs/heads/master | 2020-04-12T12:52:32.828100 | 2020-02-22T00:59:57 | 2020-02-22T00:59:57 | 162,505,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,943 | py | #!/usr/bin/env python3
"""\
Plot the number of events recorded per second for all the wells in the given
set of experiments.
Usage:
./events_per_sec.py <yml_path> [<keyword>] [options]
Arguments:
<yml_path>
Path to a YAML file specifying which wells and which plates should be
compared with ... | [
"kale@thekunderts.net"
] | kale@thekunderts.net |
f5c3abeacef453c3beeeae30c4ebedf2e0e582e5 | e78154abbb8bacf5afccda9da371684cbeabad36 | /envs/ALPHA-POPEGO/bin/easy_install | a7475a6d467d37634cec3aef806c46648045ff74 | [
"BSD-3-Clause"
] | permissive | enterstudio/popego | 1a196fabc374c0f45764e5c74bd7752236424040 | 2d09e793d9d2f297139edb325b8a70ddda9b2705 | refs/heads/master | 2021-04-09T16:39:40.781634 | 2016-10-14T16:53:47 | 2016-10-14T16:53:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | #!/home/popego/envs/ALPHA-POPEGO/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==0.6c7','console_scripts','easy_install'
__requires__ = 'setuptools==0.6c7'
import sys
from pkg_resources import load_entry_point
sys.exit(
load_entry_point('setuptools==0.6c7', 'console_scripts', 'easy_install')()
)
| [
"santisiri@gmail.com"
] | santisiri@gmail.com | |
af1669835830c80169e9fa5a4a196793dab97f1b | 34f1ba5d471c906cb3005ad4a6cf8dcf8828f22f | /build/lib/test/test_api_global_search_result.py | 72e3bbb7aa3b7933f42b7a51f67a34025027cc0d | [] | no_license | yuregir/Lora-AppServer-API | 9c7e81dd57f13b3f0350022098c332a2db4af195 | 5159de92b27e3d4342a60fe69f169510eeb0e889 | refs/heads/master | 2020-07-12T12:38:21.760887 | 2020-01-03T13:30:33 | 2020-01-03T13:30:33 | 204,821,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,082 | py | # coding: utf-8
"""
LoRa App Server REST API
For more information about the usage of the LoRa App Server (REST) API, see [https://docs.loraserver.io/lora-app-server/api/](https://docs.loraserver.io/lora-app-server/api/). # noqa: E501
OpenAPI spec version: 1.0.0
Generated by: https://github.co... | [
"yuregir@me.com"
] | yuregir@me.com |
b597afb232777bb47a07b961c1a334db7f892856 | 3bb57eb1f7c1c0aced487e7ce88f3cb84d979054 | /paetzold_nns/scripts/selectors/unsupervised/Run_All_BoundaryUnsupervisedCV.py | 1989cd12af26a583696a3790812ee3815870a555 | [] | no_license | ghpaetzold/phd-backup | e100cd0bbef82644dacc73a8d1c6b757b2203f71 | 6f5eee43e34baa796efb16db0bc8562243a049b6 | refs/heads/master | 2020-12-24T16:41:21.490426 | 2016-04-23T14:50:07 | 2016-04-23T14:50:07 | 37,981,094 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | import os
generators = os.listdir('../../../substitutions/')
generators = ['paetzold']
test_victor_corpus = '../../../corpora/paetzold_nns_dataset.txt'
#Parameters:
rs = ['1']
fs = ['5', '10']
ts = ['0.25', '0.5']
ks = ['all']
#ks = ['8']
proportions = ['6', '7', '8']
#proportions = ['0.25', '0.5', '0.75']
#Run Bo... | [
"ghpaetzold@outlook.com"
] | ghpaetzold@outlook.com |
05684f53484daca312f5e3f510e4ce0e421451b5 | 06ad345f69a2f91b5c5a730bb4943f04cba93a44 | /PyQt/5.PyQt5 Widget/5-7.py | 72a305762f840ba8b9c314e2e9b4195a0b3d8f65 | [] | no_license | whyj107/Python | 61bd58d202350616a322b7b75086976f354bda9b | 3c3649ca8c6ac6908ac14d6af201d508cc4fbf30 | refs/heads/master | 2021-04-13T23:49:13.470657 | 2021-03-27T10:08:39 | 2021-03-27T10:08:39 | 249,195,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | # http://codetorial.net/pyqt5/widget/qprogressbar.html
## Ex 5-7. QProgressBar.
import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QProgressBar
from PyQt5.QtCore import QBasicTimer
class MyApp(QWidget):
def __init__(self):
super().__init__()
self.initUI()
... | [
"noreply@github.com"
] | whyj107.noreply@github.com |
98908a88b50db5466d4267f4ab6ad7bb63d36d37 | b54c85ae205f01b8c66bc3cbf1c30d58ab07df00 | /LMLFOCNN.py | ec68fe87f1e41959b2bf85f02236845779b638c2 | [] | no_license | ck0825/FOCNN | d210c5151da464d0bb11c85591280b9c8ec5a923 | f00ceedf3f0f81ee25139b364a5373f9fb72c19a | refs/heads/master | 2020-11-28T02:50:49.318990 | 2019-08-25T03:07:15 | 2019-08-25T03:07:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,140 | py | import os
import struct
import numpy as np
import matplotlib.pyplot as plt
import math
import copy
import random
import time
def load_mnist(path, kind='train'):
labels_path = os.path.join(path, '%s-labels.idx1-ubyte' % kind)
images_path = os.path.join(path, '%s-images.idx3-ubyte' % kind)
with open(labels_p... | [
"you@example.com"
] | you@example.com |
e2e995cb641421397a0d8890cecfe8f8742b723e | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190119202939.py | bdb45b0afd84aad50e162e8bf59c66156f79b5e9 | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,355 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
from Qt.QtWidgets import *
def loadUiType(uiFile):
import plugin.Qt as Qt
if Qt.__bindin... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
97e0add79e9f1aa9b952f663c62044fa8fcbd9d3 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02681/s700823216.py | 80fa5ee4d0b3979de551c53ffc20b6beee2aab30 | [] | 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 | 180 | py | a=input()
b=input()
c=0
if (len(a)+1)!=len(b):
print("No")
else:
for i in range(len(a)):
if a[i]==b[i]:
c=c+1
if c==len(a):
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
67c1407ea10dc8fde7c6729e06199156480e5a97 | 947fa6a4a6155ffce0038b11f4d743603418ad68 | /.c9/metadata/environment/clean_code/clean_code_submissions/clean_code_assignment_004/fb_post/tests/tests_react_post.py | a96fd9ecfc87e19b74955487807ac5e0dc3b3c6e | [] | 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 | 16,153 | py | {"filter":false,"title":"tests_react_post.py","tooltip":"/clean_code/clean_code_submissions/clean_code_assignment_004/fb_post/tests/tests_react_post.py","undoManager":{"mark":100,"position":100,"stack":[[{"start":{"row":87,"column":64},"end":{"row":87,"column":81},"action":"remove","lines":["new_reaction_type"],"id":14... | [
"bharathi151273@gmail.com"
] | bharathi151273@gmail.com |
a43840d462d44fc0a7bd8030d4fa368ecc6f640a | c3082eb2adc43b311dd3c9ff16fd3ed9df85f266 | /python/examples/other/a.py | b611bc193048e5ae21e92c096fe12c2f8a4b205d | [] | no_license | szabgab/slides | 78818c7138331b3ba9e221c81da3678a46efe9b3 | 63bba06678554db737602f2fbcd6510c36037e8a | refs/heads/main | 2023-08-31T07:13:51.536711 | 2023-08-29T13:17:59 | 2023-08-29T13:17:59 | 122,212,527 | 87 | 69 | null | 2023-05-19T06:55:11 | 2018-02-20T14:57:03 | Python | UTF-8 | Python | false | false | 611 | py | import random
y = random.randrange(1, 21)
x = int(input("Pick an integer between 1-20 and type in your guess:"))
while True:
if x > y:
if x > 20:
print("Out of range!")
x = int(input("Try again:"))
else:
print("Too Big!")
x = int(input("Guess Again:"... | [
"gabor@szabgab.com"
] | gabor@szabgab.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.