blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 112 | license_type stringclasses 2
values | repo_name stringlengths 5 115 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 777
values | visit_date timestamp[us]date 2015-08-06 10:31:46 2023-09-06 10:44:38 | revision_date timestamp[us]date 1970-01-01 02:38:32 2037-05-03 13:00:00 | committer_date timestamp[us]date 1970-01-01 02:38:32 2023-09-06 01:08:06 | github_id int64 4.92k 681M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 22
values | gha_event_created_at timestamp[us]date 2012-06-04 01:52:49 2023-09-14 21:59:50 ⌀ | gha_created_at timestamp[us]date 2008-05-22 07:58:19 2023-08-21 12:35:19 ⌀ | gha_language stringclasses 149
values | src_encoding stringclasses 26
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 3 10.2M | extension stringclasses 188
values | content stringlengths 3 10.2M | authors listlengths 1 1 | author_id stringlengths 1 132 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5fbaa86e3c0b65bb48f139ab3cd290fba6d4e8ac | 9c4e02ba5201794a4c5cbff548db1be7c87409c1 | /venv/lib/python3.9/site-packages/ipykernel/heartbeat.py | 77c90b97414fbbaf7f1b6a6251ae6c62316d1277 | [
"Apache-2.0",
"MIT"
] | permissive | ClassWizard/PodLockParser | 4faf4679d404158b3cf2b1ceb4faabca461b0008 | 84f6d3fced521849657d21ae4cb9681f5897b957 | refs/heads/master | 2022-12-23T20:39:48.096729 | 2022-02-08T09:49:01 | 2022-02-08T09:49:01 | 167,668,617 | 2 | 1 | MIT | 2022-12-14T10:01:41 | 2019-01-26T08:50:35 | Python | UTF-8 | Python | false | false | 4,358 | py | """The client and server for a basic ping-pong style heartbeat.
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2011 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as pa... | [
"chenlongwei@camera360.com"
] | chenlongwei@camera360.com |
75554fa157f449df1e86119d5eea42348fcba524 | 9d1cbb275e3a4f4e01bbd8d8bc210f61d719da74 | /welding_trace_beginning/ws.py | 925bd03c836260b30eea32fbbb1ba7538311c42f | [] | no_license | aa88kk/welding_seam | 824036efe6662923b27392fbfdd1957d1390aeeb | 578b69e301f1472f2eef68bfb0a166846af2cfbd | refs/heads/master | 2022-04-08T10:07:13.393516 | 2020-03-12T09:26:19 | 2020-03-12T09:26:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,046 | py | import numpy as np
import cv2
#TEST_IMAGE = ('ssmall.png', 'sbig.png', 'rsmall.png', 'rbig.png')
TEST_IMAGE = ('rsmall.png', )
def main():
print("=== Start the WS detecting ===")
print("=== Read test image ===")
display = []
display = np.array(display)
for file in TEST_IMAGE:
print('... | [
"handongfr@163.com"
] | handongfr@163.com |
99d939f5c7da99ac920c3a9147a928f8901ee20e | 1992552c98b34846e74dfd5c0362c90fa4299c2b | /web/service/github/api/v3/AuthenticationsCreator.py | 33763a9c27ed1e860b36aab32175150bc5a5978c | [
"CC0-1.0",
"MIT",
"Apache-2.0",
"Unlicense"
] | permissive | ytyaru/GitHub.Uploader.Issue.201706191032 | 31983e044ffcf9f49647c3c85a54bf200044218d | d8b56d40d6efe7ef5f7128b7cf13c564e65b9986 | refs/heads/master | 2021-01-21T22:34:57.242941 | 2017-09-02T00:15:58 | 2017-09-02T00:15:58 | 102,161,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,629 | py | #!python3
#encoding:utf-8
#from database.src.Database import Database
from web.service.github.api.v3.authentication.Authentication import Authentication
from web.service.github.api.v3.authentication.NonAuthentication import NonAuthentication
from web.service.github.api.v3.authentication.BasicAuthentication import Basic... | [
"ytyaru@outlook.jp"
] | ytyaru@outlook.jp |
e4a3926cbcff3690ba64e4c723ed42b8adfbd1f0 | cf28b08c7c47fe3fa8890fcd2a0429d83d9dbb3e | /samples/pyqt6-simplebrowser/simplebrowser.py | f75566285b724ee8211dae9e0161608f784f6499 | [
"Python-2.0"
] | permissive | marcelotduarte/cx_Freeze | bc948693f5b650bf2459c0093c3a98ca419a1df9 | 38438b2418af9cda5f982c74ca55dc235d08aaa1 | refs/heads/main | 2023-08-18T11:37:29.282372 | 2023-08-16T01:32:06 | 2023-08-16T01:32:06 | 79,693,503 | 628 | 121 | null | 2023-09-14T19:15:58 | 2017-01-22T04:25:52 | Python | UTF-8 | Python | false | false | 2,401 | py | """PyQt6 WebEngineWidgets Example"""
from __future__ import annotations
import sys
from PyQt6.QtCore import QUrl
from PyQt6.QtGui import QIcon
from PyQt6.QtWebEngineCore import QWebEnginePage
from PyQt6.QtWebEngineWidgets import QWebEngineView
from PyQt6.QtWidgets import (
QApplication,
QLineEdit,
QMainW... | [
"noreply@github.com"
] | marcelotduarte.noreply@github.com |
ff14eec1c3cc3d6951fd469db7a3784246202beb | 337815ff32ebbf6e8dd2606f69d66e8efda4cd03 | /epi_judge_python/interval_add.py | b227746eb812922fbc05db71ec087b3e489d60e6 | [] | no_license | federicociner/epi | b85eefbf5f5bad77e2e780ffbf4ac4f9ca0809a8 | 32f2a1056353bca55d0d5839be5e0b73809cb45d | refs/heads/master | 2020-12-19T09:22:43.430370 | 2020-02-04T02:34:53 | 2020-02-04T02:34:53 | 235,693,872 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,180 | py | import collections
import functools
from typing import List
from test_framework import generic_test
from test_framework.test_failure import PropertyName
from test_framework.test_utils import enable_executor_hook
Interval = collections.namedtuple("Interval", ("left", "right"))
def add_interval(
disjoint_interval... | [
"federico.ciner@gmail.com"
] | federico.ciner@gmail.com |
632157d9999c913090425ed1d7cf7b68d86667cd | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_disembarks.py | 212733d0d5cfef05fd3c542d819d98f51866c404 | [
"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 | 259 | py |
from xai.brain.wordbase.verbs._disembark import _DISEMBARK
#calss header
class _DISEMBARKS(_DISEMBARK, ):
def __init__(self,):
_DISEMBARK.__init__(self)
self.name = "DISEMBARKS"
self.specie = 'verbs'
self.basic = "disembark"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
0832db86754291e09a84d0189f68626ef6f2ba6c | 0d9490b7087a18b5283acb3735802800f2a2a1be | /BaeckJoon/No10872.py | 4ab3063018fc719409a93ea00a437e4ad6da2130 | [] | no_license | maiorem/Algorithm_python | 846ef7ef28103b19746799d57bb898711eec8c13 | 6985660bf5283bf25fc58f2b64825cd722f26e93 | refs/heads/master | 2023-01-14T10:03:12.478364 | 2020-11-15T05:29:06 | 2020-11-15T05:29:06 | 259,778,855 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | N=int(input())
def factorial(N) :
if N<=1:
return 1
else :
return N * factorial(N-1)
print(factorial(N))
| [
"maiorem00@gmail.com"
] | maiorem00@gmail.com |
3c8baa517450a15d2279163a7915f643dac2dfbf | 21238a26742309adb860a04174ea5360f729ad39 | /SourceCode/.history/Detector_20181224171219.py | 1df36f55d991eb21533a5db7d192596e46cfae05 | [] | no_license | Shehabalaa/Viola-Jones-Face-Detection | 5b5d0c3835e0de11658d35941fa3d19468452e93 | b6522b96394df8d67266b41a803bc30a93fc5c49 | refs/heads/master | 2020-04-23T03:08:56.976486 | 2019-06-23T10:39:25 | 2019-06-23T10:39:25 | 170,869,564 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,888 | py | from IntegralImage import toIntegralImage as toII
import cv2
import numpy as np
import random
from Cascade import Cascade
import itertools
from math import ceil
from functools import partial
from Utils import *
base_detector_width = 24.
def detect(image,Evaluator,w=80,offset_w=20,offset_h=20):
all_d... | [
"shehabalaa97@gmail.com"
] | shehabalaa97@gmail.com |
62148d238d841a57a2219f45de4128def699e2f6 | cfb41f392fac304095a80d08497727c621550c00 | /cleanup_examples.py | 483a592f0e03bb3c8e47154e1bfca5dd64e599a4 | [
"BSD-3-Clause"
] | permissive | clawpack/pyclaw | 5b7121b63609c2cf9af30e012c9318e3b5244f18 | 6323b7295b80f33285b958b1a2144f88f51be4b1 | refs/heads/master | 2023-04-16T23:48:31.519427 | 2023-03-21T06:08:21 | 2023-03-21T06:08:21 | 1,628,711 | 124 | 97 | BSD-3-Clause | 2023-09-12T12:22:30 | 2011-04-18T03:11:21 | Fortran | UTF-8 | Python | false | false | 925 | py | #!/usr/bin/env python
r"""
Cleans up by deleting object files, executable, and _output directory.
"""
import os,sys,glob
import shutil
if __name__ == "__main__":
examples_dir = os.path.abspath('./examples')
print "Will remove all _output, _plots, and build directories from ",examples_dir
ans = raw_input... | [
"dketch@gmail.com"
] | dketch@gmail.com |
cfb4090a1e8e1839f40d1bd11b9fb7c8723bf6ce | 507d997fc1a697b130e987bb3a6baa40fb853a14 | /joint_chat/accounts/models.py | d6589b13eca075db0f9a56a6b7998ee883755097 | [] | no_license | Arkajit-m18/django-chat-app-socket | 5b0d672ed5dceadf33e27d63afe319e08e5e7414 | 7839b9ff8a963c00eb806abc7629f064ab3ce221 | refs/heads/master | 2020-05-05T11:52:27.148017 | 2019-04-07T18:36:21 | 2019-04-07T18:36:21 | 180,006,973 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | from django.db import models
from django.contrib.auth.models import User, PermissionsMixin
# Create your models here.
class User(User, PermissionsMixin):
def __str__(self):
return self.username
| [
"arkajit.18@gmail.com"
] | arkajit.18@gmail.com |
6a6df5c88959549ecf5c129c23b02de9675a2174 | 261eba086816dbb3db4836c9b1e5869ccf0f8bae | /7분반_기말시험-1/q2.py | 5d951938867c583059c4e7fe6f6539162cfe2413 | [] | no_license | budaLi/jianzi | e316bdfb25587d14d38f1bea98772bce5ac69198 | bca098de0f06ae1c78afc3203dfb0eea6a412dee | refs/heads/master | 2023-05-02T19:33:25.752799 | 2021-05-25T08:03:24 | 2021-05-25T08:03:24 | 271,513,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | # Q2
## variables #### DON'T CHANGE!!
sayHello = "Hello, Kim Chung Ang"
name = None
################################
## your code here!
name = sayHello.split(",")[1]
##
# print output
print(name)
| [
"1364826576@qq.com"
] | 1364826576@qq.com |
ddc634ba7d33af921d9927d4351459cebba7cad1 | a67cefed8299ad8fbc70ee96dc7bdbdc9aa88c4a | /crawler_py/exceptions.py | 5a81ad738b76c0db8e11ac46469b7d951cb3e3dd | [] | no_license | m00p1ng/crawler-py | d3138fc4fb23fa8c86552e1ac763f716653db95b | 5e7031bff554d7f561071259e115595ae06b4d5c | refs/heads/master | 2021-01-22T20:40:04.633608 | 2017-10-04T12:49:02 | 2017-10-04T12:49:02 | 100,775,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | class Error(Exception):
pass
class PageNotFound(Error):
pass
class ContentTypeNotFound(Error):
pass
class ContentTypeNotAccepted(Error):
def __init__(self, content_type):
self.content_type = content_type
class RedirectOverSeedRoot(Error):
def __init__(self, redir_url):
self.r... | [
"mongkonchai4412@gmail.com"
] | mongkonchai4412@gmail.com |
2a64ea9411862f0b5071ca9868afca86b41ec0c4 | 7f5b77314766862784b51c4f2dc45e7b33cb4f44 | /tests/devices/_internal/darwin/test_diskutil.py | ff254c71cb071ae960beb2a4f03df08798dd703e | [
"Apache-2.0"
] | permissive | hugueskamba/mbed-tools | daddc207abc6b6eba133ab03b52a449fbb680d7f | 05e3c5ade94f504240edff6a8e3d01a72c0fd7e6 | refs/heads/master | 2023-01-07T18:33:05.660214 | 2020-08-13T07:14:30 | 2020-08-14T14:42:50 | 288,132,638 | 0 | 0 | Apache-2.0 | 2020-08-17T09:04:07 | 2020-08-17T09:04:07 | null | UTF-8 | Python | false | false | 4,017 | py | #
# Copyright (C) 2020 Arm Mbed. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
import plistlib
from unittest import TestCase, mock
from mbed_tools.devices._internal.darwin.diskutil import (
get_all_external_disks_data,
get_all_external_volumes_data,
get_mount_point,
)
class TestGetAllExter... | [
"github@patater.com"
] | github@patater.com |
621e7ccec7c7c0487485944af55da6cd13e9e2a6 | ff6248be9573caec94bea0fa2b1e4b6bf0aa682b | /StudentProblem/10.21.9.70/6/1569572236.py | 9ac03eefe1cc93c0ba438556fd3140e3bf8fdb6e | [] | no_license | LennartElbe/codeEvo | 0e41b1a7705204e934ef71a5a28c047366c10f71 | e89b329bc9edd37d5d9986f07ca8a63d50686882 | refs/heads/master | 2020-12-21T17:28:25.150352 | 2020-03-26T10:22:35 | 2020-03-26T10:22:35 | 236,498,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 655 | py | import functools
import typing
import string
import random
import pytest
# Lösung Teil 1.
def list_filter(x, xs):
"""
"""
result = []
for element in xs:
if element <= x:
result.append(element)
return result
######################################################################
#... | [
"lenni.elbe@gmail.com"
] | lenni.elbe@gmail.com |
52b71cd4ff5e9c54aa85d4a66ee064afe69f23c2 | dbef8db7ba000275a2f916ec154632d6cc6dfdfb | /rl_coach/tests/memories/test_single_episode_buffer.py | c2f12ab36f40ab55ecc24db8f36294eb06cfaa66 | [
"Apache-2.0"
] | permissive | JackieTseng/coach | dcff80387bbcf64dbf3f98ff4487fa4dd634d7f1 | e19669dc672b643ccef8dd12a2d0e6f0dbcb574d | refs/heads/master | 2021-09-23T18:06:21.212473 | 2018-09-26T09:13:23 | 2018-09-26T09:13:23 | 109,232,901 | 1 | 0 | Apache-2.0 | 2018-09-26T09:13:24 | 2017-11-02T07:40:09 | Python | UTF-8 | Python | false | false | 3,029 | py | # nasty hack to deal with issue #46
import os
import sys
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
import pytest
import numpy as np
from rl_coach.core_types import Transition
from rl_coach.memories.episodic.single_episode_buffer import SingleEpisodeBuffer
@pytest.fixture()
def buf... | [
"gal.novik@intel.com"
] | gal.novik@intel.com |
5fedb483af9348d71d9a63580a258775a887eb20 | 376b2a1d39b2d1a72f5d078121882ad5176c6bf3 | /NSGAII-NN/draw.py | ce758e882c12647071b3fa1e87228a6202ee9584 | [
"MIT"
] | permissive | wangzb-001/nnga_jxf | bf44fe3837ce1744c82ea61946cc1ad34a95c1a3 | d7a15a5621b92d00fc3820dc5234c89f71c64c4f | refs/heads/main | 2023-04-30T12:54:56.994687 | 2021-05-13T06:28:26 | 2021-05-13T06:28:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | import numpy as np
import os
import matplotlib.pyplot as plt
from src.tools import write_front
def read_data(path):
fronts = []
with open(path, mode='r') as rf:
_ = rf.readline()
for line in rf.readlines():
p = line.strip().split('\t')
fronts.append([float(p[0]), float(... | [
"425776024@qq.com"
] | 425776024@qq.com |
6f80ff4687ab731d8babd879f5f47d2a6735702f | 53d63ae0f922b2a5016ca942fbb8fec5041342f5 | /codes/data/single_image_dataset.py | 4048f1977201c55812ef6b94c7f703de9eaa1ade | [
"Apache-2.0"
] | permissive | WN1695173791/DL-Art-School | 4a517f7d33f22e27bc0b4c9f3c7a1b8f61e1413f | 928e7026c2d884000b6e2981293efed062ed2a1f | refs/heads/master | 2023-08-21T04:59:28.632364 | 2021-10-29T04:34:12 | 2021-10-29T04:34:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,372 | py | import random
from bisect import bisect_left
import numpy as np
import torch
from torch.utils import data
from data.base_unsupervised_image_dataset import BaseUnsupervisedImageDataset
# Builds a dataset composed of a set of folders. Each folder represents a single high resolution image that has been
# chunked into pa... | [
"jbetker@gmail.com"
] | jbetker@gmail.com |
d094ac2033d09d58079fcc4c922c41750146b599 | 00c6ded41b84008489a126a36657a8dc773626a5 | /.history/Sizing_Method/ConstrainsAnalysis/ConstrainsAnalysisPD_20210712183438.py | 714c9672885e7cbdf1eb93a65aad3eecb380d5d5 | [] | no_license | 12libao/DEA | 85f5f4274edf72c7f030a356bae9c499e3afc2ed | 1c6f8109bbc18c4451a50eacad9b4dedd29682bd | refs/heads/master | 2023-06-17T02:10:40.184423 | 2021-07-16T19:05:18 | 2021-07-16T19:05:18 | 346,111,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,844 | py | # author: Bao Li #
# Georgia Institute of Technology #
import sys
import os
sys.path.insert(0, os.getcwd())
import numpy as np
import matplotlib.pylab as plt
import Sizing_Method.Other.US_Standard_Atmosphere_1976 as atm
import Sizing_Method.Aerodynamics.ThrustLapse as thrust_lapse
import Sizing_Method.Aer... | [
"libao@gatech.edu"
] | libao@gatech.edu |
425c20bbc88af9303d2eb8b239d0069dedec50ad | dfec5ccf3519dcecb912295db83da57caad09bff | /Experiment/LoadHistoryData/update_JQ_Money_Flow.py | 374b468c69780b1f922b0a1965b6ca24b6ad04d4 | [] | no_license | KadenLi/MoDeng | 3f9026ecc96c02e79996158a295829e7a27bc05b | c7ab95f379b9b73ed86a907cff74165227cf4507 | refs/heads/master | 2020-09-16T19:51:41.442724 | 2019-10-26T01:02:21 | 2019-10-26T01:02:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | # encoding=utf-8
"""
数据库名字:stk_JQ_money_flow
mysql 链接句柄 db_JQ_money_flow
"""
from Config.GlobalSetting import localDBInfo
from JQData_Test.auth_info import *
from SDK.DBOpt import genDbConn, is_table_exist
import pandas as pd
from SDK.MyTimeOPT import minus_date_str, get_current_date_str, add_date_str
""" --------... | [
"1210055099@qq.com"
] | 1210055099@qq.com |
07a3ef638c4144b27fe6337e541438534ab0ca94 | 2c4b313baf9014911ad699cc6ca5a8ffcc4b0c58 | /study_tf_data/dataset_train_multi_cycle.py | 50d2255fcd47a16374c40ab5f217c71a93f38c68 | [] | no_license | dmxj/my_study | ad3bdc438d0eaa2125a6936fd071e32b14a1b3ee | cb6a90a86629f5b692c495db98da5c255ee8fe88 | refs/heads/master | 2020-04-13T03:56:37.410864 | 2019-01-15T03:41:04 | 2019-01-15T03:41:04 | 162,946,467 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | # -*- coding: utf-8 -* -
'''
训练工作流程。处理多个周期。
'''
import tensorflow as tf
# 处理多个周期
dataset = tf.data.Dataset.range(5)
dataset = dataset.repeat(10) # 将数据重复10个周期,如果repeat不填参数,将无限次地重复输入。
dataset = dataset.batch(20) # 将数据按照batch size=20进行分割
'''
使用dataset.repeat()重复数据,无法获取一个周期结束的信号,如果想在每个周期结束时收到信号,可以使用下面的写法:
'''
data... | [
"rensike@baidu.com"
] | rensike@baidu.com |
b823b3cec54ecc82d9e977afcc79b7f75e9f3f36 | 3a1ea6d22733096f2a0745d9d79a40ef68f27a3a | /StonksML/autots_read_results_from_file.py | 79969b99e54440822f0cc182863def3d49906926 | [] | no_license | foorenxiang/stonks | 9a055989dcad92cb9d457b1ed7901eb6386c4caa | 6560f198db4d35c7ff3f8ebe488a46c0ce69cb1b | refs/heads/main | 2023-05-31T15:31:19.108410 | 2021-05-02T06:08:14 | 2021-05-02T06:08:14 | 342,834,449 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,191 | py | from joblib import load
import os
from pathlib import Path
import logging
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
class AutoTSData:
FORECASTS_OPEN = "*forecasts_open.joblib"
MODEL_RESULTS_OPEN = "*model_results_open.joblib"
PREDICTION_RESULTS_OPEN = "*prediction_open.joblib"
... | [
"foorenxiang@gmail.com"
] | foorenxiang@gmail.com |
1a35fc3ab29db1109bd2f8b296cf4deeba8cd589 | 0d61f90e3a7877e91d72fed71b0895c7070dc046 | /final_project/.history/project/account_app/views_20210104105856.py | a10974d9c6e32ce58b9cc4f127ad0a5d137ae2cb | [] | no_license | lienusrob/final_project | 44d7d90dc0b7efc0cf55501549a5af0110d09b3b | 4164769626813f044ec2af3e7842514b5699ef77 | refs/heads/master | 2023-02-10T16:36:33.439215 | 2021-01-05T09:34:01 | 2021-01-05T09:34:01 | 325,002,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,345 | py |
# Create your views here.
from django.shortcuts import redirect, render
from django.views.generic import CreateView
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth import login, authenticate
from django.urls import reverse_lazy
from django.views.generic.base import TemplateView, View
fr... | [
"lienus.rob@hotmail.de"
] | lienus.rob@hotmail.de |
1c6253bdfef46f13d4ccf7045509677025fe4d77 | 3f7535a3a836a52e58dad0663314e8bb9f2fd7ed | /projects/admin.py | b7c9a9bd6bd5781cbf61b6dac9b6e0a9e76b20a1 | [] | no_license | tohfaakib/portfolio | 51c2e8209ff2e03078ce24e43788dd76a7c0578d | cead4007b21852ea233fb69901ae9538aa7fdd8a | refs/heads/master | 2022-12-11T02:42:34.549204 | 2019-10-03T06:38:42 | 2019-10-03T06:38:42 | 209,237,637 | 2 | 1 | null | 2022-04-22T22:22:38 | 2019-09-18T06:45:52 | Python | UTF-8 | Python | false | false | 345 | py | from django.contrib import admin
from .models import Project, Project_Category
class ProjectAdmin(admin.ModelAdmin):
fields = ('categories', 'title', 'description', 'technology', 'image', 'video', 'url')
list_display = ('title', 'technology', 'url')
admin.site.register(Project, ProjectAdmin)
admin.site.reg... | [
"tohfaakib@my.smccd.edu"
] | tohfaakib@my.smccd.edu |
adb27f561d7f53c77de48ce3f8b9979aafd38627 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_360/ch6_2020_03_03_12_27_23_388353.py | b244ebce281f5323ad0f377a28069a9c7da540cb | [] | 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 | 75 | py | def celsius_para_fahrenheit(c,f):
temp= (9*c)/(5*f-160)
return temp | [
"you@example.com"
] | you@example.com |
a1c99aceface9250bc6d6f92c0e7ebdb740efcbd | 1fc9a12c86be4e440f4f0d95c8b871c79df07545 | /Machine Learning/linear_regression/dataset_describe.py | 56c39c703cf51f4bf0afcd960bd48c2a52a1cab3 | [] | no_license | Rohit-Gupta-Web3/Articles | a56e7f1b36d6d5efd846eec2e1a4036716ac16eb | 0f584916e065059d4dd1e95e7de874a7830fdff4 | refs/heads/master | 2023-05-14T02:50:17.817951 | 2020-07-26T06:44:10 | 2020-07-26T06:44:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import pandas as pd
df = pd.read_csv("kc_house_data.csv")
df.describe()
| [
"rohit.gupta@iic.ac.in"
] | rohit.gupta@iic.ac.in |
a543bb1c87826ac90af85796960493cf5d3cc378 | 783b23c35662eaaad174f71ee6a90999bdd59ede | /src/feature/i_aligner.py | 7ba01d634f79268fdf87618a8bd2bf17fab96a68 | [] | no_license | evg-cv/TopicModel | e1bb6a2795f791f1c19a22f04f82010755cbf8e3 | f7453dfdf6cd110534e8ab5301a858dff01fa8c8 | refs/heads/master | 2023-02-07T14:25:44.832926 | 2020-12-21T21:34:53 | 2020-12-21T21:34:53 | 323,452,448 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | import math
from operator import add
from sklearn.metrics.pairwise import cosine_similarity
from src.feature.extractor import FeatureExtractor
from src.preprocess.tokenizer import TextPreprocessor
class TitleAligner:
def __init__(self):
self.feature_extractor = FeatureExtractor()
self.text_proces... | [
"evgenijkolotov333@gmail.com"
] | evgenijkolotov333@gmail.com |
aac2c33d6dc44179bc82b18a688e0269505c8693 | 464b867648ffa7afb444d9754cf4d1ffbf25d2bf | /Learn_Python/Python_Training/Data_Science_Batch-1/15_Apr_2018/TestFiles_reference/test4.py | 911acc94401919b64b7397e3e295dc35317de748 | [] | no_license | pks3kor/For_GitHub | b619fd7f19baa96d7232a0d35ce48c1355360547 | bafb2c15ff81fd2f3f90a57ac7b3467c86ac6a2e | refs/heads/master | 2021-01-25T09:20:52.146374 | 2018-06-10T14:44:04 | 2018-06-10T14:44:04 | 93,822,114 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | import re
line = "this is test $$line @@";
dig = "ABCDEF123456GHIJKL"
t1 = "111 111 111 111 AAA BBB CCC "
#~ m = re.search(r"[\w\s]*(\W)*", line)
#~ m = re.search(r"(A)", dig)
#~ m = re.search(r"(111 )\1\1\1", t1)
m = re.search(r"(111 )*(\D*)", t1)
if m:
print m.group()
else:
print "Nothing found!!"
| [
"pks3kor@gmail.com"
] | pks3kor@gmail.com |
1659a10b16b0dafa308c1dc113c9ee5593e36d7b | f4f181f2c970a163801b4202fc8d6c92a4e8113d | /google-cloud-sdk/lib/googlecloudsdk/command_lib/app/exceptions.py | 24f26d65c43183c61c2b6824e669079eec347a79 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"MIT"
] | permissive | Sorsly/subtle | 7732a6cb910f5e2f4eed1ac0d3b5979001582340 | 718e79a3e04f1f57f39b6ebe90dec9e028e88d40 | refs/heads/master | 2021-05-24T01:21:39.218495 | 2017-10-28T01:33:58 | 2017-10-28T01:33:58 | 83,103,372 | 0 | 1 | MIT | 2020-07-25T11:21:05 | 2017-02-25T03:33:07 | Python | UTF-8 | Python | false | false | 3,659 | py | # Copyright 2014 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"han300@purdue.edu"
] | han300@purdue.edu |
fe0cc6a9c337f66cf46620bf19690985e6cc8e77 | 1885e952aa4a89f8b417b4c2e70b91bf1df887ff | /ABC142/A.py | ee6304467e5deeaaaf7f444ef7a3e40e396a55fb | [] | no_license | takumiw/AtCoder | 01ed45b4d537a42e1120b1769fe4eff86a8e4406 | 23b9c89f07db8dd5b5345d7b40a4bae6762b2119 | refs/heads/master | 2021-07-10T12:01:32.401438 | 2020-06-27T14:07:17 | 2020-06-27T14:07:17 | 158,206,535 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 35 | py | N = int(input())
print((N-N//2)/N) | [
"w.tak.1229@gmail.com"
] | w.tak.1229@gmail.com |
49e4311a474388ef9492e480785b97f9d393cca0 | 8fd01ad7c0d8b80e612dfc4e7907a295eb28cb72 | /opencv/4-高斯模糊.py | 4b3b58fd4ece628588202b6a3b5d13eb7a7a903d | [] | no_license | xw-997/ML-PYTHON3-PROJECTS | 7082dfb57e90e3423bc500fb467d9e0c7264bb65 | cc988cbd136ea04b26c946b08c9c3639fdb6558a | refs/heads/master | 2022-05-01T20:00:41.325364 | 2018-08-20T02:44:13 | 2018-08-20T02:44:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,995 | py | '''
Python3与OpenCV3.3 图像处理(九)--高斯模糊
https://blog.csdn.net/gangzhucoll/article/details/78682492
2017年12月01日 00:13:04
阅读数:618
一、什么是高斯模糊
把要模糊的像素色值统计,用数学上加权平均的计算方法(高斯函数)得到色值,对范围、半径等进行模糊
二、高斯模糊的应用场景
一些美颜软件、美颜相机上的磨皮和毛玻璃特效基本上都是用的高斯模糊,并且大部分图像处理软件中都有高斯模糊的操作,除此之外,高斯模糊还具有减少图像层次和深度的功能
三、示例
'''
import cv2 as cv
import numpy ... | [
"1044502604@qq.com"
] | 1044502604@qq.com |
e413f01baa9b807f4a434a426ca0fbc225a3712c | f83ef53177180ebfeb5a3e230aa29794f52ce1fc | /opencv/opencv-3.4.2/samples/python/tutorial_code/imgProc/opening_closing_hats/morphology_2.py | 5dfdece1b6ad42ef26a585d9871fdf87613a5fe5 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | msrLi/portingSources | fe7528b3fd08eed4a1b41383c88ee5c09c2294ef | 57d561730ab27804a3172b33807f2bffbc9e52ae | refs/heads/master | 2021-07-08T01:22:29.604203 | 2019-07-10T13:07:06 | 2019-07-10T13:07:06 | 196,183,165 | 2 | 1 | Apache-2.0 | 2020-10-13T14:30:53 | 2019-07-10T10:16:46 | null | UTF-8 | Python | false | false | 1,986 | py | from __future__ import print_function
import cv2 as cv
import numpy as np
import argparse
morph_size = 0
max_operator = 4
max_elem = 2
max_kernel_size = 21
title_trackbar_operator_type = 'Operator:\n 0: Opening - 1: Closing \n 2: Gradient - 3: Top Hat \n 4: Black Hat'
title_trackbar_element_type = 'Element:\n 0: Rect... | [
"lihuibin705@163.com"
] | lihuibin705@163.com |
4ac711578e99bf29e7cd256bdb4d15a6d0b63f3e | f0b549be6b291d98c20efc8a7b6322ae556f0068 | /coding_test/programmers/stack_queue/develop_function/solution.py | 99300ec40bd8922e66abb66bd7ad7269c6fddbbf | [] | no_license | ehdgua01/Algorithms | 3607871d35521172e5f94c5dccb3b4e9e008fe61 | 107173ddf91f3588f10adbe294b64d680675a9ee | refs/heads/master | 2022-03-16T10:47:34.986441 | 2022-03-03T14:59:19 | 2022-03-03T15:28:44 | 249,157,085 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | """
프로그래머스 알고리즘 문제
https://programmers.co.kr/learn/courses/30/lessons/42586
"""
from collections import defaultdict
def solution(progresses, speeds):
scheduler = defaultdict(int)
last_deploy = 0
for p, s in zip(progresses, speeds):
q, r = divmod(100 - p, s)
when_deploy = q if r == 0 else... | [
"ehdgua01@naver.com"
] | ehdgua01@naver.com |
4c7f9b4cfb35df2a56522104ea08ef1271890682 | 4664328482163fd927603d66f47209b28471cf0f | /venv/lib/python3.7/site-packages/datalad/downloaders/__init__.py | bc93895fe161c0769a0ec27520f6a3ff1ea10a62 | [
"MIT"
] | permissive | emmetaobrien/dats-validator | 08706ddab795d272391b3611cd3ba0de8c4a91a1 | fb25f97a32119c2bce4eb50dc080a93d5ee77141 | refs/heads/master | 2020-12-19T05:03:17.179117 | 2020-01-22T17:28:38 | 2020-01-22T17:28:38 | 235,626,049 | 0 | 0 | MIT | 2020-01-22T17:24:56 | 2020-01-22T17:24:56 | null | UTF-8 | Python | false | false | 744 | py | # emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*-
# ex: set sts=4 ts=4 sw=4 noet:
# ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ##
#
# See COPYING file distributed along with the datalad package for the
# copyright and license terms.
#
# ## ### ##... | [
"giulia.ippoliti@mail.mcgill.ca"
] | giulia.ippoliti@mail.mcgill.ca |
c88673e6396419c0292e8be13793bc7ef5c639e4 | 9fbbfb3dd1990be27acfada1a91af980f474c8f1 | /Chapter 02/list_basic.py | 433a929c75f4bc5a1808be0f83881169ab9e319d | [
"MIT"
] | permissive | bpbpublications/Python-Quick-Interview-Guide | 61a48446f910144a050a5bb1515ad48567dc9481 | ab4ff3e670b116a4db6b9e1f0ccba8424640704d | refs/heads/main | 2023-04-08T12:18:14.605193 | 2021-04-13T09:18:30 | 2021-04-13T09:18:30 | 350,315,060 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
def display(root):
while (root != None) :
print(root.val, end = " ")
root = root.next
print('\n')
n1=ListNode(1)
n2=ListNode(3)
n3=ListNode(5)
n1.next=n2
... | [
"41231825+bpbpublications@users.noreply.github.com"
] | 41231825+bpbpublications@users.noreply.github.com |
4139ae852590f77ee87aa75eaf5f14bc963498c8 | f4713830c8519daca9d75ec692a6937ee03c74d4 | /Problems/Algorithms/589. N-Ary Tree Preorder Traversal/n_ary_preorder.py | d2cf4491468e2bc121c2f3c189783df625e115f0 | [
"MIT"
] | permissive | xuedong/leet-code | a0dd38cb884292de9d947718bb00160eff2b0f00 | 285d49cd7061ec43368d63b7c7c56763be520570 | refs/heads/master | 2023-09-03T02:38:55.932182 | 2023-09-02T18:35:42 | 2023-09-02T18:35:42 | 189,745,542 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 452 | py | """
# Definition for a Node.
class Node:
def __init__(self, val=None, children=None):
self.val = val
self.children = children
"""
class Solution:
def preorder(self, root: 'Node') -> List[int]:
if root is None:
return []
if root.children is None:
return [... | [
"shang.xuedong@yahoo.fr"
] | shang.xuedong@yahoo.fr |
b4929b2e61658cafa9c4fb0b146f239f6276d5b6 | fad2c9090821567a76d216f7bbc2d99ce64679bb | /16day/02-递归函数.py | c61b2a54e0f33348ef983aa37e85fefadc136e28 | [] | no_license | Suijng/1807 | d193e6169380fb1b883562e88bf5863706ec917a | fad5a2157ff3c4aa795244b3b125ef3cd174cdd4 | refs/heads/master | 2020-03-22T11:14:03.579543 | 2018-09-12T09:28:50 | 2018-09-12T09:28:50 | 139,957,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | def text(a):
if a==1:
return a
else:
return a*text(a-1)
b=text(5)
print(b)
def text1(a):
if a==100:
return a
else:
return a+text1(a+1)
b=text1(1)
print(b)
def text2(a):
if a==100:
return a
else:
return a+text2(a+2)
b=text2(2)
print(b)
def text3(a):
if a==99:
return a
else:
return a+text3(a... | [
"1627765913@qq.com"
] | 1627765913@qq.com |
ad057d513d3b6e9420425843e115aff34e0389c9 | 1818aaf61380ed516097cb40ab378d36e3c1a06a | /tests/unit/validate/test_dict_unknown.py | f47dd97f960eb01b3a35e667afbe3604afaeea3c | [
"Apache-2.0"
] | permissive | JackBurdick/crummycm | a4504ba3efd42e4d93c62120ad4fece89c6b3ae2 | ffa9dad9b5c4c061d3767d700e90d5e34f92eac8 | refs/heads/main | 2023-01-18T20:07:24.102504 | 2020-11-25T00:56:57 | 2020-11-25T00:56:57 | 304,761,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,452 | py | import pytest
from crummycm.validation.validation import validate
from example_templates.component.unknown.a import (
A_inner_unknown,
A_inner_unknown_multi,
A_outer_unknown,
A_inner_unknown_required_false,
A_outer_unknown_req_false,
double_inner_unknown,
double_inner_unknown_multi,
dou... | [
"jackbburdick@gmail.com"
] | jackbburdick@gmail.com |
c59bbcca7ea41e25cfe155b7da69fc08c0a269a6 | 6d7678e3d79c97ddea2e2d65f2c2ef03b17f88f6 | /venv/lib/python3.6/site-packages/pysnmp/hlapi/auth.py | 2c729b224a79d059a53461d41dc897ab87407824 | [
"MIT"
] | permissive | PitCoder/NetworkMonitor | b47d481323f26f89be120c27f614f2a17dc9c483 | 36420ae48d2b04d2cc3f13d60d82f179ae7454f3 | refs/heads/master | 2020-04-25T11:48:08.718862 | 2019-03-19T06:19:40 | 2019-03-19T06:19:40 | 172,757,390 | 2 | 0 | MIT | 2019-03-15T06:07:27 | 2019-02-26T17:26:06 | Python | UTF-8 | Python | false | false | 14,607 | py | #
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysnmp/license.html
#
from pysnmp.entity import config
from pysnmp import error
from pyasn1.compat.octets import null
__all__ = ['CommunityData', 'UsmUserData',
'usm3DESEDEP... | [
"overlord.lae@gmail.com"
] | overlord.lae@gmail.com |
dacc1ab1cb4589959ca25568591bc4b36baacb05 | 50c2ba0e76bfa27fe17c54f79714bfcd808d3def | /storops/vnx/resource/fs_snap.py | 818341474b3df64c0eaccd8acfa25d9d5181b85b | [
"Apache-2.0"
] | permissive | optionalg/storops | 8c2e2b7cd145f34fe099c385c127412845a9cacb | e6fba239e15ce9ff7220a8bf3156aeff774040d7 | refs/heads/master | 2021-01-24T21:48:24.122858 | 2016-03-11T03:48:02 | 2016-03-11T05:26:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,647 | py | # coding=utf-8
# Copyright (c) 2015 EMC Corporation.
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE... | [
"cedric.zhuang@emc.com"
] | cedric.zhuang@emc.com |
12572aefc76eb1dedfd38c56dd91bacbdb0033fe | 32ad4bb6631e3155eb43f22c5a0a94c67343bd9e | /FaceRecognition/Detect/.history/import_20200223020052.py | 28178c7a009acab900d309a9f14914013967858a | [] | no_license | apoorvanand/facepay | cab5eacf29ee5ea178c3e42d5c42b3726e71f5fc | c6444f161eadfcc0bda3d75e3ec1e5f177ddff49 | refs/heads/master | 2023-03-05T01:01:27.222309 | 2020-02-23T02:18:45 | 2020-02-23T02:18:45 | 242,442,579 | 0 | 0 | null | 2023-03-03T13:26:33 | 2020-02-23T02:18:13 | Python | UTF-8 | Python | false | false | 720 | py | import boto3
s3 = boto3.resource('s3')
# Get list of objects for indexing
images=[('image.png','Harish Kumar'),
('image_1.png','Ram Kahnanna'),
('image_2.png','Hema K'),
('image_7.png','Simaran Kaur'),
('image_3.png','Jon Doe'),
('image_4.png','Niels Bohr'),
('image_5.png','xyz demo')... | [
"anandapoorw@gmail.com"
] | anandapoorw@gmail.com |
f71d3060d0225083557dd435b138b8f789b30018 | 990a8f72428655d22775ee9dc2c52b7d6de98e4d | /stubs/switchyard/lib/packet/udp.py | 25a5048bb7868708bce529cb651a9378b685d9eb | [] | no_license | saulshanabrook/cosc465-iprouter | a2c55906d2ef16e101f9eab7459a3a9cc49de1a0 | a8b08e4929ca13fe34f33c7a433f6cf9670ddf3d | refs/heads/master | 2021-01-18T10:32:59.159476 | 2015-04-15T22:21:58 | 2015-04-15T22:21:58 | 31,486,286 | 0 | 1 | null | 2015-03-01T04:05:49 | 2015-03-01T04:05:49 | null | UTF-8 | Python | false | false | 713 | py | # Stubs for switchyard.lib.packet.udp (Python 3.4)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Undefined, Any
from switchyard.lib.packet.packet import PacketHeaderBase
class UDP(PacketHeaderBase):
srcport = Undefined(Any)
def __init__(self): pass
def si... | [
"s.shanabrook@gmail.com"
] | s.shanabrook@gmail.com |
cfe4eb5ad9409cdba4fe177bd7db8cddef025b5e | b30dd16934ebc0fc53098f28ecf418d206330166 | /preprocess/fingerprint_enhance.py | a6f0316e0fceb1008b2cac9472a2d8aa44b55c94 | [] | no_license | sunary/image-process | 75689558979a75091d5d6d94aa4d8f24d25caa0f | 3a81d08a23650af8a1a259ceb2858d31b119085e | refs/heads/master | 2021-01-21T13:14:48.048293 | 2016-05-25T04:37:03 | 2016-05-25T04:37:03 | 43,935,274 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,065 | py | __author__ = 'sunary'
import math
import numpy as np
class FingerprintEnhance():
def __init__(self):
pass
def gabor_filter(self, pix):
print("fingerprint enhance calculator")
block_size = (9, 9)
dx = [[0] * len(pix[0]) for _ in range(len(pix))]
dy = [[0] * len(pix[... | [
"v2nhat@gmail.com"
] | v2nhat@gmail.com |
142e65d9e7154b124d32a2b45489a4c852e59c9f | e3078618eaa3757e8fc2bcf60bdae0ab0a342619 | /LeetCode/066_plus_one.py | 6d902051fa7ee2dd4ac30bf16d79289c00cb5fd7 | [] | no_license | yao23/Machine_Learning_Playground | 773fa78ef8e905061ff31ec35dda19861bde7b21 | 7e0e917c15d3e35f49da3a00ef395bd5ff180d79 | refs/heads/master | 2021-01-01T04:02:36.687396 | 2020-07-16T06:39:45 | 2020-07-16T06:39:45 | 56,412,578 | 12 | 1 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | class Solution(object):
def plusOne(self, digits):
"""
:type digits: List[int]
:rtype: List[int]
beats 38.20%
"""
num = 0
for i in range(len(digits)):
num += digits[i] * pow(10, (len(digits) - 1 - i))
return [int(i) for i in str(num + 1)]
| [
"myspiritcrazy@gmail.com"
] | myspiritcrazy@gmail.com |
32383bacecdc6ca3753fa081e1e4adbb38e3d7d4 | ed296ff86f13b1d9e41fbf6aace441090850ef57 | /chapter_06_event_driven/celery_example/celery_scheduled_tasks.py | beb573f92b9200b755bf1d2381c42836861ed884 | [
"MIT"
] | permissive | cnb0/Python-Architecture-Patterns | 2a6113605f95a4c99369ee0febe2812c792a7acf | 2194746ea334c9dd84b5547a6d59ebfa95ced394 | refs/heads/main | 2023-08-12T02:31:17.187913 | 2021-10-12T19:16:14 | 2021-10-12T19:16:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 674 | py | from celery import Celery
from celery.schedules import crontab
app = Celery('tasks', broker='redis://localhost')
logger = app.log.get_default_logger()
@app.task
def scheduled_task(timing):
logger.info(f'Scheduled task executed {timing}')
app.conf.beat_schedule = {
# Executes every 15 seconds
'every-15... | [
"jaime.buelta@gmail.com"
] | jaime.buelta@gmail.com |
64a612edae5cfbe0f3f431cead21845c16cf1dfc | be0f3dfbaa2fa3d8bbe59229aef3212d032e7dd1 | /Gauss_v45r8/Gen/DecFiles/options/10000030.py | 3d9dd4ab03612f90d5291e007d2efc6c9033141a | [] | no_license | Sally27/backup_cmtuser_full | 34782102ed23c6335c48650a6eaa901137355d00 | 8924bebb935b96d438ce85b384cfc132d9af90f6 | refs/heads/master | 2020-05-21T09:27:04.370765 | 2018-12-12T14:41:07 | 2018-12-12T14:41:07 | 185,989,173 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | # file /home/hep/ss4314/cmtuser/Gauss_v45r8/Gen/DecFiles/options/10000030.py generated: Fri, 27 Mar 2015 15:48:09
#
# Event Type: 10000030
#
# ASCII decay Descriptor: pp => [bbbar] ...
#
from Gaudi.Configuration import *
importOptions( "$DECFILESROOT/options/qcdjets_pthat_gt_20.py" )
from Configurables import Generatio... | [
"slavomirastefkova@b2pcx39016.desy.de"
] | slavomirastefkova@b2pcx39016.desy.de |
ca72f00b7700e992dba816b989cd019c45b54d4d | 2059931a5aea6e00d7741394af8d7076e3d6fa41 | /tests/test_init_players.py | 8eabc732bd903a3f2538466e9662d87b4759abf8 | [] | no_license | zb46392/poker | 5c1af9924646e761bcd9635b8746d6c163919048 | f303a41b92c446f527d541d961e3af3328552fff | refs/heads/master | 2022-12-22T16:18:40.468085 | 2021-06-26T20:36:08 | 2021-06-26T20:36:08 | 208,074,837 | 0 | 0 | null | 2022-12-09T05:22:21 | 2019-09-12T14:47:07 | Python | UTF-8 | Python | false | false | 476 | py | from . import TestGame
class TestInitPlayers(TestGame):
def test_init_players(self) -> None:
self.assertEqual('Player_1 (Dummy)', self.player_1.name)
self.assertEqual(self.player_2, self.player_1.next)
self.assertEqual('Player_2 (Dummy)', self.player_2.name)
self.assertEqual(self.... | [
"zb46392@oss.unist.hr"
] | zb46392@oss.unist.hr |
d4a05e9a31856b334d390d7a3165d886bbeb34d6 | eeaf323a92254190195ecbb61c03171aae8f28ee | /accounts/admin.py | ac97b30c2c7ac1cc1da4ede04c73d1f1f135f876 | [] | no_license | abdullakn/job-portal1 | 44295db5c1169494454fa407ad5716f119e6017b | c5d299acae4262eb9d02317f3358aaa6d4314b13 | refs/heads/master | 2023-07-18T07:45:54.610627 | 2021-09-04T11:37:36 | 2021-09-04T11:37:36 | 403,040,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | from accounts.models import UserCompanies
from django.contrib import admin
# Register your models here.
| [
"abdudebanjazz@gmail.com"
] | abdudebanjazz@gmail.com |
927fb511cf210d49819cf9771be30354434bf27e | d22179e44a37c0194b8aefebe784d64283f0002c | /App/sample.py | e2ea16c694ce64f38e0387b2ee5c4d633167b6c0 | [
"ISC"
] | permissive | go2coffee/metro-extracts | 896ef59dabdb936dd59af7287779a37519220aa0 | 0b0ccfcf7d8319e1bc4e458ee96036a752615cb1 | refs/heads/master | 2021-05-04T20:08:46.292489 | 2017-10-11T17:14:48 | 2017-10-11T17:14:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,226 | py | from datetime import datetime
from urllib.parse import urljoin
from . import util
from dateutil.tz import tzutc
from flask import Blueprint, render_template, url_for, request, Response
blueprint = Blueprint('Sample', __name__, template_folder='templates')
def apply_sample_blueprint(app, url_prefix):
'''
'''
... | [
"mike@teczno.com"
] | mike@teczno.com |
59d516eec9658cc97098e7a64eef730c162bfb7e | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/ltl_maxplus/f3/maxplus_4_55.py | 635d2af63a86ddbc3ea2cc986b75764fab195afe | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,399 | py |
from collections import Iterable
from mathsat import msat_term, msat_env
from mathsat import msat_make_true, msat_make_false
from mathsat import msat_make_constant, msat_declare_function
from mathsat import msat_get_rational_type
from mathsat import msat_make_and as _msat_make_and
from mathsat import msat_make_or as _... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
de7be3676b22e1ce786301c4217a4557e587048e | 18cc9427bebde1209830f249349baf755c1a87be | /airflow/providers/google/marketing_platform/operators/analytics.py | de7fcfc62da483ac782b0d5bf7c290017f81e6d0 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | miho120/incubator-airflow | b91d0b01722626038a7f844efd77e369f5ebaa17 | 14ee831c7ad767e31a3aeccf3edbc519b3b8c923 | refs/heads/main | 2022-01-18T12:16:14.013362 | 2022-01-14T08:55:15 | 2022-01-14T08:55:15 | 114,987,320 | 0 | 0 | null | 2017-12-21T09:23:20 | 2017-12-21T09:23:20 | null | UTF-8 | Python | false | false | 22,460 | 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... | [
"noreply@github.com"
] | miho120.noreply@github.com |
67ce75da46901fca6d09ae5128c0e8d01e1293b1 | d9ddac1fae0f82e3424867ed2a0beeb7b9443715 | /Python/Django/interests/apps/interests/urls.py | 2aa1d3794dc42652fdcedb72d35df6289be79ba0 | [] | no_license | scottkwon/Projects | 39f0665dc00bd33ee41fc41db7e3771c82141be5 | 70c4efad7adb28605d86220dc728d3769329d5e9 | refs/heads/master | 2021-01-19T22:40:16.589030 | 2018-01-30T04:03:39 | 2018-01-30T04:03:39 | 88,835,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index, name='index'),
url(r'^add/$', views.add, name='add'),
url(r'^users/$', views.users, name='users'),
url(r'^show/(?P<id>\d+)$', views.show, name='show'),
url(r'^delete/(?P<id>\d+)$', views.delete, name='delet... | [
"scottkwon@gmail.com"
] | scottkwon@gmail.com |
f8cdef87b4d03d3907812c52e654ad57760b2338 | 7ce479cac0a14d924159db9c784e3325b8f0bce7 | /schemaorgschemas/Thing/CreativeWork/MediaObject/ImageObject/__init__.py | ca2f11ef4f5f0235c8c1e389e7c8e737ba6ec9b3 | [] | no_license | EvelineAndreea/AGRe | 1f0c27237eb047a60bbcfb8d73e3157035406409 | b952125896a82741f6617c259dd4060954583180 | refs/heads/master | 2020-04-08T16:08:11.517166 | 2018-11-28T07:15:56 | 2018-11-28T07:15:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,149 | py | # -*- coding: utf-8 -*-
from schemaorgschemas.Thing import potentialActionProp, descriptionProp, sameAsProp, imageProp, urlProp, mainEntityOfPageProp, additionalTypeProp, alternateNameProp, nameProp
from schemaorgschemas.Thing.CreativeWork.MediaObject import contentUrlProp, playerTypeProp, encodesCreativeWorkProp, prod... | [
"mihai.nechita95@gmail.com"
] | mihai.nechita95@gmail.com |
41166e45f00d9796524bb6f197327d9909dc4cf4 | 40e327c3782d6dd8dc04a566da30e831ec58a3b6 | /Project2-WebScraping/stefanheinz/scraper/swr3scraper.py | 398d4e5cb0bc55e6eb91d1e10a6f6ed203a1796f | [] | no_license | liyuhaojohn/bootcamp008_project | 86f20f384f0d2cabc73eb1e8a00d74c0e03d9a98 | 014e183b37d2fca0b0bc963b8634b089432f03b2 | refs/heads/master | 2020-03-17T16:48:14.924383 | 2017-04-08T17:17:35 | 2017-04-08T17:17:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,467 | py | # Get data from SWR3 playlists from begDate to endDate
import datetime
import bs4
import requests
import csv
import os
import time
os.chdir(r'E:\Projects\02 Web Scraping Project')
wdir = os.getcwd()
def getSWR3Playlist(plURL):
res = requests.get(plURL)
soup = bs4.BeautifulSoup(res.text, 'html.parser')
re... | [
"hellozeyu@gmail.com"
] | hellozeyu@gmail.com |
290f289557e2720080780f85d6274768f2426d07 | 9047328d03d38c0833193987a9409600200d83bc | /django/zqxt_study/blog_admin/blog_admin/wsgi.py | e83c2b554b171c03ecf5255f22728c7c48b5cf3a | [] | no_license | teddyxiong53/Python | 06d444f89d14ae5071248d93ea973fd1d9ad2795 | 629775569cb94968bb8a4e34e31871fcc1bd2969 | refs/heads/master | 2020-04-05T23:33:13.155112 | 2019-10-24T09:37:04 | 2019-10-24T09:37:04 | 68,708,738 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for blog_admin project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "blog_admin.settings")
from django.... | [
"1073167306@qq.com"
] | 1073167306@qq.com |
eff1f3006c674b026e1043c01292542ae6c4bc81 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/compute/gallery_application_version.py | 7d7c404c1f41d9a9c9fa49280eec179e6de073b2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,099 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
88c61506d154787a50027c820f69fbe159a67ade | b156c2f5ee7417dfa1f6cdcf14e9773a25397544 | /GeneVisualization/venv2/Lib/site-packages/itk/itkBinaryPruningImageFilterPython.py | a6ccb8f1c2a6aded2a8b2238e1d51bcbd0c3d7a1 | [] | no_license | PinarTurkyilmaz/Vis | 1115d9426e9c8eeb5d07949241713d6f58a7721b | 4dd4426a70c0bd0a6e405ffe923afee29630aa67 | refs/heads/master | 2022-11-18T13:16:18.668065 | 2020-07-06T21:04:10 | 2020-07-06T21:04:10 | 226,217,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,596 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.8
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3, 0, 0):
new_instancemethod = lambda func, inst, cls: _itkB... | [
"pinar.turkyilmaz@estudiant.upc.edu"
] | pinar.turkyilmaz@estudiant.upc.edu |
e1525bdf00aff3b25747a148d5a3914c81bc0f7d | affe6c648b9ce2434919ccbd88d36d969a619f94 | /bin/csscombine | 88d78cca6dc03511ccb686fdf0ae341ffff605c8 | [
"BSD-3-Clause"
] | permissive | thiagocalheiros/weasyprint_for_awslambda | 578c4e8c10aef40f82e36f0a9de5ec31032335f8 | 4080c49a3fb5fc94fca75bf38e8b10ee1acfb7ce | refs/heads/master | 2020-03-18T18:19:08.855086 | 2018-05-31T19:32:40 | 2018-05-31T19:32:40 | 135,084,321 | 0 | 0 | null | 2018-05-27T21:52:46 | 2018-05-27T21:52:46 | null | UTF-8 | Python | false | false | 390 | #!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'cssutils==1.0.2','console_scripts','csscombine'
__requires__ = 'cssutils==1.0.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_en... | [
"thiagovccalheiros@gmail.com"
] | thiagovccalheiros@gmail.com | |
cba8720e1fabd7e11b410b16d32145ab7d9b1964 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/429/usersdata/309/98580/submittedfiles/jogoDaVelha_BIB.py | 10a39df138672040d0ce2ee3dca95fe81afb2d0d | [] | 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 | 1,900 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from random import *
# autenticação do simbolo para a jogada humano
def solicitaSimboloDoHumano():
# nome=input('Qual seu nome(ou apelido)? ')
simbH= input("Qual o simbolo que você deseja utilizar no jogo? ")
while simbH!="X" and simbH!="x" and simbH!="... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
06c4cc0252417c8b3d0bfaa74ff3c0c55583794d | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/network/v20201101/get_virtual_router_peering.py | 21dcf5b01159ff014ea90cb15467f45d4991ea73 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 5,002 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
__... | [
"noreply@github.com"
] | morrell.noreply@github.com |
d6bb893f91cddb84293cd4c39ce58a4b90061dbc | b885eaf4df374d41c5a790e7635726a4a45413ca | /LeetCode/Session3/RotateImage.py | 0708f580f7dc5ef5488d7901abcad13eb8494d67 | [
"MIT"
] | permissive | shobhitmishra/CodingProblems | 2a5de0850478c3c2889ddac40c4ed73e652cf65f | 0fc8c5037eef95b3ec9826b3a6e48885fc86659e | refs/heads/master | 2021-01-17T23:22:42.442018 | 2020-04-17T18:25:24 | 2020-04-17T18:25:24 | 84,218,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 750 | py | from typing import List
class Solution:
def rotate(self, matrix: List[List[int]]) -> None:
# reverse columns
size = len(matrix)
for col in range(size):
for row in range(size//2):
matrix[row][col], matrix[~row][col] = matrix[~row][col], matrix[row][col]
... | [
"shmishra@microsoft.com"
] | shmishra@microsoft.com |
0ebfeec5bd72ecdb02479219a45f01ca14a39bbd | 8004cc465359aecb7a1890617646ea5b49f11d9a | /augment.py | 258f43a6571daf8bc99a85d7fef3150a72b5cd53 | [] | no_license | jhyang12345/facial-recognition | 661e34d874986943f50b5b9691d186760957b594 | 2f2ba5cfcbd58efbc9de5b9f0bafc7bc640d9c26 | refs/heads/master | 2020-04-06T09:52:20.932793 | 2018-12-13T08:15:25 | 2018-12-13T08:15:25 | 157,360,076 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 739 | py | import sys, os
from optparse import OptionParser
from argparse import ArgumentParser
from data_prep.augment_dataset import augment_directory, augment_image
def main():
parser = OptionParser()
parser.add_option("-p", "--path", dest="path")
parser.add_option("-d", "--directory", dest="directory")
options... | [
"jhyang12345@naver.com"
] | jhyang12345@naver.com |
d9cd090aba43727b5d4a2a2c6beb061d532b6e9b | b15d2787a1eeb56dfa700480364337216d2b1eb9 | /samples/cli/accelbyte_py_sdk_cli/ugc/_admin_update_channel.py | 0fb19361dcc2066ace446944c50bf92df54f621a | [
"MIT"
] | permissive | AccelByte/accelbyte-python-sdk | dedf3b8a592beef5fcf86b4245678ee3277f953d | 539c617c7e6938892fa49f95585b2a45c97a59e0 | refs/heads/main | 2023-08-24T14:38:04.370340 | 2023-08-22T01:08:03 | 2023-08-22T01:08:03 | 410,735,805 | 2 | 1 | MIT | 2022-08-02T03:54:11 | 2021-09-27T04:00:10 | Python | UTF-8 | Python | false | false | 2,761 | py | # Copyright (c) 2021 AccelByte Inc. All Rights Reserved.
# This is licensed software from AccelByte Inc, for limitations
# and restrictions contact your company contract manager.
#
# Code generated. DO NOT EDIT!
# template_file: python-cli-command.j2
# AGS Ugc Service (2.11.3)
# pylint: disable=duplicate-code
# pyli... | [
"elmernocon@gmail.com"
] | elmernocon@gmail.com |
dd6e2bd782ba274556a14f714773a1c5de1caf2d | 2bb90b620f86d0d49f19f01593e1a4cc3c2e7ba8 | /pardus/tags/2007.3/programming/libs/obexftp/actions.py | 1a4e0fb18ba620d8415b65181a7f2ee6631ee00f | [] | no_license | aligulle1/kuller | bda0d59ce8400aa3c7ba9c7e19589f27313492f7 | 7f98de19be27d7a517fe19a37c814748f7e18ba6 | refs/heads/master | 2021-01-20T02:22:09.451356 | 2013-07-23T17:57:58 | 2013-07-23T17:57:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2007 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/copyleft/gpl.txt.
from pisi.actionsapi import autotools
from pisi.actionsapi import perlmodules
from pisi.actionsapi import pythonmodules
from pisi.ac... | [
"yusuf.aydemir@istanbul.com"
] | yusuf.aydemir@istanbul.com |
50f17ae8c0236fa1215efdfb3e9c56184868c6b6 | b3c23b94c534a575e35e8c02747a54627b918564 | /venv/Scripts/pip3.6-script.py | d2d53d6377ea7345e7ad3f725d283a70f1ffae07 | [] | no_license | 1464420980/pythonLCDemo | d4eb2cb5aa1693fe4d4201da697ed11300e78836 | 3aafc9b28351071a80a021364319e6855eb9cb7d | refs/heads/master | 2020-05-23T14:09:51.691684 | 2019-05-13T07:48:45 | 2019-05-13T07:48:45 | 186,796,586 | 1 | 0 | null | 2019-05-15T09:42:33 | 2019-05-15T09:42:33 | null | UTF-8 | Python | false | false | 426 | py | #!E:\pycharm-professional-2018.1.3\Code\pythonLCDemo\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.3','console_scripts','pip3.6'
__requires__ = 'pip==9.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '... | [
"ahlc@sina.cn"
] | ahlc@sina.cn |
ee8254f1ed6a47885d33206006c9a714b6edc76a | 70e37c1bb153fd8a598160a2ca862faf1caa43b4 | /tags/20061202/TestScripts/putTaskNotations.py | 76847f4026cc2066deab049d0c439e9d22092753 | [] | no_license | BGCX261/zogi-svn-to-git | 2d27d7536eeff1ac2d3c40b93b00c460e1a59aa6 | ef5878a8264291f621568ee7bf78246543248db9 | refs/heads/master | 2020-12-24T15:31:50.126473 | 2015-08-25T15:29:41 | 2015-08-25T15:29:41 | 41,591,070 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | #!/usr/bin/env python
import xmlrpclib
taskId = 10930
server = xmlrpclib.Server('http://awilliam:fred@localhost/zidestore/so/awilliam/')
#print server.zogi.putTaskNotation(taskId, "accept", "");
#print server.zogi.putTaskNotation(taskId, "comment", "THIS IS A COMMENT!!!");
#print server.zogi.putTaskNotation(taskId, "do... | [
"you@example.com"
] | you@example.com |
31ab6171b72eaffee858d051cb697802458c486f | 4a8c1f7d9935609b780aff95c886ef7781967be0 | /atcoder/ABC/245_c.py | 78e8d5d4123462fa782e1cbea09568768de197e1 | [] | no_license | recuraki/PythonJunkTest | d5e5f5957ac5dd0c539ef47759b1fe5ef7a2c52a | 2556c973d468a6988d307ce85c5f2f8ab15e759a | refs/heads/master | 2023-08-09T17:42:21.875768 | 2023-07-18T23:06:31 | 2023-07-18T23:06:31 | 13,790,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,410 | py |
import sys
from io import StringIO
import unittest
import logging
logging.basicConfig(level=logging.DEBUG)
def resolve():
import sys
input = sys.stdin.readline
from pprint import pprint
#import pypyjit
#pypyjit.set_param('max_unroll_recursion=-1')
import math
INF = 1 <<... | [
"kanai@wide.ad.jp"
] | kanai@wide.ad.jp |
25033cb86d836f8e5901c8fc72492609c0c3753c | abba6daeed793b496f067157ff808c26d22210cb | /rmsd_to_refs/get_rmsds_to_xtals.py | 8015723c40cbdc04ff87f22af569060644aa8b2e | [] | no_license | RedesignScience/foldingathome_analysis | de9df0c54d9e0c2e6a6c7fbb6ca98ff1a76bbc36 | 18ae2355062cc838ca71e7464e74400daf266630 | refs/heads/main | 2023-04-28T21:16:31.177889 | 2021-05-28T17:00:09 | 2021-05-28T17:00:09 | 371,766,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,118 | py | from glob import glob
import mdtraj as md
import numpy as np
import multiprocessing
n_jobs = 32
superpose_string = 'protein and (resid < 31 or resid > 48) and name CA'
rmsd_string = 'resid >= 31 and resid <= 48 and not element H'
pdbs = sorted(glob('/home/rafal.wiewiora/repos/BCL_SETUP/output/*/solvated.pdb'))
refs =... | [
"rafwiewiora@gmail.com"
] | rafwiewiora@gmail.com |
9626714794be6208da3519291286322ad7ae5a09 | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_pragma391.py | dde220b73704a02a941c0c909df462316bf415fb | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,640 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=16
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
class Opty(cirq.PointOptimizer):
def optimization_at(
... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
5eb120f37e49250422e7571e13788df09a28289b | aba00d6272765b71397cd3eba105fc79b3a346e0 | /Digisig/digsigvenv/bin/easy_install-3.6 | e00a55b55ffea69cacf14979f181373edfb80773 | [] | no_license | JosteinGj/School | a2c7cc090571b867637003fe6c647898ba9d8d24 | 3b5f29846e443b97f042241237dbda3208b20831 | refs/heads/master | 2023-05-02T11:07:29.517669 | 2021-04-26T09:04:57 | 2021-04-26T09:04:57 | 295,340,194 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 274 | 6 | #!/home/jg/Documents/School/Digisig/digsigvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"jostein.gj@gmail.com"
] | jostein.gj@gmail.com |
d6c1c2db5389f42c89c17b8c15a969795d1cef26 | 6994917b9d22e9e15e578a0e5c75dcf4ce3cb022 | /formularios/migrations/0006_auto_20200629_1251.py | a34880c05750ca254eba1fcb654c67bddb63bc2e | [] | no_license | linikerunk/rh-ticket | 59ad6411a3d08c90c2704b37ba9bba67ea7f7754 | bd8edd3eb1ea6cfe04fee03a4f41049a84c1e14a | refs/heads/master | 2023-01-06T21:25:06.851369 | 2020-10-29T20:32:53 | 2020-10-29T20:32:53 | 250,346,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 458 | py | # Generated by Django 2.2.9 on 2020-06-29 15:51
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('formularios', '0005_justificativaausencia_funcionario'),
]
operations = [
migrations.AlterModelOptions(
name='justificativaausencia',
... | [
"linikerenem@gmail.com"
] | linikerenem@gmail.com |
470129e1555047aa797509957d381ba9529ca7be | aedd2d90054fec1c981426c4c5b6ae818b655413 | /Proyecto Final/Sangre/lib/python3.7/site-packages/sphinx/builders/devhelp.py | dda7c411fa6ce2c9611ddc8ba401d25f3cf24e5d | [
"MIT"
] | permissive | rogeralexei/Programacion-III | 6696273fd6d7a5466c86c74254ba3ec923bd6f2f | 56ac8aaeae9399925a596c86bdca46bb73ccb717 | refs/heads/master | 2022-10-04T23:48:01.254206 | 2020-06-07T04:03:08 | 2020-06-07T04:03:08 | 250,158,965 | 0 | 2 | MIT | 2020-04-22T05:20:22 | 2020-03-26T04:13:46 | Python | UTF-8 | Python | false | false | 1,028 | py | """
sphinx.builders.devhelp
~~~~~~~~~~~~~~~~~~~~~~~
Build HTML documentation and Devhelp_ support files.
.. _Devhelp: https://wiki.gnome.org/Apps/Devhelp
:copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
import warnings
from typing i... | [
"roger.urrutia@meduca.gob.pa"
] | roger.urrutia@meduca.gob.pa |
0d0ed9be68ef4b4802cafbb95ec64ae5434bda34 | 52458d5143e83df50c79896b0c663358c6764681 | /round280/A.py | 4b823a2b425f7316c698a316612a56ccf1b9c95c | [] | no_license | parthpankajtiwary/codeforces | 68435e3497e7d07b0c99647493d6114338dfc0b9 | 25a9acfb70a7f92cc32649e8d09b7acd1ff5e9e0 | refs/heads/master | 2021-01-19T21:28:04.679487 | 2015-01-31T15:16:57 | 2015-01-31T15:16:57 | 26,370,060 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py |
n = input()
pyramids = 0
level = 0
while(sum < n):
| [
"parthpankajtiwary@gmail.com"
] | parthpankajtiwary@gmail.com |
58a021fc6d6c26755eb36c458ead31e7ad022d45 | be29b355371816a74f023df3a5ecbe812f2b499b | /hummingbot/script/script_base.py | 98ab3a7d1b2ff9b9a5aa7834318ac1f4d28816f3 | [
"Apache-2.0"
] | permissive | OceanEx/hummingbot | 324e6b59d111bc611d83baf1a87352044cef84d5 | f3dc27b9482093ea2c8d1fa603d0116de1e2fa05 | refs/heads/master | 2021-07-12T18:42:32.496606 | 2021-03-04T03:46:17 | 2021-03-04T03:46:17 | 236,079,080 | 2 | 2 | Apache-2.0 | 2021-03-04T03:44:35 | 2020-01-24T20:35:41 | Python | UTF-8 | Python | false | false | 9,263 | py | import asyncio
from multiprocessing import Queue
from typing import List, Optional, Dict, Any, Callable
from decimal import Decimal
from statistics import mean, median
from operator import itemgetter
from .script_interface import OnTick, OnStatus, PMMParameters, CallNotify, CallLog
from hummingbot.core.event.events imp... | [
"37262506+Nullably@users.noreply.github.com"
] | 37262506+Nullably@users.noreply.github.com |
68f76b63f11c6ae35b012da79e10208588846249 | deff2922412bd0376ef38a34a895990d106b7b66 | /userprofile/migrations/0001_initial.py | e6f2f07a37463d35ad4d226976703d1b2d78c5e3 | [
"Apache-2.0"
] | permissive | dpd-pub/GreaterWMS | 56ba10750e8724bc7b39de077e4b4bc43340a94a | 9eabb1b9b0f5376dcccd89ed86dd76995955a8ec | refs/heads/master | 2023-02-27T18:05:29.384931 | 2021-02-10T02:19:33 | 2021-02-10T02:19:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | # Generated by Django 3.1.4 on 2021-01-17 15:22
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Users',
fields=[
('id', models.AutoField(au... | [
"singosgu@gmail.com"
] | singosgu@gmail.com |
3a8a8a495e4b133f3711230d125342aa00696f60 | 4c7ea6295a487ec18543e82f66e08a3a2a2fd124 | /apps/utils/logs_out_path_of_server.py | 4b98560c6d6b07e74dbe14dddcd1c8153d2de160 | [] | no_license | robot-nan/GameLogServer | 16217689d88ac5353a61881b03adb1b372cc3e16 | ff2afd6d29e9dce6157a66ff62b4d1ea97d04184 | refs/heads/master | 2021-11-07T21:27:30.494271 | 2015-09-23T15:01:55 | 2015-09-23T15:01:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,557 | py | #coding:utf-8
import datetime
from apps.game_manager.mysql import server_list
"""
注:server 与 parse的此文件不一样 要各自修改!!
注:server 与 parse的此文件不一样 要各自修改!!
注:server 与 parse的此文件不一样 要各自修改!!
"""
def get_server_id_lst():
"""
获取游戏服务器id列表 [10001,30001,10003,10004,10005,10006]
"""
all_server_list = ser... | [
"a.robot.n@gmail.com"
] | a.robot.n@gmail.com |
11beb115d090974ac04e097c016a74a08c1adce1 | 4aae2df13bfd53a8b16aa5f941f2cc8b8ac144b7 | /torch/distributed/algorithms/ddp_comm_hooks/default_hooks.py | ca073d4bd0c8aa96679c9e3b17a1a2c65945b97f | [
"BSD-2-Clause",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"BSL-1.0",
"Apache-2.0"
] | permissive | computerguy2030/pytorch-rocm-amd | e9f2718c470b505325d396baf6513e71bcf0a7ca | 38da53d721fcb335dedb1b52f14fd89718e90bef | refs/heads/master | 2023-04-08T00:55:01.542663 | 2021-04-16T11:33:39 | 2021-04-16T11:33:39 | 334,288,140 | 3 | 0 | NOASSERTION | 2021-04-16T11:27:55 | 2021-01-29T23:40:06 | C++ | UTF-8 | Python | false | false | 4,076 | py | from typing import Any, Callable
import torch
import torch.distributed as dist
def _allreduce_fut(
process_group: dist.ProcessGroup, tensor: torch.Tensor
) -> torch.futures.Future:
group_to_use = process_group if process_group is not None else dist.group.WORLD
"Averages the input gradient tensor by allr... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
bd1a0420afd4a5641ebb8e0bbe1e8f249826ad14 | 32b91e06c24d0e10962e83856763e136a5a77b9a | /tests/test_api_request.py | cdbe131a7293cb78f841ed99c3d0f22e25a01bff | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | driscollco/python-idex | b04dd2d5114b2df6733ff490fbd778f953d5dcb2 | 24cee970172491a7f7d5f52558727a77384cce26 | refs/heads/master | 2020-07-25T16:46:18.432468 | 2019-08-14T11:51:54 | 2019-08-14T11:51:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | #!/usr/bin/env python
# coding=utf-8
from idex.client import Client
from idex.exceptions import IdexAPIException, IdexRequestException
import pytest
import requests_mock
api_key = 'api:jVXLd5h1bEYcKgZbQru2k'
client = Client(api_key)
def test_invalid_json():
"""Test Invalid response Exception"""
with pytes... | [
"hello@sammchardy.net"
] | hello@sammchardy.net |
ab50054988401dd05d338d85ab8aaa9634ff4971 | a462a24ff937e151e8151f3a1bdc9c3714b12c0e | /2021EJOR/scripts/mercw/mercw_12_26.py | c91f4954d5601fc244f364c98acfc95bc5b358bb | [] | no_license | noeliarico/kemeny | b4cbcac57203237769252de2c50ce959aa4ca50e | 50819f8bf0d19fb29a0b5c6d2ee031e8a811497d | refs/heads/main | 2023-03-29T14:36:37.931286 | 2023-03-16T09:04:12 | 2023-03-16T09:04:12 | 330,797,494 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195,861 | py |
import numpy as np
import pandas as pd
import time
from kemeny import algorithms as alg
rep = 3
results = np.zeros(0).reshape(0,7+rep)
##############################################################
om = np.array([
[0,17,11,11,13,16,9,17,14,15,14,10],
[9,0,7,7,8,14,7,13,11,13,11,10],
[15,19,0,13,15,19,13,17,16,15,15,... | [
"noeliarico@uniovi.es"
] | noeliarico@uniovi.es |
a6c4f558421e5a551c38e0e8be74bb9c32adbadc | c078b0dc1b2527fd233cee317402417319bbed69 | /scripts/pkgcmp | bddd658667fc65133b0677af0ac3a50a57b6c29d | [
"Apache-2.0"
] | permissive | SS-RD/pkgcmp | 3e76964693295fac5c06edc5f46371dcfd975216 | 330efddd6b54a04196add8a79df3c09bfc4ead0a | refs/heads/master | 2021-01-15T09:32:57.320324 | 2015-04-22T19:32:24 | 2015-04-22T19:32:24 | 34,299,843 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 140 | #!/usr/bin/env python3
import pkgcmp.cli
def main():
cli = pkgcmp.cli.PkgCmp()
cli.run()
if __name__ == '__main__':
main()
| [
"thatch45@gmail.com"
] | thatch45@gmail.com | |
738b9e0d8c60f379a7ab9b05dc5479b819e442d4 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03837/s364664997.py | 2f6452ddf46b52875dc9b648933d743f3dda375f | [] | 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,443 | py | def dijkstra(s):
import heapq
dist=[inf for i in range(n)] #sからの距離のリスト
dist[s]=0
mirai=[True for i in range(n)] #Trueなら未確定
mirai[s]=False
queue=[] #こいつがheapqになる
for kyori,to in G[s]:
heapq.heappush(queue , kyori*10**6+to) #重みと行先を1つの変数で表してる!
while queue:
minedge= heapq.... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
61b95a20fc93335c366c00373b667c8ab5cb7633 | 4df32cdc140f3a15c9a540787241c513ff4652a4 | /exercicios_resolvidos3/exercicios3/capitulo 11/exercicio-11-04.py | 2b62be144bbfdd49bef2ed87e57dcac14db76337 | [
"MIT"
] | permissive | tiagosm1/Python_Nilo_Ney | 04039c4a9294d480b0493d71e46cc850168c5365 | b5380dcc8fcf64e9c047ebc353585caba3d7b397 | refs/heads/main | 2023-02-18T22:07:46.696674 | 2020-12-23T11:27:30 | 2020-12-23T11:27:30 | 317,965,139 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,275 | py | ##############################################################################
# Parte do livro Introdução à Programação com Python
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2020
# Primeira edição - Novembro/2010 - ISBN 978-85-7522-250-8
# Segunda edição - Junho/2014 - ISBN 978-85-7522-408-3
# Terce... | [
"72826762+tiagosm1@users.noreply.github.com"
] | 72826762+tiagosm1@users.noreply.github.com |
94f4df5cc7223f0b68dfe2f92288691475be3bcd | 2a717133265ce02848859f86c9794b3858616fe2 | /digitalsmart/internet/views.py | ec218152b31f63f115e11c312e87566cd12b0592 | [] | no_license | LianZS/digitalsmart | d517f98483abf069ee970c98e619ab5e31fbcd1d | 200fbbdb016f592618e0a9fcd64f981dbf46cd3f | refs/heads/master | 2022-12-15T23:24:18.879170 | 2020-01-30T03:27:15 | 2020-01-30T03:27:30 | 196,047,106 | 1 | 0 | null | 2022-12-08T06:13:59 | 2019-07-09T16:39:09 | Python | UTF-8 | Python | false | false | 6,572 | py | import uuid
from django.core.cache import cache
from django.http import JsonResponse
from attractions.tool.access_control_allow_origin import Access_Control_Allow_Origin
from .models import MobileBrand, BrandShare, MobileModel, MobileSystemRate, OperatorRate, NetworkShare
class MobileShare:
# http://127.0.0.1:800... | [
"2214057556@qq.com"
] | 2214057556@qq.com |
ec9e30b40dc67ca51f221edab1d96f2b9149e036 | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_5/models/certificate_certificate_group_get_resp.py | ef1ee7e9cb992b1f1870dffae6f108a102c7314b | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,321 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.5, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.5
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
113b09192661f545d179b9ab314ea9cba6be42ad | f8f8651ab604acc4937f8725caadaca1fb97a5e8 | /tests/tests_pytorch/trainer/test_config_validator.py | 7cc742eea845f2b708375107acdb86d160b71f33 | [
"Apache-2.0"
] | permissive | neptune-ai/pytorch-lightning | ac59e746a486e07e21abae426b28e5d72812ac98 | 702014418e2ec0437e67d8bf97809edef686a02c | refs/heads/master | 2022-09-28T09:34:07.653729 | 2022-09-12T11:13:48 | 2022-09-12T11:13:48 | 229,063,811 | 1 | 1 | Apache-2.0 | 2022-09-26T03:29:49 | 2019-12-19T13:48:16 | Python | UTF-8 | Python | false | false | 7,313 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | neptune-ai.noreply@github.com |
22e73f2117096d752dc00e26ec437f65defd9897 | e7610cd19de40fe6d51a38028fc96996aa97fb65 | /manage.py | bc574c96946244974b0c54f34e182e2707d8bc1c | [] | no_license | klimecotech/my_first_work | ce96a8db8879711314883ed127e8e8d77583a080 | c38437b3dd11f707636c307065b96cb974d720a5 | refs/heads/master | 2021-09-23T01:08:17.007092 | 2020-01-29T11:56:45 | 2020-01-29T11:56:45 | 237,050,566 | 0 | 0 | null | 2021-09-22T18:29:29 | 2020-01-29T18:12:14 | Python | UTF-8 | Python | false | false | 633 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'my_first_work.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ... | [
"="
] | = |
e4172ed006e12b33584ceb5b8b71e038e9ebe39e | dbe1f4110921a08cb13e22ea325d503bd5627195 | /chuhuo_2.7/bluedon/bdwafd/newscantools/plugins/MetinfoLFIScript.py | 21c9eb98ce368c832386aef7decf1236595cbc2d | [] | no_license | Hehouhua/waf_branches | 92dc1b1cbecba20f24ef6c7372dde7caa43f9158 | ca76f3a1ed8150b423474c9e37aee37841a5ee35 | refs/heads/main | 2023-01-07T11:33:31.667688 | 2020-11-03T06:58:33 | 2020-11-03T06:58:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from lib.common import *
def run_domain(http,ob):
list = []
#print "*"*1000
try:
domain = ob['domain']
detail = u''
detail = detail.encode('utf8')
url = "%s://%s%s" % (ob['scheme'],ob['domain'],ob['base_path'])
expurl... | [
"hanson_wong@qq.com"
] | hanson_wong@qq.com |
519db058e65d464c3036fd6d7bdde42d16eff0dd | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-gsn-edf.0/gsn-edf_ut=3.5_rd=0.5_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=38/sched.py | 692cd8366ddefbabdddf013f7db196004fe6d884 | [] | 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 | 274 | py | -X FMLP -Q 0 -L 3 100 300
-X FMLP -Q 0 -L 3 89 400
-X FMLP -Q 1 -L 2 82 300
-X FMLP -Q 1 -L 2 68 200
-X FMLP -Q 2 -L 2 68 200
-X FMLP -Q 2 -L 2 64 200
-X FMLP -Q 3 -L 2 62 250
-X FMLP -Q 3 -L 2 57 250
51 175
48 250
32 400
30 100
26 200
12 125
10 100
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
c2953b3d548599a3c943a3f5e9c0582fddb96681 | e70b678712a355a0b51632728c7781b0bdcf29f4 | /Algorithms/Python/Coin-Change.py | f63dfad74a05ea173238a56c32fdbfb291c8131c | [] | no_license | keyi/Leetcode_Solutions | b3e3c6835ed335d7d4ad53a1b37e59ac15fcf3af | 69e4e969b435ff2796bd7c4b5dad9284a853ab54 | refs/heads/master | 2020-05-21T23:36:20.450053 | 2018-11-11T03:45:28 | 2018-11-11T03:45:28 | 33,714,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | class Solution(object):
def coinChange(self, coins, amount):
"""
:type coins: List[int]
:type amount: int
:rtype: int
"""
ans = [0] + [-1] * amount
for i in range(amount):
if ans[i] != -1:
for x in coins:
if (i ... | [
"yike921012@gmail.com"
] | yike921012@gmail.com |
d91493f49eae27690e0fe5508cad6e6e25f7b710 | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/testbase/azure-mgmt-testbase/azure/mgmt/testbase/operations/_usage_operations.py | 85bb2f9743f336c36cf82524325fd508ec268714 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 8,473 | 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"
] | Azure.noreply@github.com |
1527b44cfb0e946a166d73da2176981cc76d8ff0 | 3bae1ed6460064f997264091aca0f37ac31c1a77 | /apps/cloud_api_generator/actor/tasklets/volumestorageservice/rollbackDisk/volumestorageservice_rollbackDisk.py | 5a50e50320f274e461242ed0ef21cdf28b3b7a00 | [] | 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 | 196 | py | __author__ = 'aserver'
__tags__ = 'volumestorageservice', 'rollbackDisk'
__priority__= 3
def main(q, i, params, tags):
params['result'] = ''
def match(q, i, params, tags):
return True
| [
"devnull@localhost"
] | devnull@localhost |
b2cd48ecdfe7b1803e6ad57b515379027fed737c | 8fde9a65a5ec19bcffbf9b868de702bd75303739 | /keras/QuickDraw/server.py | 645b3e1593b0cf6ceeda8c0cc8247e52140254f6 | [] | no_license | wupanhao/XiaoBaiAssistant | d7eb0e3e4ef83344ef146d7a0e354cdcade84718 | 5c8412954b680ccd01c6a681b18e9ed2b6c60550 | refs/heads/master | 2020-05-04T21:54:48.499925 | 2019-10-31T16:23:53 | 2019-10-31T16:23:53 | 179,493,103 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,147 | py | from flask import Flask
from flask import request,Response
from flask import render_template
from keras.models import load_model
import tensorflow as tf
import base64
import numpy as np
import cv2
import os
import json
from data_utils import get_labels
app = Flask(__name__)
graph = tf.get_default_graph()
model = loa... | [
"wupanhao@qq.com"
] | wupanhao@qq.com |
17c0af48a421fa0f99bb21e3e69b8cf74cbe2768 | 7905d2743ac4b3d58dc9e38becbe945edf132465 | /821.Shortest Distance to a Character.py | ba14d0da65b5c044acb3e24ea06b985d388d4430 | [] | no_license | RupertMa/LeetCode-Playground | bbe191d3ee75d7494c8e452f474d6134791aa94f | 378cb9b53e7710c5cf546f5d75e572060e2a211a | refs/heads/master | 2022-05-11T18:23:34.046748 | 2022-04-29T18:34:34 | 2022-04-29T18:34:34 | 195,932,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,062 | py | class Solution:
def shortestToChar(self, s: str, c: str) -> List[int]:
left = s.find(c)
ans = [i for i in range(left,-1,-1)] + [10**4+1] * (len(s) - left - 1)
for i in range(left+1, len(s)):
if s[i] != c:
ans[i] = min(abs(i-left), ans[i])
else:
... | [
"yiboma@usc.edu"
] | yiboma@usc.edu |
7523701c55523230378b4747839427a960db8173 | 93bd00af20d81460832347551370cf2b67b84b94 | /udlg/structure/__init__.py | c6235c5a58275d87cf2396f4c13187debed92cc0 | [] | no_license | tarvitz/udlg | 21dfa55afbe9fb8374bde47f7ad3339989604126 | b86e4b2934ba42a6316076c2b6507c023aec9e2a | refs/heads/master | 2021-01-10T02:53:52.775232 | 2017-01-01T21:52:20 | 2017-01-01T21:52:20 | 48,629,821 | 4 | 5 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | # -*- coding: utf-8 -*-
"""
.. module:: udlg.structure
:synopsis: Structures
:platform: Linux, Unix, Windows
.. moduleauthor:: Nickolas Fox <tarvitz@blacklibary.ru>
.. sectionauthor:: Nickolas Fox <tarvitz@blacklibary.ru>
"""
from .structure import (
BinaryDataStructureFile, UDLGFile,
#: structures
... | [
"tarvitz@blacklibrary.ru"
] | tarvitz@blacklibrary.ru |
1756a0be9222f6b2dc75815c5de3c9788abc0920 | e29ef7e3f41b18aaa7849361c402c85b27cd64a9 | /2021/2021-01.py | e9bc503b34c1ec369edc4cc93c88c5165e1b8430 | [] | no_license | sijapu17/Advent-of-Code | 7b8999f459df35d871081a93975c9580cf473643 | a3847a1b0637efd66fa86d5ad70f260c38fcce60 | refs/heads/master | 2023-06-22T12:58:07.791532 | 2023-06-18T09:14:57 | 2023-06-18T09:14:57 | 225,470,739 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 650 | py | #Advent of Code 2021 Day 1
f = open('C:/Users/Simon/OneDrive/Home Stuff/Python/Advent of Code/2021/2021-01.txt')
contents = f.read()
input = [int(x) for x in contents.splitlines()]
def solveA(input):
n=len(input)
count=0
for i in range(n-1):
if input[i+1]>input[i]: #Compare if term is greater th... | [
"simon.purkess@hotmail.com"
] | simon.purkess@hotmail.com |
37e7ba3b72e9688eacf9e65c238069bd83f74075 | 90419da201cd4948a27d3612f0b482c68026c96f | /sdk/python/pulumi_azure_nextgen/devices/v20200401/list_iot_hub_resource_keys.py | 117d169e1057d1dcd6c66ab05b1b0580b2332c1c | [
"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 | 2,753 | 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 |
287896fb11ec28eb5f1bced9cb8d806b6dfa2dd5 | 23611933f0faba84fc82a1bc0a85d97cf45aba99 | /google-cloud-sdk/lib/surface/ml/versions/create.py | cacfa5bdc7de3e0d0015fee69da00f31ffddd4d2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | KaranToor/MA450 | 1f112d1caccebdc04702a77d5a6cee867c15f75c | c98b58aeb0994e011df960163541e9379ae7ea06 | refs/heads/master | 2021-06-21T06:17:42.585908 | 2020-12-24T00:36:28 | 2020-12-24T00:36:28 | 79,285,433 | 1 | 1 | Apache-2.0 | 2020-12-24T00:38:09 | 2017-01-18T00:05:44 | Python | UTF-8 | Python | false | false | 2,650 | py | # Copyright 2016 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | [
"toork@uw.edu"
] | toork@uw.edu |
2702752e5310006dff691cc872be9100c141767a | c9500ad778b8521aaa85cb7fe3239989efaa4799 | /plugins/rapid7_insightvm/komand_rapid7_insightvm/util/resource_requests.py | f2b09b9423e6f416806a6c18aab7102939af9f4c | [
"MIT"
] | permissive | rapid7/insightconnect-plugins | 5a6465e720f114d71b1a82fe14e42e94db104a0b | 718d15ca36c57231bb89df0aebc53d0210db400c | refs/heads/master | 2023-09-01T09:21:27.143980 | 2023-08-31T10:25:36 | 2023-08-31T10:25:36 | 190,435,635 | 61 | 60 | MIT | 2023-09-14T08:47:37 | 2019-06-05T17:05:12 | Python | UTF-8 | Python | false | false | 8,393 | py | from .shared_resources import RequestParams
from .shared_resources import resource_request_status_code_check
import json
import requests
import urllib3
from insightconnect_plugin_runtime.exceptions import PluginException
from typing import NamedTuple, Collection
# Suppress insecure request messages
urllib3.disable_war... | [
"noreply@github.com"
] | rapid7.noreply@github.com |
ec09a0802006d3230f0ba66e312d963919fe135d | 17f277063b130c7a8beccb7e6cbf6248e628261d | /Spark/filter.py | c05edcea0489c3dc588cea48bd4d3785a2eaacc1 | [] | no_license | JinghongM/Big-Data | 207c627a5bcb0db266fe1969acbf192d9c0ef67f | 0e276f164e2379023c66f2b58ec829ef7715eee5 | refs/heads/master | 2021-04-06T08:40:38.892226 | 2018-03-16T03:16:24 | 2018-03-16T03:16:24 | 125,390,961 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | #FILTER
orders = sc.textFile("/user/maria_dev/data/retail_db/orders/part-00000")
ordersComplete = orders.filter(lambda order:order.split(",")[-1] == "COMPLETE")
ordersComplete = orders.filter(lambda order:order.split(",")[-1] == "COMPLETE" or order.split(",")[-1] == "CLOSED")
ordersComplete = orders.filter(lambda o... | [
"noreply@github.com"
] | JinghongM.noreply@github.com |
9d00c452b2997005fbccf5dc437806bff46878b5 | 5095200e9ca55cd3a37af34ed44448c02e2a1bb5 | /modules/text/embedding/w2v_financial_target_bigram-char_dim300/module.py | 8d6e451087ec4f8a9cc7a667f3d1bf6d4d39108c | [
"Apache-2.0"
] | permissive | PaddlePaddle/PaddleHub | 8712603ef486c45e83eb0bc5725b0b3ed3ddbbde | b402610a6f0b382a978e82473b541ea1fc6cf09a | refs/heads/develop | 2023-07-24T06:03:13.172978 | 2023-03-28T11:49:55 | 2023-03-28T11:49:55 | 162,672,577 | 12,914 | 2,239 | Apache-2.0 | 2023-07-06T21:38:19 | 2018-12-21T06:00:48 | Python | UTF-8 | Python | false | false | 1,238 | py | # Copyright (c) 2020 PaddlePaddle 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 appli... | [
"noreply@github.com"
] | PaddlePaddle.noreply@github.com |
55d8dbbedd48d330a4d0663cf16a7b8cf0c609b2 | 354bbeb486fa164629fccd94385d7570589c62e1 | /tensorflow_datasets/scripts/cli/new_test.py | 5d98403e29e3bedf426a1a469a7a8f888045998f | [
"Apache-2.0"
] | permissive | whatwilliam/datasets | 34da847f3434f660a5d670688ff6e26f3c5ca0c4 | e336b79dfce5d89d3753042f4c70c0a281fe1f9f | refs/heads/master | 2023-06-04T21:24:57.018730 | 2021-06-17T20:59:58 | 2021-06-17T20:59:58 | 372,873,415 | 1 | 0 | Apache-2.0 | 2021-06-01T15:14:09 | 2021-06-01T15:14:08 | null | UTF-8 | Python | false | false | 2,421 | py | # coding=utf-8
# Copyright 2021 The TensorFlow Datasets Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appl... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.