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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
32d769360c3b3706f42a2f42c8b12903939383f8 | 9b1446b26e81a79c303f9799fb6a91785c7adb03 | /.history/Code/markov_chain_20200120225120.py | c8637afc95c9347859961865560d6e5a25020a0a | [] | no_license | SamirIngley/CS1.2-Tweet-Gen | 017ea15b1113881a156ff24682828bc654eb6c81 | bcd95fa63e05849cbf8e36230d8e31032b99daaa | refs/heads/master | 2020-12-14T20:19:57.733290 | 2020-08-04T23:19:23 | 2020-08-04T23:19:23 | 234,856,234 | 0 | 0 | null | 2020-06-05T21:13:04 | 2020-01-19T07:05:55 | Python | UTF-8 | Python | false | false | 794 | py | import sample
from clean_text import clean
class Markov():
def __init__(self, corpus):
self.corpus = corpus
self.states = {}
self.chain()
def chain(self):
last_word = None
for word in self.corpus:
if last_word is not None: # set last word line 14
... | [
"samir.ingle7@gmail.com"
] | samir.ingle7@gmail.com |
61b0a836a83e88645081bc1ab3f28d2beac4fce3 | 2337351b228818e41be3002bd38f68f77c2aa074 | /core/confdb/syntax/protocols/lldp/hints.py | 3b89367275377af955519b66880edf74dbe19045 | [
"BSD-3-Clause"
] | permissive | nocproject/noc | 57d40c680a1499374463e472434f9595ed6d1374 | 6e6d71574e9b9d822bec572cc629a0ea73604a59 | refs/heads/master | 2023-08-31T01:11:33.544573 | 2023-08-30T17:31:11 | 2023-08-30T17:31:11 | 107,815,776 | 105 | 33 | BSD-3-Clause | 2023-07-31T07:57:45 | 2017-10-21T21:04:33 | Python | UTF-8 | Python | false | false | 839 | py | # ----------------------------------------------------------------------
# ConfDB hints protocols lldp syntax
# ----------------------------------------------------------------------
# Copyright (C) 2007-2019 The NOC Project
# See LICENSE for details
# -------------------------------------------------------------------... | [
"dv@nocproject.org"
] | dv@nocproject.org |
c3e795fbfe3826d2f5904f7e97ae0c1ae14fa894 | 3644db13925e6d518a9637edafa6247547ca90b4 | /interprocedural_analyses/taint/test/integration/functions_as_locals.py | f4f5aa681cb6601056ece250cd511564f500a956 | [
"MIT"
] | permissive | luizribeiro/pyre-check | 348699cecf82a5aa36f5e1301076cb006a2fb9f9 | 42d1fced8cbb94c4c9400d6fddd798e50d331ab9 | refs/heads/master | 2023-04-17T17:26:23.262598 | 2020-08-08T04:03:04 | 2020-08-08T04:03:35 | 285,969,507 | 0 | 0 | MIT | 2023-04-04T01:56:30 | 2020-08-08T04:01:31 | OCaml | UTF-8 | Python | false | false | 675 | py | # flake8: noqa
from builtins import __test_sink, __test_source
def foo(arg):
__test_sink(arg)
def foo_as_local():
x = __test_source()
f = foo
foo(x)
f(x)
def local_tito(arg):
f = foo
f(arg)
class C:
def m(self, arg):
__test_sink(arg)
def local_function_with_method_sink(... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
c6b23600f363b1173b40bde086cf7afccd9b839d | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /dQZmkrPaKdtSat5f9_6.py | 326adc8b9d5d878706b0607ed434207c59a78551 | [] | no_license | daniel-reich/ubiquitous-fiesta | 26e80f0082f8589e51d359ce7953117a3da7d38c | 9af2700dbe59284f5697e612491499841a6c126f | refs/heads/master | 2023-04-05T06:40:37.328213 | 2021-04-06T20:17:44 | 2021-04-06T20:17:44 | 355,318,759 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py |
def single_occurrence(txt):
txt = txt.upper()
Answer = ""
Counter = 0
Length = len(txt)
while (Counter < Length):
Item = txt[Counter]
Events = txt.count(Item)
if (Events == 1):
Answer = Item
return Answer
else:
Counter += 1
return Answer
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
d5dfb9aaf7c429e06f387052e4b01e2a87138406 | 242f738d327bc0d35409100c506dc3266c254e6c | /aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/DeleteForwardEntryRequest.py | aeb8a5cd3133a00a9ac6ff7017a989261379aaab | [
"Apache-2.0"
] | permissive | crazygit/aliyun-openapi-python-sdk | f5d70b89f01a02945fcdc43c3c1e32cc1b0fb2c1 | 3edb9f23f1ada79f4876678aacee88818cfeb11e | refs/heads/master | 2021-06-25T05:59:09.143419 | 2017-09-13T10:19:40 | 2017-09-13T10:19:40 | 103,385,054 | 0 | 0 | null | 2017-09-13T10:13:55 | 2017-09-13T10:13:55 | null | UTF-8 | Python | false | false | 2,138 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"haowei.yao@alibaba-inc.com"
] | haowei.yao@alibaba-inc.com |
fb1fa79cb27c7a6ce4a935e217688714206a1b88 | 32079a99520872be97e83ccbd3ae6f003f925006 | /devel/lib/python2.7/dist-packages/geographic_msgs/msg/_GeoPoseStamped.py | aaf7353b2780ed3961d18e3356795aab1a14a471 | [] | no_license | wndxwilson/Azimorph | a00fa8d34e664cc29cd9226ec378f93fa7df088e | 60b81694cadaaf30b9f640a4ed3bebd20ebc2f1a | refs/heads/master | 2023-02-16T12:55:26.046759 | 2021-01-08T22:09:30 | 2021-01-08T22:09:30 | 328,021,807 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,489 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from geographic_msgs/GeoPoseStamped.msg. Do not edit."""
import codecs
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
import geographic_msgs.msg
import geometry_msgs.msg
import std_msgs.msg
... | [
"you@example.com"
] | you@example.com |
079956603181043e047fcfcd8ae48b9209a73544 | 596e92d0d484b6e7eee6d322e72e52748fdeaa5d | /sportsdata/mlb_projections/models/mlb_projections_dfs_slate_game.py | 4aadebaeb66acdeb4d93f89a1e1c5748361edf13 | [] | no_license | scottypate/sportsdata | f5f61ddc7eb482883f93737c6ce73dd814ed4336 | a07955ab50bf4fff1ce114ed9895095ff770c473 | refs/heads/main | 2023-08-18T16:51:56.452678 | 2021-10-22T12:44:08 | 2021-10-22T12:44:08 | 420,062,350 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,117 | py | # coding: utf-8
"""
MLB v3 Projections
MLB projections API. # noqa: E501
OpenAPI spec version: 1.0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re # noqa: F401
import six
class MlbProjectionsDfsSlateGame(object):
"""NOTE: This class is auto g... | [
"scotty.pate@auth0.com"
] | scotty.pate@auth0.com |
318cd859b70a41e212785c1596ffdf88353bce76 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_7/snxkai001/util.py | 217a94e3e61b1d0258092af7a9640f7e96345ae2 | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | def create_grid (grid):
for u in range(4):
grid.append([])
for down in range(4):
grid[u].append(0)
def print_grid(grid):
print("+" + "-"*20 + "+")
allign= "{0:" "<5}"
for row in range(4):
print("|", end="")
for col in range(4):
i... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
39e716c97c55b1ae0ce73788baea20aa77976d3b | 9508879fcf1cff718f3fe80502baff8b82c04427 | /data_structures_domain/linked_lists/print_in_reverse.py | 9e70be3bfc61fc9bdc1e648101f1a043b9f0ec55 | [] | no_license | davidozhang/hackerrank | e37b4aace7d63c8be10b0d4d2bffb4d34d401d55 | bdc40d6ff3e603949eb294bbc02a1e24a4ba5b80 | refs/heads/master | 2021-05-04T11:31:59.110118 | 2017-11-15T09:17:27 | 2017-11-15T09:17:27 | 47,906,672 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 529 | py | """
Print elements of a linked list in reverse order as standard output
head could be None as well for empty list
Node is defined as
class Node(object):
def __init__(self, data=None, next_node=None):
self.data = data
self.next = next_node
"""
def ReversePrint(head):
if not head:
... | [
"davzee@hotmail.com"
] | davzee@hotmail.com |
2ba36e1719cbf15b2cb9501534717d6961417159 | 2a9a136296e3d2abebf3a3dbfbbb091076e9f15f | /env/Lib/site-packages/werkzeug/debug/__init__.py | e678589f38dc51ac239012e27c5b00b0d099ac27 | [] | no_license | Lisukod/planet-tracker | a865e3920b858000f5d3de3b11f49c3d158e0e97 | 6714e6332b1dbccf7a3d44430620f308c9560eaa | refs/heads/master | 2023-02-18T19:26:16.705182 | 2021-01-23T01:51:58 | 2021-01-23T01:51:58 | 328,032,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,561 | py | # -*- coding: utf-8 -*-
"""
werkzeug.debug
~~~~~~~~~~~~~~
WSGI application traceback debugger.
:copyright: 2007 Pallets
:license: BSD-3-Clause
"""
import getpass
import hashlib
import json
import mimetypes
import os
import pkgutil
import re
import sys
import time
import uuid
from itertools import ... | [
"45397160+Lisukod@users.noreply.github.com"
] | 45397160+Lisukod@users.noreply.github.com |
54601c3faba97921513238671d4defe422ee9d46 | d3eb732ffd738d3a624196f0971e4c29f85f6673 | /maptool.py | 57b5b053df938d8e44ecddd90a5bd11d4c5471b6 | [] | no_license | kailIII/mgrs-tools | c44aae9542e9883e9e1a395217b468bea4fb0788 | 3ac612bdf980f2d61f27d417c709115890af415f | refs/heads/master | 2021-01-15T16:57:14.768002 | 2015-04-01T12:15:10 | 2015-04-01T12:15:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 955 | py | import mgrs
from qgis.core import *
from qgis.gui import *
from qgis.utils import iface
from PyQt4.QtCore import *
class MGRSMapTool(QgsMapTool):
ct = mgrs.MGRS()
epsg4326 = QgsCoordinateReferenceSystem("EPSG:4326")
def __init__(self, canvas):
QgsMapTool.__init__(self, canvas) ... | [
"volayaf@gmail.com"
] | volayaf@gmail.com |
c3af8fef67afd6550242c8ca323ebe060625aa59 | 0536e3c635c300a999764dba6f8cd766eeab95f2 | /uni_ticket/urls.py | 652787eb129ab484d29d304cbbaedde7ce73da93 | [
"Apache-2.0"
] | permissive | mspasiano/uniTicket | 57b7d4a6f2550529f37ecc6d685bd386e98590d3 | 1e8e4c2274293e751deea5b8b1fb4116136c5641 | refs/heads/master | 2020-12-02T20:28:47.297929 | 2020-01-10T11:03:43 | 2020-01-10T11:03:43 | 231,111,874 | 0 | 0 | Apache-2.0 | 2019-12-31T15:40:50 | 2019-12-31T15:40:49 | null | UTF-8 | Python | false | false | 15,976 | py | from django.contrib import admin
from django.contrib.auth import views as auth_views
from django.urls import include, path, re_path
from django.utils.text import slugify
from django.views.generic import RedirectView
from . decorators import is_manager, is_operator, is_the_owner
from . settings import MANAGEMENT_URL_PR... | [
"francesco.filicetti@unical.it"
] | francesco.filicetti@unical.it |
08b0a728944265f677ec74dadd71c4ada25f038e | c86cd75be4f5b4eef605fb0f40743406ae19685f | /asdl/typed_arith_parse.py | 3153714975fcab1c9e004bd1f6229ff6f08b8ae4 | [
"Apache-2.0"
] | permissive | jyn514/oil | 3de53092c81e7f9129c9d12d51a8dfdbcacd397b | 42adba6a1668ff30c6312a6ce3c3d1f1acd529ec | refs/heads/master | 2022-02-23T08:12:48.381272 | 2019-03-15T08:54:31 | 2019-03-15T08:54:31 | 176,316,917 | 0 | 0 | Apache-2.0 | 2019-03-18T15:36:14 | 2019-03-18T15:36:13 | null | UTF-8 | Python | false | false | 8,508 | py | #!/usr/bin/env python
"""
typed_arith_parse.py: Parse shell-like and C-like arithmetic.
"""
from __future__ import print_function
import sys
from _devbuild.gen.typed_arith_asdl import (
arith_expr, arith_expr_e, arith_expr_t,
arith_expr__Binary, arith_expr__FuncCall, arith_expr__Const)
from typing import Dic... | [
"andy@oilshell.org"
] | andy@oilshell.org |
7ceceed258eb306cbc6fee57056ca756971ba8da | df1cb33bfe99a1e72cf75931749163b7c8731757 | /stages/stage3.py | 012d626c02d661dbc7a2f17848fc0e501c06bcb9 | [] | no_license | orf/wikilink_py | 2d6ae9dd64264fdf17995980ed8a4a960c199c5b | 6643397e220970a93dab1e50e120748bfdc3bf19 | refs/heads/master | 2021-01-22T11:55:16.906965 | 2014-01-08T20:49:38 | 2014-01-08T20:49:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,415 | py | from lib.progress import run_with_progressbar
from lib.formatters.Neo4jFormatter import Neo4jFormatter
from lib.formatters.CSVFormatter import MultiCSVFormatter
import functools
import os
import logging
import sys
import itertools
import __pypy__
import json
logger = logging.getLogger()
logger.addHandler(logging.Strea... | [
"tom@tomforb.es"
] | tom@tomforb.es |
92df4a82b4256ff8f683501f22e0c09dbea8b0c0 | b89df6019163d7b18a8ecb4003939f6235b5de85 | /mnist/cnn_mnist.py | 0f8dd40e176c805f08e1a65e10cdad7e16b51923 | [] | no_license | liketheflower/tf_practise | fdd22b608ca7d513a4972497466e3fc7a12762b6 | 2725b52169b2f0044d20b3c33c86485336e65483 | refs/heads/master | 2020-03-19T23:21:16.467649 | 2018-06-19T03:56:07 | 2018-06-19T03:56:07 | 137,003,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,709 | py | #opyright 2016 iThe TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applic... | [
"jim.morris.shen@gmail.com"
] | jim.morris.shen@gmail.com |
d89b26a0c2aa42dccc501acbb07ac7e597b9047a | 102b67d83e12219f3bf4bea6ed691ddd9c2e69f1 | /ad/templatetags/ads.py | 7e6251780e534773006f27332ae6205e14bdccc8 | [
"BSD-3-Clause"
] | permissive | nicksergeant/snipt-old | 2cb6bec629d798dd83fc39f0105828f1fd40a51a | f2f1e9f183fb69bcc0fabbc25059bfd1c60527e2 | refs/heads/master | 2021-01-18T14:03:01.426851 | 2012-09-19T00:09:48 | 2012-09-19T00:09:48 | 865,573 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 882 | py | from tagging.models import TaggedItem
from snipt.ad.models import Ad
from django import template
register = template.Library()
@register.simple_tag
def ad(tag):
try:
ads = TaggedItem.objects.get_by_model(Ad.objects.order_by('?'), tag)
ad = ads[0]
except:
ads = Ad.objects.order_by('?')
... | [
"nick@nicksergeant.com"
] | nick@nicksergeant.com |
974c0c7fd25b0de5202f8adde919a1f585b0a4ed | aa45f6f5106517c582b21691ce22ad808339ec64 | /borax/calendars/birthday.py | aea5997b9e454ee9eaf8a2861a068b38780a781c | [
"MIT"
] | permissive | kinegratii/borax | 86b1a87c686f9b74db8d919afe30761497888368 | 06407958a6ba3115d783ed6457c2e7355a3f237c | refs/heads/master | 2023-03-11T06:09:20.040607 | 2022-11-15T02:39:43 | 2022-11-15T02:39:43 | 126,959,349 | 67 | 8 | MIT | 2022-11-15T02:39:44 | 2018-03-27T09:07:08 | Python | UTF-8 | Python | false | false | 1,151 | py | from datetime import date
from .lunardate import LunarDate, LCalendars
def nominal_age(birthday, today=None):
birthday = LCalendars.cast_date(birthday, LunarDate)
if today:
today = LCalendars.cast_date(today, LunarDate)
else:
today = LunarDate.today()
return today.year - birthday.year... | [
"kinegratii@gmail.com"
] | kinegratii@gmail.com |
689a7bcf9a17e9920971e0f75dbeae77f831658a | 65b9a63e8c132f32aeb56961968f5e363bd9a087 | /20190708_python识别中文车牌windows/同样的参数训练结果不同/09_last0.6937/keras_train_test.py | 8cb1811604a268356d28d0685ff1158985f6c64e | [] | no_license | 346644054/examples2019 | e70f13cfb56c3478fc6e335c730e0e70e70a6226 | 5f9777e7a887e635971156354f56ce065fa3f41e | refs/heads/master | 2022-04-09T03:52:52.973414 | 2020-02-28T03:05:02 | 2020-02-28T03:05:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,425 | py | # -*- coding: utf-8 -*-
"""
Vehicle plate recognition
using keras
Author: elesun
https://cloud.tencent.com/developer/article/1005199
# -*- coding: utf-8 -*-
"""
from __future__ import print_function
import os
import numpy as np
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
from kera... | [
"elesun2018@gmail.com"
] | elesun2018@gmail.com |
a0f1f2557839af7ed23dfb81c8ff5bea64a59bc4 | e4c25590298b084e3fb44b0b325a05699fac4202 | /Kattis/sevenwonders.py | 5a96568a7cc25485bbe157259a725421d500474b | [] | no_license | shakib609/competitive-programming | 520028bd1147e7e43e708875b6390e1a7d65a94b | 5090d5d3650b8055e16651ed9de5380cc7fdb7aa | refs/heads/master | 2022-12-09T12:33:20.167332 | 2022-12-07T17:28:30 | 2022-12-07T17:28:30 | 67,289,210 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 226 | py | s = input().strip()
t, c, g = [0, 0, 0]
for ch in s:
if ch == 'T':
t += 1
elif ch == 'C':
c += 1
else:
g += 1
result = t ** 2 + c ** 2 + g ** 2
result += min([t, c, g]) * 7
print(result)
| [
"shakib609@gmail.com"
] | shakib609@gmail.com |
52afe556959590049b64feb71a30c5fce7fedaf1 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/containerregistry/v20190501/get_webhook.py | 7948e368ab3b2de549dbfecb516f227ee8cca61a | [
"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 | 6,711 | 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"
] | bpkgoud.noreply@github.com |
b4cb6b650396f272e17879ab0ae5704357b257f3 | ce564f0a9b6f261e5303779ab95f8c1629487ac7 | /django_mysql_fix/version.py | e7cea81e8496619ab8dc010d38b5a71077b6eb17 | [
"MIT"
] | permissive | frol/django-mysql-fix | 192e334cb94c0fdf14516383022d6c5d4486c1d8 | 96d1e960b49ab686ea6d8d766bb4d86edb806e47 | refs/heads/master | 2021-01-19T14:09:38.956874 | 2014-05-03T16:07:11 | 2014-05-03T16:07:11 | 18,802,306 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | VERSION = (0, 1, 6)
__version__ = '.'.join(unicode(x) for x in VERSION)
| [
"frolvlad@gmail.com"
] | frolvlad@gmail.com |
5d1ff2249d14c248fe7903d781b51ba405023c40 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-4/a2602090981a65652199423a185e3c2bd8b2c356-<merge_bgp_peer_af_other>-bug.py | 3f4c944a4a6b2f086abda5e8ebe56efc68a702a4 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,936 | py | def merge_bgp_peer_af_other(self, **kwargs):
' merge_bgp_peer_af_other '
module = kwargs['module']
vrf_name = module.params['vrf_name']
af_type = module.params['af_type']
remote_address = module.params['remote_address']
conf_str = (CE_MERGE_BGP_PEER_AF_HEADER % (vrf_name, af_type, remote_address... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
df9dd24400578916c3d14c13ccc9926eddfabb48 | 38eb57300418e6f10433630437388f779ce50e09 | /cookie_and_session/app02_session/views.py | 25a4bbc4abf9387fc8de2e70f90c22b5c03e8db7 | [] | no_license | SelfShadows/Django-Flask | f37839f763133f0d62bffad3128171c426a1c038 | 13e32d1c8aac1532b43323e1891c423fe78f2813 | refs/heads/master | 2021-01-04T12:31:18.018508 | 2020-02-14T16:29:27 | 2020-02-14T16:29:27 | 240,550,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,688 | py | from django.shortcuts import render ,redirect
from functools import wraps
from django import views
# Django提供的工具,把函数装饰器转变为方法装饰器
from django.utils.decorators import method_decorator
from app02_session import models
def check_login(func):
@wraps(func) # 装饰器修复技术
def inner(request, *args, **kwargs):
# 获取s... | [
"870670791@qq.com"
] | 870670791@qq.com |
e2e081e324e998a37d2a94a4d1659f2fbfec36c3 | dd3b3fc3cbb9a48d5056f39969f3e2be0e6abbaf | /venv/Scripts/pip3-script.py | cb3d85e6d3895a84278dc67a8e5d53ce243a4847 | [] | no_license | Pactortester/QDS_phone | c0c323dd44c22924d36a1c9fe8b13db354192c81 | 9844242e5a71de89c3cb994e70c40d3dfd7b0f35 | refs/heads/master | 2020-04-10T16:19:00.264023 | 2019-04-03T09:15:48 | 2019-04-03T09:15:48 | 161,141,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 387 | py | #!G:\QDS_phone\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==10.0.1','console_scripts','pip3'
__requires__ = 'pip==10.0.1'
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(
... | [
"1456470136@qq.com"
] | 1456470136@qq.com |
6f42046e26a53d45a6b0e199f1b66b160ac34a3f | 99d7765da35926279c4a4fd7313d55908786f4b8 | /0/2/2739/2739.py | 32df89b38143b4cce88cb8125277af2ebf5543fb | [
"MIT"
] | permissive | chr0m3/boj-codes | b8294c5d4d10a5af25b5276427bccd74d0866ef5 | d71d0a22d0a3ae62c225f382442461275f56fe8f | refs/heads/master | 2021-08-16T15:24:57.733088 | 2021-03-22T13:13:10 | 2021-03-22T13:13:10 | 91,523,558 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | a = input()
for i in range(0, 9):
print("%d * %d = %d" % (int(a), i + 1, int(a) * (i + 1)))
| [
"chr0m3@users.noreply.github.com"
] | chr0m3@users.noreply.github.com |
9d2cd1f61430081aa4a65d8e29b28e23f51b088f | 85f6de6e3ef680cd717312233fd03c636c606550 | /src/two/rolling_a_dice.py | faf4234c08ca6aa9dc9b3cb20192a6fdd631a5dc | [
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | Guillermogsjc/dissecting-reinforcement-learning | f8956455ffda22445ecc11fc6938da40ed4948e2 | 8a2751efa6d4a733df81c272c503b8061c70c04f | refs/heads/master | 2021-01-11T20:41:02.216522 | 2017-01-15T11:32:27 | 2017-01-15T11:32:27 | 79,168,192 | 1 | 0 | null | 2017-01-16T23:14:54 | 2017-01-16T23:14:53 | null | UTF-8 | Python | false | false | 611 | py | import numpy as np
#Trowing a dice for N times and evaluating the expectation
dice = np.random.randint(low=1, high=7, size=3)
print("Expectation (3 times): " + str(np.mean(dice)))
dice = np.random.randint(low=1, high=7, size=10)
print("Expectation (10 times): " + str(np.mean(dice)))
dice = np.random.randint(low=1, hig... | [
"massimiliano.patacchiola@gmail.com"
] | massimiliano.patacchiola@gmail.com |
fac85c5c169eaf142355c0655ac86fcd5f74fc09 | 52b5773617a1b972a905de4d692540d26ff74926 | /.history/surrounded_20200617223518.py | 233debe26db46593e2dfe08e99e70eb47ac5cf87 | [] | no_license | MaryanneNjeri/pythonModules | 56f54bf098ae58ea069bf33f11ae94fa8eedcabc | f4e56b1e4dda2349267af634a46f6b9df6686020 | refs/heads/master | 2022-12-16T02:59:19.896129 | 2020-09-11T12:05:22 | 2020-09-11T12:05:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,136 | py | def surronded(board):
# dfs
# untouched
# in progress
# finished
rows = len(board)
if rows == 0:
return
cols = len(board[0])
if cols == 0:
return
state = [[0]* cols for _ in range(rows)]
def canReachOutside(x,y,pending):
pending.append(x,y)
... | [
"mary.jereh@gmail.com"
] | mary.jereh@gmail.com |
f7704d11de6500356f5a0264aa2a05b0534f42a0 | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /spaceopt/gp_utils.py | dabf02d461833af563929d3c7310be1c9a08d714 | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 8,808 | py | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
d662e3cccc6393bf07124edfdf202bfc54925ebe | 7cf29923d278c5b934a40de216ac606c25c8a5eb | /wheelcms_axle/translate.py | 4f0f0c74ba26a7823c2018014ad16b58ddbffc3f | [
"BSD-2-Clause"
] | permissive | wheelcms/wheelcms_axle | 1df024f75d17544a575953359e3cc9a4ab56d93c | b5916b555f37b7baafdf08fd56b5b985688df9d0 | refs/heads/master | 2020-04-05T22:43:04.176353 | 2015-04-05T10:53:42 | 2015-04-05T10:53:42 | 7,800,085 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,095 | py | from django.conf import settings
any_lang = ('any', 'Any')
def languages():
languages = tuple(settings.CONTENT_LANGUAGES)
if any_lang not in languages:
languages = languages + (any_lang, )
return languages
def fallback_languages(language):
""" given a language, provide a list of alternative... | [
"github@in.m3r.nl"
] | github@in.m3r.nl |
fb48fd9656915149d8133355706be99ed2db0469 | a31de016611f3b4efc7a576e7113cad1a738419b | /_string_monster2.py | ba71783722b858478094721a871a759c7c6dd5c1 | [] | no_license | Ing-Josef-Klotzner/python | 9d4044d632672fff966b28ab80e1ef77763c78f5 | 3913729d7d6e1b7ac72b46db7b06ca0c58c8a608 | refs/heads/master | 2022-12-09T01:40:52.275592 | 2022-12-01T22:46:43 | 2022-12-01T22:46:43 | 189,040,355 | 0 | 0 | null | 2022-12-01T19:52:37 | 2019-05-28T14:05:16 | Python | UTF-8 | Python | false | false | 1,363 | py | #!/usr/bin/python3
from sys import stdin
def match (ssof, ss):
if ss == "": return True
#print (ssof, ss, end = " ")
for st in ssof:
if ss.startswith (st):
return match (ssof - {st}, ss [len (st):])
return False
# this works with testcases, because strings are included
# in order i... | [
"noreply@github.com"
] | Ing-Josef-Klotzner.noreply@github.com |
1f3f8ad62b3bff4ac0821b0fc51593df8ce0d5ce | c61c9bedba1968bfaf571ac3996b696fc35890a6 | /Chapter12/has_match.py | 00b6ca1068d542e225e1be731b69d6152b593ec3 | [] | no_license | ArunRamachandran/ThinkPython-Solutions | 497b3dbdeba1c64924fe1d9aa24204a9ca552c5b | 1a0872efd169e5d39b25134960168e3f09ffdc99 | refs/heads/master | 2020-04-01T10:23:20.255132 | 2014-11-07T17:04:52 | 2014-11-07T17:04:52 | 25,806,318 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 463 | py | # has_match takes two sequences, t1 and t2, and returns True, if there is
# an index i such that t1[i] == t2[i]
def has_match(t1,t2):
for x,y in zip(t1,t2):
if x == y:
return True
else:
return False
t1 = "banana"
t2 = "sequence"
print "Given sequences are : "
print t1
print t2
case = has_match(t1,t2)
if ... | [
"arunkramachandran92@gmail.com"
] | arunkramachandran92@gmail.com |
8f18a7a3cb0b452be92e2c21ca740144639a7e69 | 7e4a1838dbcbe0526f20b4b49f88a3f213dbc712 | /npcaller/fasta.py | 7d1d78befe1990ff329540e7f2e2e5f87acb256e | [
"MIT"
] | permissive | grst/nanopore_pkg | c5c8ee940ddd9218c08846ba5e5884c697914ca6 | e13ccfae0be79f23ae3270b09744726504b0e58f | refs/heads/master | 2023-04-02T14:38:52.410352 | 2020-11-06T19:34:37 | 2020-11-06T19:34:37 | 48,172,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,569 | py | """
Since skbio and Biopython are overkill and slightly to complicated most of the time
I came up with this really simple fasta-io class.
"""
from itertools import groupby
class FastaReader(object):
def __init__(self, file):
if not hasattr(file, 'read'):
self.file = open(file, 'r')
els... | [
"mail@gregor-sturm.de"
] | mail@gregor-sturm.de |
fc77466e30f68146a40c8d3ba3b858f15859ddb5 | 19ddab74600f71700a6b693281d0180d5271f295 | /程序员面试金典/03_03_堆盘子.py | 2f96f3b2e8fb699bf5461a949729ba6f932d252c | [] | no_license | zhulf0804/Coding.Python | 4d55a430da1a8077c81feba65c13ac654aaf094a | 46ab03e23d15ebd5434ef4dd5ae99130000b00a5 | refs/heads/master | 2022-09-14T18:40:59.880941 | 2022-08-20T08:25:51 | 2022-08-20T08:25:51 | 213,113,482 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | class StackOfPlates:
def __init__(self, cap: int):
self.stack = []
self.cap = cap
def push(self, val: int) -> None:
if self.cap == 0:
return
if len(self.stack) == 0 or len(self.stack[-1]) == self.cap:
self.stack.append([])
self.stack[-1].append(v... | [
"zhulf0804@gmail.com"
] | zhulf0804@gmail.com |
c4fd6afe113c170e2b3985c756cac05390668ae8 | e04dbc32247accf073e3089ed4013427ad182c7c | /hhkb2020/C TLE.py | 61c4d78700c4375a274fc85a2aa4fa2d73278a89 | [] | no_license | twobooks/atcoder_training | 9deb237aed7d9de573c1134a858e96243fb73ca0 | aa81799ec87cc9c9d76de85c55e99ad5fa7676b5 | refs/heads/master | 2021-10-28T06:33:19.459975 | 2021-10-20T14:16:57 | 2021-10-20T14:16:57 | 233,233,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | import numpy as np # np.lcm(),np.gcd()
N = int(input())
arrP = np.array(input().split(),dtype=np.int64)
arrAll = np.arange(200000+1,dtype=np.int64)
mask = np.ones(200000+1,dtype=np.int64) == 1
for p in arrP:
mask[p] = False
print(arrAll[mask][0]) | [
"twobookscom@gmail.com"
] | twobookscom@gmail.com |
27b8f49cb7a0e85b1fe35959e45a5d9c84dcb57b | dfb53581b4e6dbdc8e3789ea2678de1e1c4b5962 | /Django/mydjango01/news/views.py | 21a263f4be374c6a40d7fe19b8fd65329d2cf18d | [] | no_license | biabulinxi/Python-ML-DL | 7eff6d6898d72f00575045c5aa2acac45b4b0b82 | 217d594a3c0cba1e52550f74d100cc5023fb415b | refs/heads/master | 2020-06-01T09:13:17.314121 | 2019-06-08T03:59:36 | 2019-06-08T03:59:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def index(request):
return HttpResponse("这是news的首页")
| [
"biabu1208@163.com"
] | biabu1208@163.com |
3b199477395e73ead41b6374f4f1e0d538de6b1a | e10a6d844a286db26ef56469e31dc8488a8c6f0e | /homophonous_logography/neural/transformer_model.py | 9264e7380f16b34f04cdfb65679049c04562b23b | [
"Apache-2.0",
"CC-BY-4.0"
] | permissive | Jimmy-INL/google-research | 54ad5551f97977f01297abddbfc8a99a7900b791 | 5573d9c5822f4e866b6692769963ae819cb3f10d | refs/heads/master | 2023-04-07T19:43:54.483068 | 2023-03-24T16:27:28 | 2023-03-24T16:32:17 | 282,682,170 | 1 | 0 | Apache-2.0 | 2020-07-26T15:50:32 | 2020-07-26T15:50:31 | null | UTF-8 | Python | false | false | 21,306 | py | # coding=utf-8
# Copyright 2022 The Google Research 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 applicab... | [
"copybara-worker@google.com"
] | copybara-worker@google.com |
99b1f62912fb80c7e719697e2f9075d4fd505216 | 15b12d69ac3123d1562986970ce01d7a47d171de | /typings/nltk/translate/__init__.pyi | 79712704c982cb5c2d56cec50d1fde99fb9fb8ad | [
"Apache-2.0"
] | permissive | simplymanas/python-learning | 9b67b5a7acfb3a7c2455a7d1fc66203a2b419c37 | 75bc99c0dce211fd1bce5f6ce1155e0f4c71d7d0 | refs/heads/master | 2021-07-11T06:40:24.803589 | 2021-06-20T12:06:02 | 2021-06-20T12:06:02 | 241,769,614 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 768 | pyi | """
This type stub file was generated by pyright.
"""
from nltk.translate.api import AlignedSent, Alignment, PhraseTable
from nltk.translate.ibm_model import IBMModel
from nltk.translate.ibm1 import IBMModel1
from nltk.translate.ibm2 import IBMModel2
from nltk.translate.ibm3 import IBMModel3
from nltk.translate.ibm4 i... | [
"manas.dash@tesco.com"
] | manas.dash@tesco.com |
ee75934b54a7c419ea4df630c94ae680bfee4f92 | ba0e07b34def26c37ee22b9dac1714867f001fa5 | /azure-mgmt-powerbiembedded/azure/mgmt/powerbiembedded/models/error_detail.py | 08890398d70c2163092510b29f7f60ffe5e56300 | [
"MIT"
] | permissive | CharaD7/azure-sdk-for-python | b11a08ac7d24a22a808a18203072b4c7bd264dfa | 9fdf0aac0cec8a15a5bb2a0ea27dd331dbfa2f5c | refs/heads/master | 2023-05-12T12:34:26.172873 | 2016-10-26T21:35:20 | 2016-10-26T21:35:20 | 72,448,760 | 1 | 0 | MIT | 2023-05-04T17:15:01 | 2016-10-31T15:14:09 | Python | UTF-8 | Python | false | false | 1,024 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
c2991b2bf462c17dd248db335305e4195ccdc8e3 | d40ee63566975dd11ae6ba6ea1c2889680c47c90 | /workspace/ros/aerostack_catkin_ws/devel/lib/python2.7/dist-packages/mavros_msgs/srv/_FileRemoveDir.py | 38c5a47514ff4a963c7222853176f534895d0c59 | [] | no_license | la16k/TFG_Laura | 45e9df0f60ef94572260f14346c47969ab2c73b3 | f5e0661aa7ccd200ba056a40beb9e687f5f0d06e | refs/heads/master | 2022-12-27T02:49:05.549777 | 2020-10-05T10:48:57 | 2020-10-05T10:48:57 | 301,374,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,221 | py | # This Python file uses the following encoding: utf-8
"""autogenerated by genpy from mavros_msgs/FileRemoveDirRequest.msg. Do not edit."""
import sys
python3 = True if sys.hexversion > 0x03000000 else False
import genpy
import struct
class FileRemoveDirRequest(genpy.Message):
_md5sum = "401d5cf5f836aaa9ebdc0897f75d... | [
"kunito.laura.ac@gmail.com"
] | kunito.laura.ac@gmail.com |
33161c34e78739d53ded91e468cf82f429dfef1d | b170d37a81c09fd0dbb0edf3cff6296084b32af9 | /cexbot/command_utils.py | 7d0382b5e4f8d343853e41df961287aa984532fe | [
"MIT"
] | permissive | metaperl/cexbot | 8e17a7d5063a82675e002d926324e3c4a6eb6745 | 0dd0b60415afd9c1feb959186d32b1a683887975 | refs/heads/master | 2020-12-29T01:11:50.768031 | 2013-12-10T17:13:18 | 2013-12-10T17:13:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,754 | py | #!/usr/bin/env python
""" cexbot - command_utils.py
Default command line utitlities to run cexbot
"""
import os, sys, logging
import cexbot, config, parser, db, cexapi, updater, timer, cex
def main(argv=[]):
args = parser.get_parser()
verbose = 1
if args.verbose:
verbose = 2
if args.debug:
verbose ... | [
"nikcub@gmail.com"
] | nikcub@gmail.com |
20faeb3af99098aeae7f42e863b981e32e75deb0 | f8a053f287c66652adffd15624c85dcc0850d898 | /setup.py | 424d2c9837ce0ca5390c3445ddf06d2283a94b46 | [
"MIT"
] | permissive | heyongwei/zvt | cce9e9bac78c6acc5e73b517f80d1fa464342817 | 051106955a6a01707847ee56a447e2502a25ff46 | refs/heads/master | 2023-04-23T16:36:58.631045 | 2021-05-16T16:01:18 | 2021-05-16T16:01:18 | 363,716,402 | 0 | 0 | MIT | 2021-05-16T16:01:19 | 2021-05-02T17:59:26 | Python | UTF-8 | Python | false | false | 2,508 | py | #!/usr/bin/env python
# To use a consistent encoding
from codecs import open
from os import path
# Always prefer setuptools over distutils
from setuptools import setup, find_packages
try:
# for pip >= 10
from pip._internal.req import parse_requirements
except ImportError:
# for pip <= 9.0.3
from pip.... | [
"5533061@qq.com"
] | 5533061@qq.com |
0a261a997e8b133dd2f20809de2b05a9df10aa1a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03041/s690420831.py | d69751f59907935676518728b9785bda095c49de | [] | 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 | 290 | py | n, k = map(int, input().split())
s = str(input())
ans = ''
if s[k-1] == 'A':
ans = s[:k-1] + 'a' + s[k:]
print(ans)
exit()
elif s[k-1] == 'B':
ans = s[:k-1] + 'b' + s[k:]
print(ans)
exit()
elif s[k-1] == 'C':
ans = s[:k-1] + 'c' + s[k:]
print(ans)
exit() | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
feb5b5b9942b836a874b3a07264b9012e4b7df0b | 3f9bec3201cc255c5ad6023cc746488306224015 | /Chapter 13/Example_13-2.py | 08ddcf523baaba0c0e1dc8735da55bee0e9ae257 | [] | no_license | afettouhi/FluentPython-py37 | 64927a908c5804d8970ea3f4b667c109c5867a6a | a14a721d738b8908f9e8e78552d70fbb2d6dd74f | refs/heads/master | 2022-06-14T18:26:47.456090 | 2020-05-08T04:13:51 | 2020-05-08T04:13:51 | 259,222,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | import decimal
ctx = decimal.getcontext()
ctx.prec = 40
one_third = decimal.Decimal('1') / decimal.Decimal('3')
one_third
one_third == +one_third
ctx.prec = 28
one_third == +one_third
+one_third
| [
"A.Fettouhi@gmail.com"
] | A.Fettouhi@gmail.com |
ea566c781d0e6f7ed3612211e0138868a141630c | 780af071416ece1e1f6ead426e95155c3de209e9 | /notebooks/rv/__init__.py | 5918d5994e584d77b4e31b849f510e080fa8203b | [] | no_license | o-smirnov/docker-notebook | b2afd38cf16a1db9d3049c4ce79f7bc61c6183fb | 9cdb1f3fbaaca8edb94d9706a1e62410942a2f1a | refs/heads/master | 2021-01-22T17:14:03.346539 | 2015-05-07T12:31:01 | 2015-05-07T12:31:01 | 35,032,895 | 0 | 0 | null | 2015-05-04T12:15:27 | 2015-05-04T12:15:27 | null | UTF-8 | Python | false | false | 7,750 | py | import os, time, math, astropy, pyfits, traceback, fnmatch
from pandas import DataFrame, Series
import IPython.display
from IPython.display import Image, HTML, display
from rv.FITSFile import FITSFile
from rv.ImageFile import ImageFile
import matplotlib.pyplot as plt
NOTEBOOK_DIR = os.environ.get('RVNB_NOTEBOOK_DIR'... | [
"osmirnov@gmail.com"
] | osmirnov@gmail.com |
99cbf86713b07499e57c02d95ba061f54909e2b4 | 0aa150f1bfe3fdbdeaaeeaef5754c3e90378e935 | /yearapp/migrations/0034_auto_20191008_0609.py | 75095d6fe84241d240057f54d63809fb82a11f8f | [] | no_license | arshpreetsingh12/yearbook | 6232eba52330b36a7404317985aea4482befd101 | dac303e3cc448985256b44baae6e9baa4c8d8292 | refs/heads/master | 2020-08-07T19:57:00.281613 | 2019-10-11T13:41:49 | 2019-10-11T13:41:49 | 213,571,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # Generated by Django 2.2.5 on 2019-10-08 06:09
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('yearapp', '0033_sale'),
]
operations = [
migrations.AlterField(
model_name='invitation',
name='address',
... | [
"director@avioxtechnologies.com"
] | director@avioxtechnologies.com |
862491768d6eba456ebf0e1ea79d633839949c26 | 56f5b2ea36a2258b8ca21e2a3af9a5c7a9df3c6e | /CMGTools/H2TauTau/prod/TauES_test/nom/emb/DoubleMuParked/StoreResults-Run2012C_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_CMG_V5_16_0_1374658142/HTT_24Jul_newTES_manzoni_Nom_Jobs/Job_149/run_cfg.py | 36401bb8144102988ca277182f23311dd0e887ef | [] | no_license | rmanzoni/HTT | 18e6b583f04c0a6ca10142d9da3dd4c850cddabc | a03b227073b2d4d8a2abe95367c014694588bf98 | refs/heads/master | 2016-09-06T05:55:52.602604 | 2014-02-20T16:35:34 | 2014-02-20T16:35:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69,049 | py | import FWCore.ParameterSet.Config as cms
import os,sys
sys.path.append('/afs/cern.ch/user/m/manzoni/summer13/CMGTools/CMSSW_5_3_9/src/CMGTools/H2TauTau/prod/TauES_test/nom/emb/DoubleMuParked/StoreResults-Run2012C_22Jan2013_v1_PFembedded_trans1_tau132_pthad1_30had2_30_v1-5ef1c0fd428eb740081f19333520fdc8/USER/V5_B/PAT_C... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
ef94b32dec93fe156549f2e821e7e2798f65812c | 5b0aebb53c33124b87c8655a5923858d6a2a5bc7 | /bm_preproc.py | 266dc2e049dc3c7569d58d10d38f24412cdec468 | [] | no_license | corylstewart/DNA-Class | 440e8c0304ea568347d2dad77424ee77a74f9e01 | 5706b95181ef7dd73a6a9d97cc879a50663ca60a | refs/heads/master | 2021-01-10T13:18:07.538528 | 2016-03-29T18:50:26 | 2016-03-29T18:50:26 | 55,001,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,110 | py | """bm_preproc.py: Boyer-Moore preprocessing."""
__author__ = "Ben Langmead"
def z_array(s):
""" Use Z algorithm (Gusfield theorem 1.4.1) to preprocess s """
assert len(s) > 1
z = [len(s)] + [0] * (len(s)-1)
# Initial comparison of s[1:] with prefix
for i in range(1, len(s)):
if s[i] == ... | [
"corylstewart@gmail.com"
] | corylstewart@gmail.com |
099667299286cf88413adc62ba733f68c1b6a527 | 55b57d64ec547869835334318f3059fbb507558c | /Fred2/Data/pssms/smm/mat/A_02_02_9.py | 7a41146d9d9f5b3170add4863afcb1b9d7b5f894 | [
"BSD-3-Clause"
] | permissive | FRED-2/Fred2 | 9845f6678d4011cb746c7a5a6f283eea68077a02 | b3e54c8c4ed12b780b61f74672e9667245a7bb78 | refs/heads/master | 2021-07-12T05:05:54.515427 | 2020-05-25T06:56:25 | 2020-05-25T06:56:25 | 16,275,425 | 42 | 35 | null | 2021-07-07T12:05:11 | 2014-01-27T10:08:11 | Python | UTF-8 | Python | false | false | 2,302 | py | A_02_02_9 = {0: {'A': -0.145, 'C': 0.221, 'E': 0.72, 'D': 0.844, 'G': 0.058, 'F': -0.922, 'I': -0.135, 'H': 0.116, 'K': -0.195, 'M': -0.461, 'L': -0.138, 'N': 0.087, 'Q': 0.011, 'P': 0.503, 'S': -0.089, 'R': 0.099, 'T': 0.161, 'W': -0.221, 'V': 0.035, 'Y': -0.547}, 1: {'A': 0.108, 'C': 0.324, 'E': 0.89, 'D': 0.324, 'G'... | [
"schubert@informatik.uni-tuebingen.de"
] | schubert@informatik.uni-tuebingen.de |
3b33c6da73e70bcb25b56b4fd175de4ac366f2a8 | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /9S8qp4XKG2qwQMdrb_2.py | 07908c297beae33944959e2c40e6e492d0f35bf6 | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | """
Write a function that returns the number of ways a person can climb **n
stairs** , where the person may only climb **1** or **2** steps at a time.
To illustrate, if **n = 4** there are **5** ways to climb:
[1, 1, 1, 1]
[2, 1, 1]
[1, 2, 1]
[1, 1, 2]
[2, 2]
### Examples
ways_to_climb(1)... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
9fe4cb94c81a6b0a10f86ec898adfb99833b6625 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_nicking.py | 8ade774452ec36eabf9b8b12da80103b68a5a982 | [
"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 | 228 | py |
from xai.brain.wordbase.verbs._nick import _NICK
#calss header
class _NICKING(_NICK, ):
def __init__(self,):
_NICK.__init__(self)
self.name = "NICKING"
self.specie = 'verbs'
self.basic = "nick"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
44e5115d831d8f11ee4ec8b575906d3138700fbf | 348aeccddd5fdb48fb91a63d170b7f0453f70e36 | /libcloud/utils/files.py | 201e94a4e3a873553fc3a035aa2b8953785c0c0e | [
"Apache-2.0"
] | permissive | lelou6666/libcloud | 4eb08e236cb9f4b787fa73ce963347f708faf092 | bff26fe27fdd53979e32e08038ecd2fc108b6083 | refs/heads/trunk | 2021-01-14T14:02:16.661579 | 2013-10-28T11:18:08 | 2013-10-28T11:18:08 | 55,902,523 | 0 | 0 | null | 2016-04-10T14:08:20 | 2016-04-10T14:08:20 | null | UTF-8 | Python | false | false | 3,437 | 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 use ... | [
"tomaz@apache.org"
] | tomaz@apache.org |
cead28e09d8898e94fd635d1ede4ab5cabf171fe | 16b77438b7a7923a391a12f1f4bc12b49429bb73 | /src/PIPE/PIPE.py | afa369355271987d911ce5454c61b803916fa8aa | [] | no_license | OpenJ92/zebra | eb582c36fd7110ccf5866eb34418ff9e725efd5d | 2d3d3d42bb0461901f2418069a55e47cf8450c50 | refs/heads/master | 2020-11-29T14:29:37.279589 | 2020-01-18T19:54:07 | 2020-01-18T19:54:07 | 230,138,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | from src.NODE.NODE import NODE
class PIPE(object):
def __init__(self, form):
self._name, self._kwargs = *form.keys(), *form.values()
self.__gen_nodes__();
self._transformed = self.__execute__({'Data1':1, 'Data2':1})
def __gen_nodes__(self):
self._nodes = [NODE(kw) for kw in se... | [
"jacob.vartuli.92@gmail.com"
] | jacob.vartuli.92@gmail.com |
19b365204ddcf74e34ab42a5f2b0d756622c9ad5 | ca55dcaa64ea9db4068e13091321cfebecc0ff41 | /codeUp/codeUpBasic/1990.py | bca5b69987f830843fdbdeecd27fbb8549319697 | [] | no_license | gomtinQQ/algorithm-python | 8fb8343594b945099ae2a4dfa794ecb47e54ab0b | 751562922b66e335f621d366bb73dacdc7125140 | refs/heads/master | 2022-12-07T23:05:44.535593 | 2020-08-21T12:29:58 | 2020-08-21T12:29:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | '''
1990 : 3의 배수 판별하기
자연수 n이 입력되면 3의 배수인지 아닌지 판별하시오.
3의 배수이면 1을 출력하고, 아니면 0을 출력한다.
'''
n = int(input())
if(n%3==0):
print(1)
else:
print(0) | [
"minhyeonlee1@gmail.com"
] | minhyeonlee1@gmail.com |
0f035ba1c524afe06432726820c34655340ac8c6 | 82fce9aae9e855a73f4e92d750e6a8df2ef877a5 | /Lab/venv/lib/python3.8/site-packages/OpenGL/raw/GL/ARB/texture_storage_multisample.py | fdcdbc160823f7a5f0c538918cf1a7c652b4e9a0 | [] | no_license | BartoszRudnik/GK | 1294f7708902e867dacd7da591b9f2e741bfe9e5 | 6dc09184a3af07143b9729e42a6f62f13da50128 | refs/heads/main | 2023-02-20T19:02:12.408974 | 2021-01-22T10:51:14 | 2021-01-22T10:51:14 | 307,847,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p
# End users want this...
from OpenGL.raw.GL import _errors
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
_EXTENSION_NAME = 'GL_ARB_texture_storage_multisample'
def _f(function):
return _p.createFuncti... | [
"rudnik49@gmail.com"
] | rudnik49@gmail.com |
8a6874d0099dce3f2d73698422596393937926c4 | 1422a57e98aba02321b772d72f8f0ada6d8b8cba | /mm/models/shared/augmentation.py | 91ccf3fae4c30c7c4b6af2cc19bd690100302532 | [
"MIT"
] | permissive | JonasRSV/Friday | e1908a411aa133bc5bd2f383b0a995f7e028092d | f959eff95ba7b11525f97099c8f5ea0e325face7 | refs/heads/main | 2023-05-15T03:33:21.542621 | 2021-06-12T10:34:50 | 2021-06-12T10:34:50 | 315,309,991 | 7 | 2 | null | null | null | null | UTF-8 | Python | false | false | 604 | py | from typing import List
import tensorflow as tf
import numpy as np
import models.shared.augmentations as a
import random
def create_audio_augmentations(aug: List[a.Augmentation], p: np.ndarray):
if len(aug) != len(p):
raise ValueError(f"Length of augmentations must match distribution {len(aug)} != {len(p)}... | [
"jonas@valfridsson.net"
] | jonas@valfridsson.net |
d613832fb1e4fbf8daf1f43cb77c47396088f146 | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_181/ch4_2020_03_05_16_07_05_989464.py | dff125cf8d4a74499e2b22478368603f7e78b838 | [] | 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 | 142 | py | def classifica_idade(i):
if i<12:
return 'crianca'
if 18>i>12:
return 'adolescente'
else:
return 'adulto'
| [
"you@example.com"
] | you@example.com |
83b9b89602f94805f1ff6283f7237c42100ead2a | f5a7de717f41f8379ccdee7d06de838fdf1d0a0b | /soloperformance-api/apps/catalog/management/commands/exercises.py | b73d1df31fb2d914106dd6d80bd4253425dbe55c | [] | no_license | jimmy818/mexico-angular | 977e4d1d0cab2ff8c10c9892d9c72ca2f4f9ac49 | 005ed3729b807d77a8fd97a3b5469a42ceefdaad | refs/heads/main | 2023-08-10T21:37:53.614298 | 2021-05-11T19:04:29 | 2021-05-11T19:04:29 | 366,485,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,560 | py |
from django.core.management.base import BaseCommand, CommandError
from django.http import HttpRequest
import requests
import xlrd
from apps.catalog import utils
class Command(BaseCommand):
help = 'Add exercises'
def handle(self, ... | [
"45069768+itsrocketfuel@users.noreply.github.com"
] | 45069768+itsrocketfuel@users.noreply.github.com |
84555327ae07d2945fac7b3d7ca618e1946fb291 | e56214188faae8ebfb36a463e34fc8324935b3c2 | /intersight/models/workflow_default_value_ref.py | 18613e62146e7f7c285e489454fb63c30fab824b | [
"Apache-2.0"
] | permissive | CiscoUcs/intersight-python | 866d6c63e0cb8c33440771efd93541d679bb1ecc | a92fccb1c8df4332ba1f05a0e784efbb4f2efdc4 | refs/heads/master | 2021-11-07T12:54:41.888973 | 2021-10-25T16:15:50 | 2021-10-25T16:15:50 | 115,440,875 | 25 | 18 | Apache-2.0 | 2020-03-02T16:19:49 | 2017-12-26T17:14:03 | Python | UTF-8 | Python | false | false | 5,734 | py | # coding: utf-8
"""
Cisco Intersight OpenAPI specification.
The Cisco Intersight OpenAPI specification.
OpenAPI spec version: 1.0.9-1461
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class WorkflowDefaultVa... | [
"ucs-build@github.com"
] | ucs-build@github.com |
1727d04b8a7d1014b6e1d7a1ae539f023ea9f601 | 1713334f9b68255f9adab70175c21f399d0460f3 | /python/125_Valid_Palindrome.py | 4d198f026b9d9fad4550fee87f5e98972fb8c355 | [
"MIT"
] | permissive | coy0725/leetcode | 0a798b7adafe80f726e51c06c34835c4aa51b563 | 743a0bfa22402ec39858dc9c4c7dc531f825b953 | refs/heads/master | 2020-05-21T18:25:09.683714 | 2019-05-11T13:00:40 | 2019-05-11T13:00:40 | 186,132,894 | 2 | 0 | MIT | 2019-05-11T12:55:22 | 2019-05-11T12:55:21 | null | UTF-8 | Python | false | false | 395 | py | class Solution(object):
def isPalindrome(self, s):
"""
:type s: str
:rtype: bool
"""
alnum_s = [t.lower() for t in s if t.isalnum()]
ls = len(alnum_s)
if ls <= 1:
return True
mid = ls / 2
for i in range(mid):
if alnum_s[... | [
"qiyuangong@gmail.com"
] | qiyuangong@gmail.com |
d9e06504505b6a186387d2ff84264d0ecf0308fb | 83d657c787529f01a8ecc8a874421738a7eecec7 | /Paths/Harmonise Curve to Line.py | 753600a50daceb8ddc9121810ba918269ff339b9 | [
"Apache-2.0"
] | permissive | BurgAndOeden/Glyphs-Scripts | e31b5164b491dfe0cd2d57f6cf1422c4aadda104 | f0195d6b8f0a6c055e4e44d5ef41ba48bdd1e3a6 | refs/heads/master | 2020-09-16T08:01:06.345898 | 2019-11-24T00:15:44 | 2019-11-24T00:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,124 | py | #MenuTitle: Harmonise Curve to Line
# -*- coding: utf-8 -*-
__doc__="""
Maximises opposing handles and reduces adjacent handles of line segments.
"""
from Foundation import NSPoint
def intersectionWithNSPoints( pointA, pointB, pointC, pointD ):
"""
Returns an NSPoint of the intersection AB with CD.
Or False if the... | [
"res@glyphsapp.com"
] | res@glyphsapp.com |
998dbc4a900cf93aa3ee0d2e520aed575aca4de5 | 02ad25c4ac78a98b5493a2aa7f744a77f381aaae | /dashboard_app/migrations/0010_auto_20201211_0846.py | 2168834a1f6db118e06a45e41521adce387ce856 | [] | no_license | cavidanhasanli/Havayi | 1f85d0d7608c964b0ddc80e3b526b32cdb81e8bf | bd30c9e3e700c7381b5961b5051cbcb398adc449 | refs/heads/main | 2023-02-03T09:25:03.866784 | 2020-12-22T18:09:07 | 2020-12-22T18:09:07 | 316,319,183 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 911 | py | # Generated by Django 3.1.3 on 2020-12-11 08:46
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('dashboard_app', '0009_auto_20201211_0839'),
]
operations = [
migrations.Delet... | [
"cavidan.hasanli@mail.ru"
] | cavidan.hasanli@mail.ru |
d4e96ddfa8c091f87bd220375da45cf8ce6295f4 | 679ce4b323f79b2425976201324c6c1f88b95199 | /Python/Stanley Cup/csv_parser.py | 53294c7db661e390948575da2be855cee905e598 | [] | no_license | abriggs914/Coding_Practice | ff690fb5f145a11f4da144f3882b37f473b10450 | 3afd7c59e0d90f0ef5f6203853e69f853312019b | refs/heads/master | 2023-08-31T04:04:58.048554 | 2023-08-29T13:23:29 | 2023-08-29T13:23:29 | 161,865,421 | 0 | 1 | null | 2022-10-27T08:35:29 | 2018-12-15T03:20:14 | Python | UTF-8 | Python | false | false | 7,689 | py | import csv
from utility import *
file_name = "past winners.csv"
# skip 2005 back fill
with open(file_name) as csv_file:
lines = csv.DictReader(csv_file)
data_by_year = {}
header = lines.fieldnames
print("header", header)
last = None
for i, line in enumerate(lines):
if last is not None:
if any([val is None ... | [
"abriggs1@unb.ca"
] | abriggs1@unb.ca |
ee824e6b9b7691a064d6ec0a0a4aca640c8d4611 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/preclud.py | 92806b29aea1beb79e849a1ee0a0da996f253cc9 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 1,193 | py | ii = [('BentJDO2.py', 2), ('CookGHP3.py', 2), ('LyelCPG2.py', 1), ('MarrFDI.py', 1), ('RogePAV2.py', 5), ('CoolWHM2.py', 1), ('GodwWSL2.py', 6), ('RogePAV.py', 6), ('WilbRLW4.py', 1), ('ProuWCM.py', 2), ('AubePRP2.py', 10), ('CookGHP.py', 4), ('MartHSI2.py', 5), ('WilkJMC3.py', 1), ('AubePRP.py', 16), ('ChalTPW2.py', 3... | [
"prabhjyotsingh95@gmail.com"
] | prabhjyotsingh95@gmail.com |
4eb48a87e664b4cabd5416d2d6729ed9a88b43a1 | 49cd9ba075ed2ab6b267f6e012bfb03267b7bc08 | /project_42_formsModelpagination/app42/forms.py | 99db23b3c75ea231d95bd12b4e9224ed18e651db | [] | no_license | Satputev/DjangoApps | 4d47a76f20815b2b1313e8b3e3c61b5406f5da60 | c6fb5e9fa131f07d1f5920e98699f9daaa49d424 | refs/heads/master | 2023-02-14T00:42:36.037749 | 2020-12-24T07:39:54 | 2020-12-24T07:39:54 | 323,857,826 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | from django import forms
from app42.models import ProductsModel
from django.forms import ValidationError
class ProductForm(forms.ModelForm):
class Meta:
model=ProductsModel
fields='__all__'
exclude=('pid',)
labels={'pname':'Product Name','pprice':'Product Price','pimg':'Product Imag... | [
"satputevishal8@gmail.com"
] | satputevishal8@gmail.com |
694b8b138f3b4862d4b35953cdb3675a91e2a179 | fd25231975acd147e04dc3ed3627c92cb1a4f86c | /FlaskAPI/vir_env/lib/python3.7/site-packages/scipy/spatial/tests/test_distance.py | c0b831a2879fa2a21e753350d7b7edefe48591cf | [] | no_license | sumitkutty/Flight-Price-Prediction | 832a2802a3367e655b46d3b44f073d917abd2320 | d974a8b75fbcbfa42f11703602af3e45a3f08b3c | refs/heads/master | 2022-12-25T07:13:06.375888 | 2020-10-08T18:46:44 | 2020-10-08T18:46:44 | 302,366,725 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:a99a0a8e8696f85040b18a7b95996060265dec4c0607ab9bc90551e2f2dc9bd2
size 81424
| [
"sumitkutty37@gmail.com"
] | sumitkutty37@gmail.com |
035f453b189a37c9677088804e6c18447aabdbbe | 75dcb56e318688499bdab789262839e7f58bd4f6 | /_algorithms_challenges/leetcode/LeetCode/733 Flood Fill.py | 4350e4e56af74a61b1f948707760e1b580de0573 | [] | no_license | syurskyi/Algorithms_and_Data_Structure | 9a1f358577e51e89c862d0f93f373b7f20ddd261 | 929dde1723fb2f54870c8a9badc80fc23e8400d3 | refs/heads/master | 2023-02-22T17:55:55.453535 | 2022-12-23T03:15:00 | 2022-12-23T03:15:00 | 226,243,987 | 4 | 1 | null | 2023-02-07T21:01:45 | 2019-12-06T04:14:10 | Jupyter Notebook | UTF-8 | Python | false | false | 2,124 | py | #!/usr/bin/python3
"""
An image is represented by a 2-D array of integers, each integer representing
the pixel value of the image (from 0 to 65535).
Given a coordinate (sr, sc) representing the starting pixel (row and column) of
the flood fill, and a pixel value newColor, "flood fill" the image.
To perform a "flood f... | [
"sergejyurskyj@yahoo.com"
] | sergejyurskyj@yahoo.com |
7d375196ec6a89c43b9391ff60129464324ce322 | f4fdb0c1213bbb403b87c2dbbde390918ac08861 | /convert_uk_decl_num3.py | accb16c1dd9181350a97f4be6023784d4fd9b64a | [] | no_license | benwing2/RuNounChanges | 0d5076e576237f10b50049ed52b91f96c95cca95 | 048dfed5abe09b8d5629c5772292027ce0a170f2 | refs/heads/master | 2023-09-03T22:48:06.972127 | 2023-09-03T06:27:56 | 2023-09-03T06:27:56 | 41,480,942 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,246 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pywikibot, re, sys, argparse
import blib
from blib import getparam, rmparam, tname, pname, msg, errandmsg, site
def process_text_on_page(index, pagetitle, text):
global args
def pagemsg(txt):
msg("Page %s %s: %s" % (index, pagetitle, txt))
notes = []
... | [
"ben@benwing.com"
] | ben@benwing.com |
fbfa4af6739e251fef1d94b0ce852a6cb2c6cca3 | c1b8ff60ed4d8c70e703f71b7c96a649a75c0cec | /ostPython4/context_mgr.py | 5d67ab14436a6f258a36aef585b8624eba812c9d | [] | no_license | deepbsd/OST_Python | 836d4fae3d98661a60334f66af5ba3255a0cda5c | b32f83aa1b705a5ad384b73c618f04f7d2622753 | refs/heads/master | 2023-02-14T17:17:28.186060 | 2023-01-31T02:09:05 | 2023-01-31T02:09:05 | 49,534,454 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,284 | py | #!/usr/bin/env python3
#
#
# context_mgr.py
#
# Lesson 14: Context Managers
#
# by David S. Jackson
# 8/17/15
#
# OST Python4: Advanced Python
# for Pat Barton, Instructor
#
"""
Project:
Write a context manager class that suppresses any ValueError
exceptions that occur in the cont... | [
"deepbsd@yahoo.com"
] | deepbsd@yahoo.com |
47090964e324910f247fd920b15518fdb4231728 | f4c0172e70ca5ffbe01695245e82a28291f88d04 | /v0.5.3-all/StudyTensroFlow/keras/tests/keras/engine/test_training.py | 6854ffaec08ce2a5aade75e5566d2eb9ec2b49fb | [
"MIT"
] | permissive | huangxinkid/DeepLearning_Wavelet-LSTM | a84e667d5f2db477ac5a9993d8ae329ec9fd115f | b726f99a8631fc48e6943655ace222b0f6b0290b | refs/heads/master | 2020-03-24T07:11:52.832149 | 2018-05-30T18:43:38 | 2018-05-30T18:43:38 | 142,556,218 | 0 | 1 | null | 2018-07-27T09:21:18 | 2018-07-27T09:21:18 | null | UTF-8 | Python | false | false | 43,976 | py | import pytest
import numpy as np
import pandas as pd
from numpy.testing import assert_allclose
import sys
import scipy.sparse as sparse
import keras
from keras import losses
from keras.layers import Dense, Dropout
from keras.engine.topology import Input
from keras.engine.training import Model
from keras.engine.trainin... | [
"hello.sea@qq.com"
] | hello.sea@qq.com |
0d16857d7fd0f668e17201298d880dd834ab42de | d304c27c095a7e897bb9c02e78d34bed4398c8fc | /alex/components/simulator/user_simulator/demos/ptien/ptien_metadata.py | 1d75d96f2c4f6859871f52671389df68aeecb270 | [
"Apache-2.0"
] | permissive | thanhlct/alex | 876630e7cb2a6b1affce5bb646e6bd0489305393 | 9fabefb62572e96d14654d3ec0c8861daf51ffa7 | refs/heads/master | 2020-04-05T18:29:37.300215 | 2016-05-19T08:51:21 | 2016-05-19T08:51:21 | 45,947,050 | 0 | 0 | null | 2015-11-10T23:23:27 | 2015-11-10T23:23:27 | null | UTF-8 | Python | false | false | 39,235 | py | from alex.utils.sample_distribution import sample_from_list
from alex.utils.sample_distribution import sample_a_prob
import alex.utils.matlab_functions as matlab
from infer_place_info import add_place_info
def values_generator1(goal, slot):
'''Generate all values for a slot'''
return [1,2,3]
def values_gener... | [
"thanhlct@gmail.com"
] | thanhlct@gmail.com |
456864271f3e01f15b001804253e5dd219e0b0b0 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/built-in/nlp/Data2vec_for_PyTorch/fairseq/modules/ema_module.py | 7d3733766779e26a60716e82be4ac0eef6859024 | [
"MIT",
"BSD-3-Clause",
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 8,436 | py | #!/usr/bin/env python3
# coding:utf-8
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistr... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
a26978798c0b897c4e83d5d4870426ae593e1ff7 | 649255f0d9b6d90be3d3f68263680081f893a089 | /swagger_client/api/remediation_api.py | 53d8a3bb84c470a14ec8ad7b083b1ad8a31fc380 | [] | no_license | khantext/r7ivm3 | 611e1bbc988d9eb8fbb53294d3ed488130e46818 | bd9b25f511f9e7479ea7069d71929700bed09e87 | refs/heads/master | 2023-05-01T10:01:16.336656 | 2021-05-03T18:16:12 | 2021-05-03T18:16:12 | 237,514,737 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,161 | py | # coding: utf-8
"""
InsightVM API
# Overview This guide documents the InsightVM Application Programming Interface (API) Version 3. This API supports the Representation State Transfer (REST) design pattern. Unless noted otherwise this API accepts and produces the `application/json` media type. This API uses ... | [
"justinlute@gmail.com"
] | justinlute@gmail.com |
1941daf3147a52db83a326417991ec09c645959f | d90283bff72b5a55dd4d0f90c7325355b00ce7b1 | /p1804/p10/打印整数.py | 915fda83f4b58c9a3908ce840830515fba53fb09 | [] | no_license | yuemeiss/p1804daima | f841f52e63081d53d50a199e4d148d4533605bb6 | 6ea08eb9971e42bf4ac535033a006d98ed98bf98 | refs/heads/master | 2020-03-15T23:29:59.691297 | 2018-08-06T02:42:49 | 2018-08-06T02:42:49 | 132,395,078 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | for i in range(1,5000):
if i % 5 == 0 and i%7==0:
print("能被5和7整除的是: %d "% i)
| [
"1083027306@qq.com"
] | 1083027306@qq.com |
49de7e6ce41f348e586e2eefc9b9a5e0127f92ad | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03574/s538402697.py | a100b6d62d5fdc1b9953e127ac04d0761a0d8b81 | [] | 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 | 464 | py | h,w=map(int,input().split())
s=["."*(w+2)]
for i in range(h):
s.append("."+input()+".")
s.append("."*(w+2))
dx=[-1,0,1,1,1,0,-1,-1]
dy=[1,1,1,0,-1,-1,-1,0]
ans=[]
for i in range(1,h+1):
wp=""
for j in range(1,w+1):
if s[i][j]=="#":
wp+="#"
continue
count=0
for... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6099e986b2054b690030adc9e7e17a767ae0e2b4 | c6fa248ec5a7e3c67afac98e365cac850c511473 | /generative_adversarial_networks/code/chapter_08/04_train_discriminator.py | c79e832de127b1bae5f94a1889e27d01ecef99ac | [] | no_license | shenjnigxing/deep-learning-material | 44830e07cc2a5bd47b07ca903c1f2b65beef22bb | 24dfee3b9fe1a40303cb2dfe256028d35113babf | refs/heads/master | 2022-12-23T10:08:05.881432 | 2020-09-16T02:24:38 | 2020-09-16T02:24:38 | 295,900,907 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,988 | py | # example of training the discriminator model on real and random cifar10 images
from numpy import ones
from numpy import zeros
from numpy.random import rand
from numpy.random import randint
from keras.datasets.cifar10 import load_data
from keras.optimizers import Adam
from keras.models import Sequential
from keras.laye... | [
"Shenjx161212@gmail.com"
] | Shenjx161212@gmail.com |
e98140b6ab4a78c3e01cdec72713cc4484a5594a | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc118/A/4965258.py | 809490a42b13f7fe626c23248f25ee09f7538d58 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | a, b = map(int, input().split())
if b % a == 0:
print(a + b)
else:
print(b - a) | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
4cd79181130987db75faf7e250e83b9863e339bb | 5d6dd782e0b29817b3c27d5d6984909152813444 | /dbbase/urls.py | 3d183271c6790a11b27359533230ad4817dbcaab | [] | no_license | smartslee/hospacc | 387d8a7e42e068080738e365045a23d6d8a1f222 | 5bd42a9e729f3c90ff4b87185167f64fe79aac01 | refs/heads/master | 2020-04-01T12:59:50.743213 | 2019-10-07T08:13:41 | 2019-10-07T08:13:41 | 153,232,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | from django.urls import path
from . import views
from .views import (HdbUpdateView,IndexView, SearchFormView,HdbCreateView,HdbDeleteView, HdbprintView)
urlpatterns = [
path('list/', views.index, name ='list'),
# url(r'^dbedit/', views.hospdb_list, name ='edit'),
path('input/', views.inputdb, name ='inp... | [
"you@example.com"
] | you@example.com |
a76256e5c53a0f726234358d2eeec7cce0cde04f | 06ab66fe85631fb8e0351245af483b3a8e98295b | /src/config/logger.py | a708dd302034317cdf2dbf836a63869ed4a63415 | [] | no_license | SeanCherngTW/toy-real-time-bidding-buyer | ed62d8e60f196bff06ad69765f7ae8e711b66ea1 | 82e09598649d2ffd4aecc6356257fa3c5a0504ea | refs/heads/main | 2023-06-12T18:19:07.445796 | 2021-07-05T14:16:40 | 2021-07-05T14:16:40 | 383,154,896 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,239 | py | import os
import logging
from os.path import exists
from logging import handlers
class DebugLog(object):
def __init__(self, ad_path_config):
self.model_name = ad_path_config['model_name']
self.log_file_path = ad_path_config['log_file_path'] + self.model_name + ".log"
self.dst_dir = ad_path... | [
"seancherng.tw@gmail.com"
] | seancherng.tw@gmail.com |
773bd8d5905ffdfbfc401c174598d1d6aa238f05 | acb8e84e3b9c987fcab341f799f41d5a5ec4d587 | /langs/3/hby.py | d2745b4aff60063d0c31bd24fb6ac64149e7e987 | [] | no_license | G4te-Keep3r/HowdyHackers | 46bfad63eafe5ac515da363e1c75fa6f4b9bca32 | fb6d391aaecb60ab5c4650d4ae2ddd599fd85db2 | refs/heads/master | 2020-08-01T12:08:10.782018 | 2016-11-13T20:45:50 | 2016-11-13T20:45:50 | 73,624,224 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import sys
def printFunction(lineRemaining):
if lineRemaining[0] == '"' and lineRemaining[-1] == '"':
if len(lineRemaining) > 2:
#data to print
lineRemaining = lineRemaining[1:-1]
print ' '.join(lineRemaining)
else:
print
def main(fileName):
with open(fileName) as f:
for line in f:
... | [
"juliettaylorswift@gmail.com"
] | juliettaylorswift@gmail.com |
829a60803827790a24c17e21c99521fc7746dd54 | bae7e3b6cdfd6f354b79dbc849c1969a46aed586 | /hiAPP/plot_linkage_matrix.py | 62439c042f1b38aa4eb1a36072056960d65d5d01 | [
"MIT"
] | permissive | jmborr/LDRDSANS | 7f6b8ef44db3b93972ae9bff08a641067c19bae1 | b8081ecb78da46a530d61efd3cb6764f3b17b567 | refs/heads/master | 2021-07-24T23:49:38.271100 | 2017-11-05T22:36:40 | 2017-11-05T22:36:40 | 71,494,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | # -*- coding: utf-8 -*-
"""
Matplotlib of the dendogram associated with the linkage matrix.
Thanks to Jorn's Blog
<https://joernhees.de/blog/2015/08/26/scipy-hierarchical-clustering-and-dendrogram-tutorial/>
"""
# needed imports
from matplotlib import pyplot as plt
from scipy.cluster.hierarchy import dendrogram, lin... | [
"borreguero@gmail.com"
] | borreguero@gmail.com |
ce67d5e4cbc106774ba02c02cb38b2fa7b165403 | b01eee55884e21412a1812593996a0d9156e20bc | /cipp/x64assembler/instructions/push_reg.py | d3c6d03e68af5bf12c7f9965096d230b1733a50b | [] | no_license | JacquesLucke/cipp | 46bdb7eebaeb863f424c92542ea56b49b5f0fe2e | d4f38fd1fc84aed9cbf49b85bf6c4b96f2561f71 | refs/heads/master | 2021-10-27T18:29:23.288884 | 2019-04-18T15:36:52 | 2019-04-18T15:36:52 | 123,611,764 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 761 | py | from .. bits import Bits
from .. block import Instruction
class PushRegInstr(Instruction):
def __init__(self, reg):
assert reg.size in (16, 64)
self.reg = reg
def toIntelSyntax(self):
return f"push {self.reg.name}"
def toMachineCode(self):
if self.reg.size == 64:
... | [
"mail@jlucke.com"
] | mail@jlucke.com |
0054ca5cde322d97a8151893ce49bbc4034e3353 | 130a98632d2ab4c171503b79e455b7aa27a1dda4 | /models/research/object_detection/models/ssd_feature_extractor_test.py | 29c43e376c6167b61a256eb0812ee4d3bcee3ed5 | [
"Apache-2.0",
"MIT"
] | permissive | aboerzel/German_License_Plate_Recognition | d7fc0314295f5cf0c9d7ae9c93a795e3ef1c5787 | 6fc53292b1d3ce3c0340ce724c2c11c77e663d27 | refs/heads/master | 2023-01-30T18:08:37.339542 | 2023-01-07T07:41:36 | 2023-01-07T07:41:36 | 245,586,430 | 34 | 12 | MIT | 2023-01-07T07:41:37 | 2020-03-07T07:16:51 | Python | UTF-8 | Python | false | false | 9,695 | py | # Lint as: python2, python3
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
... | [
"andreas.boerzel@gmx.de"
] | andreas.boerzel@gmx.de |
a19341832df5aa7bd0970ac6ef6b9c9a7279c21a | 73b5d880fa06943c20ff0a9aee9d0c1d1eeebe10 | /tinyos-1.x/contrib/ucb/apps/LandmarkRouting/lossy.py | 404b3df55a95a17dbacc58e49ca3b896c54ce7b8 | [
"Intel"
] | permissive | x3ro/tinyos-legacy | 101d19f9e639f5a9d59d3edd4ed04b1f53221e63 | cdc0e7ba1cac505fcace33b974b2e0aca1ccc56a | refs/heads/master | 2021-01-16T19:20:21.744228 | 2015-06-30T20:23:05 | 2015-06-30T20:23:05 | 38,358,728 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | from simcore import *
if not sim.__driver.pluginManager.getPlugin("RadioModelGuiPlugin").isRegistered():
print "Please create radio model first using the Radio Model Plugin."
else:
pf = open('packet','w')
space = ' '
end = ' 0.0 0.0\n'
for i in motes:
for j in motes:
... | [
"lucas@x3ro.de"
] | lucas@x3ro.de |
fc49994cbf7356c6fd241ebfa3d48ca03c7d5983 | f0a5ad7b8aa39f51f233391fead0da3eabecc4ee | /.history/toolbox/tradaExtract_20191128085816.py | a1f0a049b0449f364b7c3a9c579677dbaf4a3ae4 | [] | no_license | OseiasBeu/webScrapping | e0a524847e55b24dbbd3d57bbe7fa43b4e101f48 | 1e72c7551aea355a891043baecfcbab8a89e719a | refs/heads/master | 2022-10-25T18:12:50.858653 | 2020-06-18T01:29:24 | 2020-06-18T01:29:24 | 224,681,550 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 559 | py | from bs4 import BeautifulSoup
arr = [['#', 'clienteEstado', 'warehouseId', 'Pendentes', 'de', 'integrao'], ['1', 'SP', '2404', '48'], ['2', 'SP', '2462', '10'], ['3', 'SP', '7100', '7'], ['4', 'MG', 'BR19_A002', '6'], ['5', 'SP', 'BR19_A002', '6'], ['6', 'PE', 'BR19_A002', '5'], ['7', 'SP', '2444', '3'], ['8', 'MG', '... | [
"oseiasbeu@outlook.com"
] | oseiasbeu@outlook.com |
6171b8e1aaffc27ebb5b2e594409e8ce47552e37 | ae9d32213e4ab423965e4a7f3ba1e6abfea85817 | /PreplotCalculator.py | 93599d5d0fedb8bd01a8babfdb6fcdffc49ae537 | [] | no_license | syntaxnoob/SpawnerDistance | 9e8d68123a8eb6835cff33f991b12bb153fb0858 | a07767d5e9358bb2b1efde171ee4a5c297302933 | refs/heads/master | 2022-07-31T08:24:35.172896 | 2020-05-23T16:22:09 | 2020-05-23T16:22:09 | 263,573,361 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,143 | py | #!/bin/python3
import math
import pandas as pd
### Variabel ###
# spawner coordinates (Xcoordinate, Ycoordinate, Zcoordinate)
Spawners = [(370, 28, 886), (365, 37, 945), (359, 39, 917), (381, 42, 917),
(351, 44, 931), (362, 44, 891), (408, 44, 927), (429, 35, 897)]
Bigsum = 0
Distancelist = [] # List with ... | [
"unconfigured@null.spigotmc.org"
] | unconfigured@null.spigotmc.org |
3b497b13bfb03c08d8605c64566caeff353afe1f | a1aadb13c35f2a3fb27078090e5a582a3ea462f1 | /devel/py-pyobjc-core/patches/patch-setup.py | f046aa0efda0c7712c4171148edac369e6c807f7 | [] | no_license | fidelix-project/pkgsrc | 702346ca3a74b3dced9de29b07d342154466d1bd | 8a6673aa3e19b8604d2077015dc4673304399afc | refs/heads/master | 2022-11-06T04:48:33.983672 | 2020-06-28T14:06:28 | 2020-06-28T14:06:28 | 273,759,036 | 1 | 2 | null | null | null | null | UTF-8 | Python | false | false | 742 | py | $NetBSD: patch-setup.py,v 1.1 2019/11/18 17:05:06 adam Exp $
Do not add debug symbols.
Do not override compiler optimiztion flags.
--- setup.py.orig 2019-11-18 16:02:47.000000000 +0000
+++ setup.py
@@ -66,7 +66,6 @@ def get_sdk_level(sdk):
# CFLAGS for the objc._objc extension:
CFLAGS = [
- "-g",
"-fexcep... | [
"adam@pkgsrc.org"
] | adam@pkgsrc.org |
ca46bb856d561d725345a0a14058c5877a4cac0e | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/ashvin/icml2020/d4rl/test1.py | 99515aca2a2dba3519cd10dc424cb31a7cf4af19 | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,000 | py | """
AWR + SAC from demo experiment
"""
from rlkit.demos.source.hdf5_path_loader import HDF5PathLoader
from rlkit.launchers.experiments.awac.awac_rl import experiment, process_args
import rlkit.misc.hyperparameter as hyp
from rlkit.launchers.arglauncher import run_variants
from rlkit.torch.sac.policies import Gaussia... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
5022b105c714e2dc4421650a004f69e753e7f87b | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/otherforms/_unbarring.py | 324d198051173b711ebc3f517ecffc2d0ffdcc48 | [
"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 | 224 | py |
#calss header
class _UNBARRING():
def __init__(self,):
self.name = "UNBARRING"
self.definitions = unbar
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}
self.basic = ['unbar']
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
f161dfd93a9ee6f9e40d4a3e791a7fd91f35b6f9 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_12261.py | 6048a7e7b0d30415153952be2d88ff3f533b7b1a | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | # weird django file upload error
enctype="multipart/form-data"
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
2520af0b5128fb372cc2fef73350890249d44869 | 5396a46275e52bfc972f05097e925742d5bbf2d1 | /_2016/eola/thumbnails.py | 9bc1e91212c3f71dae4f75496806adaf7814e43c | [
"MIT"
] | permissive | 3b1b/videos | 6ab0e4fe0fb07d15b5455f8726131a880437c42c | e841b1410fdda2d3bddb7cfa12ce070a3b66a026 | refs/heads/master | 2023-08-29T01:37:23.424512 | 2023-08-16T03:35:03 | 2023-08-16T03:35:03 | 325,873,493 | 4,601 | 1,868 | null | 2023-03-30T08:15:37 | 2020-12-31T21:07:33 | Python | UTF-8 | Python | false | false | 4,029 | py | from manim_imports_ext import *
from _2016.eola.chapter9 import Jennifer, You
class Chapter0(LinearTransformationScene):
CONFIG = {
"include_background_plane" : False,
"t_matrix" : [[3, 1], [2, -1]]
}
def construct(self):
self.setup()
self.plane.fade()
for mob in sel... | [
"grant@3blue1brown.com"
] | grant@3blue1brown.com |
ccf55017fbc1f4207985eaa80f14722daf999f3e | 269feb0a04e10df899b7cf0d37c42fd295fd6ac0 | /5_三角形斜边长.2.py | 5c697de2b506b4189fc2744884b4f1700bf259d0 | [] | no_license | zhangxingxing12138/card | c0134951ded50b7cb8c129c28e07252f35796052 | 793de5c5546143b59f8fd169a4e0c2cea1a5b416 | refs/heads/master | 2020-03-23T11:45:29.070458 | 2018-10-16T00:15:01 | 2018-10-16T00:15:01 | 141,519,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 96 | py | a=input("直角边a:")
b=input("直角边b:")
A=float(a)
B=float(b)
c=(A*A+B*B)**(1/2)
print(c)
| [
"you@example.com"
] | you@example.com |
5cc0139aa5321db4c991af5ca4902a1878f8d7f1 | ec1deb682fb96a1f937f2fca5f161aa951462876 | /unittestPython/part_1/name_function.py | 61209de86dc7aec85c8f1a819784981abebebc0c | [] | no_license | AnatoliKosarev/Python-beginner-course--Teclado- | 31d82f5e9a1f39e2970323bed9de1fd539990565 | fa91199938d6975b5874341585343566caaf3600 | refs/heads/main | 2023-06-30T12:14:33.779827 | 2021-07-24T11:16:19 | 2021-07-24T11:16:19 | 376,371,590 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | def get_formatted_name(first, last, middle=""): # middle name is optional
if middle:
full_name = f"{first} {middle} {last}"
else:
full_name = f"{first} {last}"
return full_name.title()
| [
"anatoli.kosarev@gmail.com"
] | anatoli.kosarev@gmail.com |
db09f5e6aeb8defe8a7c9c365689f0ee46b07dc4 | 2fd0c65aa0f72133f773dac5d9a5c48fe9e26fac | /Dsz/PyScripts/Lib/dsz/mca/network/cmd/banner/errors.py | 3dffd24a2b423eab69b50b74ee3889931f22a361 | [] | no_license | FingerLeakers/DanderSpritz_docs | f5d2430e0b86b1b2f0684f02ddd4fa973a5a7364 | d96b6a71c039b329f9f81544f645857c75360e7f | refs/heads/master | 2021-01-25T13:05:51.732149 | 2018-03-08T01:22:49 | 2018-03-08T01:22:49 | 123,527,268 | 2 | 0 | null | 2018-03-02T03:48:31 | 2018-03-02T03:48:30 | null | UTF-8 | Python | false | false | 1,606 | py | # uncompyle6 version 2.9.10
# Python bytecode 2.7 (62211)
# Decompiled from: Python 2.7.10 (default, Feb 6 2017, 23:53:20)
# [GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)]
# Embedded file name: errors.py
import mcl.status
ERR_SUCCESS = mcl.status.MCL_SUCCESS
ERR_INVALID_PARAM = mcl.status.framework.ERR_STAR... | [
"francisck@protonmail.ch"
] | francisck@protonmail.ch |
447fc54eea01a339401254a7ab9eea6548c5d5d1 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/intentions/PyInvertIfConditionIntentionTest/generalNoElseTry.py | 8071d065e802d90e83cc718813bbe0e7adcdde7c | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 207 | py | def func():
value = "not-none"
<caret>if value is None:
print("None")
return
try:
return int(value)
except ValueError:
raise RuntimeError("Value is not int") | [
"intellij-monorepo-bot-no-reply@jetbrains.com"
] | intellij-monorepo-bot-no-reply@jetbrains.com |
1fb7e441f0b01c1a959827aa4ff80c6bf4ced77a | a24cedf9dea47ba64fbf779a8c18f39bd9a196cf | /halo_roller/urls.py | a81861188bce43e27eb6deda9e1867e535029ead | [] | no_license | rkuykendall/halo-roller | e795d19e0d1beef8a91a9bf417ce2c4908b1666b | 73b5ec77fc4070c4bf9694ffe99497ab3abb39f7 | refs/heads/master | 2022-12-18T16:10:35.798073 | 2020-09-23T22:12:01 | 2020-09-23T22:12:01 | 297,977,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 800 | py | """halo_roller URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-b... | [
"robert@rkuykendall.com"
] | robert@rkuykendall.com |
971d6c7a8b93db04103d5493b66aab379de626ae | 2794764ddbe9daf666601014cb84e5ca7b6ca7c3 | /Account/urls.py | d1d10c86cebf2fd2a839bfcf8f84f540ce97c97e | [] | no_license | aydanaderi/goldoon | 5b7341f1b94cb607bcc7b895fe22a6affb817cd7 | 3f4cc6a526eae70f55833d0b07d5209b243aff20 | refs/heads/main | 2023-01-19T16:12:22.837854 | 2020-11-26T15:46:24 | 2020-11-26T15:46:24 | 311,077,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | from django.urls import path
from knox import views as knox_views
from . import views
urlpatterns = [
path('signup/', views.RegisterAPI.as_view(), name = 'register'),
path('login/', views.LoginAPI.as_view(), name = 'login'),
path('logout/', knox_views.LogoutView.as_view(), name = 'logout'),
path('chang... | [
"ayda.f.naderi@gmail.com"
] | ayda.f.naderi@gmail.com |
d2abb6f2ca0db30eff1b7c9cd045858a1b1837b6 | 46adba1fe06298743f018abd0096c753256ac03a | /src/procgraph_vehicles/cairo_map_display.py | d05071495667e74265c75eb29020abf49801f486 | [] | no_license | ajaycharan/vehicles | 9e0f21a2550c56e83303329c1bdf8c40bde5c0eb | 2cfe467422160f90bc76800216ac42c0f13f2c4d | refs/heads/master | 2021-05-28T21:03:35.466743 | 2013-07-19T06:59:51 | 2013-07-19T06:59:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,686 | py | from cairo_utils import cairo_pixels, cairo_text_align
from geometry import SE2_from_SE3, SE3
from procgraph import BadConfig, Block
from procgraph.block_utils import make_sure_dir_exists
from procgraph_images import posneg, scale, reshape2d
from vehicles_cairo import (cairo_save, cairo_transform,
vehicles_cairo_di... | [
"andrea@cds.caltech.edu"
] | andrea@cds.caltech.edu |
1c57bba12ea1d28e3d22c8f069be2ea6fb0a8d9d | aca4f00c884e1d0e6b2978512e4e08e52eebd6e9 | /2021/atcoder.jp/abc/196/prob.py | 561d92c060025a984e9491c8ceafd39586a1b707 | [] | no_license | jki14/competitive-programming | 2d28f1ac8c7de62e5e82105ae1eac2b62434e2a4 | ba80bee7827521520eb16a2d151fc0c3ca1f7454 | refs/heads/master | 2023-08-07T19:07:22.894480 | 2023-07-30T12:18:36 | 2023-07-30T12:18:36 | 166,743,930 | 2 | 0 | null | 2021-09-04T09:25:40 | 2019-01-21T03:40:47 | C++ | UTF-8 | Python | false | false | 400 | py | from math import floor
from sys import stderr, stdout
def solution(s):
p = s.find('.')
if p == -1:
p = len(s)
stdout.write('%d\n' % int(s[:p]))
def main():
while True:
try:
s = raw_input().strip()
solution(s)
except EOFError:
break
... | [
"jki14wz@gmail.com"
] | jki14wz@gmail.com |
4e4b7278b5d85aced09f29bfe8d49d79fc5fb567 | c1ee8f22ece4fc39cb94fe19832fcba8e45cf5bc | /프로그래머스/문자열 내 마음대로 정렬하기.py | a45fa146443052022e2644fb242635aa218465d9 | [] | no_license | JeongHanJun/BOJ | ae6b1c64c5b3226deef2708ae447aa1225333a92 | a865624fb0a9291b68f99af8535f708554fa0b41 | refs/heads/master | 2023-03-31T02:22:58.974437 | 2021-04-02T02:43:57 | 2021-04-02T02:43:57 | 258,809,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 325 | py | # 문자열 내 마음대로 정렬하기
# 제목부터 sorted, key, lambda 가 떠오른다.
def solution(strings, n):
answer = sorted(strings, key = lambda x : (x[n], x))
return answer
s1 = ["sun", "bed", "car"]
n1 = 1
s2 = ["abce", "abcd", "cdx"]
n2 = 2
print(solution(s1, n1))
print(solution(s2, n2)) | [
"noreply@github.com"
] | JeongHanJun.noreply@github.com |
7faf21b3d81b85edbd984555f7dd773edd9447b0 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/desktopvirtualization/workspace.py | 84777b1001b9f8903ed1e5875ed1dbd416496651 | [
"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 | 21,931 | 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.