blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 288 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 684
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 147
values | src_encoding stringclasses 25
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 128 12.7k | extension stringclasses 142
values | content stringlengths 128 8.19k | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cda5a4031d2648d83bfb86e146b7e8729e3f2bec | 8c1fc3dec9d6f3982e307cb0805ea20cc237c317 | /hashcrack/autoconfig/shadow.py | d86ef630a2a8c50b00bcddf56f8c898689acf9cb | [] | no_license | bannsec/hashcrack | a6a759a553552a1c9f53116b050e893f1860b8b7 | 88b651dc98347bec8acf297cea25aa22fdc55f9b | refs/heads/master | 2020-12-10T02:46:28.967850 | 2020-01-22T02:06:52 | 2020-01-22T02:06:52 | 233,484,652 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,194 | py |
import logging
from ..config import config
from .. import types
from prompt_toolkit import print_formatted_text as print, HTML
def run():
hashtype = None
for line in config['hashes'].strip().split(b"\n"):
tokens = line.split(b":")
# Not a shadow file
if len(tokens) != 9:
... | [
"whootandahalf@gmail.com"
] | whootandahalf@gmail.com |
4ba201a19176dc8ba93096d858b815f8b260eb74 | 8644a2174c3cb7ccfe211a5e49edffbcc3a74a46 | /hashcode/contest2021/hash_code.py | 348eb62abc65e6ddfd9415877e1b9bc528b06d02 | [] | no_license | bhavya2403/Learning-Python | 9e7cc9dee21172321fb217cae27c8072357f71ce | 3898211b357fbab320010a82a4811b68611d0422 | refs/heads/main | 2023-03-24T03:19:49.989965 | 2021-03-22T20:11:04 | 2021-03-22T20:11:04 | 315,962,811 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,651 | py | def solve():
adjList = {}
for key in street:
start, end, L = street[key]
end = int(end)
if end not in adjList:
adjList[end] = [1, key]
else:
adjList[end][0] += 1
adjList[end].append(key)
streetsUsed = set()
for path in carP... | [
"noreply@github.com"
] | bhavya2403.noreply@github.com |
ef6c7204f335001e4a416d5712d8eff6af8abf83 | b09a8df80c35e3ccca43cd74cec6e1a14db76ad7 | /blocks/forms.py | 7da0e469bffae4aa7eeb2899c3ef8df356c5a8e4 | [
"MIT"
] | permissive | ofa/everyvoter | 79fd6cecb78759f5e9c35ba660c3a5be99336556 | 3af6bc9f3ff4e5dfdbb118209e877379428bc06c | refs/heads/master | 2021-06-24T19:38:25.256578 | 2019-07-02T10:40:57 | 2019-07-02T10:40:57 | 86,486,195 | 7 | 3 | MIT | 2018-12-03T19:52:20 | 2017-03-28T17:07:15 | Python | UTF-8 | Python | false | false | 722 | py | """Forms for account app"""
from django import forms
from blocks.models import Block
from election.models import Election, LegislativeDistrict
class BlockModelForm(forms.ModelForm):
"""Model form for blocks"""
weight = forms.ChoiceField(choices=[(x, x) for x in range(1, 100)])
class Meta(object):
... | [
"nickcatal@gmail.com"
] | nickcatal@gmail.com |
a39e31cefdc46526f203635269c06d872405a9db | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/network/v20200501/get_ip_allocation.py | 1b0cabaf141ea140a23a362799f9df7f8521a40c | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | test-wiz-sec/pulumi-azure-nextgen | cd4bee5d70cb0d332c04f16bb54e17d016d2adaf | 20a695af0d020b34b0f1c336e1b69702755174cc | refs/heads/master | 2023-06-08T02:35:52.639773 | 2020-11-06T22:39:06 | 2020-11-06T22:39:06 | 312,993,761 | 0 | 0 | Apache-2.0 | 2023-06-02T06:47:28 | 2020-11-15T09:04:00 | null | UTF-8 | Python | false | false | 7,547 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
0a9069262dcd7f1e236e03cb138351c395dad067 | d41d18d3ea6edd2ec478b500386375a8693f1392 | /plotly/validators/splom/marker/colorbar/_showticksuffix.py | 80b850d3cb4f83181bfce76a44d5751d71c84e68 | [
"MIT"
] | permissive | miladrux/plotly.py | 38921dd6618650d03be9891d6078e771ffccc99a | dbb79e43e2cc6c5762251537d24bad1dab930fff | refs/heads/master | 2020-03-27T01:46:57.497871 | 2018-08-20T22:37:38 | 2018-08-20T22:37:38 | 145,742,203 | 1 | 0 | MIT | 2018-08-22T17:37:07 | 2018-08-22T17:37:07 | null | UTF-8 | Python | false | false | 534 | py | import _plotly_utils.basevalidators
class ShowticksuffixValidator(
_plotly_utils.basevalidators.EnumeratedValidator
):
def __init__(
self,
plotly_name='showticksuffix',
parent_name='splom.marker.colorbar',
**kwargs
):
super(ShowticksuffixValidator, self).__init__(
... | [
"jon.mease@gmail.com"
] | jon.mease@gmail.com |
9e6823d1c327a49f0d484cae4b19d90a619c5311 | eaa781cc52a1a8686cd50424132744a300ce2fda | /shell/essay.py | 349342a9af55273a8978fd7add6d96451404e286 | [] | no_license | hustmonk/kdd2014 | 2d7f1d7393cccfaff95f8fc399a213ba588c7f02 | bf4f41af61e5ab08eb0b08aee990c04a7afbef0d | refs/heads/master | 2021-01-02T23:07:03.632621 | 2014-08-13T00:02:45 | 2014-08-13T00:02:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Last modified:
#申请论文信息
#essay info
"""docstring
"""
import csv
__revision__ = '0.1'
class Essay:
def _normal(self, list):
new_list = []
for x in list:
x = x.lower()
newx = []
for ch in x:
if ('a' <... | [
"liujingminghust@163.com"
] | liujingminghust@163.com |
23a05b1cda180f9c05216f1af7274c13c0307cd6 | 223c3cf4281427e41ce6dc8d2501e157e05d8f25 | /results/run_check_epochs/0x1.5426135e0ddf4p+30/script.py | c013f937d02bf76521ab27987b3b27a8ab2b8650 | [
"BSD-2-Clause"
] | permissive | chri4354/meg_perceptual_decision_symbols | 94160d81035be283a4ade13dc8f488447b6773f6 | 34ed840c95d6fbedbf911c1b1506da383da77eb9 | refs/heads/master | 2021-01-15T11:46:02.968578 | 2015-03-29T19:12:40 | 2015-03-29T19:12:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,711 | py | import sys
import mkl
import os.path as op
import mne
from meeg_preprocessing.utils import setup_provenance
from ambiguity.conditions import get_events
import matplotlib.pyplot as plt
import warnings
import numpy as np
from scripts.config import (
data_path,
subjects,
results_dir,
open_browser
)
rep... | [
"jeanremi.king+github@gmail.com"
] | jeanremi.king+github@gmail.com |
a25456d0b47ab6ab15ab64b06f610459fed2cc9e | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/atomic/long/Schema+Instance/NISTXML-SV-IV-atomic-long-whiteSpace-1-2.py | edbc3af912f4107c5b5261ff2d179988d496fe2f | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 267 | py | from output.models.nist_data.atomic.long.schema_instance.nistschema_sv_iv_atomic_long_white_space_1_xsd.nistschema_sv_iv_atomic_long_white_space_1 import NistschemaSvIvAtomicLongWhiteSpace1
obj = NistschemaSvIvAtomicLongWhiteSpace1(
value=-141811240377451630
)
| [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
79f0bc35dead901f383ef6d61b759a98596cf035 | 13f6df9b74df10c7054cbf826e6e3538012493c9 | /ajenti/plugins/supervisor/client.py | 5edf2c37045040caf22f82a43dc36f22e470eb02 | [] | no_license | zennro/ajenti | 6906bf285a72b35a485555d5a2296f04717d4bae | 0d40cbb38117a2018607d21a138a83bf6581d729 | refs/heads/master | 2021-01-18T20:15:10.615198 | 2014-03-29T17:39:35 | 2014-03-29T17:39:35 | 18,260,276 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,723 | py | import subprocess
from ajenti.api import *
from ajenti.plugins.services.api import Service, ServiceManager
@plugin
class SupervisorServiceManager (ServiceManager):
def test(self):
return subprocess.call(['supervisorctl', 'status']) == 0
def run(self, *cmds):
return subprocess.check_output(['... | [
"e@ajenti.org"
] | e@ajenti.org |
cbc2ed0f38928c2471f097b3803e8dddb7b91602 | 0809ea2739d901b095d896e01baa9672f3138825 | /without_restapim/testApp/utils.py | 93e40d370280d08463e8ec4a6eabb6bf09a80774 | [] | no_license | Gagangithub1988/djangoprojects | dd001f2184e78be2fb269dbfdc8e3be1dd71ce43 | ea236f0e4172fbf0f71a99aed05ed7c7b38018e2 | refs/heads/master | 2022-11-15T23:46:46.134247 | 2020-07-15T06:37:51 | 2020-07-15T06:37:51 | 273,479,403 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 150 | py | import json
def is_json(data):
try:
p_data=json.loads(data)
valid=True
except ValueError:
valid=False
return valid | [
"djangopython1988@gmail.com"
] | djangopython1988@gmail.com |
449428cd24acaff229144d38164a47472ec94748 | f207164511f0dfe3f01f6e0c21fd7548e626397f | /toolkit/toolkit.mozbuild | ebdca4a1aed9c6fad7483c3e0a71d58cff634e1d | [] | no_license | PortableApps/palemoon27 | 24dbac1a4b6fe620611f4fb6800a29ae6f008d37 | 3d7e107cc639bc714906baad262a3492372e05d7 | refs/heads/master | 2023-08-15T12:32:23.822300 | 2021-10-11T01:54:45 | 2021-10-11T01:54:45 | 416,058,642 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,400 | mozbuild | # vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
if CONFIG['LIBXUL_SDK']:
error('toolkit.mozbuild is not compatible with --enable-libxul-... | [
"roytam@gmail.com"
] | roytam@gmail.com |
57eb78a0554396f29509498063511bd588bb9f1f | f2d99d437f29af7bd2d4a5ea8af57f49e3d30871 | /test/assignment/module_attribute.py | f003021d6d9dd2f1123f626046504736d9312929 | [] | no_license | terrence2/millipede | 6d68a09773f83e304702d72a38475946590e3079 | 3e1d63899f54f1154cb6a0bc3634815623803246 | refs/heads/master | 2020-04-01T14:28:06.810699 | 2011-05-30T20:15:30 | 2011-05-30T20:15:30 | 839,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | class A: pass
a = A()
a.b = A()
a.b.c = A()
a.b.c.d = A()
print(a.__class__.__name__)
print(a.b.__class__.__name__)
print(a.b.c.__class__.__name__)
print(a.b.c.d.__class__.__name__)
#out: A
#out: A
#out: A
#out: A
| [
"terrence@zettabytestorage.com"
] | terrence@zettabytestorage.com |
a6d78dcee4b7d9d0b627e8613bc50a7083969f3b | 92abae05cb2c31f4f4f228844ff8ecfc5439e098 | /Generators/GEN_GLCM_PREPROCESS.py | c141ca99775a719a86f5ce463c86bcbea82ed86a | [] | no_license | lukkascost/py_Crosswalk | 1530133e0c808be433bdb00cbcda810b689df6ce | 287db1583bf21696cd9f307498a5fa2e1cb69c1b | refs/heads/master | 2021-06-03T16:33:38.139919 | 2020-01-29T16:12:39 | 2020-01-29T16:12:39 | 140,041,089 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,663 | py | import cv2
import numpy as np
from MachineLearn.Classes.Extractors.GLCM import GLCM
MIN_BITS = 8
MAX_BITS = 8
MIN_DECIMATION = 20
MAX_DECIMATION = 100
PATH_TO_IMAGES_FOLDER = '../database-Crosswalk/Preprocessed/'
PATH_TO_SAVE_FEATURES = 'GLCM_FILES/EXP_01/'
for nbits in range(MIN_BITS, MAX_BITS + 1):
for k in ... | [
"lucas.costa@lit.ifce.edu.br"
] | lucas.costa@lit.ifce.edu.br |
0bba2d08714c610787e7f98c5cdf1edbf1dfeff9 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/438/usersdata/314/99574/submittedfiles/pico.py | 2fe6a6464d97f450c55ab04953a46384b1186e82 | [] | 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 | 514 | py | # -*- coding: utf-8 -*-
def pico(lista):
maior=lista[0]
meio=lista.index(lista[i])
for i in range(0,len(lista)-1,1):
if lista[i]>maior:
maior=lista[i]
crescente=True
if meio>lista[i]:
decrescente=True
else:
decrescente=False
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
bfe7efa037054787430565e8e7dd7e67369deef0 | 9eb35d6df7b0490d556623f84dba12bb05f30ee2 | /comp_stat_little_tricks/welfords_variance.py | 879fe04be37135f1677925987a51fe5785db7a74 | [
"MIT"
] | permissive | FelSiq/statistics-related | 0b4442bd19338c5b0da7dcf5ecd53eb304dcd3f8 | ee050202717fc368a3793b195dea03687026eb1f | refs/heads/master | 2021-11-24T12:31:08.660652 | 2021-11-03T23:42:39 | 2021-11-03T23:42:39 | 211,089,869 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 848 | py | import typing as t
def welfords_var(vals: t.Sequence[t.Union[int, float]]) -> float:
"""Powerful one-pass method for computing array variance."""
M, S = 0, 0
for k, x in enumerate(vals, 1):
oldM = M
M += (x - M) / k
S += (x - M) * (x - oldM)
return S / (len(vals) - 1)
if __... | [
"felipe.siqueira@usp.br"
] | felipe.siqueira@usp.br |
c95eafdcb80903dfb6648b489d3951c8372de95c | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02775/s052208557.py | 8fef45c5cc9e573263a2006aaadb8f57669aedf5 | [] | 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 | 453 | py | import sys
def main():
input=sys.stdin.readline
S=input().strip()
dp=[[0,0] for i in range(len(S)+1)]
dp[0][1]=1
for i in range(1,len(S)+1):
for j in (0,1):
if j==0:
dp[i][0]=min(dp[i-1][0]+int(S[i-1]),dp[i-1][1]+10-int(S[i-1]))
elif j==1:
... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
be521724694bccb38164c968ce2d4e190a3ce385 | cea03b578f0f6207afe5056611090848ab76bd23 | /model/verify_huisu.py | e987f6282e8d3cd45c0c5d6d7e1b57863d2ca583 | [] | no_license | swq90/stock | fa295f4fa0bf6a4d8afe8a71c02cc54fc7442bcd | a49ae395de82ecdfa38220f4fdbcaf4da6a39719 | refs/heads/master | 2021-07-14T03:42:21.950897 | 2020-10-14T11:52:24 | 2020-10-14T11:52:24 | 215,325,863 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | import datetime
from sqlalchemy import create_engine
import pandas as pd
import stock.util.stockfilter as sfilter
import stock.util.sheep as sheep
engine = create_engine('postgresql://nezha:nezha@10.0.0.5:5432/stock', echo=False)
def get_data(start_date,end_date):
NOTCONTAIN = sfilter.StockFilter().stock_basic(en... | [
"shaowenqin620@163.com"
] | shaowenqin620@163.com |
c99a1bdd8fc9c1068b09146888230fdd761ab4bb | 6f6465903edbb0587a43fbef9c3a6776c948d9b3 | /IntroducaoAoKNN/KNNComPandasESKTlearn.py | 3441ee1659085dbe72e658130ac2c775726d6418 | [] | no_license | borin98/CursoDeMachineLearning | 5871beccd2e09f2fc5d51e40370c11c730f056c1 | 6ead1db41c27009207a32658089bc7a790a06be8 | refs/heads/master | 2020-03-25T09:04:13.436480 | 2018-08-30T02:52:32 | 2018-08-30T02:52:32 | 143,645,874 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,382 | py | import pandas as pd
import numpy as np
from sklearn.model_selection import train_test_split
from sklearn.neighbors import KNeighborsClassifier
from math import sqrt
"""
Função que mexe com um arquivo CSV sobre sapatos que funciona da seguinte forma :
Coluna 0 : tamanho do sapato
Coluna 1 : Peso da pessoa
Coluna 2 : ... | [
"borinmacedo@gmail.com"
] | borinmacedo@gmail.com |
0d4b8f8cacf0f2d8d6475dca0953ff0640291571 | 79c67ec1a5bececc030c222d7469e73c0dc775eb | /life/migrations/0004_auto_20151017_1106.py | 65632b5077c0f0249461420b9d73d05740b1ea54 | [] | no_license | evz/awildlife | 64b29ddcc6644514cd6536b5c1f67dca7d5114db | 39de34006ece41119efef006a73974ce020ae360 | refs/heads/master | 2021-01-10T11:50:59.810504 | 2015-11-07T18:50:57 | 2015-11-07T18:50:57 | 44,484,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('life', '0003_event_image'),
]
operations = [
migrations.AddField(
model_name='event',
name='image_he... | [
"eric.vanzanten@gmail.com"
] | eric.vanzanten@gmail.com |
c09e9222d65ec6663cd9d3ff0e6ef114d5147ac7 | 9ba0771dcef17191483798b4d18f78dbb7b4c27e | /camacq/plugins/leica/helper.py | d3f6d5c7f229b25f26bc63a1e8c5f792be4cd92a | [
"Apache-2.0"
] | permissive | CellProfiling/cam_acq | fd035831bbdd7d6e6bfc2e85fea1b838829eacb8 | 8cf99cb738353c052b93e7ff1dbd5951f65808c2 | refs/heads/master | 2023-08-31T01:46:58.390960 | 2023-08-28T07:12:05 | 2023-08-28T07:12:05 | 35,374,025 | 5 | 1 | Apache-2.0 | 2023-09-13T21:44:38 | 2015-05-10T14:23:34 | Python | UTF-8 | Python | false | false | 1,929 | py | """Helper functions for Leica api."""
from pathlib import Path, PureWindowsPath
from leicaimage import experiment
def find_image_path(relpath, root):
"""Parse the relpath from the server to find file path from root.
Convert from windows path to posix path.
Parameters
----------
relpath : str
... | [
"noreply@github.com"
] | CellProfiling.noreply@github.com |
9e6e6ebc0d8bceed5f15987173cad13b3f0b7933 | 7d1d49560328f9b5588197abf2c623c304c0d95a | /src/datasets/mpii.py | f844b380ffa8e5ac8b779a29186730dd9c064817 | [] | no_license | peternara/adversarial-pose-pytorch | 1dc6ed10281844c59a827b77505f2ab55d906c16 | 12570ea03f3f2e8ecca7208997c99eb88da47824 | refs/heads/master | 2021-09-05T05:01:01.110501 | 2018-01-24T08:16:29 | 2018-01-24T08:16:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,590 | py | import os
import numpy as np
import h5py
import skimage as skim
import skimage.io as skio
import skimage.transform as sktf
import torch
import torch.utils.data
from .utils import rand, rnd, crop, fliplr_coords, transform, create_label
class MPII_Dataset(torch.utils.data.Dataset):
def __init__(self, data_root, sp... | [
"roytseng.tw@gmail.com"
] | roytseng.tw@gmail.com |
a17fb5bb9c1a3b110d7a6567ee80dd59963ffcfe | 9795e787a54d15f2f249a17b616fec3df67d4559 | /exception/custom_exceptions.py | 9fad21e41c70df88234ff44398cf49bea43a46cf | [] | no_license | gebbz03/PythonProject | 377b6ccf5eafa37dd157012ce499138370ba882f | c12f939cf194a4c541ee77e1f614ba9867ef7090 | refs/heads/master | 2020-04-02T22:16:11.082863 | 2018-10-30T05:49:22 | 2018-10-30T05:49:22 | 154,827,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 404 | py | class VowelNotAccepted(Exception):
def __init__(self,message,status):
self.message=message
self.status=status
def check_chars(word):
for char in word:
if char.lower() in ['a','e','i','o','u']:
raise VowelNotAccepted('Vowel is not accepted',101)
return word
try:
pri... | [
"gebb.freelancer@gmail.com"
] | gebb.freelancer@gmail.com |
d09996202930b38b56df754c8e5dd034958f4031 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/pfnet_chainer/chainer-master/cupy/testing/__init__.py | 7399762e4c91f5d702050e4014d3363e1b55177d | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 1,934 | py | from cupy.testing import array
from cupy.testing import attr
from cupy.testing import helper
from cupy.testing import parameterized
assert_allclose = array.assert_allclose
assert_array_almost_equal = array.assert_array_almost_equal
assert_array_almost_equal_nulp = array.assert_array_almost_equal_nulp
assert_array_max_... | [
"659338505@qq.com"
] | 659338505@qq.com |
a015cd16852be7d4367b84a80f44d6eb6db18e83 | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/third_party/google/cloud/pubsublite/cloudpubsub/internal/ack_set_tracker_impl.py | 3222994e53e33b5ba1cad9c761ad3e563cb45561 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 2,672 | py | # Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, s... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
d8244c4d2a0e627a721f9626fcb9edc7c3ef3b0e | 3cd4e2aae2a3ee3f9002fea903a6695f9fd5d373 | /bigml/tests/read_configuration_steps.py | 4d14340f31677c9017ce140619a82c926a491344 | [
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | jaykamau7/python | 1c2daf7222f12909563005701b02308b8b80c732 | faf718173e4a108ae8d500e82a6b4197fabbecb4 | refs/heads/master | 2023-02-28T13:29:59.759663 | 2021-02-07T14:10:20 | 2021-02-07T14:10:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 957 | py | # -*- coding: utf-8 -*-
#
# Copyright 2017-2020 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 |
0a77fbe43f734f778b70dd19d7af6633f82c5acc | 4c534dc33d548acf07edc3e7b826f4bfb9207030 | /lexicon/management/commands/populatetags.py | 247a11e8fedbee41aad11ff4954dd17c4615e3be | [] | no_license | Typecraft/valex-backend | a1fdbcdf0f761eca51f7762ec20e57a2feec234b | 7c7ca74851bf595e811ffba5b0f5b09fbd5ac19a | refs/heads/develop | 2022-12-18T08:22:47.545094 | 2017-10-24T09:00:58 | 2017-10-24T09:00:58 | 102,861,803 | 0 | 0 | null | 2022-12-08T00:38:08 | 2017-09-08T13:00:09 | Python | UTF-8 | Python | false | false | 3,141 | py | from functools import reduce
from django.core.management import BaseCommand
from lexicon.models import ValenceFrame
tags = [
"EXPL",
"EXPL+[INF:rais"
"EXPL+adpos",
"EXPL+adpos+PP[S",
"EXPL+adpos+S",
"EXPL+APpred+INF",
"EXPL+APpred+PP",
"EXPL+APpred+S",
"EXPL+INF",
"EXPL+INF:eq... | [
"tormod.haugland@gmail.com"
] | tormod.haugland@gmail.com |
0f4cae1c82065decfb1458cf930ea6fa0d20184f | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_1480487_0/Python/TV4Fun/CodePython.py | d48048e4b9227440502b06435ae41e03eaa57447 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 905 | py | filename = raw_input("Enter the name of the input file: ")
f = open(filename, 'r')
outfile = open("outfile.txt", 'w')
t = int(f.readline())
for case in range(t):
x = [int(i) for i in f.readline().split()]
n = x.pop(0)
xsum = sum(x)
outfile.write('Case #' + str(case + 1) + ':')
minscore = 2.... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
9185725abebca98dc093dd4d562ae61a619fb4cc | 29ed133feb870455ca619c9fa2ce9b7eb1dcc470 | /URIs/URI2968.py | aac803dbfada4346f0a947ba958b8c61eff6808a | [] | no_license | jrantunes/URIs-Python-3 | c5e676686a979b6bbfd10b8e7168a6d35fb8f6a2 | 4692f3fba4a1c9a0f51322a13e9e267d8b07ea3e | refs/heads/master | 2022-04-17T10:56:52.468275 | 2020-03-28T17:07:46 | 2020-03-28T17:07:46 | 250,395,664 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | #Hour for a Run
import math
v, n = input().split()
v = int(v)
n = int(n)
x = []
for i in range(1, 10):
r = math.ceil((n * v * i) / 10.0)
x.append(r)
print(x[0], x[1], x[2], x[3], x[4], x[5], x[6], x[7], x[8]) | [
"noreply@github.com"
] | jrantunes.noreply@github.com |
2e1f9b8a34984b316be5df9a700ccee570f03474 | 89cd8b77ad5171c336cc60b2133fe6468a6cb53f | /Module02/06-正则表达式/05-FilterLagou.py | 7a68143d021baee871dc9c51bfd6f9e213906972 | [
"MIT"
] | permissive | fenglihanxiao/Python | 75178f6b6b0c53345e1ed54226ea645216572d6c | 872baf3a3a5ee42740161152605ca2b1ddf4cd30 | refs/heads/master | 2021-05-23T18:49:20.656433 | 2020-04-29T01:06:21 | 2020-04-29T01:06:21 | 253,199,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,017 | py | import re
html_str = """
<div class="job_at">
<p>岗位职责:</p>
<p>完成推荐算法、数据统计、接口、后台等服务器端相关工作</p>
<p><br></p>
<p>必备要求:</p>
<p>良好的自我驱动力和职业素养,工作积极主动、结果导向</p>
<p> <br></p>
<p>技术要求:</p>
<p>1、一年以上 Python 开发经验,掌握面向对象分析和设计,了解设计模式</p>
<p>2、掌握HTTP协议,熟悉MVC、MVVM等概念以及相关WEB开发框架</p>
... | [
"fenglihanxiao@qq.com"
] | fenglihanxiao@qq.com |
6297beb8ba52f92cb896761b185e0a4502499949 | d7016f69993570a1c55974582cda899ff70907ec | /sdk/containerservice/azure-mgmt-containerservice/azure/mgmt/containerservice/v2022_02_01/operations/_private_link_resources_operations.py | b8989a164064339b3ceb0b30e1c860798d4401ef | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | kurtzeborn/azure-sdk-for-python | 51ca636ad26ca51bc0c9e6865332781787e6f882 | b23e71b289c71f179b9cf9b8c75b1922833a542a | refs/heads/main | 2023-03-21T14:19:50.299852 | 2023-02-15T13:30:47 | 2023-02-15T13:30:47 | 157,927,277 | 0 | 0 | MIT | 2022-07-19T08:05:23 | 2018-11-16T22:15:30 | Python | UTF-8 | Python | false | false | 6,861 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | kurtzeborn.noreply@github.com |
8ea4e4fe4fcab2f4511431a6d1a91c8e94bcd4cc | 029aa4fa6217dbb239037dec8f2e64f5b94795d0 | /数据结构练习/Python算法指南数据结构/123_删除链表中倒数第n个节点.py | e5895f57b7dca317281edff54280a7e8d0b3517a | [] | no_license | tonyyo/algorithm | 5a3f0bd4395a75703f9ee84b01e42a74283a5de9 | 60dd5281e7ce4dfb603b795aa194a67ff867caf6 | refs/heads/master | 2022-12-14T16:04:46.723771 | 2020-09-23T06:59:33 | 2020-09-23T06:59:33 | 270,216,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | class ListNode(object):
def __init__(self, val, next=None):
self.val = val
self.next = next
class Solution(object):
def removeNthFromEnd(self, head, n):
res = ListNode(0)
res.next = head
tmp = res
for i in range(0, n):
head = head.next
while he... | [
"1325338208@qq.com"
] | 1325338208@qq.com |
1d30a93b7b0fdf10bb8df12a279bd831e5c4df12 | 50f57af6bc95c755597074138ebef2200c0e0022 | /第二天作业/9.将首尾反转,自己写算法实现.py | c44f033e04040dda41193c2a113ad331fe4f9a76 | [] | no_license | qiaoy9377/python-base | f18666c1851f5d5f214b72723e04298471e55d63 | 6c7e4acf96d3582b85464efb8f9d5a6d6d8c2271 | refs/heads/main | 2023-04-05T05:42:40.021651 | 2021-04-20T12:53:10 | 2021-04-20T12:53:10 | 359,812,810 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | #有一堆字符串,‘abcdef’,将首尾反转,结果:fedcba,不能使用现有的函数或方法,自己写算法实现
#定义字符串
str1 = 'abcdef'
#创建一个空列表
list1 = []
#逆着循环取出字符串的数据,插入列表
#1、使用while循环
l = len(str1)
#循环变量--数据下标
i = l-1
#循环判断-判断下标大于等于0
while i >= 0:
#循环体--取数据插入列表
list1.append(str1[i])
#循环变量发生变化
i -= 1
print(''.join(list1))
#2、使用for循环实现
list2 = []
for i in st... | [
"18335909377@163.com"
] | 18335909377@163.com |
e81498d14e8c062e1e3e7a026d2372dea587c945 | a4844ab94268c60ccb3e58e3006bed8e187f4f9c | /decorator_eample.py | cad7c75d3b59eb3bbff7f455b05b056aa56d9c88 | [] | no_license | namitha89/python_works | 2d9eacaf0c73dcea5695c3446b0923610e963795 | d130f4f4f32bf40616fdb3e9eef518d58d2c6a51 | refs/heads/master | 2022-03-31T11:09:35.840452 | 2020-01-14T20:40:22 | 2020-01-14T20:40:22 | 115,792,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | import time
def log(filename):
def inner(func):
def innermost(*args, **kwargs):
start = time.time()
s = func(*args, **kwargs)
end = time.time()
with open(filename, "w") as f:
diff = end-start
x = [start,end,diff]
... | [
"namigowda51@gmail.com"
] | namigowda51@gmail.com |
4fee9d06c23ab38f3284349a68a3ea91b4348d7f | e70a17e8a37847a961f19b136f3bbe74393fa2af | /RPI/src/video_stream_opencv/cfg/VideoStream.cfg | ed9b908047679eaf1c59bef03a222c023b12a809 | [
"MIT"
] | permissive | Mondiegus/ROS-4x4-CAR-AI | 1413ead6f46a8b16005abeea3e0b215caa45f27e | 124efe39168ce96eec13d57e644f4ddb6dfe2364 | refs/heads/Master | 2023-07-14T23:56:53.519082 | 2021-03-27T17:28:45 | 2021-03-27T17:28:45 | 334,233,839 | 0 | 0 | MIT | 2021-02-02T13:00:30 | 2021-01-29T18:46:16 | Makefile | UTF-8 | Python | false | false | 2,012 | cfg | #!/usr/bin/env python
from dynamic_reconfigure.parameter_generator_catkin import *
PKG = "video_stream_opencv"
gen = ParameterGenerator()
class LEVEL:
NORMAL = 0
RUNNING = 1
# name type level description default min max
gen.add("camera_name", str_t, LEVEL.NORMAL, "Camera na... | [
"Mondiegus9@gmail.com"
] | Mondiegus9@gmail.com |
4c2077d7acf3d765cf747f4fb6fbcdf1dffc6276 | e36225e61d95adfabfd4ac3111ec7631d9efadb7 | /problems/CR/auto/problem9_CR.py | 9ab4523e3e2e108161cae160b7e968f1641b787e | [
"BSD-3-Clause"
] | permissive | sunandita/ICAPS_Summer_School_RAE_2020 | d2ab6be94ac508e227624040283e8cc6a37651f1 | a496b62185bcfdd2c76eb7986ae99cfa85708d28 | refs/heads/main | 2023-01-01T02:06:40.848068 | 2020-10-15T17:25:01 | 2020-10-15T17:25:01 | 301,263,711 | 5 | 2 | BSD-3-Clause | 2020-10-15T17:25:03 | 2020-10-05T01:24:08 | Python | UTF-8 | Python | false | false | 1,111 | py | __author__ = 'patras'
from domain_chargeableRobot import *
from timer import DURATION
from state import state
DURATION.TIME = {
'put': 2,
'take': 2,
'perceive': 3,
'charge': 5,
'move': 10,
'moveToEmergency': 5,
'moveCharger': 15,
'addressEmergency': 10,
'wait': 5,
}
DURATION.COUNTE... | [
"sunandita.patra@gmail.com"
] | sunandita.patra@gmail.com |
b453edd28f0abe75121ce1976ba9a9c00c0b850a | c20f811f26afd1310dc0f75cb00992e237fdcfbd | /202-happy-number.py | f7b8c53ffaef5cd4e475b3ce7753353ed5dae8fe | [
"MIT"
] | permissive | dchentech/leetcode | 4cfd371fe4a320ab3e95925f1b5e00eed43b38b8 | 3111199beeaefbb3a74173e783ed21c9e53ab203 | refs/heads/master | 2022-10-21T09:59:08.300532 | 2016-01-04T03:21:16 | 2016-01-04T03:21:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,756 | py | """
Question:
Happy Number
Write an algorithm to determine if a number is "happy".
A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares of its digits, and repeat the process until the number equals 1 (where it will st... | [
"mvjome@gmail.com"
] | mvjome@gmail.com |
2120159042ebf409524843722f2a78301223752c | d42a9128898d504a9831f1afee3198c4677236c9 | /Level_2/기능개발.py | 012a8d1f581b77ca300f381fa928db03d99a1447 | [] | no_license | ketkat001/Programmers-coding | 6848a9c8cffd97b792cfc8856ec135b72af5d688 | 799baba8d66a9971b43233d231cecbf262b4ea27 | refs/heads/master | 2023-09-02T23:07:25.614820 | 2021-10-17T18:12:02 | 2021-10-17T18:12:02 | 235,016,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | def solution(progresses, speeds):
answer = []
while progresses:
time = 0
if (100 - progresses[0]) % speeds[0] != 0:
time += 1
time += (100 - progresses[0]) // speeds[0]
for i in range(len(progresses)):
progresses[i] += speeds[i] * time
temp, idx = ... | [
"ketkat001@gmail.com"
] | ketkat001@gmail.com |
9f12561ad304b6686343604c8f927cda626574b8 | 26e91aead18d0fad6f5ce8fc4adf7d8e05a2f07f | /tests/util/datetime/calc/test_calculate_days_util.py | 53cf0307f8290841c7e426a19284122c18f21258 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | leathe/byceps | 40c1f8a1aab3521fcac45d88eab6364d448d4e67 | cd0c618af63fed1cd7006bb67da46eac0ddbb1c7 | refs/heads/master | 2020-12-02T09:02:51.087511 | 2019-12-14T17:00:22 | 2019-12-14T17:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | """
:Copyright: 2006-2019 Jochen Kupperschmidt
:License: Modified BSD, see LICENSE for details.
"""
from datetime import date
import pytest
from byceps.util.datetime.calc import calculate_days_until
SOME_DATE = date(1994, 3, 18)
@pytest.mark.parametrize('today, expected', [
(date(2014, 3, 16), 2),
(date(... | [
"homework@nwsnet.de"
] | homework@nwsnet.de |
f0f826009c7d7edec9d20ab836fbd2f002481a5f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03088/s886343007.py | cb0bffa8d09a57e497014975538a18cc8134c4f7 | [] | 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 | 1,102 | py | N = int(input())
mod = 10 ** 9 + 7
# 直大さんの解説風
dp = [[[[0] * 4 for _ in range(4)] for _ in range(4)] for _ in range(N + 1)]
dp[0][3][3][3] = 1
for Length in range(N):
for i in range(4):
for j in range(4):
for k in range(4):
if dp[Length][i][j][k] == 0:
conti... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
a35a19b9d67715a726dacdfc4e9dc71bcf0d3f70 | 13f5984be7be77852e4de29ab98d5494a7fc6767 | /100Cases/51-100/num52按位或.py | 7b1d3c7885a6b8ca4068d3022d343b79d8057e73 | [] | no_license | YuanXianguo/Python-Interview-Master | 4252514763fc3f563d9b94e751aa873de1719f91 | 2f73786e8c51dbd248341559de171e18f67f9bf2 | refs/heads/master | 2020-11-26T18:14:50.190812 | 2019-12-20T02:18:03 | 2019-12-20T02:18:03 | 229,169,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 218 | py | """程序分析:0|0=0; 0|1=1; 1|0=1; 1|1=1"""
a = 0o77
a_d = 63
a_b = 0b111111
b = 3
b_b = 0b11
num = a | b
num_b = 0b111111
print(num_b,num)
d = 7
d_b = 0b111
num_ = num | d
num_b_ = 0b111111
print(num_b_,num_)
| [
"736913978@qq.com"
] | 736913978@qq.com |
072ffb1a0289a7bf669e19f91d43bfb644b269de | d3c518b69525c04022ff76c583b4c31aae1e4295 | /tests/func/grammar/test_special_grammars.py | b04bfc98a47e74b30dfbc9f3986e1c5b5948384c | [
"Python-2.0",
"MIT"
] | permissive | boriel/parglare | 6714ed8c9c52b174f8c7fdf0bb986446ad2d55d9 | 74a6d98b6e510ae3c814c517924796c5dccefae0 | refs/heads/master | 2023-01-28T09:15:44.402669 | 2020-12-08T10:47:22 | 2020-12-08T10:47:22 | 103,997,403 | 0 | 0 | MIT | 2020-12-08T10:47:23 | 2017-09-18T22:13:24 | Python | UTF-8 | Python | false | false | 7,118 | py | # -*- coding: utf-8 -*-
"""
Test non-deterministic parsing.
"""
import pytest # noqa
import sys
from parglare import Parser, GLRParser, Grammar, SLR, LALR
from parglare.exceptions import ParseError, SRConflicts, RRConflicts
def test_lr_1_grammar():
"""From the Knuth's 1965 paper: On the Translation of Languages ... | [
"igor.dejanovic@gmail.com"
] | igor.dejanovic@gmail.com |
861c1152d96532898f9e8f77ce6d44266c661726 | 8500de86f864e60856f4af17cfc7f620fd0e0ec9 | /test/counts_table/initialize.py | e8408b6b3e86675fc8984e895ded9060e1ef6026 | [
"MIT"
] | permissive | kaladharprajapati/singlet | c813ba7aa3d078659ef7868299b7093df207c6fc | 314ba68cbecebbda2806afdc97fdf6ac6f6c672e | refs/heads/master | 2020-05-18T06:58:04.697593 | 2019-02-15T15:50:59 | 2019-02-15T15:50:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | #!/usr/bin/env python
# vim: fdm=indent
'''
author: Fabio Zanini
date: 15/08/17
content: Test CountsTable class.
'''
# Script
if __name__ == '__main__':
# NOTE: an env variable for the config file needs to be set when
# calling this script
print('Instantiating CountsTable')
from singlet.co... | [
"fabio.zanini@fastmail.fm"
] | fabio.zanini@fastmail.fm |
88bdbcb1399726e566d59184082756a59e84d1fb | 609d5408f302c9188b723998762c2c1f7b883af9 | /.closet/jython.configurator.efr32/1.0.0.201606231656-435/pyradioconfig/parts/jumbo/profiles/__init__.py | 7450887a42996decd085e0a7530498b61cf25be7 | [] | no_license | acvilla/Sundial-Beta | 6ea4fd44cbf7c2df8100128aff5c39b6faf24a82 | 9f84e3b5a1397998dfea5287949fa5b1f4c209a6 | refs/heads/master | 2021-01-15T15:36:19.394640 | 2016-08-31T20:15:16 | 2016-08-31T20:15:16 | 63,294,451 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | """
Dumbo specific Profiles
How to add a new Profile:
--------------------------
* Add a new Python file in this directory (example: Profile_[Name].py)
* Inside the Py file, create a class that implements IProfile:
>>> class Profile_Base(IProfile):
* Implement/override buildProfileModel() function. This func... | [
"acvilla@bu.edu"
] | acvilla@bu.edu |
dbd6e34e75a7e79edfad1c60ea67094198683509 | 15e818aada2b18047fa895690bc1c2afda6d7273 | /gs/monitor2/apps/plugins/layouts/gs_layout.py | becc28275206704a061906649bfea056979cc494 | [
"Apache-2.0"
] | permissive | ghomsy/makani | 4ee34c4248fb0ac355f65aaed35718b1f5eabecf | 818ae8b7119b200a28af6b3669a3045f30e0dc64 | refs/heads/master | 2023-01-11T18:46:21.939471 | 2020-11-10T00:23:31 | 2020-11-10T00:23:31 | 301,863,147 | 0 | 0 | Apache-2.0 | 2020-11-10T00:23:32 | 2020-10-06T21:51:21 | null | UTF-8 | Python | false | false | 2,790 | py | # Copyright 2020 Makani Technologies LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"luislarco@google.com"
] | luislarco@google.com |
b38ea4d4abae4e15f95f4f20b561b5ece41b2d6a | 108034973f9046a7603d5fe3f26c59b20a7e68da | /lab/lab05/lab05.py | d7a06219e929cbbf620509d6269d6ca247e50d07 | [] | no_license | paulhzq/cs61a | b1b1387cefbaaf1823c02d535891db7d085f3b04 | 9eee13df9ad113591dc55d106561951cea34abc5 | refs/heads/master | 2020-05-23T08:16:14.193086 | 2017-01-15T02:06:18 | 2017-01-15T02:06:18 | 70,255,875 | 8 | 8 | null | null | null | null | UTF-8 | Python | false | false | 3,704 | py | ## Lab 5: Mutable Sequences and Trees ##
# Sequences
def map(fn, seq):
"""Applies fn onto each element in seq and returns a list.
>>> map(lambda x: x*x, [1, 2, 3])
[1, 4, 9]
"""
"*** YOUR CODE HERE ***"
return [fn(x) for x in seq]
def filter(pred, seq):
"""Keeps elements in seq only if th... | [
"paul_hzq@hotmail.com"
] | paul_hzq@hotmail.com |
c14629b1a6e08472ce43288bee91fa595f6c20f5 | 32735726b6b6416f66e8f6d719382f3ffe3d1177 | /or2yw_examples/NYPL/script/ConfigTool.py | 0457fd07bb42522d033fa75db24e08329696f2b1 | [] | no_license | yixuan21/OR2YWTool | 5489d25a2a15d6d2513f909508fd5df97ee6d69b | eada19dccc6d03e80f0795efef949bc19f757fa0 | refs/heads/master | 2023-02-12T17:27:58.034974 | 2021-01-07T06:56:16 | 2021-01-07T06:56:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | import argparse
import LinearOriginalOR2YW as Linear
import SPOriginalOR2YW as SP
def main():
parser=argparse.ArgumentParser()
parser.add_argument('-L','--Linear',help="Generate Linear YW model",action="store_true")
parser.add_argument('-SP','--SerialParallel',help="Generate Serial-Parallel YW model",acti... | [
"lilan.scut@gmail.com"
] | lilan.scut@gmail.com |
0b2d82c28a801219156d6a83facb2da9e5069808 | d47956c25f4f7ce0ae4a39cde40ee8f958f6b8bd | /products/migrations/0009_auto_20161018_0947.py | 79ad2a25f0bc70671a7e4a9b1e670c066e1ab9dc | [] | no_license | vaerjngiar/eShopper | de6e6bc4aece91fd766fed35a0654feaf0285163 | 5c43bc8867e484e03cd18e1a7ed4faf64cad4b7a | refs/heads/master | 2020-06-14T09:41:58.021570 | 2016-12-31T13:25:47 | 2016-12-31T13:25:47 | 77,740,671 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,099 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10 on 2016-10-18 06:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0008_product_size'),
]
operations = [
migrations.AlterModelOption... | [
"vaerjngiar@gmail.com"
] | vaerjngiar@gmail.com |
3663318075fd771c2027ed016c8bd9ecab76c0e4 | 3996539eae965e8e3cf9bd194123989741825525 | /RecoEgamma/EgammaHLTProducers/hltEgammaHLTNxNClusterProducer_cfi.py | 57de83bc38ca0be104c1d2bdd00e2e8a2c4304b3 | [] | no_license | cms-sw/cmssw-cfipython | 01990ea8fcb97a57f0b0cc44a8bf5cde59af2d98 | 25ee4c810103c4a507ca1b949109399a23a524c5 | refs/heads/CMSSW_11_2_X | 2023-09-01T16:56:00.658845 | 2022-06-20T22:49:19 | 2022-06-20T22:49:19 | 136,184,115 | 1 | 0 | null | 2022-10-19T14:04:01 | 2018-06-05T13:47:28 | Python | UTF-8 | Python | false | false | 1,133 | py | import FWCore.ParameterSet.Config as cms
hltEgammaHLTNxNClusterProducer = cms.EDProducer('EgammaHLTNxNClusterProducer',
doBarrel = cms.bool(True),
doEndcaps = cms.bool(True),
barrelHitProducer = cms.InputTag('hltEcalRegionalPi0EtaRecHit', 'EcalRecHitsEB'),
endcapHitProducer = cms.InputTag('hltEcalRegionalPi0Et... | [
"cmsbuild@cern.ch"
] | cmsbuild@cern.ch |
88c2969816720474e934b4cd7f2263875bbd96ae | 5935025f9c6e83aa006cd64755f71644009dedb5 | /core/utils.py | 75e2c316b8726d87611f4ba2bf628ecd43c882d9 | [] | no_license | zdYng/MyQuantification | 24bd546ce1b7ed94115a1eb94b2e11598df95f6b | 2fa874be4c8707e9c10bd7620cec2796946badcc | refs/heads/master | 2020-09-14T02:10:59.194409 | 2019-11-21T03:17:18 | 2019-11-21T03:17:18 | 222,980,387 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | import datetime as dt
class Timer():
def __init__(self):
self.start_dt = None
def start(self):
self.start_dt = dt.datetime.now()
def stop(self):
end_dt = dt.datetime.now()
print('Time token: %s'%(end_dt-self.start_dt))
| [
"qianzhongdao@163.com"
] | qianzhongdao@163.com |
14ec0e21f7e22754fe439ab3ac53c8b332534207 | d308fffe3db53b034132fb1ea6242a509f966630 | /pirates/world/ModularAreaBuilder.py | 7a52e5645c421e21103107fa08fc0966c217c0e6 | [
"BSD-3-Clause"
] | permissive | rasheelprogrammer/pirates | 83caac204965b77a1b9c630426588faa01a13391 | 6ca1e7d571c670b0d976f65e608235707b5737e3 | refs/heads/master | 2020-03-18T20:03:28.687123 | 2018-05-28T18:05:25 | 2018-05-28T18:05:25 | 135,193,362 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 5,335 | py | # uncompyle6 version 3.2.0
# Python bytecode 2.4 (62061)
# Decompiled from: Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)]
# Embedded file name: pirates.world.ModularAreaBuilder
from pandac.PandaModules import *
from otp.otpbase import OTPRender
from pirates.world.SectionAreaBuild... | [
"33942724+itsyaboyrocket@users.noreply.github.com"
] | 33942724+itsyaboyrocket@users.noreply.github.com |
3be9d317ad09dd674355187358e491d131b899a5 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayAcquireCreateandpayResponse.py | c14ee8bde981d6a5568c67d3c189308b17bf169e | [
"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,910 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayAcquireCreateandpayResponse(AlipayResponse):
def __init__(self):
super(AlipayAcquireCreateandpayResponse, self).__init__()
self._buyer_logon_id = None
s... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
ab60bdb394634c3f7bf7a2949170c5796910f7d6 | ed06ef44c944707276a2fca16d61e7820596f51c | /Python/create-target-array-in-the-given-order.py | 79a41b9196316ba78a9aa7642dbd5d9bc4c51130 | [] | no_license | sm2774us/leetcode_interview_prep_2021 | 15842bef80637c6ff43542ed7988ec4b2d03e82c | 33b41bea66c266b733372d9a8b9d2965cd88bf8c | refs/heads/master | 2023-05-29T14:14:49.074939 | 2021-06-12T19:52:07 | 2021-06-12T19:52:07 | 374,725,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 838 | py | # Time: O(n^2)
# Space: O(1)
class Solution(object):
def createTargetArray(self, nums, index):
"""
:type nums: List[int]
:type index: List[int]
:rtype: List[int]
"""
for i in range(len(nums)):
for j in range(i):
if index[j] >= index[i]:
... | [
"sm2774us@gmail.com"
] | sm2774us@gmail.com |
7d944e3db94712dc9662468f900911a794ff785a | 27e890f900bd4bfb2e66f4eab85bc381cf4d5d3f | /plugins/module_utils/network/slxos/slxos.py | 32f64d815194641c0d66b6c029f0e8f8720df836 | [] | no_license | coll-test/notstdlib.moveitallout | eb33a560070bbded5032385d0aea2f3cf60e690b | 0987f099b783c6cf977db9233e1c3d9efcbcb3c7 | refs/heads/master | 2020-12-19T22:28:33.369557 | 2020-01-23T18:51:26 | 2020-01-23T18:51:26 | 235,865,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,455 | py | #
# (c) 2018 Extreme Networks Inc.
#
# 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, or
# (at your option) any later version.
#
# Ans... | [
"wk@sydorenko.org.ua"
] | wk@sydorenko.org.ua |
e3a6d3a7c141c5ff1c7cc9d862462fb3c5c9136b | c8a6246f1695521c9acb0eb1ba8552c7f1917ce7 | /provider/manga.py | 84d1514624cb497c704deed06f0e64e1137d7b1a | [
"Apache-2.0",
"MIT",
"CC-BY-4.0"
] | permissive | wafle/ebedke | 5a391c78e94f056a7aa8f7dda40a5a1bbad3c96b | 94d6a3431b674aafc00d88826307dcb74bde3943 | refs/heads/master | 2020-04-06T11:17:44.297396 | 2019-01-27T21:08:42 | 2019-01-27T21:08:42 | 157,411,406 | 0 | 0 | NOASSERTION | 2018-11-13T16:31:05 | 2018-11-13T16:31:05 | null | UTF-8 | Python | false | false | 644 | py | from datetime import datetime as dt, timedelta
from provider.utils import get_dom, on_workdays
URL = "http://mangacowboy.hu/"
@on_workdays
def getMenu(today):
dom = get_dom(URL)
date = today.strftime("%Y. %m. %d.")
menu = dom.xpath(f'//section[@id="weekly_menu"]/ul/li[.//time[contains(text(), "{ date }")... | [
"ijanos@gmail.com"
] | ijanos@gmail.com |
a55e1d3310d8edf5e2ef9a5d7119e535b1785777 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_bookstores.py | c045d55bc6dc153405204c67df564094fb1eb46b | [
"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 | 234 | py |
#calss header
class _BOOKSTORES():
def __init__(self,):
self.name = "BOOKSTORES"
self.definitions = bookstore
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['bookstore']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
9a1ab659558877fc943ccdb9a204d0b3ea6f68aa | 683417cb26b5a4d5b17b437eb49aa4fdbc77de72 | /src/nameless/cli.py | 591c249cbfaa60b8431e5246476eba4deed5a2fd | [
"BSD-2-Clause"
] | permissive | admdev8/python-nameless | 1c36286b0a2f308c4fdc43e05abf5ec403f91c97 | 838e1f0d90c9a33abba820ffd05beb39b2ef6763 | refs/heads/master | 2023-04-15T18:19:59.065808 | 2020-08-06T10:57:15 | 2020-08-06T10:57:15 | 292,904,530 | 0 | 0 | BSD-2-Clause | 2023-04-04T01:54:02 | 2020-09-04T17:10:41 | null | UTF-8 | Python | false | false | 917 | py | """
Module that contains the command line app.
Why does this file exist, and why not put this in __main__?
You might be tempted to import things from __main__ later, but that will cause
problems: the code will get executed twice:
- When you run `python -mnameless` python will execute
``__main__.py`` as a s... | [
"contact@ionelmc.ro"
] | contact@ionelmc.ro |
0609114ce349631e21e78619f2e13aaeae8803f9 | 06933693ff601156402dc1c0a424cf292bf0c6ed | /home/management/commands/load_initial_data.py | 9cb5d99213107dee3c487d2b72e77805191def94 | [] | no_license | crowdbotics-apps/onboard-5295 | 77f6daad336d7a14c296cf7015147d711d412505 | 45cd684a02613a2527e52faadf96a38991b76987 | refs/heads/master | 2022-12-14T23:39:31.154518 | 2019-06-27T23:42:07 | 2019-06-27T23:42:07 | 194,176,736 | 0 | 0 | null | 2022-12-08T20:50:16 | 2019-06-27T23:41:28 | Python | UTF-8 | Python | false | false | 719 | py |
from django.core.management import BaseCommand
from home.models import CustomText, HomePage
def load_initial_data():
homepage_body = """
<h1 class="display-4 text-center">OnBoard.</h1>
<p class="lead">
This is the sample application created and deployed from the crowdbotics slack app... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
ac8854b98b82c5621e509614b257be316cedf096 | 066ee4df594a5dc90335d271b9d5a1b1e2a4d34c | /src/lib/wtforms/ext/i18n/form.py | 60544824f90cb1b77f8f92b83f9b91d28f78b627 | [] | permissive | ychen820/microblog | a2d82447525325ec58285c2e5db58b79cceaca1b | d379afa2db3582d5c3be652165f0e9e2e0c154c6 | refs/heads/master | 2021-01-20T05:58:48.424357 | 2015-04-28T22:03:09 | 2015-04-28T22:03:09 | 32,948,331 | 0 | 2 | BSD-3-Clause | 2020-07-25T05:04:35 | 2015-03-26T19:45:07 | Python | UTF-8 | Python | false | false | 1,259 | py | from wtforms import form
from wtforms.ext.i18n.utils import get_translations
translations_cache = {}
class Form(form.Form):
"""
Base form for a simple localized WTForms form.
This will use the stdlib gettext library to retrieve an appropriate
translations object for the language, by default using th... | [
"ychen207@binghamton.edu"
] | ychen207@binghamton.edu |
29254a283d32280f056293e7391c7261bde9d15c | 3655215852ee2fb1864dbfa1ce924290a2c4f4b9 | /Tuple_operation.py | 43fe5822ba8f491fdff046af229963119819a470 | [] | no_license | shubhamkanade/Niyander-Python | 8b318df2b8ae33b943dcf83eb01c00577914ca59 | 2b6a4780707e26852aa950d7c3e54be1f3b2080b | refs/heads/main | 2023-06-16T03:44:07.833619 | 2021-07-06T03:09:16 | 2021-07-06T03:09:16 | 383,021,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py |
Tuple=('a',)
Tuple1="a","b","c","d"
Tuple2=(1,2,3,4,5)
print Tuple1+Tuple2
print Tuple
del Tuple
print Tuple #name 'tuple is not defined'
| [
"shubhamkanade98@gmail.com"
] | shubhamkanade98@gmail.com |
e623bae8fc46dc8fb0e597e972905d9563a89e96 | fcd965c9333ee328ec51bc41f5bc0300cc06dc33 | /LeetCode/Blind 75/Dynamic Programming/1D Dynamic/91_decode_ways.py | d0549868e32f709b896aa8002f90fd411e175c0e | [] | no_license | henrylin2008/Coding_Problems | 699bb345481c14dc3faa8bab439776c7070a1cb0 | 281067e872f73a27f76ae10ab0f1564916bddd28 | refs/heads/master | 2023-01-11T11:55:47.936163 | 2022-12-24T07:50:17 | 2022-12-24T07:50:17 | 170,151,972 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,074 | py | # 91. Decode Ways
# Link: https://leetcode.com/problems/decode-ways/
# Medium
# A message containing letters from A-Z can be encoded into numbers using the following mapping:
#
# 'A' -> "1"
# 'B' -> "2"
# ...
# 'Z' -> "26"
# To decode an encoded message, all the digits must be grouped then mapped back into letters usi... | [
"henrylin2008@yahoo.com"
] | henrylin2008@yahoo.com |
31e19091980ddd7815391fd7ccbb4d6062a92ac5 | 571a89f94f3ebd9ec8e6b618cddb7d05811e0d62 | /abc177/c/main.py | 0341cb88173c4b0336bda72891d1c6cad1f960a8 | [] | no_license | ryu19-1/atcoder_python | 57de9e1db8ff13a107b5861f8f6a231e40366313 | cc24b3c2895aad71d40cefbb8e2893dc397b8f4f | refs/heads/master | 2023-05-10T05:32:16.507207 | 2021-05-19T17:48:10 | 2021-05-19T17:48:10 | 368,954,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 567 | py | #!/usr/bin/env python3
import sys
from collections import deque, Counter
from heapq import heappop, heappush
from bisect import bisect_right
from itertools import accumulate
sys.setrecursionlimit(10**6)
INF = 10**12
m = 10**9 + 7
def main():
N = int(input())
A = list(map(int, input().split()))
ans = 0
... | [
"ryu1007kami@gmail.com"
] | ryu1007kami@gmail.com |
75a8e3640a339ab44e8583e808b41f364ce368d4 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_plat_shop_map_vo.py | 8fd6e86688a996ef5f7a879a93e7551fba632853 | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 656 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.subshopopenapi.model.plat_shop_map_vo import PlatShopMapVo
class TestPlatShopMapVo(unittest.TestCase):
"""PlatShopMapVo unit test stu... | [
"yangxp@YangxpdeMacBook-Pro.local"
] | yangxp@YangxpdeMacBook-Pro.local |
4bc7a4f38cde5846e34d476537c242652d64db22 | c71fc2c91b119eeac9eafe2038b0e42ef11098f7 | /new/trucks/migrations/0005_auto_20190124_1843.py | 1af8d75d9619bbc06040522809a2a6f4308001c1 | [] | no_license | abhinavsharma629/Reminder-System | c3848fda4947506bcd35759c2966392b34e8ef6a | fb95e3b8ae8ce6eee116fb0a0aac9187189d515d | refs/heads/master | 2020-04-20T08:47:40.068485 | 2019-02-01T19:36:20 | 2019-02-01T19:36:20 | 168,749,751 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # Generated by Django 2.1.5 on 2019-01-24 18:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('trucks', '0004_remove_notifications_boolean1'),
]
operations = [
migrations.AddField(
model_name='notifications',
na... | [
"abhinavsharma629@gmail.com"
] | abhinavsharma629@gmail.com |
d753f4c532b52b9485026a9353250a6782eec47b | 1d6abe27a802d53f7fbd6eb5e59949044cbb3b98 | /tensorflow/python/keras/layers/preprocessing/normalization_distribution_test.py | 4bf15da435814ac8a2af97f42807594c54a819ee | [
"Apache-2.0"
] | permissive | STSjeerasak/tensorflow | 6bc8bf27fb74fd51a71150f25dc1127129f70222 | b57499d4ec0c24adc3a840a8e7e82bd4ce0d09ed | refs/heads/master | 2022-12-20T20:32:15.855563 | 2020-09-29T21:22:35 | 2020-09-29T21:29:31 | 299,743,927 | 5 | 1 | Apache-2.0 | 2020-09-29T21:38:19 | 2020-09-29T21:38:18 | null | UTF-8 | Python | false | false | 5,270 | py | # Copyright 2019 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
ef358f189d6d0f154253c9a6be092c1bde2adf0f | 4085874e861c40f94b0ba82fdbff273762c26eb2 | /test/functional/p2p_permissions.py | 058d216bc61d9623ec3c1c5d214f10d8cf5c2b01 | [
"MIT"
] | permissive | zortcoin/zortcoin | 82632c9ae46d57ef77ea7e79ab000f2e002dfaf3 | 379a1d01cc40c5c8ea50bdc41eded0dfbd1724f1 | refs/heads/master | 2022-07-27T20:33:34.543723 | 2021-08-25T16:25:17 | 2021-08-25T16:25:17 | 380,851,757 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,160 | py | #!/usr/bin/env python3
# Copyright (c) 2015-2020 The Zortcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test p2p permission message.
Test that permissions are correctly calculated and applied
"""
from tes... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
f1d0ba5bd2156ebedefeb9b9ed9f945bc33c6384 | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-config/aliyunsdkconfig/request/v20200907/UpdateConfigRuleRequest.py | 675e72a0b4aec9655860d7318e001d677ada76f5 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 4,698 | 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 |
b859d46b4f18efbfc0b5398705cd8d08f1294d73 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03738/s549313659.py | 12a3cd23e0f77bb5e3c9bf8518cad064d24634fd | [] | 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 | 141 | py | a = int(input())
b = int(input())
ret = ''
if( a > b):
ret = 'GREATER'
elif( a < b):
ret = 'LESS'
else:
ret = 'EQUAL'
print(ret) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
728ca7506be2deabb34816b5fe10cfbb388e53ee | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_thoughts.py | ce645c20272a682102eb7f3134c14f62de160bfa | [
"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 | 226 | py |
#calss header
class _THOUGHTS():
def __init__(self,):
self.name = "THOUGHTS"
self.definitions = thought
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['thought']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2c716b8c2b1ae34ef0a61b9c3da1bd67c44ace48 | de27e6d143f40d5948244597b861d522a9a272f6 | /fjord/heartbeat/migrations/0002_auto_20150213_0947.py | a4f74d469a7dc0c38c5f0fcaed78e8aba1a95b7d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mozilla/fjord | 7f31af6dd80869ca856f8a02ff10e72c81685368 | 0fcb81e6a5edaf42c00c64faf001fc43b24e11c0 | refs/heads/master | 2023-07-03T18:20:01.651759 | 2017-01-10T20:12:33 | 2017-01-10T20:12:33 | 5,197,539 | 18 | 22 | null | 2016-08-22T14:56:11 | 2012-07-26T21:25:00 | Python | UTF-8 | Python | false | false | 784 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('heartbeat', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='survey',
name='desc... | [
"willkg@mozilla.com"
] | willkg@mozilla.com |
08ca57f7bfb8b2b56205a27f3306087d7ff3dfbb | 63bf6161532eefa72aa3be8b01cde601b08507dc | /python-mapping-example/fhir_model_generator/model/namingsystem.py | e7edf545c950a359c609ec28b6f86a71fd632773 | [
"Apache-2.0"
] | permissive | Healthedata1/mFHIR | 4ef370b87e03e973918e5683977d32fe262655bc | 1b4ea441cfa08b661416a3badedf7e90f2809163 | refs/heads/master | 2022-12-10T21:07:03.948406 | 2021-06-18T01:58:23 | 2021-06-18T01:58:23 | 129,964,251 | 9 | 5 | null | 2022-12-09T05:23:54 | 2018-04-17T20:57:15 | HTML | UTF-8 | Python | false | false | 1,832 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/NamingSystem) on 2020-02-10.
# 2020, SMART Health IT.
import sys
from dataclasses import dataclass, field
from typing import ClassVar, Optional, List
from .backboneelement import BackboneEl... | [
"ehaas@healthedatainc.com"
] | ehaas@healthedatainc.com |
fe6c635055b56eee3c9d2f141ce391f88f17af89 | 87119ec9cea61be175f2a1f16f0e37d060cde9af | /django/myproject/guestbook/views.py | 10b4c58f64dd2648adb10abbea42488375fd7b7c | [] | no_license | atkins126/sample_nullpobug | bce9c1bf2a31921ac665a18dc2a62be3bdef493e | b2ba65f42f717f0ceb2cf14fe28e90c460bfde87 | refs/heads/master | 2023-02-16T11:37:05.290069 | 2021-01-18T14:43:40 | 2021-01-18T14:43:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 672 | py | # coding: utf-8
from django.views.generic import CreateView
from django.core.urlresolvers import reverse
from guestbook.models import Greeting
from guestbook.forms import GreetingForm
class IndexView(CreateView):
u"""
テンプレートによるフォーム表示と
送信されたフォーム内容をモデルに保存する
クラスベース汎用ビューを使用
"""
model = Greeting
... | [
"tokibito@gmail.com"
] | tokibito@gmail.com |
e795fe5a43ef8191430bc02b8bfe80d6b2af1e33 | d60ee49abaee6c74c5b777f8f112a7f75f71f029 | /transcriptome/variants/combine_indels/merge_callers.py | 4ad773516e591cc4ea2af75aac5c24231071fc5b | [] | no_license | ak352/melanomics | 41530f623b4bfdbd5c7b952debcb47622d1a8e88 | fc5e6fdb1499616fb25a8dc05259add8a65aeca0 | refs/heads/master | 2020-12-24T16:14:42.271416 | 2015-08-06T12:48:52 | 2015-08-06T12:48:52 | 18,439,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py | import sys
for line in open(sys.argv[1]):
if line.startswith("##"):
print line.rstrip("\n")
elif line.startswith("#CHROM"):
line = line.rstrip("\n").split("\t")
line = line[0:9]
line.append(sys.argv[2])
print "\t".join(line)
else:
line = line.rstrip("\n").spl... | [
"ak@uni.fake"
] | ak@uni.fake |
8bc514d81e1bc5d9600495d88105cfc2b69996ab | a46d135ba8fd7bd40f0b7d7a96c72be446025719 | /packages/python/plotly/plotly/validators/scatter3d/error_y/_arrayminussrc.py | 3ac5aee82f37d414b78135b25b6c1c4ccf604ac0 | [
"MIT"
] | permissive | hugovk/plotly.py | 5e763fe96f225d964c4fcd1dea79dbefa50b4692 | cfad7862594b35965c0e000813bd7805e8494a5b | refs/heads/master | 2022-05-10T12:17:38.797994 | 2021-12-21T03:49:19 | 2021-12-21T03:49:19 | 234,146,634 | 0 | 0 | MIT | 2020-01-15T18:33:43 | 2020-01-15T18:33:41 | null | UTF-8 | Python | false | false | 435 | py | import _plotly_utils.basevalidators
class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator):
def __init__(
self, plotly_name="arrayminussrc", parent_name="scatter3d.error_y", **kwargs
):
super(ArrayminussrcValidator, self).__init__(
plotly_name=plotly_name,
... | [
"noreply@github.com"
] | hugovk.noreply@github.com |
40439daa08c438b8507f12a556ecfd72a95a7444 | 284f2bfaabf91899211e56063026857c496965cf | /tuites/migrations/0001_initial.py | 8de3c24cc1b399b272364d1abd936290637e1a55 | [] | no_license | vanessa/building-tuirer | 7b56bb9791659fcd04942d2c84a393c3c226f8c4 | 61d85df7d120387700b2e449a6fde5fb9ca7cfaa | refs/heads/master | 2022-12-11T07:25:14.174448 | 2018-08-07T05:18:29 | 2018-08-07T05:18:29 | 142,210,249 | 18 | 0 | null | 2022-12-08T02:19:48 | 2018-07-24T20:35:34 | Python | UTF-8 | Python | false | false | 840 | py | # Generated by Django 2.0.7 on 2018-07-26 19:50
import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"vanessa@vinta.com.br"
] | vanessa@vinta.com.br |
9f8f7a635445ea0cbc31c0a85db8d79724111967 | d1b44d58d4eaa845e1b460f338e61857ac00cd6f | /ch08/misung/ch8_2_misung.py | 656f723a7c00f993ec717b0705ca0a4f183727ba | [] | no_license | hyo-eun-kim/algorithm-study | 549ffe1d453ceede9075c1a8df55a67cf76bde00 | 1ca8298361b6a030d2569c06a34d955cc5e4b1bb | refs/heads/main | 2023-03-26T14:32:49.597667 | 2021-03-25T23:29:00 | 2021-03-25T23:29:00 | 301,707,534 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | # 두 정렬 리스트의 병합
# 정렬되어있는 두 리스트를 연결하라!
class Node:
def __init__(self, val, next=None):
self.val = val
self.next = next
node1 = Node(1)
node2 = Node(2)
node3 = Node(4)
node1.next = node2
node2.next = node3
node4 = Node(1)
node5 = Node(3)
node6 = Node(4)
node4.next = node5
node5.nex... | [
"noreply@github.com"
] | hyo-eun-kim.noreply@github.com |
c743c8ff68fe3bd53074f445c816621b0e9b75b1 | 700f9f9e319ebd26d2557d64ea3827808dfad2f5 | /tests/fixtures/test_contributors/content_04_expected.py | 0572936d0420acaa17e064c4a1f555556f4a9eb7 | [
"MIT"
] | permissive | elifesciences/elife-tools | 1b44e660e916a82ef8ff64dd5a6ee5506e517359 | bc16e7dd5d6245077e39f8561b99c9acd510ddf7 | refs/heads/develop | 2023-03-06T08:37:47.424282 | 2023-02-20T20:40:49 | 2023-02-20T20:40:49 | 30,274,058 | 13 | 11 | MIT | 2023-02-20T20:40:50 | 2015-02-04T01:14:41 | Python | UTF-8 | Python | false | false | 1,436 | py | # based on elife article 75374 which has a collab inside a collab
expected = [
{
"type": "author",
"group-author-key": "group-author-id1",
"collab": "the PRACTICAL consortium",
},
{
"type": "author non-byline",
"group-author-key": "group-author-id1",
"surname"... | [
"gnott@starglobal.ca"
] | gnott@starglobal.ca |
64cf23257d7a451e2b536d2a5acb97fafdb2eed9 | b2f256c584aa071a58d8905c3628d4a4df25a506 | /utils/python/python/oj/lonlat.py | c267b99d4fcd491d6c2252c584e21e195d26b8f2 | [
"MIT"
] | permissive | maximebenoitgagne/wintertime | 6865fa4aff5fb51d50ea883b2e4aa883366227d8 | 129758e29cb3b85635c878dadf95e8d0b55ffce7 | refs/heads/main | 2023-04-16T22:08:24.256745 | 2023-01-10T20:15:33 | 2023-01-10T20:15:33 | 585,290,944 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from pylab import *
from scipy.special import ellipeinc
def lonlatdist(lonv, latv):
""" (spherical) distance along piece-wise linear paths in lat-lon space """
d = 0.
res = [d]
for i in range(len(lonv)-1):
lon0 = lonv[i]
lon1 = lonv[i+1]
lat0 = latv[i]
lat1 = latv[i+1]
... | [
"maxime.benoit-gagne@takuvik.ulaval.ca"
] | maxime.benoit-gagne@takuvik.ulaval.ca |
643dcab14fae0011f2251e73bc8a67b69fe53737 | 1b2ff7633c5c412afcd830a1ad47ed91e41dc603 | /backend/settings/asgi.py | 258cd8bdcc592f753899d56ebc8618e3d7bced9e | [] | no_license | taivy/objects_test_assignment | 931a1ed42c43eaae09ce6b34dc9ad26ca3590e6e | 7cd9d040d54f9643447eb3a0c9b1d41315643c52 | refs/heads/main | 2023-01-07T19:28:15.556318 | 2020-10-23T14:21:31 | 2020-10-23T14:21:31 | 305,916,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for objects_test project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_... | [
"aie803ef4g@gmail.com"
] | aie803ef4g@gmail.com |
cead2db18a4505b8b8747c0f7dab990b7e7895db | af4ad182e46d032ddff504196be7d529b7c82078 | /overlap/vcfFindDifferentButSame.py | 34e3bb052a6ddc355640b30a0b942a42e92271c8 | [] | no_license | BD2KGenomics/brca-pipeline | a8423bf3d651ed395c16aa6b45add78436e870bb | 3df911a6a922338422ce17e8cedba9480d6977f2 | refs/heads/master | 2021-01-18T12:50:14.194467 | 2016-08-10T00:11:36 | 2016-08-10T00:11:36 | 34,352,507 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,474 | py | import pysam
import glob, gzip
from itertools import combinations
from os.path import basename
import logging, sys, optparse
from collections import defaultdict
from os.path import join, basename, dirname, isfile
# maximum distance between two variants to get compared
MAXDIST=50
# do we check if the refAllele seque... | [
"max@soe.ucsc.edu"
] | max@soe.ucsc.edu |
b4ebc885ac2131d59ae87a4e0685e7737963e6e7 | 530b180c3aade8e67cc61ad2baddff018f7d59a8 | /robocorp-code/src/robocorp_code/_language_server_login.py | 3ff66378a390392099399481b4633b3dec39aa58 | [
"Apache-2.0"
] | permissive | robocorp/robotframework-lsp | 67a1f35b9268d349045eb8fe930ea381c2d94cae | d72e5310ed4a8165d7ee516d79e0accccaf7748c | refs/heads/master | 2023-08-17T05:12:43.598270 | 2023-08-12T12:11:22 | 2023-08-12T12:13:21 | 235,202,865 | 167 | 72 | Apache-2.0 | 2023-09-13T22:39:09 | 2020-01-20T21:31:20 | Python | UTF-8 | Python | false | false | 3,071 | py | from robocorp_ls_core.protocols import IEndPoint, ActionResultDict
from robocorp_ls_core.robotframework_log import get_logger
from robocorp_code import commands
from robocorp_ls_core.command_dispatcher import _SubCommandDispatcher
from robocorp_code.protocols import IRcc, CloudLoginParamsDict
log = get_logger(__name__... | [
"fabiofz@gmail.com"
] | fabiofz@gmail.com |
9d9e8ec272587da4d0b57094865c1e442afa7573 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Data2vec_for_PyTorch/fairseq/models/speech_dlm/__init__.py | 6ea914d6a578651fecd18cc7f352382623de303a | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 249 | py | # Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from .speech_dlm import * # noqa
from .hub_interface import * # noqa
| [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
4d1d1206749d6326010dd874cf58439b9b23189c | 41ede4fd3bfba1bff0166bca7aee80dcf21434c6 | /vedat/dist/gtk/gtkspell3/actions.py | 6e8ee6ed12a4b2248e6106133f1bda3ac07b6278 | [] | no_license | pisilinux/playground | a7db4b42559a21cc72fd4c8649e0231ab6a3eb3c | e4e12fff8a847ba210befc8db7e2af8556c3adf7 | refs/heads/master | 2022-08-12T23:03:27.609506 | 2022-08-11T18:28:19 | 2022-08-11T18:28:19 | 8,429,459 | 16 | 22 | null | 2022-08-11T18:28:20 | 2013-02-26T09:37:11 | Python | UTF-8 | Python | false | false | 727 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
shelltools.expo... | [
"vedat@pisi_linux1.0"
] | vedat@pisi_linux1.0 |
cac379b18eb97023b4c5fdcf142c87d983e6794e | 3a4fbde06794da1ec4c778055dcc5586eec4b7d2 | /@lib/12-13-2011-01/vyperlogix/misc/date.py | 725848771c1c8d2be9463ec460abd9baef7c236f | [] | no_license | raychorn/svn_python-django-projects | 27b3f367303d6254af55c645ea003276a5807798 | df0d90c72d482b8a1e1b87e484d7ad991248ecc8 | refs/heads/main | 2022-12-30T20:36:25.884400 | 2020-10-15T21:52:32 | 2020-10-15T21:52:32 | 304,455,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,166 | py | # to get the local (current / here) time
import time
import CooperativeClass
__copyright__ = """\
(c). Copyright 2008-2014, Vyper Logix Corp., All Rights Reserved.
Published under Creative Commons License
(http://creativecommons.org/licenses/by-nc/3.0/)
restricted to non-commercial educational use only.,
... | [
"raychorn@gmail.com"
] | raychorn@gmail.com |
b964c7d3ac0997d189160beb6397ce66674c1b0e | 1afa6c852dfc922d1a26a384d965976f31a87692 | /Interaction/Style/Testing/Python/TestStyleTrackballCamera.py | ec1a5770ffd8efdb2a48a09334f9989151a0a7a6 | [
"BSD-3-Clause"
] | permissive | dgobbi/VTK | 631d037aacc7258861e70f77c586b01cd4ebff3f | 17f232ee440025c26bc78a897edef78e9fc78510 | refs/heads/master | 2021-01-04T22:27:46.611907 | 2013-03-01T19:44:02 | 2013-03-01T19:44:02 | 938,377 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,282 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
=========================================================================
Program: Visualization Toolkit
Module: TestNamedColorsIntegration.py
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.... | [
"nikhil.shetty@kitware.com"
] | nikhil.shetty@kitware.com |
9e75dc1d0187593e791de4ce6185ce127d5bea53 | 221e8d2c7f8f0044e2884d3c1a1327d49ca50356 | /hackbright_web.py | 2a52d90b7672a1ebd04e39d8bbce1684a8f89873 | [] | no_license | lakeeja/HBF_wk4_project_tracker_flask | d8411cfc12741c6662badc32cc8e2bcec399958a | a45669b5389051f8fd68d5fb8fd5865a5a059880 | refs/heads/master | 2021-03-19T07:39:32.490693 | 2017-06-14T20:09:32 | 2017-06-14T20:09:32 | 94,369,093 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,698 | py | """A web application for tracking projects, students, and student grades."""
from flask import Flask, request, render_template
import hackbright
app = Flask(__name__)
@app.route("/student")
def get_student():
"""Show information about a student."""
github = request.args.get('github')
first, last, git... | [
"no-reply@hackbrightacademy.com"
] | no-reply@hackbrightacademy.com |
b8aa11e2fbe1bcf8389ab5e53c2fbb4cea60c170 | c857d225b50c5040e132d8c3a24005a689ee9ce4 | /problem350.py | 9e621c086dc23d4c33e491b4fc312ed60a93f07d | [] | no_license | pythonsnake/project-euler | 0e60a6bd2abeb5bf863110c2a551d5590c03201e | 456e4ef5407d2cf021172bc9ecfc2206289ba8c9 | refs/heads/master | 2021-01-25T10:44:27.876962 | 2011-10-21T00:46:02 | 2011-10-21T00:46:02 | 2,335,706 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | """
A list of size n is a sequence of n natural numbers. examples are (2,4,6), (2,6,4), (10,6,15,6), and (11).
the greatest common divisor, or gcd, of a list is the largest natural number that divides all entries of the list. examples: gcd(2,6,4) = 2, gcd(10,6,15,6) = 1 and gcd(11) = 11.
the least common multiple... | [
"pythonsnake98@gmail.com"
] | pythonsnake98@gmail.com |
21a873fd59c00a1d52720a6c3195a0abdef5efd0 | faf2852a357a2e077d0e7f0a28055c250f5edcd0 | /myshop/authapp/migrations/0002_authapp_user.py | 7f5e3935c03ee2acb2f53026a1448723437e08b6 | [] | no_license | Pegorino82/GUDjangoProject_2 | dc68ff9d21afb56ce29f3c5fe4672c5f79633196 | 579189b576af3bdcd98927d054030b7a2ebc9f46 | refs/heads/master | 2020-04-07T20:13:25.701650 | 2019-01-17T12:01:21 | 2019-01-17T12:01:21 | 158,679,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | # Generated by Django 2.1.4 on 2018-12-19 20:15
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('authapp', '0001_initial'),
migrations.swappable_dependency(sett... | [
"eshkryabin@yandex.ru"
] | eshkryabin@yandex.ru |
fbccffcd8524d8b244b026b2bed39e87748354d3 | 1dead366d7d1152a2dd1c7dd5f2ab91a4119310a | /GMOOC/GMOOC/settings.py | 602b234767d99af5cf8c0179a8ebc850bd52fd7b | [] | no_license | SmallSir/Python-and-Xadmin | 6b95bcb401c1f4ca232d3c77bb6d883467e5ea7f | fe29cb24d3a047f9a97319d4e33f07ad0e1562e3 | refs/heads/master | 2020-04-09T07:42:29.380396 | 2018-12-03T09:45:13 | 2018-12-03T09:45:13 | 160,167,244 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,531 | py | """
Django settings for GMOOC project.
Generated by 'django-admin startproject' using Django 1.11.3.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
i... | [
"280690956@qq.com"
] | 280690956@qq.com |
b9f99c6b7e9712d01382336f8494ecf25633cb41 | 53b529e8edf046971db0ef4a740520e0b3e60699 | /.history/recipebox/models_20200202160352.py | fafdd926b9e070ad125ea70f80232e6b1b526195 | [] | no_license | EnriqueGalindo/recipebox | 6b6662e517ac045a23cd43aaf296c83cf61608b2 | ace7b2699db8be20568ced7062dc85ae92aa2eee | refs/heads/master | 2020-12-28T00:46:09.079202 | 2020-02-04T04:44:35 | 2020-02-04T04:44:35 | 238,124,659 | 0 | 1 | null | 2020-04-04T21:40:24 | 2020-02-04T04:42:05 | Python | UTF-8 | Python | false | false | 300 | py | from django.db import models
class Author(models.Model)
name = models.CharField(max_length=30)
bio = models.TextField
class Recipe(models.Model)
title = models.CharField(max_length=30)
author = models.ForeignKey('Author', on_delete=models.CASCADE)
description = models.TextField | [
"egalindo@protonmail.com"
] | egalindo@protonmail.com |
9c91b7b8e91ddc4fc9938f0c66b1f9450885d3b0 | 82090f948cce1bf26c0cc25da58e7739d7e9c624 | /core/models.py | 0490988914eb2b8e0dcbc3b8b2dbc82c7ccf8d9b | [] | no_license | Ehsan-63/django-qa | 4e98e9ee2bcc96238829e6a515cfdd1ed2733d61 | e2f467aeba21e082d0c2761e05e0cdc31bd7bf22 | refs/heads/master | 2022-11-27T21:42:03.531635 | 2020-07-29T15:57:32 | 2020-07-29T15:57:32 | 284,274,854 | 0 | 0 | null | 2020-08-01T14:23:12 | 2020-08-01T14:23:12 | null | UTF-8 | Python | false | false | 935 | py | from django.db import models
from django.contrib.auth.models import User
from django.urls import reverse
class Question(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, related_name='questions')
title = models.CharField(max_length=200)
slug = models.SlugField(max_length=200)
body = models.T... | [
"amirbig44@gmail.com"
] | amirbig44@gmail.com |
76f66d757b47e9b8fd951a8d9ffb16d55d1a1c70 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /n4JA3je7FEFfZKaWp_22.py | 97d9d5e1b036a363bf62e5a79d65b41da93f716f | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 228 | py |
def million_in_month(first_month, multiplier):
month = 1
total_earnings = 0
while total_earnings < 10**6:
first_month *= multiplier
total_earnings += first_month
month += 1
return month
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
4e14cfd9cbd068bcaa900c144725772e638d912d | 3be8da1d39bef1e09e4c8e7a6b736d7fc74a3c0f | /webserver/opentrain/common/static/common/ot_i18n.py | 220f6e9b537c255d90f967abf1f980bd02e07611 | [
"BSD-3-Clause"
] | permissive | amitzini/OpenTrain | bbe5b2fc1b1b118931f7aac94667083c1b5cf4da | 25ff81df668a9eba1c4369f9a789e34c60b44096 | refs/heads/master | 2020-04-01T22:36:01.131143 | 2014-10-27T22:07:40 | 2014-10-27T22:07:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,382 | py | from django.utils.translation import ugettext_noop
ugettext_noop("Search In")
ugettext_noop("Device Reports")
ugettext_noop("Live Trains")
ugettext_noop("Report Details")
ugettext_noop("Distances")
ugettext_noop("Akko")
ugettext_noop("Modiin")
ugettext_noop("Modiin Center")
ugettext_noop("Kiryat Hayyim")
ugettext_noop... | [
"ekeydar@gmail.com"
] | ekeydar@gmail.com |
32d121133bb107b2caf9971092b1b2fbaff65cc6 | 38ee4430af92b52230a79a6965c03ae3f2375bf4 | /setup.py | 357fc8235e22e0ef1714b73e14cf517462aff641 | [
"MIT"
] | permissive | dannguyen/poppler_wrap | 78df3dc391411b8770c6d37e647582e49a7a2343 | abd23dbd273e10cb34ceeb4b6a078faa525c3bb4 | refs/heads/master | 2020-03-17T00:06:03.328034 | 2018-05-12T04:16:13 | 2018-05-12T04:16:13 | 133,103,760 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The setup script."""
from setuptools import setup, find_packages
with open('README.rst') as readme_file:
readme = readme_file.read()
with open('HISTORY.rst') as history_file:
history = history_file.read()
requirements = ['Click>=6.0', ]
setup_requirements =... | [
"dansonguyen@gmail.com"
] | dansonguyen@gmail.com |
35915cf212498c6065c0b5e3a79edb5030459d37 | b09a8df80c35e3ccca43cd74cec6e1a14db76ad7 | /user_import/views.py | 2282c2db1b9624c1c3db81b4feb4e259794dff40 | [
"MIT"
] | permissive | ofa/everyvoter | 79fd6cecb78759f5e9c35ba660c3a5be99336556 | 3af6bc9f3ff4e5dfdbb118209e877379428bc06c | refs/heads/master | 2021-06-24T19:38:25.256578 | 2019-07-02T10:40:57 | 2019-07-02T10:40:57 | 86,486,195 | 7 | 3 | MIT | 2018-12-03T19:52:20 | 2017-03-28T17:07:15 | Python | UTF-8 | Python | false | false | 3,269 | py | """Views for Import App"""
from django.contrib.messages.views import SuccessMessageMixin
from django.http import HttpResponse
from django.views.generic import CreateView, DetailView
from django.urls import reverse_lazy
from django_filters.views import FilterView
import unicodecsv
from manage.mixins import ManageViewMi... | [
"nickcatal@gmail.com"
] | nickcatal@gmail.com |
31b0b4a0f36dc1c645ae3945bbe72e3193013840 | d7ad696cd1b550bb41d20f87b83c984ec7f19aa7 | /atcoder/python/_old/educational_dp/01/f_lcs.py | daed11e02ec4f5622ab55e37e0c7107af0ef7faf | [] | no_license | mida-hub/hobby | 2947d10da7964d945e63d57b549c1dcb90ef7305 | 6e6f381e59fc2b0429fab36474d867aa3855af77 | refs/heads/master | 2022-12-21T23:33:14.857931 | 2022-12-19T16:30:34 | 2022-12-19T16:30:34 | 147,890,434 | 0 | 0 | null | 2021-03-20T04:31:58 | 2018-09-08T01:31:59 | Jupyter Notebook | UTF-8 | Python | false | false | 861 | py | s = input()
t = input()
len_s = len(s)
len_t = len(t)
dp = [[0] * (len_t + 1) for x in range(len_s + 1)]
# print(dp)
dp[0][0] = 0
for i in range(0, len_s + 1):
for j in range(0, len_t + 1):
if i > 0 and j > 0:
if s[i-1] == t[j-1]:
dp[i][j] = dp[i-1][j-1] + 1
else:... | [
"rusuden0106@gmail.com"
] | rusuden0106@gmail.com |
a66f5a08fb150733ba6bca0867715ea027d57c3c | 4cb9b7ddc5df9e528ce6b36ab13f8c842d8c0cfa | /vistrails/packages/URL/https.py | ce53bcfbb2b4be9f8b97751bc4c68bcc2bd50dbc | [
"BSD-3-Clause"
] | permissive | anukat2015/VisTrails | bca4f812ffe9e69a1aa4174267a4225f1245638f | c24e310bf62cc0151e084aa4f9e50026e788afbd | refs/heads/master | 2021-01-18T15:42:35.910689 | 2015-11-04T16:15:19 | 2015-11-05T18:53:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,378 | py | ###############################################################################
##
## Copyright (C) 2014-2015, New York University.
## Copyright (C) 2011-2014, NYU-Poly.
## Copyright (C) 2006-2011, University of Utah.
## All rights reserved.
## Contact: contact@vistrails.org
##
## This file is part of VisTrails.
##
## ... | [
"remirampin@gmail.com"
] | remirampin@gmail.com |
ae779f9bd683ed5f93e9a47dcc1000e53c0dc0b7 | ea522b496372174216fba2aad29bf231a28cc819 | /QuikLab/trunk/.metadata/.plugins/org.eclipse.core.resources/.history/69/a0b8d3f1e48f00181164c0c8bfbc6595 | 0f9acdf33db2a7fb37006af4de7657f023ec3da1 | [] | no_license | gatdotZF/svn192.168.1.5 | 15fdf074042b0a1e5e8c795d3c340080c04ba496 | 196bd4c83b12e3476c269057a4ef3b730a967d9e | refs/heads/master | 2020-07-26T17:45:16.259037 | 2019-09-16T06:36:35 | 2019-09-16T06:36:35 | null | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 7,738 | #! /usr/bin/env python
#coding=GB18030
from pywinauto import application
import pywinauto.base_wrapper as ba
import SendKeys
import time
import os
import pywinauto.mouse as mouse
class Pywin(object):
def __init__(self):
self.app = application.Application(backend='uia')
def start(self,tl_dir,tl_name):
... | [
"994430058@qq.com"
] | 994430058@qq.com | |
4a6fb5bb1f0a3073cf9fe3811f9b0bbeccd8fe8f | 6f1034b17b49f373a41ecf3a5a8923fb4948992b | /pychron/furnace/tasks/thermo/furnace_plugin.py | 10d2f425a6afc473edc838188bb86750b9aa9268 | [
"Apache-2.0"
] | permissive | NMGRL/pychron | a6ec1854488e74eb5d3ff53eee8537ecf98a6e2f | 8cfc8085393ace2aee6b98d36bfd6fba0bcb41c6 | refs/heads/main | 2023-08-30T07:00:34.121528 | 2023-06-12T17:43:25 | 2023-06-12T17:43:25 | 14,438,041 | 38 | 28 | Apache-2.0 | 2023-08-09T22:47:17 | 2013-11-15T23:46:10 | Python | UTF-8 | Python | false | false | 2,352 | py | # ===============================================================================
# Copyright 2015 Jake Ross
#
# 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... | [
"jirhiker@gmail.com"
] | jirhiker@gmail.com |
c4335347dc7e11719221f609202691493973425b | ef7eabdd5f9573050ef11d8c68055ab6cdb5da44 | /codeEval/hard/closest_pair.py | 1388ae98fc85075f1ac1d62410aeba96440d15da | [
"WTFPL"
] | permissive | gauravsingh58/algo | cdbf68e28019ba7c3e4832e373d32c71902c9c0d | 397859a53429e7a585e5f6964ad24146c6261326 | refs/heads/master | 2022-12-28T01:08:32.333111 | 2020-09-30T19:37:53 | 2020-09-30T19:37:53 | 300,037,652 | 1 | 1 | WTFPL | 2020-10-15T09:26:32 | 2020-09-30T19:29:29 | Java | UTF-8 | Python | false | false | 654 | py | import sys
from operator import itemgetter
def get_distance(p, q):
return ((p[0]-q[0])**2 + (p[1]-q[1])**2)**0.5
def find_closest_pair(ls):
ls = sorted(ls, key=itemgetter(0, 1))
dist, m = [], 40000
for i in range(len(ls)-1):
m = min(m, get_distance(ls[i], ls[i+1]))
if m > 10000:
return "INFINITY"
... | [
"elmas.ferhat@gmail.com"
] | elmas.ferhat@gmail.com |
70156d945934f471e9dfe882949c342b2e29c2f7 | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /apps/cloud_api_generator/generatedServer/tasklets/lan/getNextMacRange/lan_getNextMacRange.py | 3928da8aa16225a7fb32607614557e6d5b8b9246 | [] | no_license | racktivity/ext-pylabs-core | 04d96b80ac1942754257d59e91460c3a141f0a32 | 53d349fa6bee0ccead29afd6676979b44c109a61 | refs/heads/master | 2021-01-22T10:33:18.523799 | 2017-06-08T09:09:28 | 2017-06-08T09:09:28 | 54,314,984 | 0 | 0 | null | 2017-06-08T09:09:29 | 2016-03-20T11:55:01 | Python | UTF-8 | Python | false | false | 182 | py | __author__ = 'aserver'
__tags__ = 'lan', 'getNextMacRange'
__priority__= 3
def main(q, i, params, tags):
params['result'] = ''
def match(q, i, params, tags):
return True
| [
"devnull@localhost"
] | devnull@localhost |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.