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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
365edf48bfff6fdeccdcb1003149c574c7972c07 | 97dae48fa3c613a84655c1c0b12cdc0db2c555bb | /algorithm/patternsearch/anagram_search.py | e0aab3a3dca8cf884dda3fe0c3bcd65162ad4911 | [] | no_license | klknet/geeks4geeks | 6aa5841b15be41057dc987524721ea1ea37e02ea | d7d9099af7617a4000f38c75d2c7214bed570eda | refs/heads/master | 2021-07-12T06:34:30.048691 | 2020-06-22T07:51:14 | 2020-06-22T07:51:14 | 170,288,225 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | """
Search for all permutations.
1)Store counts of frequencies of pattern in first count array countP[]. Also store counts of frequencies of characters
in first window of text in array countTW[].
2)Now run a loop from i=M to N-1, do following in loop:
a)If the two count arrays are identical, we found an occurrence.
... | [
"konglk@aliyun.com"
] | konglk@aliyun.com |
1af0bee0929738dc142282f5829ece2b158125a4 | ec2b6cd4e9c183bc5e99ad917110d91985dfc2e8 | /touchdown/aws/vpc/customer_gateway.py | 57ab247b587073333858ec7d25c5ddf89ac39980 | [
"Apache-2.0"
] | permissive | triplekill/touchdown | 128ac7a9260709dae5ccbce6db344ab109cc75da | 8b70d4ac448bebd1cd088fa415be9cf6c74108cc | refs/heads/master | 2020-12-25T03:20:34.717218 | 2016-05-29T18:54:03 | 2016-05-29T18:54:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | # Copyright 2015 Isotoma Limited
#
# 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... | [
"john.carr@unrouted.co.uk"
] | john.carr@unrouted.co.uk |
b3e47bb92563fa3756c12e43de9cb2e777ddcdd2 | 4c9c028936379c510cebfe4830f460817d9bc3c8 | /account/urls.py | 48532b9b4e93777e52ea3e0cdcab3456e5d9b824 | [] | no_license | preciousidam/management-system | cd47d7c564fe0ff0ae459c702c63a3cb16eee8ab | c984012e2cbc7554b20b00fabafd24f3f5752ba8 | refs/heads/main | 2023-04-02T08:44:24.416866 | 2021-03-11T20:09:11 | 2021-03-11T20:09:11 | 341,899,263 | 0 | 0 | null | 2021-04-12T14:35:07 | 2021-02-24T12:50:41 | Python | UTF-8 | Python | false | false | 733 | py | from django.urls import path, re_path
from django.conf.urls import url, include
from rest_framework import routers
from .views import (CorttsAccountViewSet, CompanyViewSet,
OtherAccountViewSet, TransactionViewSet,
ExpenseAccountViewSet, TopUpViewSet)
router = routers.D... | [
"preciousidam@gmail.com"
] | preciousidam@gmail.com |
4dc3acd2ad170769aa171cdcd7190d67995c3df2 | 5a52ccea88f90dd4f1acc2819997fce0dd5ffb7d | /alipay/aop/api/response/AlipayMarketingCashvoucherTemplateCreateResponse.py | 5a0f8dd9303d72dccf432f218972e12ade589662 | [
"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 | 1,382 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayMarketingCashvoucherTemplateCreateResponse(AlipayResponse):
def __init__(self):
super(AlipayMarketingCashvoucherTemplateCreateResponse, self).__init__()
self._c... | [
"liuqun.lq@alibaba-inc.com"
] | liuqun.lq@alibaba-inc.com |
a6bff4b60a92bd23a58b23a4e36b4942b22ec63a | 4adbebc69f2d2552234664f4cf6bf4b6a4a90aa2 | /examples/eight_schools/eight_schools.py | 711a6bd33f5635856ef2ff33142b772018126426 | [
"Apache-2.0"
] | permissive | coryshain/edward | 291c50123182a19273c1bf1723e894a54a9014ff | 494a85e6354504d8c71ec6a7b70021a20470fec8 | refs/heads/master | 2022-11-10T01:16:51.875938 | 2020-06-18T14:15:32 | 2020-06-18T14:15:32 | 273,252,033 | 0 | 0 | NOASSERTION | 2020-06-18T13:54:22 | 2020-06-18T13:54:21 | null | UTF-8 | Python | false | false | 2,802 | py | """Implement the stan 8 schools example using the recommended non-centred
parameterization.
The Stan example is slightly modified to avoid improper priors and
avoid half-Cauchy priors. Inference is with Edward using both HMC
and KLQP.
This model has a hierachy and an inferred variance - yet the example is
very simpl... | [
"dustinviettran@gmail.com"
] | dustinviettran@gmail.com |
bea8b455adb55b38f6aaae2a0a97e58b2d9eccbc | 5ea136ca2e8066b77b39afdf15e3d0e6bc74761f | /scripts/substitute-prototypes.py | 4e56598f45506ae50cc08157da2a187c6741fbe6 | [] | no_license | reneang17/ttbar | 4023421846a70c22c13a2962520f7723ad35636b | 75f4fff1b5d79af097ea04aab437e2963215a232 | refs/heads/master | 2020-06-12T15:07:11.918815 | 2019-06-28T22:24:07 | 2019-06-28T22:24:07 | 194,339,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,166 | py | #!/usr/bin/env python3
#
# todo:
#
import argparse
import os
import re
import string
import subprocess
parser = argparse.ArgumentParser(
formatter_class=argparse.RawTextHelpFormatter,\
description = \
''' Substitute prototypes in IdSolver output by integrals.'''
)
parser.add_argument("file",\
hel... | [
"reneang17@gmail.com"
] | reneang17@gmail.com |
2bdf6125fc161c83cf1d0a6eed0f207c318f8d40 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/mBART_ID1550_for_PyTorch/dataset/data_loader_iter.py | 4b1183c752968be0a7ee951799016572ffe96c99 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"GPL-3.0-or-later",
"GPL-3.0-only"
] | 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 | 2,986 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
#... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
f9fd97e9d2c666e13a10ed4f2a3f3efa6c94dcc1 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/55f014a207123e37696fa342fd06feff8f1d4b28-<_load_label>-bug.py | e2655af953c09968c6f208353b936e225b93bfe2 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,199 | py | def _load_label(self, idx):
'Parse xml file and return labels.'
img_id = self._items[idx]
anno_path = self._anno_path.format(*img_id)
root = ET.parse(anno_path).getroot()
size = root.find('size')
width = float(size.find('width').text)
height = float(size.find('height').text)
if (idx not ... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
9a90e00ca7c3cc3a44b1e2909de8f45cefc60fcf | f8b9e5de8823ff810ec445b6fa6d0e34f7b6319f | /Django/django_project/apps/Surveys_app/views.py | 0c4499e1aab25caa03e11a9324303ae1038795fe | [] | no_license | amalfushi/Python | 6c042443a8aeae15fc96a41a692abdbea05db863 | 067c2cef722457e884833f77baf9f44f45a4a165 | refs/heads/master | 2021-01-24T04:08:21.278071 | 2018-02-26T06:25:59 | 2018-02-26T06:25:59 | 122,923,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.shortcuts import render, HttpResponse
# Create your views here.
def main(request):
return HttpResponse('Placeholder to display all the surveys created')
def new(request):
return HttpResponse('Placeholder for users to add a new survey... | [
"dustin.p.schroeder@gmail.com"
] | dustin.p.schroeder@gmail.com |
b13014013bfe7f16e2c291f768ee50207dacf92d | aec9a1f3d1d36f19724e745ca4d09a20f67208dc | /talent/migrations/0016_auto_20210210_0904.py | 9fcc9bb77bf5ed3a188a98dbe181747f8acaf2b7 | [] | no_license | endlessor/open-united-backend | b1b1c3411d0d48bc79b35895c70f24d773ac7344 | 86f6905cce14b834b6bf059fd33157249978bd14 | refs/heads/main | 2023-04-29T13:35:28.529360 | 2021-05-17T14:16:39 | 2021-05-17T14:16:39 | 368,211,786 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # Generated by Django 3.1 on 2021-02-10 09:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('talent', '0015_person_headline'),
]
operations = [
migrations.AlterField(
model_name='person',
name='headline',
... | [
"robcoder@hotmail.com"
] | robcoder@hotmail.com |
47a3f8525c7b4f21d5f964bd6f5404fafc9d03a4 | 20176bf4fbd8aec139c7b5a27f2c2e155e173e6e | /data/all-pratic/VivekKumar_DCC/python_2/Day2_1.py | 73d19dd534ff3c2cd430a11bb817b05e35bd6e66 | [] | no_license | githubjyotiranjan/pytraining | 4ac4a1f83cc4270e2939d9d32c705019c5bc61c5 | 8b50c4ab7848bd4cbfdfbc06489768d577289c66 | refs/heads/master | 2020-03-19T06:22:20.793296 | 2018-06-15T20:08:11 | 2018-06-15T20:08:11 | 136,013,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 213 | py | randomList=int(input('enter the count='))
vals=1;
while(vals<= randomList):
try:
if(randomList%2!= 0):
print("The odd= ", vals)
vals=vals+1
except:
print("The Even= ", vals)
| [
"jsatapathy007@gmail.com"
] | jsatapathy007@gmail.com |
baff5fe97381c6dd6353e82b1b8d9a68aa02bc51 | 33c0d36ba88af9c3b35acd000a8a83fa5c24ed8a | /Problems/Isomorphic Strings.py | 7434a2397d00e41aa76436b961747b27f904d915 | [] | no_license | ElliottBarbeau/Leetcode | e58dab31937a36e7557990846898cd2b2586a27c | 43c3698c829f5a613ed3e9516a146e7576d81146 | refs/heads/master | 2021-11-28T02:06:39.848174 | 2021-08-30T23:37:13 | 2021-08-30T23:37:13 | 221,090,906 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | class Solution:
def isIsomorphic(self, s: str, t: str) -> bool:
d = {}
if len(s) != len(t):
return False
for i in range(len(s)):
if s[i] not in d and t[i] not in d.values():
d[s[i]] = t[i]
elif s[i] in d and t[i] == d[s[i]]:
... | [
"elliottbarbeau@gmail.com"
] | elliottbarbeau@gmail.com |
b435561acbf322a0401ebbf926b601484d79c440 | 215eadf839ecc40a37ae22063bf7f9c5c9450699 | /hr_employee.py | 51c7e4843a1f91ca38c6ca6712a1b5c9cd3e7f07 | [] | no_license | davidsetiyadi/hr_webcam | c12e751e91c4757938cae54697df084c99ed9b4a | 4740d9f104c8ebeba7e6ef5e196068f5c5fd6111 | refs/heads/master | 2021-01-19T12:40:22.010104 | 2017-09-25T12:34:38 | 2017-09-25T12:34:38 | 100,796,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,242 | py | from openerp import models
import numpy as np
import cv2
import dlib
import face_recognition
import urllib
import base64
from common import clock, draw_str
class hr_employee(models.Model):
_inherit = 'hr.employee'
def action_take_picture(self, cr, uid, ids, context=None):
if context is None:
context = {}
... | [
"davidsetiadi11@gmail.com"
] | davidsetiadi11@gmail.com |
3e2abc01b00cc24995d645655e3a0d8aa6ace57c | bfc25f1ad7bfe061b57cfab82aba9d0af1453491 | /data/external/repositories/147881/kaggle_forest_cover_type-master/my_model.py | 6a7942ec6a23229e7c5286d8e10e805c980a5499 | [
"MIT"
] | permissive | Keesiu/meta-kaggle | 77d134620ebce530d183467202cf45639d9c6ff2 | 87de739aba2399fd31072ee81b391f9b7a63f540 | refs/heads/master | 2020-03-28T00:23:10.584151 | 2018-12-20T19:09:50 | 2018-12-20T19:09:50 | 147,406,338 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,475 | py | #!/usr/bin/python
import os
import matplotlib
matplotlib.use('Agg')
import pylab as pl
import numpy as np
import pandas as pd
import gzip
import cPickle as pickle
from sklearn import cross_validation
from sklearn.ensemble import RandomForestRegressor, RandomForestClassifier
from sklearn.ensemble import GradientBoos... | [
"keesiu.wong@gmail.com"
] | keesiu.wong@gmail.com |
942b9171041a8572b2cf2d3d1042c271979e83e0 | beed259c9aaf824c5307d93ffa736255f2d98831 | /month05/Spider/Wholesale02/run.py | de99978bdaa95073168ae291ab53dece83b892ce | [
"Apache-2.0"
] | permissive | chaofan-zheng/python_learning_code | 21345f97ebf74c3cad0ef488a93ec8a7fd771a63 | 5d05848911d55aa49eaee4afd7ffd80536fad7aa | refs/heads/main | 2023-05-27T16:17:18.130492 | 2021-06-06T14:23:31 | 2021-06-06T14:23:31 | 338,234,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | from scrapy import cmdline
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import warnings
import seaborn as sns
import os
cmdline.execute('scrapy crawl wholesale -o wholesale.csv'.split())
command = f'jupyter nbconvert {os.getcwd()}/visualization.ipynb'
print(command)
os.system(command)
warning... | [
"417355570@qq.com"
] | 417355570@qq.com |
b15953c884974afcdc6bdde6b224dba82df25716 | d8cbe9ce0469f72b8929af01538b6ceddff10a38 | /homeassistant/components/rainbird/config_flow.py | 057fc6fe39662a459581e0e3f0bdd86855071e43 | [
"Apache-2.0"
] | permissive | piitaya/home-assistant | 9c1ba162dac9604e4d43e035e74bad7bba327f0b | 48893738192431f96966998c4ff7a3723a2f8f4a | refs/heads/dev | 2023-03-07T16:13:32.117970 | 2023-01-10T17:47:48 | 2023-01-10T17:47:48 | 172,578,293 | 3 | 1 | Apache-2.0 | 2023-02-22T06:15:56 | 2019-02-25T20:19:40 | Python | UTF-8 | Python | false | false | 6,344 | py | """Config flow for Rain Bird."""
from __future__ import annotations
import asyncio
import logging
from typing import Any
import async_timeout
from pyrainbird.async_client import (
AsyncRainbirdClient,
AsyncRainbirdController,
RainbirdApiException,
)
import voluptuous as vol
from homeassistant import con... | [
"noreply@github.com"
] | piitaya.noreply@github.com |
eafad22e3b9c5ddb8002f0f4d4281976958abffb | 1c2bb53d56a777bd2700c0438421ce686d1c8dc5 | /tests/past_api07_sources_excel.py | 5a230d6124045e6987f3acaa7f7d044bbeba2982 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | drewdolan/datatest | a1a771ff630acc7322387f4f810ff75fb22f5e5f | 1c168739f84328043c7f0be7cf25bb8e23cc259c | refs/heads/master | 2020-05-09T16:01:09.553762 | 2019-05-18T05:40:16 | 2019-05-18T05:40:16 | 181,254,930 | 0 | 0 | NOASSERTION | 2019-04-14T03:17:59 | 2019-04-14T03:17:57 | null | UTF-8 | Python | false | false | 1,884 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
import os
from . import _unittest as unittest
from .mixins import OtherTests
from .mixins import CountTests
try:
import xlrd
except ImportError:
xlrd = None
from datatest.__past__.api07_sources import ExcelSource
workbook_path = os.path.join(
... | [
"shawnbrown@users.noreply.github.com"
] | shawnbrown@users.noreply.github.com |
ec2739b5ba94034b1ee8cd65a284ccd4192cc77a | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf/gsn-edf_ut=3.0_rd=1_rw=0.04_rn=4_u=0.075-0.35_p=harmonic-2/sched=RUN_trial=97/params.py | 57b7be835a6b989c5d600c2af47d54e7a07715c4 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.029857',
'max_util': '3.0',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '1',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'GSN-EDF',
'trial': 97,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
f289b70cb8056d517c2f5158137b0098f45503d0 | b3c939e013ecfdd68b02344ad2936ae53dd1a725 | /regression_2d/projects/model_save/get_dataset.py | 9d8fe2a003e8371859d010fa4a49c101555fe9df | [] | no_license | TakakiNishio/chainer | 3cd9d2972d72c30d1d4fb979692de26539903556 | 55c2771a1a72dccd738e1350ab539f517083ba33 | refs/heads/master | 2020-12-24T11:07:36.788998 | 2017-07-02T19:43:45 | 2017-07-02T19:43:45 | 73,190,468 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | #python library
import numpy as np
import random
#define function
def real_function(x1,x2):
z = -3*np.exp(-(((x1-2)**2)/3)-(((x2-2)**2)/3)) - 4*np.exp(-(((x1+2)**2)/4)-(((x2 +2)**2)/4))
#z = np.exp(-0.25 * np.sqrt(x1**2 + x2**2)) * np.cos(2 * np.sqrt(x1**2 + x2**2))
return z
#generate dataset
def dataset... | [
"p104314t@mail.kyutech.jp"
] | p104314t@mail.kyutech.jp |
5af53751459fff26bde07d31765f075b7ccff247 | cc31777830ccbc17347305c40db91afc012977ee | /concepts/functions/is_abecedarian.py | 8ec3c19c3b4a3de66cdded9be1222b4400bb9053 | [] | no_license | sourcery-ai-bot/library-python | e147b9e5c6baba502de9f7605c5fa1937dbd13f4 | 61472955f4b011caa989b8805be3ed7df19c7aa8 | refs/heads/master | 2022-11-06T20:19:59.056197 | 2020-06-30T20:56:45 | 2020-06-30T20:56:45 | 276,206,925 | 0 | 0 | null | 2020-06-30T20:56:31 | 2020-06-30T20:56:30 | null | UTF-8 | Python | false | false | 600 | py | """ The following function returns True if the word passed as input is an
abecedarian word. That is a word where the each letter in the word is a
subsequent letter in the alphabet. 'Ant' would be a simple example. """
def is_string_abecederian(test_word: str) -> bool:
max_letter = ''
letters_tested = 0
fo... | [
"wayne.a.lambert@gmail.com"
] | wayne.a.lambert@gmail.com |
976aea0ed87a3c086d068ae560fdb2ffcd591676 | a7f442bc306d1a8366a3e30db50af0c2c90e9091 | /blockchain-env/Lib/site-packages/Cryptodome/Util/Padding.pyi | da274b98cccf0661298b00aed0ad7c5a91a8f5d3 | [] | no_license | Patreva/Python-flask-react-blockchain | cbdce3e0f55d4ba68be6ecfba35620585894bbbc | 474a9795820d8a4b5a370d400d55b52580055a2e | refs/heads/main | 2023-03-29T01:18:53.985398 | 2021-04-06T08:01:24 | 2021-04-06T08:01:24 | 318,560,922 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | pyi | from typing import Optional
__all__ = [ 'pad', 'unpad' ]
def pad(data_to_pad: bytes, block_size: int, style: Optional[str]='pkcs7') -> bytes: ...
def unpad(padded_data: bytes, block_size: int, style: Optional[str]='pkcs7') -> bytes: ... | [
"patrickwahome74@gmail.com"
] | patrickwahome74@gmail.com |
624b2a5975b2e3b83dfd238525814a74fb83e8b8 | 07af444dafa5bde373b0730e92d67e455d4ff4df | /SFData/StackOverflow/s44111687_original.py | f6758354b177e5b42738830aaf582fd7d6de7e91 | [] | no_license | tensfa/tensfa | 9114595b58a2e989780af0c348afb89a2abb04b4 | 415dcfaec589b0b14c5b9864872c912f3851b383 | refs/heads/main | 2023-06-30T14:27:38.217089 | 2021-08-03T01:33:30 | 2021-08-03T01:33:30 | 368,465,614 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,115 | py | training_data = np.vstack(training_data)
training_target = np.vstack(training_target)
test_data = np.vstack(test_data)
test_target = np.vstack(test_target)
learning_rate = 0.001
n_input = 2
n_steps = 1
n_hidden = 128
n_classes = 2
# tf Graph input
x = tf.placeholder("float", [None, n_steps, n_input])
y = tf.placehol... | [
"tensfa@yeah.net"
] | tensfa@yeah.net |
2b141c2d2dc86ce4917c900408959b04afe351d7 | 9b5bfaf574a2eea29e1ec363e7670edd84c456d8 | /mobile/pages/app.py | 2ce862ebe7a7f61338edc6cefede64d1d568d7c8 | [] | no_license | fanpl-sourse/mytestenv | d04b34fdca596ab5e25349e2d68aa8450984e715 | 7e31da486d6c4a4442c2c0ce97b347f5273cc2eb | refs/heads/master | 2023-01-30T18:32:40.904084 | 2020-12-15T06:36:56 | 2020-12-15T06:36:56 | 278,984,272 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,716 | py | # -*- coding: utf-8 -*-
# @Time : 2020/7/26 16:12
# @Author : 饭盆里
# @File : app.py
# @Software: PyCharm
# @desc :
from appium import webdriver
from mobile.pages.basepage import BasePage
from mobile.pages.mainpage import MainPage
class App(BasePage):
"""
存放APP常用的方法:启动、重启、关闭、进入首页
"""
def star... | [
"fanpengli@fangdd.com"
] | fanpengli@fangdd.com |
9d61382de8235ccffe9e598c335ce26721982cf9 | 97792803c0069e6634ce7b57746b8893bad2ab35 | /inclass/dictionary.py | 0877fae6d37dda2afbbfa6d5fbf53855fe251864 | [] | no_license | byronwasti/SoftDes | 2e31560cfb61d1f4f80691af37b89cce0bca73e6 | 690d777062f156bf2f7710ab0b20df884595cf37 | refs/heads/master | 2020-01-22T14:24:11.679717 | 2015-04-21T19:32:05 | 2015-04-21T19:32:05 | 29,879,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | def histogram(s):
d = {}
for i in s:
if d.get(i,0) == 0:
d[i] = 1
else: d[i] += 1
return d
#print histogram('asdfasdfgasdg')
def has_dupl(l):
d = {}
for i in l:
if d.get(i,0) == 0:
d[i] = 1
else: return True
#print has_dupl([1,2,... | [
"byron.wasti@gmail.com"
] | byron.wasti@gmail.com |
573587bbff19efe24ae3a9a6241ed93fe05351f5 | b1c423170f2d897ef88ab93e17830b6fff91b4e3 | /EasyPython/wax/tools/waxrf/imgcoder.py | 6949ca6c4b5594016fa4b9d2034fba194a7696e8 | [] | no_license | walker8088/easyworld | 55031dd0862b7bc0ffc8c5093875a93e935933e6 | e6aaf18430aee1457f5d8228fb300cf4323bcb7f | refs/heads/master | 2021-01-02T09:34:59.604820 | 2011-01-20T03:32:16 | 2011-01-20T03:32:16 | 33,644,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 682 | py | #-------------------------------------------------------
# imgcoder.py
# Purpose: To encode/decode images for XRC
# Author: Jason Gedge
#
# TODO:
# - Consider better encoding/decoding
#-------------------------------------------------------
import base64
def DecodeImage(data):
""" Decode an image f... | [
"lidonglin8088@gmail.com@c3cacd82-1c91-3bdd-8267-0dbd049bf731"
] | lidonglin8088@gmail.com@c3cacd82-1c91-3bdd-8267-0dbd049bf731 |
7eff9f36e7e6bad508e866be840b19ba1c8eea02 | fe5db184c4abbd1ad25242ab24c18e2d785a069f | /apps/partida/migrations/0023_auto_20200503_1351.py | 291a48d573c5e9fb3e1e85d5ea758745ad4876fd | [] | no_license | valmoresjp/asl | aa20df3ac50f27d7360f77ce599c0dee91e0011f | 0b882cf3d5a97719e22ae39e29ccc933e6a10b7f | refs/heads/master | 2023-03-17T11:09:35.313488 | 2020-07-27T19:09:52 | 2020-07-27T19:09:52 | 267,399,738 | 1 | 0 | null | 2020-07-25T00:52:39 | 2020-05-27T18:44:30 | HTML | UTF-8 | Python | false | false | 429 | py | # Generated by Django 3.0.4 on 2020-05-03 13:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('partida', '0022_auto_20200429_1716'),
]
operations = [
migrations.AlterField(
model_name='cliente',
name='fecha',
... | [
"valmoresjp@gmail.com"
] | valmoresjp@gmail.com |
3978ba4853132b98b1296c8b4418455710f65a6a | 775fdec8dd3d959560450fec3cf17c82a79e3f61 | /apps/dojo_ninjas/views.py | 4b8cd48396c0debabdbbee0f290a6e28bde444cd | [] | no_license | HarmsA/Dojo_Ninja | f2ff9833ea1b7707bed567ab869d1a645f8694a4 | 23ce11de538e600fccf64ac3c28348ca7bf38422 | refs/heads/master | 2020-04-09T03:13:10.591710 | 2018-12-02T18:27:29 | 2018-12-02T18:27:29 | 159,974,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 134 | py | from django.shortcuts import render, HttpResponse
# Create your views here.
def index(request):
return HttpResponse('Dojo_ninja') | [
"harms2a@gmail.com"
] | harms2a@gmail.com |
959292466215e11be803178df6f439451a2cb66f | 1d7ae7456cad0d7a914a35bac6e854e566a16589 | /db_check.py | 7a7d6fffe84e3b7181e190d46c29da75876f0e12 | [] | no_license | truongngocasic/myrepos | eda728d31e7771e606126d0dc43e976e4eb0a309 | 58678ac27c201198f682cacbab6c8947a731d5eb | refs/heads/master | 2021-09-22T10:18:44.483641 | 2018-09-08T02:44:00 | 2018-09-08T02:44:00 | 112,811,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | import sqlite3
import json
db = sqlite3.connect('dbase/app.db')
# Get a cursor object
cursor = db.cursor()
#Show project
print "SHOW PROJECT"
cursor.execute("SELECT * FROM project")
rows = cursor.fetchall()
for row in rows:
print row
print json.dumps(row)
#Show users
print "SHOW USERS"
cursor.execute("S... | [
"root@beaglebone.(none)"
] | root@beaglebone.(none) |
f949c991858831a2c471ca6defa30d8260439840 | 136a379de74b2a28782cd0e2fb04da99dfabdf86 | /StacksAndQueues/FashionBoutique.py | 0e521c45b07ee0879e60a1065f5f486029e4bc75 | [] | no_license | mironmiron3/SoftUni-Python-Advanced | eb6c077c3b94e0381a82ed3b4abb26f1098dec82 | c7ac896a8fcc1f13a09f4c5573bd183d788a3157 | refs/heads/main | 2023-07-09T23:00:18.404835 | 2021-08-24T14:05:21 | 2021-08-24T14:05:21 | 399,486,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | clothes = [int(piece) for piece in input().split()]
initial_rack_capacity = int(input())
number_of_racks = 1
rack_capacity = initial_rack_capacity
while clothes:
current_piece = clothes.pop()
if current_piece > rack_capacity:
number_of_racks += 1
rack_capacity = initial_rack_capacity - c... | [
"noreply@github.com"
] | mironmiron3.noreply@github.com |
80f98b311d83f89f0caf6261134534cbdf3e1c93 | c4a3eeabe660e5d6b42f704d0325a755331ab3c5 | /hyperion/get_obs_CDF.py | 743366a29bdbc5509cdac8ee10191a4c26a47060 | [] | no_license | yaolun/misc | dfcfde2ac4a6429201644e1354912d3a064f9524 | 049b68ce826ddf638cec9a3b995d9ee84bf6075a | refs/heads/master | 2021-01-21T23:54:08.953071 | 2018-06-02T19:46:18 | 2018-06-02T19:46:18 | 26,666,071 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,328 | py | def get_obs_CDF(cdfdir, obj, spitzer_file=None, photfile=None):
"""
obj input in uppercase. But check the path to make sure.
"""
import numpy as np
from astropy.io import ascii
def spitzer_unc(filename, R=60., width=2.5):
"""
R is the resolving power (lambda/delta_lambda)
... | [
"allenya@gmail.com"
] | allenya@gmail.com |
e85beac70d5bacceda749318ba1c7279a6d05ee2 | 6b2ea44d7c7944dc2ec83a6cc9de8c1c475c093c | /GetUserShareCounts.py | 9f3aa6a6c0eb93f51791fea6dd24fa1c3317e27f | [] | no_license | yashodhank/GAM-Scripts | 2526d1aa2a2f878dfa426168bf9f5c2e73d21076 | 58c99983e7c7326893ccef5b9e4f15e7e8f58c4c | refs/heads/master | 2020-04-04T19:17:36.641822 | 2018-11-01T16:12:26 | 2018-11-01T16:12:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,739 | py | #!/usr/bin/env python2
"""
# Purpose: For a Google Drive User(s), output a CSV file showing the share type counts for files shared by the user(s)
# Note: This script can use Basic or Advanced GAM:
# https://github.com/jay0lee/GAM
# https://github.com/taers232c/GAMADV-X, https://github.com/taers232c/GAMADV-XTD, https://... | [
"ross.scroggs@gmail.com"
] | ross.scroggs@gmail.com |
ac50bc52bc7373fcee843af31f074fd1f46ee40e | d815c4755e6f98098452528d8ab69a8f82096b78 | /day11/producer.py | e1ef9d4d5e62560a2626effd42106c83a7ede936 | [] | no_license | immortalmin/csk | 081f1baddde43f74151f08a7d701d4c611845f7f | aca509a03bb88ae2911c1611350decdf68a4419a | refs/heads/master | 2020-04-07T22:51:59.907665 | 2018-12-04T08:53:22 | 2018-12-04T08:53:22 | 158,788,228 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 658 | py | #Author:immortal luo
# -*-coding:utf-8 -*-
import pika
connection = pika.BlockingConnection(
pika.ConnectionParameters('localhost')
)
channel = connection.channel()#声明一个管道
#声明queue
channel.queue_declare(queue='hello',durable=True)#队列持久化,但只是保存队列名
channel.basic_publish(exchange='',
routing_key... | [
"1608725226@qq.com"
] | 1608725226@qq.com |
ca6d004796ccfbe78c85eb4efbea28468a04ebcc | 2289d33c903bf6eaa0aeb228418ef438863e763d | /fortest/fortest/settings.py | 31da12ea1ebcb2450e2cfea43fa4ed31e88ca251 | [] | no_license | theseana/f | e462255eff88370365afeeae53e080aa53239d15 | 8a66acfc55e223fcd702540462053a5b5e0196e4 | refs/heads/master | 2023-01-12T21:30:39.043604 | 2020-11-22T16:00:48 | 2020-11-22T16:00:48 | 315,075,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,109 | py | """
Django settings for fortest project.
Generated by 'django-admin startproject' using Django 3.1.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib... | [
"info@poulstar.com"
] | info@poulstar.com |
323e87f0298040446697d0117a55480796d625d1 | 1581ea7304a39a81a018e35e5c6d773bb9f1727a | /프로그래머스/PR_여행경로.py | 041746869622645b93f00ec9bd431719a1a62169 | [] | no_license | Yejin6911/Algorithm | 5faae951a19e47dd0babbe0f27e349f8499d5b38 | 80e715c718c8362b20f42115f737b8e918de5b11 | refs/heads/master | 2023-06-20T21:13:39.181327 | 2021-07-19T06:30:20 | 2021-07-19T06:30:20 | 330,934,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | from collections import defaultdict
def solution(tickets):
stack = ["ICN"]
answer = []
routes = defaultdict(list)
for key, value in tickets:
routes[key].append(value)
for r in routes:
routes[r].sort()
while stack:
now = stack[-1]
if now not in routes or len(rout... | [
"cdjin6911@gmail.com"
] | cdjin6911@gmail.com |
cc9747c96a7aa72f30372975203452bf4205eac7 | c56303068bf3bb97cb87202f8ed0e8b2f4316a2a | /covid19_pipeline/data/sampler.py | d8c675e849845b966ae44bd7913b6a25470b97d9 | [] | no_license | salvagimeno-ai/HKBU_HPML_COVID-19 | f049b0ed91b0a06db674407d72940452c84a3e06 | c23e9c7bf5bedec4ddcc3d6efd1e0ad0f814446f | refs/heads/master | 2022-12-04T07:03:27.722775 | 2020-08-30T07:47:01 | 2020-08-30T07:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | import torch
import torchvision
from torchline.data.sampler import SAMPLER_REGISTRY
from torchline.data import build_data
__all__ = [
'WeightedRandomSampler',
]
@SAMPLER_REGISTRY.register()
def WeightedRandomSampler(cfg):
dataset = build_data(cfg)
sampler_cfg = cfg.dataloader.sampler
weights = []
... | [
"1435679023@qq.com"
] | 1435679023@qq.com |
68f0e33fbfb6bfb09cc47e135e5d04fb76d17f89 | 82f993631da2871933edf83f7648deb6c59fd7e4 | /w1/L1/17.py | 5f12a88814e26948b3cfec9064768f06961e56b3 | [] | no_license | bobur554396/PPII2021Summer | 298f26ea0e74c199af7b57a5d40f65e20049ecdd | 7ef38fb4ad4f606940d2ba3daaa47cbd9ca8bcd2 | refs/heads/master | 2023-06-26T05:42:08.523345 | 2021-07-24T12:40:05 | 2021-07-24T12:40:05 | 380,511,125 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 313 | py | print(bool(True))
print(bool(1))
print(bool(100))
print(bool('h'))
print(bool('hello'))
print(bool(2.6))
print(bool([1, 2, 3]))
print(bool((1, 2, 3)))
print(bool({'id': '123', 'name': 'Student 1'}))
print('-'*60)
print(bool(False))
print(bool(0))
print(bool(''))
print(bool([]))
print(bool(()))
print(bool({}))
| [
"bobur.muhsimbaev@gmail.com"
] | bobur.muhsimbaev@gmail.com |
0a255e211f9dad61eb4d0665a5241214dadd47f6 | f469652395fd34bd228ac23bb1a24efce6e5c4a0 | /看书笔记/看书练习/类/模块存储多个类/car.py | 001e32f69d227e1222a520cdfe4632cd75e494b0 | [] | no_license | wfwf1990/python | 0f5528f92d6172da96bce3ded12d1cc2f038ec3c | 6fa3b600cfcf4ab49da7cd8b5f62b5b62e276bfa | refs/heads/master | 2021-04-18T21:35:04.445511 | 2018-06-25T17:40:04 | 2018-06-25T17:40:04 | 126,700,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,590 | py | class Car():
def __init__(self,make,model,year):
self.make = make
self.model = model
self.year = year
self.odometer_reading = 0
def getDescriptiveName(self): #返回描述性信息
long_name = str(self.year) + " " + self.make + " "+ self.model
return long_name.t... | [
"576589099@qq.com"
] | 576589099@qq.com |
411440d37c8077bf6abc259cf3ea6e44e925bf8d | af58fa633206f571d4b370919e27de8d4b9862ed | /tasks/forms.py | 1b6d8ead9fdf09748187e018e42dbc3040332b75 | [] | no_license | gmdmgithub/django-todo-list | 7d36b9603fcdd30959ad48e8f2e97070918c68b7 | 7efaee21bbbdaaff1db46e255b63267ac6a8ab31 | refs/heads/master | 2021-09-25T10:39:10.202237 | 2019-12-17T14:59:45 | 2019-12-17T14:59:45 | 227,467,068 | 0 | 0 | null | 2021-09-22T18:18:36 | 2019-12-11T21:50:47 | Python | UTF-8 | Python | false | false | 271 | py | from django import forms
from django.forms import ModelForm
from .models import *
class TaskForm(forms.ModelForm):
title = forms.CharField(widget=forms.TextInput(attrs={'placeholder':'Add new task'}))
class Meta:
model = Task
fields = '__all__' | [
"gmika@interia.pl"
] | gmika@interia.pl |
e4441350874f79918bd8c01eb254b00f5cf56043 | 6f044a0541ddf467bb6251645c3d8107df5f5756 | /status/migrations/0013_status_trait.py | ea4451fca16a2341d7584014d6176fc495d94aef | [] | no_license | tpvt99/new-social-network-backend | 04ae9f0551c09eceb5fd6b4bcf50430243e53199 | a18d6279a27ba0ce3af1f5d6e985b4b147a4233a | refs/heads/master | 2021-09-04T01:50:43.430961 | 2018-01-14T08:59:41 | 2018-01-14T08:59:41 | 117,415,992 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.4 on 2017-03-17 15:50
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('trait', '0001_initial'),
('status', '0012_status_co... | [
"tranphong96.hbk@gmail.com"
] | tranphong96.hbk@gmail.com |
c8f80a4707a3c941c2a3e4b4f7a6eaf9d71e88a6 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2802/60716/236663.py | 2f8ffb9bdd560ab5b4a981852be9ace2494fb1bb | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 539 | py | num, m= map(int,input().split())
str = input().split(' ')
lists = [int(i) for i in str]
listleave = []
listmember = []
for i in range(num):
listmember.append(i+1)
while len(listmember)>1:
if lists[0]<=m:
lists.pop(0)
index=listmember.pop(0)
# print("{}leave".format(index))
listle... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
f1cc691a72877a2403999b9e4aba96d5532e8c66 | afc8d5a9b1c2dd476ea59a7211b455732806fdfd | /Configurations/ggH_SF/Full2017_HTXS_Stage1p2/doWorkspace.py | b5ddf13b53b9fb6c4a0399c79f7b36db17317f4e | [] | no_license | latinos/PlotsConfigurations | 6d88a5ad828dde4a7f45c68765081ed182fcda21 | 02417839021e2112e740607b0fb78e09b58c930f | refs/heads/master | 2023-08-18T20:39:31.954943 | 2023-08-18T09:23:34 | 2023-08-18T09:23:34 | 39,819,875 | 10 | 63 | null | 2023-08-10T14:08:04 | 2015-07-28T07:36:50 | Python | UTF-8 | Python | false | false | 3,744 | py |
import os
if os.path.exists('HTXS_stage1_categories.py') :
handle = open('HTXS_stage1_categories.py','r')
exec(handle)
handle.close()
sampleNames = []
for cat in HTXSStage1_1Categories:
if 'GG2H_' in cat:
sampleNames.append(cat.replace('GG2H','ggH_hww'))
sampleNames.append(cat.replace('GG2H','ggH_htt... | [
"davide.di.croce@cern.ch"
] | davide.di.croce@cern.ch |
59fc2dab41b7a88b66446f7c5cb7bb6b83d6bf1e | 8be2df0c4508cc5254887b8cccb044032aea5c21 | /client-server-app/Lesson-1.1/6.py | c6eb9fed6056ecaed76ad071ea80c382788c222c | [] | no_license | ezhk/python-learning | 2d3dad2190ac9ce9299534f0f303e8b76a8eeab2 | 424ec9ca08541273f9ec39ff25f75a3b78d9dcb7 | refs/heads/master | 2023-01-05T16:50:08.829169 | 2020-06-02T18:03:05 | 2020-06-02T18:03:05 | 165,482,083 | 0 | 1 | null | 2023-01-04T04:59:43 | 2019-01-13T08:21:44 | Python | UTF-8 | Python | false | false | 2,430 | py | """
6. Создать текстовый файл test_file.txt, заполнить его тремя строками: «сетевое программирование», «сокет», «декоратор».
Проверить кодировку файла по умолчанию. Принудительно открыть файл в формате Unicode и вывести его содержимое.
"""
import sys
if __name__ == "__main__":
print(f"Кодировка по умолчанию: {sys... | [
"ezhik@ezhik.info"
] | ezhik@ezhik.info |
d67257825d79af4c7baa3475c3e4107a9f2ed5aa | c90ddd0930894c565197b739cd76140a7151fffd | /HLTrigger/Configuration/python/HLT_75e33/modules/hgcalLayerClustersL1Seeded_cfi.py | 9241d25990ffcca418d68a5a3de950c3318ae788 | [
"Apache-2.0"
] | permissive | p2l1pfp/cmssw | 9cc6b111ff1935e49f86ec3da9f9b84fb13bbcdf | 9f0a3a22fe451c25114134c30ac1f5c1261f3183 | refs/heads/L1PF_12_5_X | 2023-08-17T00:38:15.374760 | 2023-06-13T12:55:57 | 2023-06-13T12:55:57 | 127,881,751 | 6 | 1 | Apache-2.0 | 2023-09-05T13:54:59 | 2018-04-03T09:10:17 | C++ | UTF-8 | Python | false | false | 2,371 | py | import FWCore.ParameterSet.Config as cms
hgcalLayerClustersL1Seeded = cms.EDProducer("HGCalLayerClusterProducer",
HFNoseInput = cms.InputTag("HGCalRecHitL1Seeded","HGCHFNoseRecHits"),
HGCBHInput = cms.InputTag("hltRechitInRegionsHGCAL","HGCHEBRecHits"),
HGCEEInput = cms.InputTag("hltRechitInRegionsHGCAL","... | [
"Thiago.Tomei@cern.ch"
] | Thiago.Tomei@cern.ch |
ac9ffa32b221d3043b543720b6687f73cd5687d6 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/identity/_client_factory.py | a549775369dd20d49176d25d093fa1fa098baa88 | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 1,358 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
553950841b24466894b68cdbbc0d5e9dc4ec1aae | 3fd3da4f11a251cc43d44d1d61ff2ffe5c82a4ce | /dlp/apps/rgl/steamdb.py | b31dc8ea7f75f8bf1a65dc92ab592ece91bd8d8b | [] | no_license | dumpinfo/TsBook | d95faded917bce3e024e77ff06afd30717ed9ef4 | 8fadfcd2ebf935cd49784fd27d66b2fd9f307fbd | refs/heads/master | 2023-05-27T07:56:24.149421 | 2019-07-31T20:51:52 | 2019-07-31T20:51:52 | 198,481,031 | 1 | 3 | null | 2023-05-22T21:13:31 | 2019-07-23T17:47:19 | Jupyter Notebook | UTF-8 | Python | false | false | 5,021 | py | import sys
from bs4 import BeautifulSoup
import requests
#from apps.rgl.spider_html_render import SpiderHtmlRender
import execjs
import json
import demjson
import csv
import urllib
from apps.rgl.seph_spider import SephSpider as SephSpider
from apps.rgl.website_stats import WebsiteStats as WebsiteStats
class SteamDb(ob... | [
"twtravel@126.com"
] | twtravel@126.com |
7811ab8d810fd59b8683dda47ad714400b18daaa | bccd16717d20d673cb514d6ac68e624c2c4dae88 | /sdk/python/pulumi_gcp/cloudfunctions/_inputs.py | 77344c6db5bc5aaf6ca0546f852fc87d824be49d | [
"MPL-2.0",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | dimpu47/pulumi-gcp | e78d228f7c2c929ad3e191331b75c6e4c4cc4fa9 | 38355de300a5768e11c49d344a8165ba0735deed | refs/heads/master | 2023-07-07T13:00:15.682157 | 2020-09-23T18:43:11 | 2020-09-23T18:43:11 | 173,437,663 | 0 | 0 | Apache-2.0 | 2023-07-07T01:05:58 | 2019-03-02T11:06:19 | Go | UTF-8 | Python | false | false | 7,454 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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, Dict, List, Mapping, Optional, Tuple, Union
from .. import ... | [
"public@paulstack.co.uk"
] | public@paulstack.co.uk |
467973f25cde54a20eea6250b4ec716fc7f4a522 | 04a0614b8c2a893dab29bc4ffb0aaf82364fdf3f | /42. Trapping Rain Water.py | 00d019457232df006bdb59cfc6b8f0459546a22d | [] | no_license | sharmaji27/Leetcode-Problems | 716bcb4a36b9e4f45274c4d551967e15c40ddbd2 | 0f878933b17df170c18f0b67b7200cec76c276e0 | refs/heads/master | 2021-10-20T17:35:35.175757 | 2021-10-20T05:33:17 | 2021-10-20T05:33:17 | 218,299,755 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,117 | py | '''
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining.
The above elevation map is represented by array [0,1,0,2,1,0,1,3,2,1,2,1]. In this case, 6 units of rain water (blue section) are being trapped. Thanks Marcos ... | [
"asharma70420@gmail.com"
] | asharma70420@gmail.com |
8ab80b9fc52d4d7883b88017e5bb0d4f504d8282 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2571/60717/272964.py | 9cb0579f0d6afe9dc168e613a2f93dd1d097fcac | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | n=int(input())
list1=[]
for i in range(0,n):
tmp=input().split(',')
for j in range(0,len(tmp)):
tmp[j]=int(tmp[j])
list1.append(tmp)
if list1[0]==[1,0,1] and list1[1]==[0,-2,3]:
print(2)
elif list1[1]==[5,-2,1] and list1[0]==[1,0,1] and n==2:
print(3)
elif list1==[[1, 6, 1, 2], [1, -2, 1, 4]... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
384d28ecb7a76eaf2d60baf426d25e1e67ef752b | 209dd8cbb28a40fa8ab7004368fcadd071c88699 | /Learning & Documentation/dlib(3)/digital_makeup_on_webcam.py | 215e7cd5464ff6f35963308f58bb7791f2acd7a5 | [] | no_license | mahmud83/Object-and-facial-detection-in-python | 095fc6ee47f7378c4586557b8a07b7a9cd537a62 | 2389e9d7b3b8331ffc5dd5d2591eacc7e72a5675 | refs/heads/master | 2020-04-07T00:36:40.435537 | 2018-10-02T22:58:00 | 2018-10-02T22:58:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | from PIL import Image, ImageDraw
import face_recognition
import cv2
#image = face_recognition.load_image_file("biden.jpg")
# Load the jpg file into a numpy array
video_capture = cv2.VideoCapture(0)
# Find all facial features in all the faces in the image
#face_landmarks_list = face_recognition.face_landmarks(image)... | [
"danwe980@student.liu.se"
] | danwe980@student.liu.se |
550f570ff18ea5eefd99c431579ddfb994de89ed | 98f1a0bfa5b20a0b81e9e555d76e706c62d949c9 | /examples/pytorch/hilander/utils/knn.py | 6604c7924ac2d49bf79ab8b4d730d5fda243ec83 | [
"Apache-2.0"
] | permissive | dmlc/dgl | 3a8fbca3a7f0e9adf6e69679ad62948df48dfc42 | bbc8ff6261f2e0d2b5982e992b6fbe545e2a4aa1 | refs/heads/master | 2023-08-31T16:33:21.139163 | 2023-08-31T07:49:22 | 2023-08-31T07:49:22 | 130,375,797 | 12,631 | 3,482 | Apache-2.0 | 2023-09-14T15:48:24 | 2018-04-20T14:49:09 | Python | UTF-8 | Python | false | false | 5,635 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
This file re-uses implementation from https://github.com/yl-1993/learn-to-cluster
"""
import math
import multiprocessing as mp
import os
import numpy as np
from tqdm import tqdm
from utils import Timer
from .faiss_search import faiss_search_knn
__all__ = [
"knn_... | [
"noreply@github.com"
] | dmlc.noreply@github.com |
e45db364ac41947ca34d39b12f7a98502a23dba1 | 795df757ef84073c3adaf552d5f4b79fcb111bad | /matrix_exp/eulerian.py | 742adbda260290862065b49d4a75213ffe9d07ed | [] | no_license | tnakaicode/jburkardt-python | 02cb2f9ba817abf158fc93203eb17bf1cb3a5008 | 1a63f7664e47d6b81c07f2261b44f472adc4274d | refs/heads/master | 2022-05-21T04:41:37.611658 | 2022-04-09T03:31:00 | 2022-04-09T03:31:00 | 243,854,197 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,795 | py | #! /usr/bin/env python
#
def eulerian ( m, n ):
#*****************************************************************************80
#
## EULERIAN returns the EULERIAN matrix.
#
# Definition:
#
# A run in a permutation is a sequence of consecutive ascending values.
#
# E(I,J) is the number of permutations of I obje... | [
"tnakaicode@gmail.com"
] | tnakaicode@gmail.com |
c91974ea7c56b546ae5ff953dd6c549cda27a0ad | 0b0a947c10038152fc56efbdde13eef3330adb34 | /hackerrank-problem-solving-solutions/78. Collections.OrderedDict().py | a197f537b5a740b0a1e16d28c1ba491bb31ec056 | [] | no_license | swapnanildutta/Python-programs | 9c382eb8c823571e4f098fff263d126665fbc575 | d47e2e3c4d648e0cc0ae1b89b83ce4f99db89f63 | refs/heads/master | 2021-11-18T22:16:57.276910 | 2021-09-04T13:07:36 | 2021-09-04T13:07:36 | 197,773,723 | 1 | 26 | null | 2023-04-09T10:51:57 | 2019-07-19T13:02:26 | Python | UTF-8 | Python | false | false | 267 | py | # Author Aman Shekhar
from collections import OrderedDict
order = OrderedDict()
for _ in range(int(input())):
item, space, price = input().rpartition(' ')
order[item] = order.get(item, 0) + int(price)
for item, price in order.items():
print(item, price) | [
"Aman Shekhar"
] | Aman Shekhar |
e47e686c2ad671ccdeaeab3e94483f08c8c05fe4 | d01670aa5bddb47dc414bf01921155610e2a5070 | /leetcode/078_subsets.py | 29242d2656b26a754e499a4cf12e7223cae83858 | [] | no_license | hwillmott/csfundamentals | 14c7e4253b581cef7046ca035bda038c24a52613 | 832f6a8c0deb0569d3fe0dc03e4564c2d850f067 | refs/heads/master | 2020-08-01T12:27:01.914391 | 2020-03-26T16:47:35 | 2020-03-26T16:47:35 | 73,576,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | class Solution(object):
def subsets(self, nums):
"""
:type nums: List[int]
:rtype: List[List[int]]
"""
def backtrack(result, nums, currlist, start):
result.append(currlist)
for i in range(start, len(nums)):
backtrack(result, nums, currl... | [
"harriet.willmott@gmail.com"
] | harriet.willmott@gmail.com |
178d77aad9895f4b66d292a42179376af5f5e34e | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03014/s558979367.py | 10160eef25c45fbff7a7bc0be7daaaa18cc7f9db | [] | 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,288 | py | import sys
import itertools
# import numpy as np
import time
import math
sys.setrecursionlimit(10 ** 7)
from collections import defaultdict
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
H, W = map(int, readline().split())
tile = [0 for i in range(H)]
cnt =... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
9923cd5ddfe1039cfdbe9ee05bffe6cd6681e49c | 9a42085c664730fb45267365d38df5de18ee2137 | /module_path/__init__.py | ad016d13417ade909f89a78d2bfc1ddedc0457a6 | [
"MIT"
] | permissive | justengel/module_path | 09e8a073b3013c5ea38f06791786042f1db106d0 | 2f2feedaa03f07f9a86e04cb96e6a7edc7fd30d6 | refs/heads/master | 2023-07-03T11:07:50.468178 | 2021-07-23T16:05:42 | 2021-07-23T16:05:42 | 322,051,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,917 | py | """
Get a modules path.
Notes:
* sys._MEIPASS - Created by pyinstaller executable. This is the directory of the executable
* If regular python run this does not exist
* If pyinstaller created a directory this is the directory that contains the executable
* If pyinstaller onefile this is "C:\\User... | [
"jtengel08@gmail.com"
] | jtengel08@gmail.com |
a60e9fb88399b262c87a1ba767671f6af8aeb26d | bbb36e65c62fa824807b2f85a20e491140338f72 | /src/infrastructure/django_framework/camera_ctrl/migrations/0005_remove_generalsettings_send_email_on_sync_error.py | fa4554a74f7655481cfa3177d854018ebf3c3124 | [] | no_license | TermanEmil/CameraController | 0d4338a3365431efb0b28dfb409b6a72c0d256c6 | c996868be9cfb6e6e44ae90d77346e7f700d177c | refs/heads/master | 2023-02-18T07:59:21.876482 | 2022-12-29T14:37:01 | 2022-12-29T14:37:01 | 195,222,744 | 3 | 0 | null | 2023-02-15T20:21:28 | 2019-07-04T10:41:15 | Python | UTF-8 | Python | false | false | 356 | py | # Generated by Django 2.2.4 on 2019-10-06 21:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('camera_ctrl', '0004_generalsettings'),
]
operations = [
migrations.RemoveField(
model_name='generalsettings',
name='send_ema... | [
"terman.emil@gmail.com"
] | terman.emil@gmail.com |
8c5a0f3c69fe151453f691e54a452340bee2cdda | 9d57216d173cc2c5ba5fba6d5845c01c82dccf8f | /pytransform3d/transformations/__init__.py | 0f7ca5acef3d20b65ae6f350840b19555aa39f46 | [
"BSD-3-Clause"
] | permissive | mhirak/pytransform3d | e34b02a435cf352f1da111f0c7d5e7ab58e9092e | 8f3065bfea913953656cf772efbd34256930172b | refs/heads/master | 2023-08-31T21:20:43.586968 | 2021-09-13T08:02:07 | 2021-09-13T08:02:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,515 | py | """Transformations in three dimensions - SE(3).
See :doc:`transformations` for more information.
"""
from ._utils import (
check_transform, check_pq, check_screw_parameters, check_screw_axis,
check_exponential_coordinates, check_screw_matrix, check_transform_log,
check_dual_quaternion)
from ._conversions i... | [
"afabisch@googlemail.com"
] | afabisch@googlemail.com |
c0f6e796c04e5b68ea5f4626c0ecd09334120e57 | 37c243e2f0aab70cbf38013d1d91bfc3a83f7972 | /pp7TeV/HeavyIonsAnalysis/JetAnalysis/python/jets/ak7PFJetSequence_pp_mix_cff.py | d5943280b61cf90b5da4cc7c4967ef1fb51e3072 | [] | no_license | maoyx/CMSWork | 82f37256833cbe4c60cb8df0b4eb68ceb12b65e7 | 501456f3f3e0f11e2f628b40e4d91e29668766d5 | refs/heads/master | 2021-01-01T18:47:55.157534 | 2015-03-12T03:47:15 | 2015-03-12T03:47:15 | 10,951,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,380 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
ak7PFmatch = patJetGenJetMatch.clone(
src = cms.InputTag("ak7PFJets"),
matched = cms.InputTag("ak7HiGenJets")
)
ak7PFparton = patJetP... | [
"yaxian.mao@cern.ch"
] | yaxian.mao@cern.ch |
7e59014221dd7e327050963256603c05eaca9fd4 | e254c72d3fd11306c8625c5d8ad8ac394eabc6c6 | /04.beautifulSoup/BeautifulSoup02/main6.py | e54aadb69a107353f55b1bc1fb95d2b8f5a1ec93 | [] | no_license | Edward83528/crawlerToMachinLearningAndBot | 87c7ea92779b949ad5015612a4e70275becab480 | 82818137b517f4c5a856535f83a8cb8b211da8aa | refs/heads/master | 2022-11-06T19:41:20.473933 | 2020-07-04T14:01:07 | 2020-07-04T14:01:07 | 268,072,162 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,643 | py | #coding:utf-8
#65001
import urllib.request
import json
import codecs
import sys
import argparse as ap
import time
import datetime
import requests
from bs4 import BeautifulSoup as bs
from urllib.parse import quote
#python main.py 八仙塵爆 2015-06-27 2015-08-24 1
#def argParse():
# parser=ap.ArgumentParser(description='L... | [
"u0151051@gmail.com"
] | u0151051@gmail.com |
c48910b35aeb43f63ba5477826a13f4dfe3b0a88 | 27276ec746f3dcf6ca815961377b98e529338951 | /projects/demo/numpy_demo.py | 79178b40903096210dd91728e29695af46f0c963 | [] | no_license | fengyouliang/mmdetection_projects | a084281a6fcf223ac1950a5c1081226153b394b2 | 3d877624ab9b1f438c6a5c63402626cd3138b5bb | refs/heads/master | 2022-12-26T10:11:45.522474 | 2020-10-10T09:59:13 | 2020-10-10T09:59:13 | 281,071,083 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,968 | py | import numpy as np
class Box:
def __init__(self, rectangle):
'''
rectangle class.
:param rectangle: a list of [xmin, xmax, ymin, ymax]
'''
self.rec = np.array(rectangle).astype(np.int)
@property
def shape(self):
'''
get shape of Box.
:return... | [
"1654388696@qq.com"
] | 1654388696@qq.com |
204b28dbe6e3e380bd5198a01b9c562dae452234 | d512a6953008941caa36d47dcddb0dd8e3758d84 | /train.py | 106dcf890e8e14cd700ac5f803821ccdf661d56a | [] | no_license | alibuda/CCKS_QA | 8dd541a51118cf5f9c168b909c14e3360aab351f | 27394f91a499731b85b31c785b50f7418354580d | refs/heads/master | 2020-04-20T05:14:19.780628 | 2018-08-12T09:13:34 | 2018-08-12T09:13:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,200 | py | import tensorflow as tf
from read_utils import TextConverter, batch_generator,load_origin_data,val_samples_generator
import os
import argparse # 用于分析输入的超参数
def parseArgs(args):
"""
Parse 超参数
Args:
args (list<stir>): List of arguments.
"""
parser = argparse.ArgumentParser()
test_args ... | [
"zoulingwei@cyou-inc.com"
] | zoulingwei@cyou-inc.com |
2f08353be95a5c836ae59a52d53cd5a296acde31 | 78980891d3137810bf3a3c1bb229966b7f49f0dd | /data_structure/3/ll.py | f43ad13c667a531c3fbabe2aea2be2b7fd278900 | [] | no_license | miniyk2012/leetcode | 204927d3aefc9746070c1bf13abde517c6c16dc0 | 91ca9cd0df3c88fc7ef3c829dacd4d13f6b71ab1 | refs/heads/master | 2021-06-17T21:50:31.001111 | 2021-03-10T11:36:23 | 2021-03-10T11:36:23 | 185,042,818 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,961 | py | class LinkedList:
def __init__(self):
self.head = None
def add(self, v):
if self.head is not None:
self.head.add(v)
return
self.head = Node(v)
def print(self):
if self.head:
self.head.print()
def pophead(self):
... | [
"yk_ecust_2007@163.com"
] | yk_ecust_2007@163.com |
f5b0c0334a7c08a30029ae177be681688724e975 | f2a12bc1435111dd4e2afda02834bb3cd53ed8d8 | /vgc/__main__.py | 5f412a68a21c70a6b59104fb498a550e4c5fe13e | [
"MIT"
] | permissive | reedessick/video-game-camp | c83504d63637bc8c2c8f8b4067ec277233b74d4d | 09a324279c5ea9de87080f122fe27e1ef83d5373 | refs/heads/master | 2022-11-06T11:00:32.526460 | 2020-06-19T16:28:12 | 2020-06-19T16:28:12 | 272,338,754 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,952 | py | """a basic menu from which users can navigate to different games they have designed.
"""
__author__ = 'Reed Essick (reed.essick@gmail.com)'
#-------------------------------------------------
import sys
import inspect
### non-standard libraries
import vgc
#-------------------------------------------------
def prin... | [
"reed.essick@ligo.org"
] | reed.essick@ligo.org |
d89661ef6fd64a848d58e944a0359d58cf2e99c5 | da172d7a739ee31c760bb06a2b979037dda01613 | /ws/executors/wsgi_python.py | f9b7b669c752728cb333ef6fd1e85300accff134 | [] | no_license | jonhillmtl/web-server | b5f87e315364b699275140bf5ad1b8475529f96a | 4b6c123954dfdc07007a46dbf4799c2ba912c768 | refs/heads/master | 2020-03-27T20:31:31.247819 | 2018-09-04T20:12:15 | 2018-09-04T20:12:15 | 147,075,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | import os
import importlib.util
from .base import BaseRequestExecutor, InternalServerError
class WsgiPythonRequestExecutor(BaseRequestExecutor):
def serve(self):
try:
wsgi_path = os.path.expanduser(self.vhost['wsgi_path'])
spec = importlib.util.spec_from_file_location("wsgi", wsgi... | [
"jon@jonhill.ca"
] | jon@jonhill.ca |
34106f33d7f4aec21edf9b7e288d4621593a29cb | 2f0aa66e14c6595289f6a0de2bdf71e9922052a7 | /nextApi/invitation/urls.py | b71dc47d9815d9986fa4dd3305973670cfc11d12 | [] | no_license | aimethierry/NextApi | 8f83a2b0f499fdf5118eb930baa051584cfd9aa5 | 90884ee6d900ce71116b40276dda0e97bec0b521 | refs/heads/master | 2022-12-11T09:03:54.981284 | 2020-09-19T12:40:36 | 2020-09-19T12:40:36 | 296,866,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from django.urls import path
from rest_framework.urlpatterns import format_suffix_patterns
from . import views
from .views import InvitationView
urlpatterns = [
path(r'createInvitation/', InvitationView.as_view()),
] | [
"aime.thierry97@gmail.com"
] | aime.thierry97@gmail.com |
54e88f8afdc0c2207e7b3a33889e5d54e6ef2ea2 | fcc88521f63a3c22c81a9242ae3b203f2ea888fd | /Python3/0816-Ambiguous-Coordinates/soln.py | 6af316ab69487b3c7557024a2af3c249b1bc088c | [
"MIT"
] | permissive | wyaadarsh/LeetCode-Solutions | b5963e3427aa547d485d3a2cb24e6cedc72804fd | 3719f5cb059eefd66b83eb8ae990652f4b7fd124 | refs/heads/master | 2022-12-06T15:50:37.930987 | 2020-08-30T15:49:27 | 2020-08-30T15:49:27 | 291,811,790 | 0 | 1 | MIT | 2020-08-31T19:57:35 | 2020-08-31T19:57:34 | null | UTF-8 | Python | false | false | 1,079 | py | class Solution:
def ambiguousCoordinates(self, S):
"""
:type S: str
:rtype: List[str]
"""
def valid(x):
if '.' not in x:
return str(int(x)) == x
else:
idx = x.find('.')
int_part, frac_part = x[:idx], x[id... | [
"zhang623@wisc.edu"
] | zhang623@wisc.edu |
039a0870e48a245cf17235ef7fc5554fe7700500 | 6671be3a542925342379d5f6fc691acfebbe281f | /discounts/src/consumer/sqs.py | 4585bcd66519608533b7fb52fb144fef9dd70dc4 | [
"Apache-2.0"
] | permissive | dalmarcogd/mobstore | e79b479b39474873043345b70f7e972f304c1586 | 0b542b9267771a1f4522990d592028dc30ee246f | refs/heads/main | 2023-04-29T22:27:20.344929 | 2021-05-18T12:00:00 | 2021-05-18T12:00:00 | 365,539,054 | 0 | 0 | Apache-2.0 | 2021-05-17T23:22:58 | 2021-05-08T14:46:34 | Go | UTF-8 | Python | false | false | 1,391 | py | import json
import logging
from typing import Callable, Dict, List
import boto3
from src import settings
_sqs = boto3.client('sqs', region_name=settings.AWS_REGION,
aws_access_key_id=settings.AWS_ACCESS_KEY,
aws_secret_access_key=settings.AWS_SECRET_KEY,
en... | [
"dalmarco.gd@gmail.com"
] | dalmarco.gd@gmail.com |
c905595be4974b75bdd595264c0e4286ffc165a2 | 2a3743ced45bd79826dcdc55f304da049f627f1b | /venv/lib/python3.7/site-packages/jedi/third_party/typeshed/third_party/3.5/contextvars.pyi | ab2ae9e5fabf3a9ae486f509156f09fc5fa1e70a | [
"MIT",
"Apache-2.0"
] | permissive | Dimasik007/Deribit_funding_rate_indicator | 12cc8cd7c0be564d6e34d9eae91940c62492ae2a | 3251602ae5249069489834f9afb57b11ff37750e | refs/heads/master | 2023-05-26T10:14:20.395939 | 2019-08-03T11:35:51 | 2019-08-03T11:35:51 | 198,705,946 | 5 | 3 | MIT | 2023-05-22T22:29:24 | 2019-07-24T20:32:19 | Python | UTF-8 | Python | false | false | 1,130 | pyi | from typing import Any, Callable, ClassVar, Generic, Iterator, Mapping, TypeVar, Union
_T = TypeVar('_T')
class ContextVar(Generic[_T]):
def __init__(self, name: str, *, default: _T = ...) -> None: ...
@property
def name(self) -> str: ...
def get(self, default: _T = ...) -> _T: ...
def set(self, v... | [
"dmitriy00vn@gmail.com"
] | dmitriy00vn@gmail.com |
c40e2fcb4e20ddf289e9e4beb5613e83b69cced8 | c6b9b9f2fbc6c62e7a86b02718954661af3c564f | /configs/flownet2/flownet2cs_8x1_sfine_flyingthings3d_subset_384x768.py | ca4db07d952781b13f83d38c9d6347781425c2bc | [
"Apache-2.0"
] | permissive | open-mmlab/mmflow | a90ff072805ac79cbc0b277baded1e74d25cccf0 | 9fb1d2f1bb3de641ddcba0dd355064b6ed9419f4 | refs/heads/master | 2023-05-22T05:19:48.986601 | 2023-01-10T16:05:18 | 2023-01-10T16:05:18 | 428,493,460 | 808 | 110 | Apache-2.0 | 2023-09-05T13:19:38 | 2021-11-16T02:42:41 | Python | UTF-8 | Python | false | false | 374 | py | _base_ = [
'../_base_/models/flownet2/flownet2cs.py',
'../_base_/datasets/flyingthings3d_subset_384x768.py',
'../_base_/schedules/schedule_s_fine.py', '../_base_/default_runtime.py'
]
# Train on FlyingChairs and finetune on FlyingThings3D subset
load_from = 'https://download.openmmlab.com/mmflow/flownet2/f... | [
"meowzheng@outlook.com"
] | meowzheng@outlook.com |
4ab5b11e8bc7b4e9791245ba6efa0070a7fe2960 | a28709c421e7f5db9af18476216abe7f41ed64cf | /frameworks/pytorch/examples/3_multi_outputs.py | 9906ee9f5a410c22127a65cb4c7695e681695832 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/antares | 8269f93418306fdea14f89032bc861fd7cdf6b24 | 86317b035043daaae4f8bd8bb1bb3b8d1b9f648d | refs/heads/v0.3.x | 2023-08-19T11:18:47.174186 | 2023-08-09T09:02:29 | 2023-08-09T09:02:29 | 274,578,755 | 262 | 37 | NOASSERTION | 2023-09-06T22:19:51 | 2020-06-24T04:58:46 | C++ | UTF-8 | Python | false | false | 906 | py | #!/usr/bin/env python3
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT license.
import torch
from antares_core.frameworks.pytorch.custom_op import CustomOp
device = torch.device("cuda") if torch.cuda.is_available() else torch.device("cpu")
dtype = torch.float32
kwargs = {'dtype': dtype,
'd... | [
"noreply@github.com"
] | microsoft.noreply@github.com |
67927289ffd53208d56009d2b3654fc46cf8c258 | ac0a4336abfa8f36079203b2ba2e104a59f3ed8b | /Multithreading/thread1.py | 584a040d5525dfe8380e865d962c501eab646baa | [] | no_license | Michal-lis/python_playground | ea422df3c992c01bfe6df5621768df386583eed9 | ec24b7456a0ee872acbcbfa54daa6634dfcfb7be | refs/heads/master | 2022-11-05T20:50:14.809449 | 2019-01-11T13:25:09 | 2019-01-11T13:25:09 | 87,660,323 | 0 | 1 | null | 2022-10-17T11:27:43 | 2017-04-08T19:53:26 | Tcl | UTF-8 | Python | false | false | 827 | py | import threading
import time
ki = range(300)
def calculate_5(li):
pow5 = []
for e in li:
for e in li:
for e in li:
pow5.append(pow(e, 5))
return pow5
def calculate_4(li):
pow4 = []
for e in li:
for e in li:
for e in li:
pow... | [
"michallis95@vp.pl"
] | michallis95@vp.pl |
d4a90e6d064d0f890b8d6bd5f03b1b914263bf27 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /125_algorithms/_exercises/templates/_algorithms_challenges/edabit/_Edabit-Solutions-master/Limit a Number's Value/solution.py | ce3b9f895d444972b8796e83f0b74883d8c75a31 | [] | 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 | 385 | py | ___ limit_number(num, range_low, range_high
__ num < range_low:
r.. range_low
____ num > range_high:
r.. range_high
____
r.. num
___ test
print("test has started")
__ limit_number(5, 1, 10) ! 5:
print("error1")
__ limit_number(-3, 1, 10) ! 1:
print("error... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
57106cf1d9c1905a6e255803e406bf9aa13528ea | 64076dd830b5740cf25f54fbf64c6784427801a2 | /security.py | 07a1b66e228677dbf3567bca4c517b48ceb23062 | [] | no_license | Shiv2157k/flask_store | ee9113fa813365429dccb486cb14af6d307f9c0e | 9fe0d74f9c83b00fa769a6bcb6557dca1dfd8d13 | refs/heads/master | 2022-11-26T01:56:28.865821 | 2020-08-02T22:28:05 | 2020-08-02T22:28:05 | 284,491,361 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | from werkzeug.security import safe_str_cmp
from models.user import UserModel
def authenticate(username, password):
user = UserModel.find_by_username(username)
if user and safe_str_cmp(user.password, password):
return user
def identity(payload):
user_id = payload["identity"]
return UserModel.fi... | [
"shiv2157.k@gmail.com"
] | shiv2157.k@gmail.com |
2446169dfd9c23bd9ff066bc9404816a83fec2c0 | f82349a5d9cb285ced7c52db1ce95c65f5fd0cf0 | /mars/tensor/expressions/arithmetic/cos.py | ce9407c3b368b6138702495e84f7a15278b473a1 | [
"MIT",
"BSD-3-Clause",
"OFL-1.1",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | pingrunhuang/mars | 8d2602356b6f4d9eb7c6dfe4b2c4536b4bdfc229 | ae920c374e9844d7426d0cc09c0d97059dc5341c | refs/heads/master | 2020-04-17T03:42:11.147774 | 2019-01-18T06:49:29 | 2019-01-18T06:49:29 | 166,196,676 | 0 | 0 | Apache-2.0 | 2019-01-17T09:17:25 | 2019-01-17T09:17:25 | null | UTF-8 | Python | false | false | 2,961 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 1999-2018 Alibaba Group Holding Ltd.
#
# 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-... | [
"xuye.qin@alibaba-inc.com"
] | xuye.qin@alibaba-inc.com |
a05127b405e68038f07aab774aed90fe51dd6642 | 9b2eb0d6b673ac4945f9698c31840b847f790a58 | /pkg/test/test_fast_stats_builds_api.py | 77236c6f0afa96f5aa495b7784829af15e744dd3 | [
"Apache-2.0"
] | permissive | Apteco/apteco-api | 6d21c9f16e58357da9ce64bac52f1d2403b36b7c | e8cf50a9cb01b044897025c74d88c37ad1612d31 | refs/heads/master | 2023-07-10T23:25:59.000038 | 2023-07-07T14:52:29 | 2023-07-07T14:52:29 | 225,371,142 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,815 | py | # coding: utf-8
"""
Apteco API
An API to allow access to Apteco Marketing Suite resources # noqa: E501
The version of the OpenAPI document: v2
Contact: support@apteco.com
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unittest
import apteco_api... | [
"tim.morris@apteco.com"
] | tim.morris@apteco.com |
c570a16420f515bd89d420f8231058e8acb26b1d | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_298/ch22_2020_09_09_12_15_01_157465.py | 8803cbcb0895a39a98c1635aaa7138b86ea1db8d | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | a= input("Quantos cigarros voce fuma por dia? ")
b= input("Ha quantos anos? ")
a= int(a)
b= int(b)
def vida(a,b):
fumado= a*b*365
perdido= (fumado)/144
return perdido
print(vida(a,b)) | [
"you@example.com"
] | you@example.com |
104b1a43657e6f3c40b770581127e9bbd0589f0c | c14e31bdfed47fc9aaafd3b1100451551acff3c6 | /source/accounts/forms.py | f038f43ec5d8eb1f212fdaa4b74836b1d7619c7c | [] | no_license | UuljanAitnazarova/reviews_project | 79f6e423f111afa7a057fdf15e086559530a281c | 74b64559bfaf1f9fcd3c78009fa4264c64bb9571 | refs/heads/master | 2023-04-23T04:38:59.266181 | 2021-05-01T12:56:15 | 2021-05-01T12:56:15 | 363,329,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,908 | py | from django.contrib.auth import get_user_model
from django.contrib.auth.forms import UserCreationForm
from django import forms
from django.core.exceptions import ValidationError
class MyUserCreationForm(UserCreationForm):
class Meta(UserCreationForm.Meta):
fields = ['username', 'email', 'first_name', 'la... | [
"u.aitnazarova@gmail.com"
] | u.aitnazarova@gmail.com |
6ea43da81e9e349639a232afa4e830990a130077 | 8a4f6d02ea5f83c78543849d9e997458c7d615c9 | /cleanup/transfer.py | 430bbb97b0b4d07686165e55ba110e4f44538591 | [] | no_license | jsl12/Picture-Cleanup | f5f2e3889b2894051e25f6347049fa4ea752235e | 82c62dab9fe9a59ff6ec2905049d4667ad9d91d9 | refs/heads/master | 2020-12-09T02:03:42.979162 | 2020-04-08T15:04:05 | 2020-04-08T15:04:05 | 233,159,912 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | import ftplib
import logging
from pathlib import Path
from . import log
LOGGER = logging.getLogger(__name__)
def pull_from_phone(
host,
port,
local_path,
phone_path=None,
ext='jpg',
user='android',
passwd='android'):
ftp = ftplib.FTP()
ftp.connect(host,... | [
"32917998+jsl12@users.noreply.github.com"
] | 32917998+jsl12@users.noreply.github.com |
c29268709c89ea3b972d76ba5d5b1827978ad7dc | 45dd427ec7450d2fac6fe2454f54a130b509b634 | /homework_3/preparation1.py | 2cd921e0e4dbfc35edb2a6c54fe16ec5985257e4 | [] | no_license | weka511/smac | 702fe183e3e73889ec663bc1d75bcac07ebb94b5 | 0b257092ff68058fda1d152d5ea8050feeab6fe2 | refs/heads/master | 2022-07-02T14:24:26.370766 | 2022-06-13T00:07:36 | 2022-06-13T00:07:36 | 33,011,960 | 22 | 8 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import pylab
def show_conf(L, sigma, title, fname):
pylab.axes()
for [x, y] in L:
for ix in range(-1, 2):
for iy in range(-1, 2):
cir = pylab.Circle((x + ix, y + iy), radius=sigma, fc='r')
pylab.gca().add_patch(cir)
pylab.axis('scaled')
pylab... | [
"simon@greenweaves.nz"
] | simon@greenweaves.nz |
a34c9c352f846d610a576e96d440f5c41e31f197 | 341bd2d71b6b6e3af734f16989aeb450e3e73624 | /PCA9536_WDBZ/PCA9536_WDBZ.py | adb05997edaa4ecbe077a630777db9ae1e205939 | [] | no_license | ControlEverythingCommunity/CE_PYTHON_LIB | 5c170f7e3763ab3b160a5fc33f2bb96d4798c7e2 | 736b29434a451a384c2f52490c849239c3190951 | refs/heads/master | 2021-01-12T00:39:25.374689 | 2017-08-30T21:54:47 | 2017-08-30T21:54:47 | 78,751,564 | 7 | 7 | null | 2017-12-15T11:08:48 | 2017-01-12T14:05:11 | Python | UTF-8 | Python | false | false | 6,014 | py | # Distributed with a free-will license.
# Use it any way you want, profit or free, provided it fits in the licenses of its associated works.
# PCA9536_WDBZ
# This code is designed to work with the PCA9536_WDBZ_I2CS I2C Mini Module available from ControlEverything.com.
# https://shop.controleverything.com/products/w... | [
"apple@Yaddis-iMac.local"
] | apple@Yaddis-iMac.local |
695020da160da49d3ff96237eb4b04bf19b2c942 | fb78fd824e904705fb1ee09db8b3c20cc3902805 | /django-blog-api/posts/views.py | ce41539ee2fd83cb2392599bd4c682a68868049b | [] | no_license | Roderich25/mac | 8469833821ac49c539a744db29db5a41d755ad55 | 4f7fe281c88f0199b85d0ac99ce41ffb643d6e82 | refs/heads/master | 2023-01-12T05:55:12.753209 | 2021-11-26T01:16:24 | 2021-11-26T01:16:24 | 207,029,750 | 0 | 0 | null | 2023-01-07T11:49:23 | 2019-09-07T21:51:53 | Jupyter Notebook | UTF-8 | Python | false | false | 1,231 | py | from django.contrib.auth import get_user_model
from rest_framework import viewsets # generics
from .permissions import IsAuthorOrReadOnly
from .models import Post
from .serializers import PostSerializer, UserSerializer
class PostViewSet(viewsets.ModelViewSet):
permission_classes = (IsAuthorOrReadOnly,)
querys... | [
"rodrigoavilasolis@gmail.com"
] | rodrigoavilasolis@gmail.com |
ab0875ad6d3c9469a5818f5710f7de6bd10097db | 5117fdfc5ce8399f72d12d519d1c1b5ea4a64c63 | /examples/hh/ilql_hh.py | 57500a06f128d6bc82a7bee9df5a855b5e5ca234 | [
"MIT"
] | permissive | neevaco/trlx | cd1ccd0ad308742eaa1dcaedc64a3103637ff839 | 46231059f5a3fa256a25ec2a16f36b24b2b34055 | refs/heads/main | 2023-05-25T01:33:48.486866 | 2023-03-13T22:04:24 | 2023-03-13T22:04:24 | 615,039,599 | 0 | 0 | null | 2023-03-16T20:36:57 | 2023-03-16T20:36:56 | null | UTF-8 | Python | false | false | 3,530 | py | import json
import os
import sys
from datasets import load_dataset
from ppo_hh import create_reward_fn
import trlx
from trlx.data.default_configs import (
ILQLConfig,
ModelConfig,
OptimizerConfig,
SchedulerConfig,
TokenizerConfig,
TrainConfig,
TRLConfig,
)
default_config = TRLConfig(
... | [
"noreply@github.com"
] | neevaco.noreply@github.com |
b7742363da58a3b4a69edc0d133ad46617c3deaf | e31bbc636eb495eed5843d1a4b7f66d3525eecc6 | /Examp/Python Advanced Exam - 27 June 2020/2.Snake.py | 9d6a0ffe5c0adb9f9aea2b696c8ca43593217b01 | [] | no_license | PullBack993/Python-Advanced | c6a24b68d2517589027d4af8dee80fe9f28490a2 | 3a9362b09555649eef797220dac1bba7a39df06e | refs/heads/main | 2023-06-12T08:34:16.379021 | 2021-07-08T14:08:03 | 2021-07-08T14:08:03 | 358,933,332 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,196 | py | FOOD = '*'
SNAKE = 'S'
BURROWS = 'B'
MOVE_SYMBOL = '.'
MAX_FOOD = 9
def get_input(size):
board = []
for _ in range(size):
board.append([el for el in input()])
return board
def find_snake(board, size):
for row_i in range(size):
for col_i in range(size):
if board[row_i][col... | [
"turgay.durhanov.ismailov@gmail.com"
] | turgay.durhanov.ismailov@gmail.com |
1712f8a239c3cea9372aa7f0697719b9add81465 | 97cbcd454be80f0b6f986b0a81e84570596a9368 | /tests/basics/Functions32.py | a30fc83b58bdb7db17b6699db653ac8fd8964539 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | keitheis/Nuitka | aff7bf348e12d772543018e6b464cbfa7eaf2d30 | 1e4f31e12cbd36ce2f6a785c61e0111639c258a9 | refs/heads/master | 2021-01-17T21:59:05.601349 | 2014-04-21T10:28:13 | 2014-04-21T10:28:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,183 | py | # Copyright 2014, Kay Hayen, mailto:kay.hayen@gmail.com
#
# Python tests originally created or extracted from other peoples work. The
# parts were too small to be protected.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the ... | [
"kay.hayen@gmail.com"
] | kay.hayen@gmail.com |
f6eb37893e2c8398620ed9ef42a8aeb7319b6a93 | 108fc2873b5c07e4ad9515adc16bc8e9fdf7d021 | /smorest_sfs/utils/imports.py | 5e66ce484a3a2a64d10150b3e01da6c0b90d5117 | [
"Apache-2.0"
] | permissive | ssfdust/yt-media | 4ac5eba6a25830268f42b951e8307bb57e7baeeb | 36c3d1977df5851d8df54846f0bc84be2b86e962 | refs/heads/master | 2021-08-08T09:40:31.241228 | 2020-05-11T03:11:20 | 2020-05-11T03:11:20 | 175,938,603 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,631 | py | # Copyright 2019 RedLotus <ssfdust@gmail.com>
# Author: RedLotus <ssfdust@gmail.com>
#
# 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
#
# Unles... | [
"ssfdust@gmail.com"
] | ssfdust@gmail.com |
169a505b73cec2a76c9acc2e96ffc6cdcd3aaeaa | bc0fc1d06ee2822b696494d3a73eeb6c1af0360a | /androidfs/acestream.engine/data/plugins/viasat_embed.py | 5f69a54cd37d0dae965f2594274dc2cc77b7545d | [] | no_license | elipatov/acestream.engine | cf41472b6435400022f19eb4b48c2a17a3afacbd | 65849f78a0dc7749d0478c387e69bb14865bdaf3 | refs/heads/main | 2023-02-24T22:28:00.045198 | 2021-01-22T18:04:12 | 2021-01-22T18:04:12 | 329,993,224 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 980 | py | #-plugin-sig:Tgg2N/mlOCMuMUWR77aIuGUWncB0O1Mc6rLUOmnvO3hbpruyNpgRfDiH5IScd0JNZvzRHw3chwFWMgPzQskdvfDq8u01ZyGbSY5+Z5jK/bO6xZGV4kQumyH4jv59aQiqEjtHk8u7n7878oi1qpqMY1OEDTn6gK7fNE//2XroR9PfGcNTwhpvfoh6pEB2Yzww5I+8wh35cqtcS/oeIB98bXt3X2XOUb88OF8Oepd63G1OM3Lixc/MdVI37N+Kg8BoyBenl3PSpZwB9w7QJV7rRYWsBpnPmeXjLdrHWjzSDfyCK9U5KW3... | [
"evgeni.lipatov@idt.net"
] | evgeni.lipatov@idt.net |
3cc3d36f75e036fa7a5e0def03e659cc73015e62 | 51363872687318ac54e815b51d16d44d214974a2 | /build/turtlebot_msgs/catkin_generated/pkg.develspace.context.pc.py | 278898f50424d4529ca17bcfc9c3b65ea13b5ba3 | [] | no_license | pirmou/catkin_ws | 2acee80a43f17841326d1b917931866d561648c3 | abaac27209016a944bd3520d84e4dc3aab1abf2e | refs/heads/main | 2023-02-17T04:44:03.927127 | 2021-01-10T17:40:02 | 2021-01-10T17:40:02 | 328,440,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 511 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/pierremoussa/catkin_ws/devel/include".split(';') if "/home/pierremoussa/catkin_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "std_msgs;sensor_msgs;std_srvs;message_runtime".replace(';'... | [
"pierre.moussa18@me.com"
] | pierre.moussa18@me.com |
96c92caa5ed1befcc1f92e68dcd7f0678b33848b | 28e997a25e62b9c76fd4d3fd1e87436dc54b3178 | /2_bioinformatics_stronghold/rosalind_RNAS.py | b9ef53081808f87d60e58a271a0f329028991977 | [] | no_license | kangli-bionic/Rosalind | 0bba97d86db51b91af480766155816ec9e1f05e6 | 6cae380f31498a991381c7c6f1d479d302615571 | refs/heads/master | 2021-01-02T09:13:49.665498 | 2016-08-16T20:54:48 | 2016-08-16T20:54:48 | 99,171,765 | 1 | 0 | null | 2017-08-03T00:07:24 | 2017-08-03T00:07:24 | null | UTF-8 | Python | false | false | 1,289 | py | #!/usr/bin/python
'''
Rosalind: Bioinformatics Stronghold
Problem: Wobble Bonding and RNA Secondary Structures
URL: http://rosalind.info/problems/rnas/
Given: An RNA string s (of length at most 200 bp).
Return: The total number of distinct valid matchings of basepair edges in the
bonding graph of s. Assume that wob... | [
"kapoozy@gmail.com"
] | kapoozy@gmail.com |
8329046888d401d5fffd22ffe9b07d4646213ac0 | 0567517ff7c0366b58e52d7fa96b651e97af5d82 | /apps/smartpipe/migrations/0014_project_geometry.py | 7afb86374c9d472435fcd7586edc5c61f5c73554 | [] | no_license | m6ttl/smartpipes | fdb9976b11d6c520953c240872d2574b1a69ec55 | 2d5846143dbf7b44c36491dd1787c36ebbe4fe0d | refs/heads/master | 2022-12-09T10:46:38.594820 | 2020-03-09T13:01:07 | 2020-03-09T13:01:07 | 246,028,233 | 0 | 0 | null | 2022-12-08T03:46:02 | 2020-03-09T12:20:32 | HTML | UTF-8 | Python | false | false | 490 | py | # Generated by Django 2.0.1 on 2020-02-16 15:47
import DjangoUeditor.models
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('smartpipe', '0013_pipedetail_tem'),
]
operations = [
migrations.AddField(
model_name='project'... | [
"steve_wei@163.net"
] | steve_wei@163.net |
69e0a610209790bf516dcdab0f40d9cfdbf81ce1 | de915073d42855cafad97adca348a46b2de92626 | /test_settings.py | 78b2b91a07ed1d32b6f0899527bb6cb81f060ef5 | [
"MIT"
] | permissive | koonalb/django-knockout-modeler | f4b1418594701d270e1a5e1a45a5dcdec9a88f73 | 29e5e939acba8fb3bd7fcad7726eb1115bd1e420 | refs/heads/master | 2021-01-17T21:43:28.496690 | 2015-11-10T23:45:15 | 2015-11-10T23:45:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
SECRET_KEY = "secret_key_for_testing"
INSTALLED_APPS = ['knockout_modeler']
| [
"rich@anomos.info"
] | rich@anomos.info |
55ccd49a7f8ec347c90757fd4cb841d531674772 | 05fda9758bb71133b85ce6a58ce9dbc8fdc18fc7 | /resources/eth/history.py | 9d047cedb23e4c491af577a0ccc572b8f5791404 | [
"MIT"
] | permissive | yanrising/bitez | 82e3572d689989e37f5d8d3ab06bd764b036e64f | c0d9b052cbc8eb1c9884c287e34705b0a2f73bb1 | refs/heads/master | 2023-01-04T14:12:18.651916 | 2019-10-17T14:31:25 | 2019-10-17T14:31:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # tx count
import requests
from config import INFURA_API_KEY, CRYPTO_NETWORK
# block param: loop 'latest', 'pending'
def eth_tx_count(address, block):
if CRYPTO_NETWORK == 'mainnet':
net = 'https://mainnet.infura.io/v3/'+INFURA_API_KEY
elif CRYPTO_NETWORK == 'testnet':
net = 'https://ropsten.in... | [
"merwanedr@gmail.com"
] | merwanedr@gmail.com |
dbfbc4a50c99a3dd737fc5753fcef35b7ebc2477 | 723ea3f47a45fe756c4a77809eb2a4d6b98bc733 | /crackfun/1. Two Sum.py | cadb1db2bf7fd90a71675399516afeef26c591c5 | [] | no_license | JoyiS/Leetcode | a625e7191bcb80d246328121669a37ac81e30343 | 5510ef424135783f6dc40d3f5e85c4c42677c211 | refs/heads/master | 2021-10-21T05:41:00.706086 | 2019-03-03T06:29:14 | 2019-03-03T06:29:14 | 110,296,869 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | '''
1/22/2018 Understand the hash function usage here
'''
class Solution:
# @return a tuple, (index1, index2)
# 8:42
def twoSum(self, nums, target):
"""
:type nums: List[int]
:type target: int
:rtype: List[int]
"""
d={}
for i, n in enumerate(nums):
... | [
"california.sjy@gmail.com"
] | california.sjy@gmail.com |
3c735398dd09e42e3d9e33e053474404254a5988 | 6f06a519bc5a89464d95702fa27fa663ad4eb8f8 | /stateChangeTest_Full.py | bf9ac9366ed460aba7182baba230030da5b92572 | [] | no_license | chrismaurer/chrism | 64e71397bfffcd76aa5a12cc1394fad2c8939d76 | b0a30d5cbe4602a32ad494e2550219d633edf2db | refs/heads/master | 2021-06-04T07:53:15.212812 | 2021-01-19T13:23:22 | 2021-01-19T13:23:22 | 112,128,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,032 | py | import time
import pyscreenshot
from pyrate.builder import Builder
from pyrate.ttapi.predicates import CallbackType
from pyrate.ttapi.manager import Manager
from pyrate.ttapi.order import TTAPIOrder
from ttapi import aenums, cppclient
from pyrate.exceptions import TimeoutError
from captain.controlled import con... | [
"chris.maurer@tradingtechnologies.com"
] | chris.maurer@tradingtechnologies.com |
7902f1f901a4002347a8a5287c8699239944a7d0 | 0b6966a75a4c62393a38a73df5a779228639c42c | /active_selection/softmax_entropy.py | 024feddbae9822212fb02b22c24cb73a610c2eaf | [] | no_license | Shuai-Xie/DEAL | 7cbec778bcc83b633a1c3319d9b00c8b0f98aa00 | 06ff3ba29196e276376a9cf8d868d54fd2db2680 | refs/heads/master | 2023-08-29T20:03:44.867280 | 2021-11-12T07:50:28 | 2021-11-12T07:50:28 | 300,126,893 | 25 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,612 | py | import torch
from datasets.base_dataset import BaseDataset
from datasets.transforms import get_transform
from tqdm import tqdm
import numpy as np
from torch.utils.data import DataLoader
from utils.misc import *
class SoftmaxEntropySelector:
def __init__(self, dataset, img_size):
self.dataset = dataset
... | [
"shuaixie@zju.edu.cn"
] | shuaixie@zju.edu.cn |
64f6d5d175541c818f8df3fab0c13c4a310d2b8c | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Con/Cam_Con/Cam_Con_20190119103655.py | 82dc55f54efa3014614d149f07da48a4e3fa3c34 | [] | 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 | 2,917 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
# Maya Header
import maya.cmds as cmds
import maya.mel as mel
import maya.OpenMayaUI as omui
import plugin.Qt as Qt
from Qt.QtCore import *
from Qt.QtGui import *
f... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
bf8e2477790da52a16f688d27eb6a02702cb161f | f8e8e365c9cf58b61d72655bc2340baeaed5baff | /Leetcode/Python Solutions/Graphs/Topological Sort/CourseSchedule.py | f05e3d1eba4cfe067b0698fe737dc72053b0f877 | [
"MIT"
] | permissive | Mostofa-Najmus-Sakib/Applied-Algorithm | 39a69f6b9ed113efe4a420d19cad79e0aa317637 | bc656fd655617407856e0ce45b68585fa81c5035 | refs/heads/master | 2023-08-31T19:54:34.242559 | 2021-11-05T03:43:35 | 2021-11-05T03:43:35 | 412,263,430 | 0 | 0 | MIT | 2021-09-30T23:45:29 | 2021-09-30T23:45:25 | null | UTF-8 | Python | false | false | 1,985 | py | """
LeetCode Problem: 207. Course Schedule
Link: https://leetcode.com/problems/course-schedule/
Language: Python
Written by: Mostofa Adib Shakib
Time Complexity: O(V+E)
Space Complexity: O(V)
"""
# Kahn's Topological Sort Algorithm
from collections import defaultdict
class Solution(object):
def __init__(self):
... | [
"adibshakib@gmail.com"
] | adibshakib@gmail.com |
ee0d4a993477b4bc71f38b3426fb8bd6b5200825 | edc1134436a79ca883a0d25f3c8dfffc4235c514 | /pyro/infer/reparam/projected_normal.py | 4a4f1a27789a4f797c3902a0494b284ab57b3005 | [
"Apache-2.0"
] | permissive | pyro-ppl/pyro | 2283d8ca528fc090c724a3a6e0f344e505ebbf77 | 0e82cad30f75b892a07e6c9a5f9e24f2cb5d0d81 | refs/heads/dev | 2023-08-18T00:35:28.014919 | 2023-08-06T21:01:36 | 2023-08-06T21:01:36 | 94,506,832 | 3,647 | 606 | Apache-2.0 | 2023-09-14T13:52:14 | 2017-06-16T05:03:47 | Python | UTF-8 | Python | false | false | 1,697 | py | # Copyright Contributors to the Pyro project.
# SPDX-License-Identifier: Apache-2.0
import torch
import pyro
import pyro.distributions as dist
from pyro.ops.tensor_utils import safe_normalize
from .reparam import Reparam
class ProjectedNormalReparam(Reparam):
"""
Reparametrizer for :class:`~pyro.distributi... | [
"noreply@github.com"
] | pyro-ppl.noreply@github.com |
321daaf3a06bfa4f6dc23b6ebd71a79346bc88c6 | 531c47c15b97cbcb263ec86821d7f258c81c0aaf | /sdk/datalake/azure-mgmt-datalake-store/azure/mgmt/datalake/store/models/create_trusted_id_provider_with_account_parameters_py3.py | 66fc5888e5af2ea2e35259a9e9c04b265632b181 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | YijunXieMS/azure-sdk-for-python | be364d3b88204fd3c7d223df23756386ff7a3361 | f779de8e53dbec033f98f976284e6d9491fd60b3 | refs/heads/master | 2021-07-15T18:06:28.748507 | 2020-09-04T15:48:52 | 2020-09-04T15:48:52 | 205,457,088 | 1 | 2 | MIT | 2020-06-16T16:38:15 | 2019-08-30T21:08:55 | Python | UTF-8 | Python | false | false | 1,472 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
2e8ab7828b6fafbd986642be92a72261fc8d5428 | 34578a08451dc124f02fbba92a219da3347059cd | /.history/tools/views_20190430183042.py | 79c4d1509e1b4cb84291f467d8bc49e00bd374b8 | [] | no_license | gwjczwy/CTF-Exercises | b35d938b30adbc56c1b6f45dc36cea1421c702fb | c2d5c47f5047b1601564453e270ce50aad7f56fc | refs/heads/master | 2020-05-25T23:51:26.190350 | 2019-05-22T13:18:59 | 2019-05-22T13:18:59 | 188,042,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,688 | py | from django.shortcuts import render
from django.views.decorators.csrf import csrf_exempt
from django.http import HttpResponse
from django.contrib.auth.decorators import login_required
from json import dumps
from .models import Url,Money
import time
#########################
#主页
@login_required
def index(requests):
... | [
"zwy053@163.com"
] | zwy053@163.com |
b80454a40c9ebcd6c05af124a3088166decdd9de | 9064fc0b780d3632163e3a73e9f73fdf8aa7f80e | /battle.py | 437281049435ea30d822f1403221dcdffae51323 | [] | no_license | poteto1212/myapp-flask- | c752751cb26898eaa419b410d7b02ae4a608712a | 3c6714dfad0ca59b92c5a2ab261f4dcc11e255b1 | refs/heads/master | 2023-03-15T02:14:11.041245 | 2021-03-28T07:51:34 | 2021-03-28T07:51:34 | 351,810,193 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 654 | py | from flask import Flask, request, render_template
app = Flask(__name__)
players = ["勇者", "戦士", "魔法使い", "忍者"]
@app.route("/")#テンプレートのgetメソッドに直接表示
def show():
message = "あらたなモンスターがあらわれた!"
return render_template("battle.html", message = message, players = players)
@app.route("/result", methods=["POST"... | [
"you@example.com"
] | you@example.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.