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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
213f58c9a0245aaf440800a900cfec98236dbd7e | 3208929ef73ec5950e363975fbd993954a54d314 | /social/apps/django_app/middleware.py | 3016d6e159e33bec295433d7837320a33c3b76a4 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | itjp/python-social-auth | ff0041c937aafbeee9c8e7aff18943bfcd45e2ba | 29f0d75883556ba1524badf0fe5ad5715685c93c | refs/heads/master | 2021-01-16T21:55:04.651456 | 2013-02-28T18:40:48 | 2013-02-28T18:40:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,935 | py | # -*- coding: utf-8 -*-
from django.conf import settings
from django.contrib import messages
from django.shortcuts import redirect
from social.exceptions import SocialAuthBaseException
class SocialAuthExceptionMiddleware(object):
"""Middleware that handles Social Auth AuthExceptions by providing the user
wit... | [
"matiasaguirre@gmail.com"
] | matiasaguirre@gmail.com |
efbca59347ef70ba62fe48136694786c9691a267 | 7e1a8700aeea75d3065697f6846d4e06ffa1eed0 | /tests/integrated-tests/test_callback.py | 5ec7c21b5cba4bda29d2802ac9421c15671562f5 | [
"BSL-1.0"
] | permissive | haowen-xu/ml-gridengine-executor | 8ba311b92aa519ed1e42d44ed293204eb9bc1bcf | 896d00400a74f3e46bb7ad994e9422f3e111a3f8 | refs/heads/master | 2020-04-07T11:46:04.365865 | 2018-12-06T15:23:34 | 2018-12-06T15:23:34 | 158,340,010 | 1 | 0 | BSL-1.0 | 2018-12-06T15:23:37 | 2018-11-20T06:14:43 | C++ | UTF-8 | Python | false | false | 4,242 | py | import base64
import re
import uuid
from collections import defaultdict
from flask import Flask, jsonify
from werkzeug.exceptions import InternalServerError
from utils import *
class CallbackApp(Flask):
def __init__(self, *args, **kwargs):
super(CallbackApp, self).__init__(*args, **kwargs)
self... | [
"haowen.xu@outlook.com"
] | haowen.xu@outlook.com |
8c4c670581d5732b1837423a6feeb569b75567c6 | f92dfdebb4bf6bc108f51783333520c35afa66da | /admin-web/src/www/application/modules/variation/actions.py | 5511d1025faa9a080f783069d0c9e1c2e6358e42 | [] | no_license | duytran92-cse/nas-genodata | 4d8659a135913d226842ff6a013324714ead0458 | 80c88f42145f729c5862a5293012e71548182e1d | refs/heads/master | 2022-11-13T17:24:03.769605 | 2020-06-14T18:59:36 | 2020-06-14T18:59:36 | 272,264,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,000 | py | from django.http import HttpResponse, HttpResponseRedirect
from django.conf import settings
from notasquare.urad_web import actions, page_contexts, widgets
from notasquare.urad_web_material import renderers
from application import constants
from . import components
import json
class List(actions.crud.ListAction):
... | [
"thanh.tran@etudiant.univ-lr.fr"
] | thanh.tran@etudiant.univ-lr.fr |
99400014acc70da415ad22907f70847ca9a5a454 | 59bd9c968a3a31a73d17f252fe716a3eacdf7f4f | /portfolio/Python/scrapy/hoptec/hoptec_amazon.py | 10fe0a6927f56579365f12f27de612d2dcf27660 | [
"Apache-2.0"
] | permissive | 0--key/lib | 113ff1e9cf75e446fa50eb065bc3bc36c090d636 | a619938ea523e96ab9e676ace51f5a129e6612e6 | refs/heads/master | 2023-06-23T22:17:54.244257 | 2023-06-21T17:42:57 | 2023-06-21T17:42:57 | 23,730,551 | 3 | 5 | null | 2016-03-22T08:19:30 | 2014-09-06T08:46:41 | Python | UTF-8 | Python | false | false | 1,744 | py | import csv
import os
import copy
from scrapy.spider import BaseSpider
from scrapy.selector import HtmlXPathSelector
from scrapy.http import Request, HtmlResponse, FormRequest
from scrapy.utils.response import get_base_url
from scrapy.utils.url import urljoin_rfc
from scrapy.http.cookies import CookieJar
from product_... | [
"a.s.kosinov@gmail.com"
] | a.s.kosinov@gmail.com |
e05388091506f41070c3beb41f4c92b5805db761 | 87ad372898e793faf1ad89f4bb3b6e84a8002131 | /tests/unit/UnagiiToken/test_init.py | 33c6394041ed3bdd3d7e5241ec03f0ece70d8f90 | [] | no_license | atsignhandle/unagii-vault-v2 | 6a9a96c11d34257bc3fdae57455ec3b2f9c0029a | 548f715f34329eb5abebffe40acbeb56a31cb6f3 | refs/heads/main | 2023-08-27T00:59:48.080152 | 2021-09-28T02:47:36 | 2021-09-28T02:47:36 | 413,448,825 | 0 | 0 | null | 2021-10-04T14:07:37 | 2021-10-04T14:07:36 | null | UTF-8 | Python | false | false | 708 | py | import brownie
from brownie import UnagiiToken
def test_init(token, admin):
uToken = UnagiiToken.deploy(token, {"from": admin})
assert uToken.timeLock() == admin
assert uToken.token() == token.address
assert uToken.name() == "unagii_" + token.name() + "_v2"
assert uToken.symbol() == "u" + token.s... | [
"tsk.nakamura@gmail.com"
] | tsk.nakamura@gmail.com |
aee9bdc39974c773e8c1c2b83f08b9a7ccd76902 | ca264ebff19314794b0784abadcf5ef8f2b25e77 | /tests/test_misc.py | 8e8b0c2c1cb8a61e0bf303b713bd329bd1d54c56 | [
"Apache-2.0",
"MIT"
] | permissive | ChrisMuir/pyppeteer | 9c9f9036245101cde775e272798e8f28e9c9b225 | 97ba03b285c5a11ba97d398244b1bb9722ef2037 | refs/heads/master | 2021-01-25T12:13:52.399126 | 2018-03-01T11:24:39 | 2018-03-01T11:24:39 | 123,460,144 | 0 | 0 | null | 2018-03-01T16:19:03 | 2018-03-01T16:19:03 | null | UTF-8 | Python | false | false | 1,271 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import unittest
from pyppeteer.helper import get_positive_int
from pyppeteer.page import convertPrintParameterToInches
from pyppeteer.network_manager import removeURLHash
class TestURLHash(unittest.TestCase):
def test_remove_url_hash(self):
url = 'http://ex... | [
"miyako.dev@gmail.com"
] | miyako.dev@gmail.com |
c49d3edd9be507e8368e8ebce92f210ea80910ac | f3dbb5b2bdbb4b45bb6548935e7873736c7adc68 | /python/dvalley_core_TestEngineer/.svn/pristine/c4/c49d3edd9be507e8368e8ebce92f210ea80910ac.svn-base | 50bfa2e16799ce1af3bd763941f2988f13242b33 | [] | no_license | lw000/new_python_demo | ece955bdb7df2c5499e4fb582503c13081c89649 | 3ca55b2c3106db75e31676e45e6c5c1f5a6fd714 | refs/heads/master | 2020-03-26T21:09:33.082625 | 2018-08-20T05:37:54 | 2018-08-20T05:37:54 | 145,370,381 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | #!/usr/bin/env python
# -*- coding=utf-8 -*-
'''
Created on 2017年12月26日
@author: Administrator
'''
import sys
import cProfile
import time
import threading
sys.path.append(r"./api")
import api
class TestWorker(threading.Thread):
def __init__(self, name):
super(TestWorker, sel... | [
"liwei@liweideiMac.local"
] | liwei@liweideiMac.local | |
95aff7ccb4c11f03a55150d92ab4b9f58e16f7ca | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02995/s719975461.py | 782dabda36eff1f2098e9ff56f3fcaaa8704368c | [] | 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 | 218 | py | from math import gcd
def lcm(a, b):
return a*b//gcd(a,b)
A, B, C, D = map(int,input().split())
nC = B//C - -(-A//C) + 1
nD = B//D - -(-A//D) + 1
nCD = B//lcm(C,D) - -(-A//lcm(C,D)) + 1
print((B-A+1)-(nC+nD-nCD)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
7311f223c4c047ae7b3759322e4e0555e7fdfcf3 | 27156c403516bbf00f0cf906d8783ca9fc1743bc | /FactorBase/Codes/generate_factor.py | 4ba3ac05eee7e661d62885131c16a9f6e815e4e2 | [] | no_license | jerrrrrrrrrrrrry/stock-1 | 95b83ad24364f81bb43de78d8787929e0184942b | b5e85efa8d4bb5cfb7d3230c89a011948f4a043e | refs/heads/master | 2023-05-05T00:59:09.192152 | 2021-05-31T14:07:42 | 2021-05-31T14:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,793 | py | import os
import sys
import time
import datetime
import numpy as np
import pandas as pd
from pandas import Series, DataFrame
import Config
sys.path.append(Config.GLOBALCONFIG_PATH)
import tools
import Global_Config as gc
import multiprocessing as mp
def f(p, stocks, start_date, end_date):
exec('from %s import %s'%... | [
"15900565486@163.com"
] | 15900565486@163.com |
559a25927a3ef6c0fea45e8b9be25ce48576f27a | 60a831fb3c92a9d2a2b52ff7f5a0f665d4692a24 | /IronPythonStubs/release/stubs.min/System/Windows/Shapes.py | 1bf78859cafafc973f71894d665304b2a1253858 | [
"MIT"
] | permissive | shnlmn/Rhino-Grasshopper-Scripts | a9411098c5d1bbc55feb782def565d535b27b709 | 0e43c3c1d09fb12cdbd86a3c4e2ba49982e0f823 | refs/heads/master | 2020-04-10T18:59:43.518140 | 2020-04-08T02:49:07 | 2020-04-08T02:49:07 | 161,219,695 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | # encoding: utf-8
# module System.Windows.Shapes calls itself Shapes
# from PresentationFramework,Version=4.0.0.0,Culture=neutral,PublicKeyToken=31bf3856ad364e35
# by generator 1.145
""" NamespaceTracker represent a CLS namespace. """
# no imports
# no functions
# classes
from Shapes_parts.Shape import Shape
from Shap... | [
"magnetscoil@gmail.com"
] | magnetscoil@gmail.com |
662ac5c22209ab1bbcafdac831582daeef57b3cf | 6f7032e954334d102a9e1eff8f420f0a8b7ee70a | /advanced/screenshot.py | a05f0f2a3d26ce7c9dfb342912bcf57c0348b147 | [] | no_license | suchismitarout/selenium_practice | 186596e14ed66550ef184703a04aa323faad9f45 | 2281e6a3a526f2ff5c1c566517dc85b4ae23b85b | refs/heads/master | 2022-12-26T12:16:17.297471 | 2020-10-06T06:21:04 | 2020-10-06T06:21:04 | 301,632,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,122 | py | from selenium import webdriver
import time
class Screenshot():
def take_screenshot(self):
apt = webdriver.ChromeOptions()
apt.add_argument("user-data-dir=C:/Users/Suchismita/AppData/Local/Google/Chrome/User Data/Profile 1")
driver = webdriver.Chrome(executable_path="D:/drivers/chromedriver.... | [
"suchismitarout47@gmail.com"
] | suchismitarout47@gmail.com |
d9318038c162429390b0615220b4cc4bfe08caad | 8dcd3ee098b4f5b80879c37a62292f42f6b2ae17 | /venv/Lib/site-packages/pandas/tests/base/test_constructors.py | 4696eafe0beb84c743626168d398c69da3ef9cd1 | [] | no_license | GregVargas1999/InfinityAreaInfo | 53fdfefc11c4af8f5d2b8f511f7461d11a3f7533 | 2e4a7c6a2424514ca0ec58c9153eb08dc8e09a4a | refs/heads/master | 2022-12-01T20:26:05.388878 | 2020-08-11T18:37:05 | 2020-08-11T18:37:05 | 286,821,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,030 | py | import sys
from datetime import datetime
import numpy as np
import pandas as pd
import pandas._testing as tm
import pytest
from pandas import DataFrame, Index, Series
from pandas.compat import PYPY
from pandas.core.accessor import PandasDelegate
from pandas.core.base import NoNewAttributesMixin, PandasObject
class T... | [
"44142880+GregVargas1999@users.noreply.github.com"
] | 44142880+GregVargas1999@users.noreply.github.com |
f9eed992fd80342b825d3d4dc3dadd88b0235e31 | 99a43cdb360b28f9d8d8cc8fc27d8c2f45271c77 | /app01/migrations/0013_auto_20181228_0701.py | 344ea63483063f237973b16bc7cf545253712afd | [] | no_license | xiaoyaolaotou/MyBook | a542e8702ab46ae1904c3d2efa702cbf642033c0 | d83f07f968005bd34246c684c1bd34405ff07d32 | refs/heads/master | 2020-04-11T10:30:40.995240 | 2019-01-08T08:44:40 | 2019-01-08T08:44:40 | 161,717,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # Generated by Django 2.0 on 2018-12-28 07:01
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('app01', '0012_book_price'),
]
operations = [
migrations.AddField(
model_name='book',
name='kucun',
field=m... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
7baa74fbac89b10f4fc7c6afd56905a86e3dad3e | c27b02ece1348d2f504baeb1b9c15fc3fc693bd8 | /src/handlers/scheduling/new_schedule.py | 879e670ff637ff86972758620aca9710d15bf51f | [] | no_license | jfly/cubingusa-org | 60b7119b6f52d2ad6732f83dc2d123cb3277c616 | f843cae7a30ec5f39d93519f965a3a18b352107f | refs/heads/master | 2021-09-02T05:45:01.251015 | 2017-12-30T20:51:03 | 2017-12-30T20:51:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,523 | py | import datetime
import json
import urllib
import webapp2
from src.handlers.oauth import OAuthBaseHandler
from src.handlers.scheduling.scheduling_base import SchedulingBaseHandler
from src.models.scheduling.schedule import Schedule
class NewScheduleHandler(SchedulingBaseHandler):
def get(self, competition_id):
... | [
"timbreynolds@gmail.com"
] | timbreynolds@gmail.com |
ab79f61b5b2d6b33aefb85846d1cb1bf04ccbd41 | e23a4f57ce5474d468258e5e63b9e23fb6011188 | /140_gui/pyqt_pyside/examples/zetcode/003_Layout management/002_Box layout.py | feb4aff5c1689caff7f074a2e1fd98b389270d4b | [] | 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 | 905 | py | import sys
from PySide2.QtWidgets import (QWidget, QPushButton,
QHBoxLayout, QVBoxLayout, QApplication)
class Example(QWidget):
def __init__(self):
super(Example, self).__init__()
self.initUI()
def initUI(self):
okButton = QPushButton("OK")
cancelButton = QPushButton("Ca... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
49326d64d55bad878e9f7dafa17207140415223f | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_36/128.py | 90cb6b2da6389f9898ac71d26a26f3919d88ed01 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,096 | py | import sys
strData = "welcome to code jam"
strDataLen = len(strData)
file = open(sys.argv[1],"r")
num = int(file.readline())
fout = open("output","w")
for c in range(num):
matchStr = file.readline()
matchStrLen = len(matchStr)
# Creating the matrix
mat = []
for i in range(strDataL... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
7821d50ce4067f1974c4b6604108cc0dd11833c8 | c612f9fd2fba45dfeaf2cb27884b30f520287f77 | /chromeos/components/telemetry_extension_ui/DEPS | e048463c3f6310d90b9b08a80ea22213c7546834 | [
"BSD-3-Clause"
] | permissive | Turno/chromium | c498ab6d3c058d737b17439029989f69f58fe9c7 | 4e5eb9aba6c91df5e965f3eecd76c3ae17b0b216 | refs/heads/master | 2022-12-07T22:58:55.989642 | 2020-08-10T12:03:21 | 2020-08-10T12:03:21 | 286,471,394 | 1 | 0 | BSD-3-Clause | 2020-08-10T12:39:55 | 2020-08-10T12:39:54 | null | UTF-8 | Python | false | false | 273 | include_rules = [
# Do not add chrome here (use a delegate instead).
"+chromeos/grit/chromeos_telemetry_extension_resources.h",
"+content/public/browser",
"+content/public/common",
"+mojo/public/js/grit",
"+ui/base/resource/resource_bundle.h",
"+ui/webui",
]
| [
"commit-bot@chromium.org"
] | commit-bot@chromium.org | |
4ef15ecd459b8979a4757b3af64fa61cbfd43894 | b9fd66a95741c78441cd4f202abe0964afb4b67c | /detectors/ntech/models/detector.py | cb8ae9d7d0f6c01ccb4633c3838fcb723c02456a | [
"Apache-2.0"
] | permissive | zhampel/FakeFinder | d8896ea59027116b4d337bda9e00284db7cf8d0e | 2891a8649acc1dabdef07554d6acb346dd23dbae | refs/heads/main | 2023-07-07T04:03:24.576134 | 2021-08-16T02:31:41 | 2021-08-16T02:31:41 | 343,505,168 | 0 | 0 | Apache-2.0 | 2021-03-30T03:13:10 | 2021-03-01T17:45:17 | Python | UTF-8 | Python | false | false | 2,012 | py | import torch
from torchvision.models.detection.transform import GeneralizedRCNNTransform
from .dsfacedetector.face_ssd_infer import SSD
DETECTOR_THRESHOLD = 0.3
DETECTOR_MIN_SIZE = 512
DETECTOR_MAX_SIZE = 512
DETECTOR_MEAN = (104.0, 117.0, 123.0)
DETECTOR_STD = (1.0, 1.0, 1.0)
__all__ = ['Detector']
class Detector... | [
"mllomnitz@gmail.com"
] | mllomnitz@gmail.com |
0ba98c779d63b222c1aae993a5dbeeac0fbf281e | ff0e6734bac3fa7e64d7cb2b56f9f567340e28c5 | /ch06/ex6-6.weight_init_activation_histogram.py | a664e1ae251f47bbdaaf006638ee83df0e8ac5c7 | [] | no_license | freebz/Deep-Learning-from-Scratch | 88ecc2811d19aa30433f0938e8f18a434447030a | a2d774bc4567b1df2dd5655d3195376381d33bd6 | refs/heads/master | 2020-03-30T04:45:15.010151 | 2018-09-28T15:21:56 | 2018-09-28T15:21:56 | 150,760,318 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | # 은닉층의 활성화값 분포
import numpy as np
import matplotlib.pyplot as plt
def sigmoid(x):
return 1 / (1 + np.exp(-x))
x = np.random.randn(1000, 100) # 1000개의 데이터
node_num = 100 # 각 은닉층의 노드(뉴런) 수
hidden_layer_size = 5 # 은닉층이 5개
activations = {} # 이곳에 활성화 결과(활성화값)를 저장
for i in range(hidden_layer_size):
... | [
"freebz@hananet.net"
] | freebz@hananet.net |
7542470787bc9f28764ca6499485ee72dc6838b5 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03524/s167797805.py | e1fc65851e5eb36f6eb952532b16610e27369a46 | [] | 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 | 137 | py | s=list(input())
a=s.count("a")
b=s.count("b")
c=len(s)-a-b
M=max(a, b, c)-min(a, b, c)
if M<=1:
print("YES")
else:
print("NO") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
cd68ad823ea9e87d7cd59edbe6e2b0ae94b7121f | a544c0fa8bf767d2d625b47e42ad3b67565a7e56 | /models/necks/__init__.py | 12ddaf1b7472a28df2a3c40248c70755899f1a7b | [] | no_license | KwpGitHub/letsdet | b107cd1d74034f668a176ee7624b6edfb95d7e4f | a48ec0895b95691467d4291a73b2c2a2f29b670a | refs/heads/main | 2023-04-08T08:28:27.488624 | 2021-04-22T14:17:05 | 2021-04-22T14:17:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | from .fpn import FPN
from .bifpn import BiFPN
from .dlaup import dla_up
from .nas_fpn import nas_fpn
from .dilated_encoder import DilatedEncoder
from .centernet_deconv import centernet_deconv
from .path_aggregation_neck import path_aggregation_neck
from .feature_fusion_pyramid import feature_fusion_pyramid
__all__ =... | [
"1065731927@qq.com"
] | 1065731927@qq.com |
ab8fba060171144d09e7e1803c0ce8e248611755 | 082517dc060c2e27f21c9eef0b156c3110505cd9 | /dtoolai/__init__.py | 98c67ee81f9bb64301123415045def9c20d7e6bf | [] | no_license | jic-dtool/dtoolai | afdbfb3e72a268a66249b398ad3bd29c15e62a46 | 9646ede94f2bd03d0374a9f102a2a296511638b6 | refs/heads/master | 2020-04-09T09:07:51.964352 | 2019-01-26T21:37:03 | 2019-01-26T21:37:03 | 160,221,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,142 | py |
import numpy as np
from imageio import imread
from keras.preprocessing.image import ImageDataGenerator
from dtoolai.utils import identifiers_where_overlay_is_true
def tile_generator(im, ts=256):
rows, cols = im.shape[0], im.shape[1]
nr = rows//ts
nc = cols//ts
for r in range(nr):
for c ... | [
"mhartley@cantab.net"
] | mhartley@cantab.net |
ded9afb5a9eeb2d1fc717fd52acfc30e4e8ff246 | 28809dbb9d3a1901af0d2a6ea71eff0cee4c545d | /mapping/coverage2bedgraph.py | 9b73a1ba60d0f06c653c9fdc643c4002153ec0ac | [] | no_license | afilipch/afp | 6088f3375741c8a837006e9d4b3e716dfffc0b2a | b941a3eeb4d8447b3628c79a528c60cb540537e3 | refs/heads/master | 2021-06-28T00:57:37.869912 | 2020-10-14T16:50:20 | 2020-10-14T16:50:20 | 155,242,147 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,156 | py | #! /home/a_filipchyk/soft/home/a_filipchyk/anaconda3/bin/python
'''Converts coverage-per-position file into bedgrpah file'''
import argparse
import os
import sys
from pybedtools import BedTool
from collections import Counter
import numpy as np
from afbio.sequencetools import coverage2dict;
parser = argparse.Argume... | [
"philipchick@gmail.com"
] | philipchick@gmail.com |
1fdf24c7cef60dbf7334f5fffc4e8a40601e0caf | bc441bb06b8948288f110af63feda4e798f30225 | /database_delivery_sdk/model/cmdb_extend/system_dependency_pb2.pyi | 1566c6b8ea474b6e5e9504028a317706e81b1aa4 | [
"Apache-2.0"
] | permissive | easyopsapis/easyops-api-python | 23204f8846a332c30f5f3ff627bf220940137b6b | adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0 | refs/heads/master | 2020-06-26T23:38:27.308803 | 2020-06-16T07:25:41 | 2020-06-16T07:25:41 | 199,773,131 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,703 | pyi | # @generated by generate_proto_mypy_stubs.py. Do not edit!
import sys
from database_delivery_sdk.model.cmdb_extend.subsystem_dependency_pb2 import (
SubsystemDependency as database_delivery_sdk___model___cmdb_extend___subsystem_dependency_pb2___SubsystemDependency,
)
from google.protobuf.descriptor import (
D... | [
"service@easyops.cn"
] | service@easyops.cn |
3b11d3ee5119cfa96c2d692bb49952d377f3b750 | a665f561b103a51404785f35d0026c60f0083cb4 | /0x06-python-classes/3-square.py | c06a29da04e43bd11a56f565dc13aec176d3e480 | [] | no_license | Joshua-Enrico/holbertonschool-higher_level_programming | c5f3c9ab55167ea2e7ea3b31dd8edf2e22a18bde | 8c1559f9c772b60186e899e17c67d299f88de726 | refs/heads/main | 2023-07-31T17:45:16.723947 | 2021-09-23T00:29:25 | 2021-09-23T00:29:25 | 361,960,411 | 1 | 5 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | #!/usr/bin/python3
"""defining a square"""
class Square:
""" represents a square
Attributes:
___size (int): size of a side of the square
"""
def __init__(self, size=0):
"""Initializes square
Args:
size (int): size of a side of the square
Returns: None
... | [
"tmrfack@gmail.com"
] | tmrfack@gmail.com |
572d8087c48f1abd0a2ab764ca8afe9c81ec7b10 | 1a4bc1a11fdb3f714f22f5e0e826b47aa0569de2 | /hw/hw04/tests/q1_4.py | 1c0a38d8e25d906015c2a8ad9137fd8dc35cd938 | [] | no_license | taylorgibson/ma4110-fa21 | 201af7a044fd7d99140c68c48817306c18479610 | a306e1b6e7516def7de968781f6c8c21deebeaf5 | refs/heads/main | 2023-09-05T21:31:44.259079 | 2021-11-18T17:42:15 | 2021-11-18T17:42:15 | 395,439,687 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | test = { 'name': 'q1_4',
'points': None,
'suites': [ { 'cases': [ {'code': '>>> california_burritos.num_columns\n2', 'hidden': False, 'locked': False},
{'code': '>>> california_burritos.num_rows\n46', 'hidden': False, 'locked': False}],
'scored': ... | [
"taylorgibson@gmail.com"
] | taylorgibson@gmail.com |
d09cc94c40646f499a82292c62b9576eb1a7193b | 7e372d7120a0051b277e26d6176aeb4db8331b37 | /foodboxes/foodboxes/urls.py | e97461db9c9af0d0119360ff6d583f4a16db3902 | [] | no_license | arifgafizov/foodboxes_v.1.1 | c4c806486b79f996fb8d0c51e3283db1ca765e02 | c0609fd87d062ed8d1f938f81318fa6b3ef24543 | refs/heads/master | 2023-03-03T08:38:52.664013 | 2021-02-12T13:26:20 | 2021-02-12T13:26:20 | 328,393,731 | 2 | 0 | null | 2021-02-15T07:00:12 | 2021-01-10T13:49:17 | Python | UTF-8 | Python | false | false | 692 | py | from django.contrib import admin
from django.urls import path, include
from drf_yasg import openapi
from rest_framework import permissions
from drf_yasg.views import get_schema_view
schema_view = get_schema_view(
openapi.Info(
title='Stepic DRF API',
default_version='v1',
),
public=True,
... | [
"agafizov@gmail.com"
] | agafizov@gmail.com |
49587488af96f8e5eaa4674318bb5bd67c632149 | ad13583673551857615498b9605d9dcab63bb2c3 | /output/instances/nistData/list/duration/Schema+Instance/NISTXML-SV-IV-list-duration-minLength-4-3.py | 356296a72be7dfd64893ed113a1d4661c2cf70dc | [
"MIT"
] | permissive | tefra/xsdata-w3c-tests | 397180205a735b06170aa188f1f39451d2089815 | 081d0908382a0e0b29c8ee9caca6f1c0e36dd6db | refs/heads/main | 2023-08-03T04:25:37.841917 | 2023-07-29T17:10:13 | 2023-07-30T12:11:13 | 239,622,251 | 2 | 0 | MIT | 2023-07-25T14:19:04 | 2020-02-10T21:59:47 | Python | UTF-8 | Python | false | false | 688 | py | from output.models.nist_data.list_pkg.duration.schema_instance.nistschema_sv_iv_list_duration_min_length_4_xsd.nistschema_sv_iv_list_duration_min_length_4 import NistschemaSvIvListDurationMinLength4
from xsdata.models.datatype import XmlDuration
obj = NistschemaSvIvListDurationMinLength4(
value=[
XmlDurat... | [
"tsoulloftas@gmail.com"
] | tsoulloftas@gmail.com |
ee5c2d68549ecdc2dadb4ff01a12971589c71557 | 0990ad7a017c3ada58318b1b3018f893b632ba7a | /assignments/08PuntoCircunferencia/src/exercise.py | 533b220a78e9b245d254f7fbd7715877071d1076 | [] | no_license | C-MTY-TC1028-037-2113/tarea-programacion-condicionales-intermedio-LuisDanielMtz | d2e5517766c88fa28df90bed89c53f5d29bf81c3 | aa030312c9d540a61ab398ac422c7f18d0424e46 | refs/heads/main | 2023-08-18T14:36:20.662459 | 2021-09-28T23:51:21 | 2021-09-28T23:51:21 | 411,471,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | import math
def main():
# Escribe tu código abajo de esta línea
r = float(input("Introduce el radio: ")) #Radio
x1 = float(input("Introduce x1: ")) # Coordenada X1 del centro de la circunferencia
y1 = float(input("Introduce y1: ")) # Coordenada Y1 del centro de la circunferencia
x2 = float(input("I... | [
"66690702+github-classroom[bot]@users.noreply.github.com"
] | 66690702+github-classroom[bot]@users.noreply.github.com |
8e7f1bfd5cc1b7cea1d7ef838ddf56af401c8d3f | 9a8fe99c7316dfce343be81d2c3c1a6c4f22572c | /primeornot.py | 817b0d4a2d1604e5c465547bbc3dba7e0ae887c9 | [] | no_license | Srija-U/codekatabeginner | 5e4d540484529dbafada04d3eac96eab7f98a693 | 8d088e04de1d48d9befb975697e9121f06bb164a | refs/heads/master | 2020-04-30T00:58:51.445394 | 2019-07-01T15:43:05 | 2019-07-01T15:43:05 | 176,516,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | class pri:
def __init__(self):
self.a=int(input())
def fin(self):
if(self.a>1):
for i in range(2,self.a):
if(self.a%i==0):
print("no")
break
else:
print("yes")
else:
pr... | [
"noreply@github.com"
] | Srija-U.noreply@github.com |
4fa2772dd690618943ab53e0dafc834f2113e632 | a54d94f596b128f7d95dcbe68f251ff4aa7bc233 | /mliber_libs/maya_libs/maya_objects/maya_abc.py | 64d15041407e53b2631718d443b726c485ee1ac5 | [] | no_license | githeshuai/mliber | 477433ad580f31dbeabd3c099669b8c575b7c854 | 5fdc4e308191345149b902c5913e2698336630ea | refs/heads/master | 2023-03-09T17:43:51.018584 | 2021-02-26T03:00:05 | 2021-02-26T03:00:05 | 331,487,121 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,671 | py | # -*- coding: utf-8 -*-
import maya.cmds as mc
from mliber_libs.os_libs.path import Path
from mliber_libs.maya_libs.maya_objects import MayaObject
from mliber_libs.maya_libs.maya_utils import load_plugin, create_reference
class MayaAbc(MayaObject):
def __init__(self, path):
"""
Args:
p... | [
"276575758@qq.com"
] | 276575758@qq.com |
79ef26732a8daf72aa0a7609625664afe37e694c | 01e7c0bd6d25273efb426a43ad7a91321f1e417d | /day1/scrap_kospi.py | 77a737ca98cdcc8bca81339c84c96f42b47c4d2a | [] | no_license | hoik92/chatbot | 45ba2a1d46c45001e9fafdd353cf42a97dd9b1b7 | c51f9e0e959e0828eba29cad5466a400cd90bc99 | refs/heads/master | 2020-04-12T00:52:00.419051 | 2018-12-27T08:41:57 | 2018-12-27T08:41:57 | 162,214,442 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 211 | py | import bs4
import requests
url = "https://finance.naver.com/sise/"
response = requests.get(url).text
doc = bs4.BeautifulSoup(response, 'html.parser')
result = doc.select_one('#KOSPI_now')
print(result.text) | [
"hoik92@nate.com"
] | hoik92@nate.com |
1207ce157cd53a07dda0ec2c4d7a04f756d6228d | ef6db15efda8b7b472b73ebd6bea3530ab30d45a | /openclean/function/value/mapping.py | c5d76539da6a0f492d83ff62473b02882d7e986d | [
"BSD-3-Clause"
] | permissive | Denisfench/openclean-core | 57698fc9ac8b1bccc848262721d0e705529cf27f | e3d0e04f90468c49f29ca53edc2feb12465c24d5 | refs/heads/master | 2023-09-01T02:21:35.133098 | 2021-10-04T19:34:57 | 2021-10-04T19:34:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,760 | py | # This file is part of the Data Cleaning Library (openclean).
#
# Copyright (C) 2018-2021 New York University.
#
# openclean is released under the Revised BSD License. See file LICENSE for
# full license details.
"""The mapping operator that returns a dictionary that contains a mapping of
original values in a data fra... | [
"heiko.muller@gmail.com"
] | heiko.muller@gmail.com |
0271716f39bc5453df31d82bcaf105a3f1000267 | ef3cd1376f100579aa33b01eb75d75888f639868 | /home/migrations/0002_load_initial_data.py | edba78d8ce33a35b1b54198bae2ed2619f6c160c | [] | no_license | crowdbotics-apps/dreamapp-15052 | 2004949234efa57bc3cbd42d367f72727f93b849 | bb5ea73190133ecfb1639462f2fac608b5c20704 | refs/heads/master | 2022-12-10T23:23:51.460367 | 2020-03-25T11:12:43 | 2020-03-25T11:12:43 | 249,957,143 | 0 | 0 | null | 2022-12-08T07:12:30 | 2020-03-25T11:12:22 | Python | UTF-8 | Python | false | false | 1,286 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "dreamapp"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")
... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
50addba3eaea358b15b535171e452591f695eb4b | 1b9d2bad6048ad282e85f9dbf502b496bd9dc870 | /app/models.py | 71336cac2b8bd012037813c78c5862f72d22ef43 | [] | no_license | gautamamber/employee-management-web-app-flask | 73e1178db2f84a73349229d26939fb6c8ba582f5 | 49923787380b6925b340d5adf9fd57fc73043ac4 | refs/heads/master | 2022-06-13T06:24:38.848100 | 2020-05-06T11:18:49 | 2020-05-06T11:18:49 | 261,659,651 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | from flask_login import UserMixin
from werkzeug.security import generate_password_hash, check_password_hash
from app import db, login_manager
class Employee(UserMixin, db.Model):
"""
Create Employee Table
Ensure name will be in plural
"""
__tablename__ = "employees"
id = db.Column(db.Integer,... | [
"ambergautam1@gmail.com"
] | ambergautam1@gmail.com |
8002fd01e00df96943c7223915cba211196af132 | d4b77e54b70dcff1e5a3f922c0a62cc59b337b72 | /blog/views.py | 3de21b745bc83f2460d180d4ac51b4f990943031 | [] | no_license | ruyacoskun/my-first-blog | e2dd6375ffd8c53b2859d5fa105c40aae11c5994 | d6232915e8deb432825c7a7a068c6093a369c4d8 | refs/heads/master | 2020-12-31T07:54:55.959283 | 2016-02-13T15:32:47 | 2016-02-13T15:32:47 | 51,541,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,038 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import redirect
from django.shortcuts import render
from django.utils import timezone
from .models import Post
from django.shortcuts import render, get_object_or_404
from .forms import PostForm,CommentForm
from django.shortcuts import redir... | [
"root@localhost.localdomain"
] | root@localhost.localdomain |
669167c235c4cfc8a492a60ef758104267a85692 | c40fe7aab6b03a990958a8abaaa0577fc1c122bc | /d2_t1.py | 3f18b2ae9d83cb52d0e02bcd193a23772e510c9c | [] | no_license | JoelDavisP/Coding-task-solutionns | 1a9404d7d8488b4b6e8ca8fc3d448a04ec22f637 | 6aead6e2fa01f35ad4e08d7f73ea677c62979a14 | refs/heads/master | 2021-01-22T19:40:52.949889 | 2017-09-21T17:25:29 | 2017-09-21T17:25:29 | 100,715,859 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,905 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Basic string exercises
# Fill in the code for the functions below. main() is already se... | [
"joeldavisp17195@gmail.com"
] | joeldavisp17195@gmail.com |
49229b71b7cebd4d465d005c2ac77578bb10eb11 | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/16_0_1_neat/16_0_1_thegreyd_sheep.py | 56494791f9391a40b57d0d9996e5941596f17073 | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 371 | py | def solve(x):
numset = {"0","1","2","3","4","5","6","7","8","9"}
if(x==0):
return "INSOMNIA"
else:
xset = set(str(x))
i=2
while(xset!=numset):
y = x*i
xset.update(set(str(y)))
i+=1
return y
for t in range(int(input())):
pr... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
153c75065f2cd23000ac0296d99cf3569e9b951a | 3fef5ea4a88bc42a0acdb7ae581639ebbb3dd962 | /tb_store/tb_store/utils/yuntongxun/sms.py | 4d2f2baaa32ca97146707f70a466b361ec612a7d | [] | no_license | ducgt/Django-Store | 96476597811c6db772e196d9cd56ef9516e1e287 | f68b7dd657b2a9c5769a3a657be083dad5b2ff11 | refs/heads/master | 2021-04-21T20:54:54.811437 | 2019-07-22T08:16:44 | 2019-07-22T08:17:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,726 | py | # -*- coding:utf-8 -*-
from .CCPRestSDK import REST
# 说明:主账号,登陆云通讯网站后,可在"控制台-应用"中看到开发者主账号ACCOUNT SID
_accountSid = '8a216da86b2bc78f016b361c93d8025f'
# 说明:主账号Token,登陆云通讯网站后,可在控制台-应用中看到开发者主账号AUTH TOKEN
_accountToken = '78637b84e5544705bda2aca3426c88f5'
# 请使用管理控制台首页的APPID或自己创建应用的APPID
_appId = '8a216da86b2bc78f016b36... | [
"15670339118@qq.com"
] | 15670339118@qq.com |
e8994399e66fd142906e12d2f03c84a429da7591 | 422dd5d3c48a608b093cbfa92085e95a105a5752 | /students/stuartkershaw/lesson01/generator_solution.py | 50fe69e6747b1bb036d32a172bc83555845e752d | [] | no_license | UWPCE-PythonCert-ClassRepos/SP_Online_Course2_2018 | a2052fdecd187d7dd6dbe6f1387b4f7341623e93 | b1fea0309b3495b3e1dc167d7029bc9e4b6f00f1 | refs/heads/master | 2021-06-07T09:06:21.100330 | 2019-11-08T23:42:42 | 2019-11-08T23:42:42 | 130,731,872 | 4 | 70 | null | 2021-06-01T22:29:19 | 2018-04-23T17:24:22 | Python | UTF-8 | Python | false | false | 541 | py | def intsum(i=0, cur=0):
while True:
cur += i
yield cur
i += 1
def intsum2(i=0, cur=0):
while True:
cur += i
yield cur
i += 1
def doubler(i=1):
while True:
yield i
i *= 2
def fib(a=1, b=1):
while True:
yield a
a, b = b,... | [
"stuartdkershaw@gmail.com"
] | stuartdkershaw@gmail.com |
769dc82799480274f236794a8a2eae28702fc797 | 755bf98f303f4cd8b4bbcb71a7e0154632545938 | /flexpart_management/notebooks/run_2019-09-25_15-25-01_/chech_flx_out_files_plot.py | f0fb747081071b33b03bbc31e0d6d96b0a78c8df | [] | no_license | daliagachc/flexpart_management | 6917941fded96f439a7fa86499629f82c851b736 | e22255ab9b5284c15832187625c8393fa6b3d0d0 | refs/heads/master | 2021-06-12T13:53:45.991483 | 2021-05-03T09:38:59 | 2021-05-03T09:38:59 | 180,370,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,813 | py | # ---
# jupyter:
# jupytext:
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.2'
# jupytext_version: 1.2.3
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# %%
from useful_scit.imps import (pd,np,xr,za,mpl,pl... | [
"diego.aliaga@helsinki.fi"
] | diego.aliaga@helsinki.fi |
206351a2918b89a2d40b7ac8a9bc9d64d1f1f23f | ad212b92beac17c4d061848c1dcd443d02a168c8 | /python/0804_unique_morse_code_words/listcomp.py | dd516954db61048f5bf6bf7425552de3745223fa | [] | no_license | 21eleven/leetcode-solutions | 5ec97e4391c8ebaa77f4404a1155f3ef464953b3 | 35c91e6f5f5ed348186b8641e6fc49c825322d32 | refs/heads/master | 2023-03-03T10:22:41.726612 | 2021-02-13T21:02:13 | 2021-02-13T21:02:13 | 260,374,085 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,765 | py | """
804. Unique Morse Code Words
Easy
International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a" maps to ".-", "b" maps to "-...", "c" maps to "-.-.", and so on.
For convenience, the full table for the 26 letters of the English alphabet is given be... | [
"noahlidell@gmail.com"
] | noahlidell@gmail.com |
3b71fb440c84ab7411d2fa88d9c775387c5391d4 | e8cbde72e392849b8564e01dd0afa1998ff897e3 | /exec_build_makers.py | 4b3d2a8d4fa51171f0297921922573a38d2c7de2 | [
"MIT"
] | permissive | clchiou/scons_package | 4e602a46abe7d956c4879670fe8018dc042ed31d | 60717cc975c684073811ce4842125bead734cebb | refs/heads/master | 2020-04-24T17:24:43.296185 | 2014-01-28T03:47:06 | 2014-01-28T03:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,701 | py | # Copyright (c) 2013 Che-Liang Chiou
from collections import defaultdict
import os
import sys
from SCons.Script import SConscript
from scons_package import builder_maker
from scons_package.builder_maker_registry import BuilderMakerRegistry
from scons_package.package_registry import PackageEnvironmentRegistry
from sc... | [
"clchiou@gmail.com"
] | clchiou@gmail.com |
20273417355a2418fb677ebb512de5bb7d1ad27b | 01df56558016062cc15a6fc1c3d806f7621107a3 | /sandwich/sandwich.py | e1089aa9d94b1aa1f707f7f881f9ab5c8d0940e6 | [] | no_license | jasonyu0100/ncss-challenge-2018 | 18b9df6bb56d2fcf1130fa84de30b5c3197db510 | 263971fa6e9cb408b466db2190febaf2a4657c0d | refs/heads/master | 2020-03-27T17:37:46.412844 | 2018-08-31T09:22:37 | 2018-08-31T09:22:37 | 146,862,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,211 | py | preferences = open('preferences.txt')
sandwiches = open('sandwiches.txt')
ingredientsDict = {}
for line in preferences:
name,val = line.strip().split(',')
val = int(val)
ingredientsDict[name] = val
combinations = []
for line in sandwiches:
combination = line.strip().split(',')
combinations.append(combinatio... | [
"jasonyu0100@gmail.com"
] | jasonyu0100@gmail.com |
8020e4fb7edd9b5bdf21fe0b93dc387ba0f00057 | 29fae683de63d8684c359d9ad5ce7f52e9d48c78 | /app/challengepost/migrations/0001_initial.py | 867bd1090e07d9d6fdd1891fb42caf4df4ccb45c | [] | no_license | jeonyh0924/NBAproject | 4dfab90f6251abeaf2828f2aa240b61567d0ce17 | 2adf0d7a08c1d495bbfb07d6c2672e1ec19a2dbe | refs/heads/master | 2022-09-14T11:45:34.490333 | 2020-10-31T04:15:54 | 2020-10-31T04:15:54 | 165,981,470 | 0 | 0 | null | 2022-08-23T17:30:30 | 2019-01-16T05:46:23 | JavaScript | UTF-8 | Python | false | false | 2,854 | py | # Generated by Django 2.1.5 on 2019-11-03 17:52
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"hungyb0924@gmail.com"
] | hungyb0924@gmail.com |
7e1f64d3a87d3f49612a6097558268293f2669bb | d994cee3810de8f5fa895807f415d8051dfd1319 | /HetMan/experiments/gene_baseline/models/stan_logistic.py | adbcf769528265c2cebf8ff3d998395e9e1b2fc1 | [] | no_license | ohsu-comp-bio/bergamot | b4e162525d1cc66975d64866cc68004ee42828e2 | 37fd50fc1ce6da83049a0cbbad5038a055fd3544 | refs/heads/master | 2023-07-24T01:15:27.695906 | 2019-09-19T01:39:13 | 2019-09-19T01:39:13 | 89,973,424 | 1 | 2 | null | 2023-07-06T21:07:53 | 2017-05-02T00:03:26 | Python | UTF-8 | Python | false | false | 760 | py |
from ....predict.pipelines import PresencePipe
from ....predict.stan.base import *
from ....predict.stan.logistic.classifiers import BaseLogistic
from ....predict.stan.logistic.stan_models import gauss_model
import numpy as np
from sklearn.preprocessing import StandardScaler, RobustScaler
class Base(PresencePipe):
... | [
"mgrzad@gmail.com"
] | mgrzad@gmail.com |
771662ae95f2dfe06e8b3268514f3f090663b791 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/mldsnoop/epgrec.py | ee701dc047b2bcc81b01deaa31fddbe8cb23a80a | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,654 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
3a60114ec93d6586457baf883e0806b00fbd1ca9 | 0c960bf7a0d5f6cda59e397023bf05f24b103b62 | /tests/job_normalize_test.py | 0bff115e3ebb17b5e4874483e8a9ee1c89e31c65 | [] | no_license | bhargavaganti/skills-api | eadc70fb8888cc4f4c64bc56cae2ea7245148eee | 937215fd50165e87c7c616207ff579d4947f293a | refs/heads/master | 2020-04-16T01:38:39.802267 | 2018-07-24T16:40:45 | 2018-07-24T16:40:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,212 | py | from app import app
import httpretty
import json
import re
import unittest
class JobNormalizeTestCase(unittest.TestCase):
def setUp(self):
self.app = app.app.test_client()
self.app.testing = True
def mock_endpoint_with_response(self, source_filename):
httpretty.HTTPretty.allow_net_co... | [
"tristan.h.crockett@gmail.com"
] | tristan.h.crockett@gmail.com |
32844160970dc77e65d52f87d2931fc815661216 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /build/fuchsia/test/compatible_utils.py | 12904094245c8108858851bc52bcc8cf659c185c | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | Python | false | false | 7,123 | py | # Copyright 2022 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Functions used in both v1 and v2 scripts."""
import os
import platform
import re
import stat
import subprocess
from typing import Iterable, List, Optional, Tuple
# File indi... | [
"chromium-scoped@luci-project-accounts.iam.gserviceaccount.com"
] | chromium-scoped@luci-project-accounts.iam.gserviceaccount.com |
d4fd57ee39d785d4a8302d6258e3a81b96b6927c | 7705648ca52fd8da6c32d66f0c5b0245b0e6f549 | /February Challenge 2020/CASH/CASH.py | 41041b7469f2c202112f28740ea35e8066d196e7 | [] | no_license | candyer/codechef | 2694f7ff28ab8f4e2d766aaa9ab23dedd98cb086 | 1c09cd8abd1cea333e17f687a525c5cf616036a5 | refs/heads/master | 2021-07-09T16:33:02.355470 | 2020-07-20T12:03:57 | 2020-07-20T12:03:57 | 60,278,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | # https://www.codechef.com/FEB20B/problems/CASH
###################################################################
from typing import List
def solve(n: int, k: int, arr:List[int]):
'''
1 <= T <= 10^3
1 <= N <= 10^5
0 <= Ai <= 10^9 for each valid i
1 <= K <= 10^9
the sum of N over all test cases does not exceed ... | [
"candyer@users.noreply.github.com"
] | candyer@users.noreply.github.com |
4f1a358b352d7c50d8d68df5268e79ba6cd8c43f | 1fb0669e639112b022c0ba9ee4163fbd89484292 | /hyper/regularizers.py | ff019a31946e791db576ea7da5b2569bffe5ae67 | [
"MIT"
] | permissive | pminervini/neural-schema-regularization | 71747552a8f1e7d07ef25f1fe4a313dee5b44467 | 03e7a86cd4d01d982b5c31f63bafe886135d7cb4 | refs/heads/master | 2021-03-27T10:12:12.885983 | 2017-06-06T07:43:30 | 2017-06-06T07:43:30 | 47,346,445 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,676 | py | # -*- coding: utf-8 -*-
import abc
from keras.regularizers import Regularizer
from keras import backend as K
from hyper import similarities
class L1(Regularizer):
def __init__(self, l1=0.):
self.l1 = K.cast_to_floatx(l1)
self.uses_learning_phase = True
def set_param(self, p):
self.... | [
"pasquale.minervini@insight-centre.org"
] | pasquale.minervini@insight-centre.org |
6b03331b68f2aac1473ff6901310a53a29f01ef3 | fca1dcd6a1ed138ecac462a4c9ccbd4d077599ef | /Notes/simplified_control_flow_instructions_part_7.py | dfd4ecc9a4c7bba9fc332834f26af33f5cdcee16 | [] | no_license | jasonbrackman/writing_a_compiler | 0a29e4d614671a878d07c2a4228b6ea1c930a782 | 9d4c1ef7a8f4a789f92d196de10b41069d86afec | refs/heads/master | 2021-01-13T10:30:59.396463 | 2016-10-01T03:04:32 | 2016-10-01T03:04:32 | 69,210,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,173 | py | """
Control Flow in 30 Minutes (or less) - Maybe
============================================
Note; This needs to be tested. I'm about 99% sure it's going to
work though.... - Dave
Prerequisites:
--------------
- You need support for booleans (Project 6)
- Your parse tree must have conditionals in it
(if statemen... | [
"brackman@gmail.com"
] | brackman@gmail.com |
6280c4de7075d1b296176971057f6c9edd7e6f58 | 91b0486da9102028401b2d05240672cbea381f20 | /posts/models.py | 298a5f31ce2d8d17ce162a26964b6cbe63f8dac1 | [] | no_license | royerguerrero/petgram | f607b706bd3ffe7cc0416bb05594f0c6a46310cb | aea9b7075763c627a379e557230e01c6c095a723 | refs/heads/master | 2023-08-12T04:00:07.202001 | 2021-01-25T02:31:37 | 2021-01-25T02:31:37 | 261,352,826 | 1 | 0 | null | 2021-09-22T19:02:41 | 2020-05-05T03:27:19 | Python | UTF-8 | Python | false | false | 606 | py | """Posts models"""
# Django
from django.db import models
# Models
from django.contrib.auth.models import User
from users.models import Profile
class Post(models.Model):
"""Post Model"""
user = models.ForeignKey(User, on_delete=models.CASCADE)
profile = models.ForeignKey(Profile, on_delete=models.Case)
... | [
"royjuni3431@gmail.com"
] | royjuni3431@gmail.com |
fca4947f023477fd1e6e3c4bc14c98b76f49d63e | bb767bfc9db2b0ab7f24d3561b168a829c4eb0bc | /1st_Year/1st_Semestre/Fpro/Python/saved files/fizzbuzz2.py | c5acc58b7d2c97c451b84fb02df31e224fab0fed | [] | no_license | Hugomguima/FEUP | 7e6e0faf5408d698a34c3b5aed977b20aa76c067 | f26887e2b8e92e41ae5050515cd0b3cdf94d6476 | refs/heads/master | 2023-06-09T05:21:38.897094 | 2021-06-29T17:00:01 | 2021-06-29T17:00:01 | 272,567,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 26 08:59:21 2018
@author: Hugo
"""
n = int(input("Input an integer number: "))
string = ""
if n <= 0 :
print("Input error")
for i in range(1, n + 1):
if i % 5 == 0 and i % 3 == 0:
string += ""
elif i % 3 == 0 and i % 5 != 0:
string += "... | [
"50011557+Hugomguima@users.noreply.github.com"
] | 50011557+Hugomguima@users.noreply.github.com |
fc3d1cdb855a95d7dc6475c4207701e0d3a412f6 | 213b8cab639c7d45cbf6a4fd46eb23e379d9d374 | /python/kivy_examples/hello.py | f5dfa581df293d9346251df4ce5ebbcef833ef95 | [] | no_license | DevDungeon/Cookbook | f85b04b690ea0a202ddfaeda6460b6ba5797cb70 | a49a1c77f2b89dc303fa9f2563bb3c19777e4c6c | refs/heads/master | 2023-05-12T06:58:50.606019 | 2022-03-30T04:48:16 | 2022-03-30T04:48:16 | 34,371,982 | 307 | 94 | null | 2023-05-03T22:53:45 | 2015-04-22T06:02:53 | HTML | UTF-8 | Python | false | false | 324 | py | # main.py
# Modified from https://kivy.org/doc/stable/guide/basic.html
import kivy
kivy.require('1.11.1') # Set to your Kivy version
# print(kivy.__version__)
from kivy.app import App
from kivy.uix.button import Button
class MyApp(App):
def build(self):
return Button(text='This is a button.')
MyApp().r... | [
"nanodano@devdungeon.com"
] | nanodano@devdungeon.com |
de0c6b0f5e708bdfcbb483daa7a484698f19e890 | 45647e2affbae0f2c7361e00ec408b98943f84c3 | /24_钴价格爬虫/cobalt_price.py | f5699e9b3348ed1cb713a5e1cf15dbe8b18e08f6 | [] | no_license | wgcgxp/Fixed_income_internship | 011a2f04534a7928e1148882f76eda87c268375d | a72a49ea727009b6af27d1ce4a24fc32678554fc | refs/heads/master | 2023-04-26T08:28:40.868300 | 2021-04-14T06:43:18 | 2021-04-14T06:43:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,737 | py | import requests
from bs4 import BeautifulSoup
import os
import pandas as pd
import datetime
import time
def get_html(url):
headers={
'Host': 'hq.smm.cn',
'Connection': 'keep-alive',
'Upgrade-Insecure-Requests': '1',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/'
... | [
"zikepeng@outlook.com"
] | zikepeng@outlook.com |
0b6adbf10bdaa76f13878c9f45f526afcd1b1970 | 01733042e84a768b77f64ec24118d0242b2f13b8 | /ixnetwork_restpy/testplatform/sessions/ixnetwork/traffic/trafficitem/applibprofile/applibflow/parameter/bool/bool.py | ffe4a0ff6ff7a54e9df0ecd3c54917f748279290 | [
"MIT"
] | permissive | slieberth/ixnetwork_restpy | e95673905854bc57e56177911cb3853c7e4c5e26 | 23eeb24b21568a23d3f31bbd72814ff55eb1af44 | refs/heads/master | 2023-01-04T06:57:17.513612 | 2020-10-16T22:30:55 | 2020-10-16T22:30:55 | 311,959,027 | 0 | 0 | NOASSERTION | 2020-11-11T12:15:34 | 2020-11-11T12:06:00 | null | UTF-8 | Python | false | false | 4,176 | py | # MIT LICENSE
#
# Copyright 1997 - 2020 by IXIA Keysight
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation
# the rights to use, copy, ... | [
"andy.balogh@keysight.com"
] | andy.balogh@keysight.com |
76c660f8996ea801ca3775b8b8aa4fe06df903dc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03739/s269030032.py | e4aa6302d1c9cc50a85750e6b21050249d8cfa9d | [] | 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 | 2,099 | py | import sys,collections as cl,bisect as bs
sys.setrecursionlimit(100000)
input = sys.stdin.readline
mod = 10**9+7
Max = sys.maxsize
def l(): #intのlist
return list(map(int,input().split()))
def m(): #複数文字
return map(int,input().split())
def onem(): #Nとかの取得
return int(input())
def s(x): #圧縮
a = []
if l... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
1aaeb90d67124d4bad95332156434059dbd2c854 | ae7884af1ec3965b7c0eec22edad6b74f78b7ba6 | /server/src/uds/transports/__init__.py | c244537e9ace92590d51e062cb4a5b18d278dad4 | [] | no_license | glyptodon/openuds | f4eefa319a3ead827dad999d24e5ee3854d1345d | 3908c875d30ec332490fc8c049bb537e10f10d08 | refs/heads/master | 2021-07-12T20:58:49.281242 | 2021-03-05T22:42:55 | 2021-03-05T22:42:55 | 62,921,174 | 0 | 1 | null | 2016-07-08T22:33:44 | 2016-07-08T22:33:44 | null | UTF-8 | Python | false | false | 3,314 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2012 Virtual Cable S.L.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
#... | [
"dkmaster@dkmon.com"
] | dkmaster@dkmon.com |
9f80fdcdda0b7f143db2348f9d969305f34515d5 | c22da67f4b1ac5e7fc28a9f81bf9fccefb33308e | /companies/tencent/2016_rd_2.py | b33d63bac1a415fd1b41bd66814f5828967aa44d | [] | no_license | iamkissg/nowcoder | 3b9d7ffffaba2c1ee43647595ae86619e2efb504 | 9b7e590d8f2e200d1ac98672d10f3ae9216a13e1 | refs/heads/master | 2020-05-04T10:35:55.606425 | 2020-04-28T12:49:52 | 2020-04-28T12:49:52 | 179,091,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | # -*- coding:utf-8 -*-
"""ACCEPT"""
class Gift:
def getValue(self, gifts, n):
# write code here
sorted_gifts = sorted(gifts, key=lambda t: gifts.count(t), reverse=True)
if sorted_gifts.count(sorted_gifts[0]) * 2 > n:
return sorted_gifts[0]
else:
return 0 | [
"enginechen07@gmail.com"
] | enginechen07@gmail.com |
ed798766f2d9668317f28e83c5fda12c9a1e4a49 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_201/2506.py | 3f8690dec802e3f9606c2b7abd7d1f2974a14434 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | import math
import os
import time
__author__ = 'ricky'
def stalls(N, K):
vals = {}
i1 = 0
i2 = 0
for i in range(0, K):
if len(vals) == 0:
num = N
else:
num = max(vals)
idx = vals[num]
vals[num] = idx - 1
if idx == 1:
... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.