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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60741e6eaadbfc2492da1af309879c5578cd89a2 | b39d9ef9175077ac6f03b66d97b073d85b6bc4d0 | /Flector_medicated_plaster_SmPC.py | b4cb409483f8f16e7249caaae0809f3c362a58ec | [] | no_license | urudaro/data-ue | 2d840fdce8ba7e759b5551cb3ee277d046464fe0 | 176c57533b66754ee05a96a7429c3e610188e4aa | refs/heads/master | 2021-01-22T12:02:16.931087 | 2013-07-16T14:05:41 | 2013-07-16T14:05:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 171 | py | {'_data': [['Common', [['Skin', u'2,95%'], ['General', u'5%']]], ['Uncommon', []], ['Rare', []]],
'_note': u' ?MSFU',
'_pages': [3, 4],
u'_rank': 2,
u'_type': u'MSFU'} | [
"daro@daro-ThinkPad-X220.(none)"
] | daro@daro-ThinkPad-X220.(none) |
c7e3ef11b42f06a59db7b6364d8c81fa825e86a8 | fa08645f5804c98cb5f8354a851e8b4dc93f8224 | /assignment2/code/hot_city_mapper.py | 0b78294d7d3878aedab09eb727efcaf599035f58 | [] | no_license | chrizandr/distributed_computing | a9aab6ba04cc5282a573f910434bd7525894f7cc | 7979630bd97e36928f272f89be20e9990eb82747 | refs/heads/master | 2021-05-04T12:11:13.397801 | 2019-07-17T13:06:20 | 2019-07-17T13:06:20 | 120,289,202 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | #!/usr/bin/env python3
"""mapper.py."""
import sys
# input comes from STDIN (standard input)
data = []
for line in sys.stdin:
line = line.strip()
city, date, hi, lo = line.split(',')
print('{}\t{}'.format(city, hi))
| [
"chris.g14@iiits.in"
] | chris.g14@iiits.in |
a4316d4be42d7c16f885ca1d1fb52f0985d3fdfd | 21945fb6674298a3b2de064c55ca01205c646a1c | /week07/homework3.py | bb7da6f1bfdf92cab0f094fbbce5d737be54a4a1 | [] | no_license | Jiangjao/Python005-01 | c200c4feff1042c7069595e64d6e7abd6530b762 | 04275c2d5d3d134f9ea0f8fe5eabceae9317683b | refs/heads/main | 2023-03-23T20:51:05.371201 | 2021-03-14T08:04:06 | 2021-03-14T08:04:06 | 314,480,746 | 0 | 0 | null | 2020-11-20T07:39:25 | 2020-11-20T07:39:25 | null | UTF-8 | Python | false | false | 408 | py | import time
import math
def timer(func):
def inner(*args, **kwargs):
start = time.time()
func(*args, **kwargs)
end = time.time()
time_delata = end - start
# time_delata = round((end - start),10)
print(func.__name__,f"花费时间大概{time_delata}毫秒")
return time_delat... | [
"918718278@qq.com"
] | 918718278@qq.com |
3e126c527ecdbabbe3d020d939bbf9ae244d670e | 0adb68bbf576340c8ba1d9d3c07320ab3bfdb95e | /regexlib/2021-5-15/python_re2_test_file/regexlib_7979.py | bffb80e110380d59813cacb6a92cf1f35316152e | [
"MIT"
] | permissive | agentjacker/ReDoS-Benchmarks | c7d6633a3b77d9e29e0ee2db98d5dfb60cde91c6 | f5b5094d835649e957bf3fec6b8bd4f6efdb35fc | refs/heads/main | 2023-05-10T13:57:48.491045 | 2021-05-21T11:19:39 | 2021-05-21T11:19:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 578 | py | # 7979
# \b([A-Za-z0-9]+)(-|_|\.)?(\w+)?@\w+\.(\w+)?(\.)?(\w+)?(\.)?(\w+)?\b
# POLYNOMIAL
# nums:5
# POLYNOMIAL AttackString:""+"A"*10000+"! _1SLQ_1"
import re2 as re
from time import perf_counter
regex = """\b([A-Za-z0-9]+)(-|_|\.)?(\w+)?@\w+\.(\w+)?(\.)?(\w+)?(\.)?(\w+)?\b"""
REGEX = re.compile(regex)
for i in rang... | [
"liyt@ios.ac.cn"
] | liyt@ios.ac.cn |
4fbe0312706cd863d435ee206d2cd50d864aa244 | 433ca57245fe15afd309323e82f3bdf3287b4831 | /authentication/urls.py | f79cea9e911a931f09d7db1c6c59dadfc0af64d4 | [] | no_license | greenteamer/ceiling-django | db5170faada0f1582c744fa28c638e8671dc2ab9 | b4a469ae7d2ce6ed36ae51af60633de1fdb43ea4 | refs/heads/master | 2020-04-09T19:01:40.273226 | 2018-12-05T14:39:15 | 2018-12-05T14:39:15 | 160,531,789 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | # -*- coding: utf-8 -*-
# !/usr/bin/env python
from django.conf.urls import url
from authentication.views import *
urlpatterns = [
url(r'logout/$', logoutView),
url(r'login/$', loginView),
url(r'register/$', registerView),
]
| [
"greenteamer@bk.ru"
] | greenteamer@bk.ru |
9b252939ed7fd8376f54021b32dab3f487c5ebcb | 9ac405635f3ac9332e02d0c7803df757417b7fee | /permisos/migrations/0002_aditionaldefaultpermission.py | 5aea9ff8ce03397279fa7f4af97be041d2238bc0 | [] | no_license | odecsarrollo/07_intranet_proyectos | 80af5de8da5faeb40807dd7df3a4f55f432ff4c0 | 524aeebb140bda9b1bf7a09b60e54a02f56fec9f | refs/heads/master | 2023-01-08T04:59:57.617626 | 2020-09-25T18:01:09 | 2020-09-25T18:01:09 | 187,250,667 | 0 | 0 | null | 2022-12-30T09:36:37 | 2019-05-17T16:41:35 | JavaScript | UTF-8 | Python | false | false | 677 | py | # Generated by Django 2.0.2 on 2018-02-17 19:48
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('permisos', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='AditionalDefaultPermission',
fields=[
... | [
"fabio.garcia.sanchez@gmail.com"
] | fabio.garcia.sanchez@gmail.com |
92a9d3a6a54f6b4fa8608f888852f05dc5e91407 | faa0ce2a95da958be3bfb171cdff29eeb43c3eb6 | /py-exercises/unicorn-rpg/item/tonics.py | 27820bee3bba706d563907978d5efc5f887263e1 | [
"MIT"
] | permissive | julianapeace/digitalcrafts-exercises | 98fe4e20420c47cf9d92d16c45ac60dc35a49a6a | 98e6680138d55c5d093164a47da53e1ddb6d064c | refs/heads/master | 2021-08-30T04:17:09.997205 | 2017-12-16T00:22:22 | 2017-12-16T00:22:22 | 103,176,043 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 536 | py | from item.base import Item
class Tonic(Item):
def equip(self, hero):
print("{}'s health is {} out of {}.".format(
hero.name, hero.health, hero.max_health))
self.pause()
print("{} eats the {}.".format(
hero.name, self.name))
self.pause()
for i in rang... | [
"chancecordelia@gmail.com"
] | chancecordelia@gmail.com |
d0c478661d612888172e09bd9e3c4ebf31caf74f | 68e5e2c9a7e9372f536edf3d99847067eb734e75 | /11-使用django-rest-framework/typeidea/typeidea/typeidea/settings/develop.py | 9c2b99d4d96bb7a0ad7244b42325d5c3b25ce633 | [] | no_license | gy0109/Django-enterprise-development-logs--huyang | f04d21df6d45f5d2f226760d35e38042f74a7ea8 | ab4505f8cdaf0c1f9e3635591cd74645a374a73f | refs/heads/master | 2020-05-17T05:24:51.602859 | 2019-05-08T03:42:13 | 2019-05-08T03:42:13 | 183,534,431 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 913 | py | from .base import *
DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': 'typeidea',
'USER': 'root',
'PASSWORD': 'gy0109',
'HOST': '127.0.0.1',
'PORT': '3306',
'TEST': {
'CHARSET': 'utf8', #
# 'COLLA... | [
"1974326896@qq.com"
] | 1974326896@qq.com |
eeac7bb8fd1fbecbee6a1ae7589e83913bd1427a | 03f0a82e829a5711a9165d8f7d3762ca0c1ceaea | /ahgl/apps/tournaments/migrations/0012_auto__add_match__add_tournament__add_tournamentround__add_map__add_gam.py | 695c8bd8bf2a382d2838ab11c06b8685eda5009c | [
"BSD-2-Clause"
] | permissive | day9tv/ahgl | 4d273a39e06334cc15eb12031de0a806366396b9 | 5e06cfecb28c153c1b83ef89112fc217897131cb | refs/heads/master | 2021-01-22T08:32:53.663312 | 2012-10-06T21:32:52 | 2012-10-06T21:32:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,974 | py | # encoding: utf-8
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Match'
db.create_table('tournaments_match', (
('id', self.gf('djan... | [
"me@ntucker.me"
] | me@ntucker.me |
0042ad247469d035eb3bd6bbca7c8f0d3244cf04 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03623/s199798593.py | 72bc11bf89ea2eb7278b4860b9b2a08a11cd95e1 | [] | 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 | 121 | py | import sys
input = sys.stdin.readline
x,a,b = list(map(int,input().split()))
print('A' if abs(x-a) < abs(x-b) else 'B')
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c31e783fbf0dafb8d8f7922508e19f3339053b96 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/stdlib-big-966.py | 9ec39bda388f268fc18d4cd2b06cef12ee58ec27 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,989 | py | # ChocoPy library functions
def int_to_str(x: int) -> str:
digits:[str] = None
result:str = ""
# Set-up digit mapping
digits = ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]
# Write sign if necessary
if x < 0:
result = "-"
x = -x
# Write digits using a recursive call
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
1fa37d8012d63b7f1df5afe32309fb8374bcd5c0 | 0f79fd61dc47fcafe22f83151c4cf5f2f013a992 | /CodeUp/[059~064] 기초-조건및선택실행구조/060.py | 922d887c4b510638f2be4dabaac638aa661ab7a6 | [] | no_license | sangm1n/problem-solving | 670e119f28b0f0e293dbc98fc8a1aea74ea465ab | bc03f8ea9a6a4af5d58f8c45c41e9f6923f55c62 | refs/heads/master | 2023-04-22T17:56:21.967766 | 2021-05-05T12:34:01 | 2021-05-05T12:34:01 | 282,863,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | # 세 정수가 입력되었을 때, 짝(even)/홀(odd)을 출력
a, b, c = map(int, input().split())
print('even' if a%2==0 else 'odd')
print('even' if b%2==0 else 'odd')
print('even' if c%2==0 else 'odd')
| [
"dltkd96als@naver.com"
] | dltkd96als@naver.com |
e52284eb219985f90a9b3c75e20f27b97df69abc | 893597d91fe6de25cdd3e8427c4ebba29d3cabe1 | /tests/test_scaffold.py | af20eb27938d8aea2c9c8159b9a8598d08f22bb7 | [
"Apache-2.0"
] | permissive | AugustasV/ploomber | d51cefd529bdbf6c2bc82485ba77add6bb346f2b | b631a1b21da64bb7b9525db1c29c32ee3c0e48b4 | refs/heads/master | 2023-08-27T02:22:55.556200 | 2021-10-31T02:52:28 | 2021-10-31T02:52:28 | 423,189,549 | 0 | 0 | Apache-2.0 | 2021-10-31T15:44:17 | 2021-10-31T15:44:16 | null | UTF-8 | Python | false | false | 3,380 | py | from pathlib import Path
import ast
import pytest
from ploomber import tasks
from ploomber import scaffold
@pytest.mark.parametrize('name', ['task.py', 'task.ipynb'])
@pytest.mark.parametrize('extract_upstream', [False, True])
@pytest.mark.parametrize('extract_product', [False, True])
def test_renders_valid_script(... | [
"github@blancas.io"
] | github@blancas.io |
8d9d092d70ec00427f55769a5247b4663f100ca9 | c829275111b9025dcccc9ac1b92d8dc51adbb71d | /manage.py | 5621943733c6ce168fc625587ad0942d94e5925f | [
"MIT"
] | permissive | Ken-mbira/PHOTO_BOOK | f1bd1bd65af228b0600bf69da12840897eb109ad | d47cd8dabd4b92e3befdafe2d99db266be31ffff | refs/heads/master | 2023-08-19T06:55:07.309342 | 2021-10-12T11:05:00 | 2021-10-12T11:05:00 | 414,297,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'photobook.settings')
try:
from django.core.management import execute_from_command_line
except Im... | [
"ken.mbira@student.moringaschool.com"
] | ken.mbira@student.moringaschool.com |
c29072f0f943d98e21ef746e7367c84f8a47ff84 | a908a9f1f6028fe78a5b23621dff4b8fa7047414 | /flatmap_lv1_larger/constants.py | 8bb59c011796771343de9fdada9c6a22e6f139a2 | [] | no_license | ViZDoomBot/stable-baselines-agent | 502edd5e64c45a6adbe073a22e477b0e41ac213d | a76c1c3449dab518462f6a7bc2a0dcb668f08b77 | refs/heads/main | 2023-04-27T14:45:27.389418 | 2021-05-05T06:54:51 | 2021-05-05T06:54:51 | 340,531,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,914 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File : constants.py
# @Author: harry
# @Date : 1/27/21 7:08 PM
# @Desc : some constant definitions
import sys
import os
import vizdoom as vzd
PACKAGE_PARENT = '..'
SCRIPT_DIR = os.path.dirname(os.path.realpath(os.path.join(os.getcwd(), os.path.expanduser(__file__))... | [
"zhouziqun@cool2645.com"
] | zhouziqun@cool2645.com |
c5b2a1385a8b9cc616d3b0327b4a190a9d888330 | 08cfc4fb5f0d2f11e4e226f12520a17c5160f0a2 | /kubernetes/client/models/v1_load_balancer_ingress.py | aa2f3c191214800fe58682c91dad6f3156d6d464 | [
"Apache-2.0"
] | permissive | ex3cv/client-python | 5c6ee93dff2424828d064b5a2cdbed3f80b74868 | 2c0bed9c4f653472289324914a8f0ad4cbb3a1cb | refs/heads/master | 2021-07-12T13:37:26.049372 | 2017-10-16T20:19:01 | 2017-10-16T20:19:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,071 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: v1.8.1
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
... | [
"mehdy@google.com"
] | mehdy@google.com |
7aaa4e6359d495ce0c93b2480ad757acdcb75af7 | 786027545626c24486753351d6e19093b261cd7d | /ghidra9.2.1_pyi/ghidra/test/processors/support/PCodeTestControlBlock.pyi | cb2ed1addcc5cfe466618a3b60b750d14cce393e | [
"MIT"
] | permissive | kohnakagawa/ghidra_scripts | 51cede1874ef2b1fed901b802316449b4bf25661 | 5afed1234a7266c0624ec445133280993077c376 | refs/heads/main | 2023-03-25T08:25:16.842142 | 2021-03-18T13:31:40 | 2021-03-18T13:31:40 | 338,577,905 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,691 | pyi | from typing import List
import ghidra.program.model.address
import ghidra.test.processors.support
import ghidra.test.processors.support.PCodeTestAbstractControlBlock
import java.lang
class PCodeTestControlBlock(ghidra.test.processors.support.PCodeTestAbstractControlBlock):
"""
PCodeTestControlBlock data is re... | [
"tsunekou1019@gmail.com"
] | tsunekou1019@gmail.com |
287106fb8446b7e462b44ea9ab651a9c4016c4e0 | 2fac796fa58c67fb5a4a95a6e7f28cbef169318b | /python/hash-function.py | a3d79b09efd919544f997d3ba614a680411707d1 | [] | no_license | jwyx3/practices | f3fe087432e79c8e34f3af3a78dd10278b66dd38 | 6fec95b9b4d735727160905e754a698513bfb7d8 | refs/heads/master | 2021-03-12T20:41:59.816448 | 2019-04-14T06:47:30 | 2019-04-14T06:47:30 | 18,814,777 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,255 | py | """
In data structure Hash, hash function is used to convert a string(or any other type) into an integer smaller than hash size and bigger or equal to zero. The objective of designing a hash function is to "hash" the key as unreasonable as possible. A good hash function can avoid collision as less as possible. A widely... | [
"jwyx88003@gmail.com"
] | jwyx88003@gmail.com |
ef9386fa4dfd9193cb188171976c71f1e3f4e457 | fa0c53ac2a91409eaf0fc7c082a40caae3ffa0d8 | /com/lc/demo/music163SpidersDemo/HeatMap/get_fansinfo.py | b015ef13d7f5a43765520d9b80976475977d36cc | [] | no_license | ahviplc/pythonLCDemo | aba6d8deb1e766841461bd772560d1d50450057b | 22f149600dcfd4d769e9f74f1f12e3c3564e88c2 | refs/heads/master | 2023-07-24T01:41:59.791913 | 2023-07-07T02:32:45 | 2023-07-07T02:32:45 | 135,969,516 | 7 | 2 | null | 2023-02-02T03:24:14 | 2018-06-04T04:12:49 | Python | UTF-8 | Python | false | false | 7,108 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
get_fansinfo.py
网易云音乐歌手粉丝地域分布热力图(一):获取粉丝数据
Version: 1.0
Author: LC
DateTime: 2019年1月22日13:03:52
一加壹博客最Top-一起共创1+1>2的力量!~LC
LC博客url: http://oneplusone.top/index.html
"""
import requests
import codecs
import base64
import random
import math
from Crypto.Cipher import A... | [
"ahlc@sina.cn"
] | ahlc@sina.cn |
59b0690ca2abff226a2abfa17d3dc1b13b7496a8 | ab79f8297105a7d412303a8b33eaa25038f38c0b | /farmasi/vit_purchase_revision/__init__.py | ade7c3e199f0b4dff97e52ac1225012d0367bada | [] | no_license | adahra/addons | 41a23cbea1e35079f7a9864ade3c32851ee2fb09 | c5a5678379649ccdf57a9d55b09b30436428b430 | refs/heads/master | 2022-06-17T21:22:22.306787 | 2020-05-15T10:51:14 | 2020-05-15T10:51:14 | 264,167,002 | 1 | 0 | null | 2020-05-15T10:39:26 | 2020-05-15T10:39:26 | null | UTF-8 | Python | false | false | 1,083 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"prog1@381544ba-743e-41a5-bf0d-221725b9d5af"
] | prog1@381544ba-743e-41a5-bf0d-221725b9d5af |
aafe5c830dbc10c7fa2a9bf7f557c558070e4f4d | ea3897a5ffe63abd7ced5676c9121f6bb970bb97 | /detransapp/manager/tipo_veiculo.py | de59c365c60009669c75c552ea7ba717754d252b | [] | no_license | brunowber/transnote2 | a045bdef18a9b07b70cc74483023dd877728682c | 7b799a71380aca342e879c5556cc24fcebdac1ca | refs/heads/master | 2020-04-10T08:53:29.613086 | 2018-03-15T19:52:53 | 2018-03-15T19:52:53 | 124,267,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | # coding: utf-8
"""Gerencia os tipos de veiculos"""
from datetime import datetime
from django.db import models
from django.db.models import Q
from django.core.paginator import Paginator
from django.conf import settings
class TipoVeiculoManager(models.Manager):
"""Classe pra gerenciar os tipos de veiculos"""
... | [
"bm.morais21@gmail.com"
] | bm.morais21@gmail.com |
cfe6d1f97f618d4b6127c93dcdbfc2a3c8f22a1b | f2dd3825da3ed8b6e52058453a9340f5330581c2 | /0x01-python-if_else_loops_functions/6-print_comb3.py | 126ab1fd63b2a2b9d3402e4a4033068c893f1881 | [] | no_license | mlaizure/holbertonschool-higher_level_programming | 855c8b2672b59d27cba4c05ad8a7bb5f30b5d253 | 0d2bcdab97c31e79093497a1783a52e56e10ac6e | refs/heads/main | 2023-04-22T23:20:58.284834 | 2021-05-13T01:00:20 | 2021-05-13T01:00:20 | 319,399,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | #!/usr/bin/python3
for i in range(10):
for j in range(1, 10):
if (i == 8) and (j == 9):
print("{}{}".format(i, j))
elif (j > i):
print("{}{}".format(i, j), end=", ")
| [
"maddi.laizure@gmail.com"
] | maddi.laizure@gmail.com |
1109d7204a3f0bd23def33ad91ac12f7647c0af5 | cf6d53e0cbf09a57e63967596bc6e9dce7dcb9e7 | /tests/models/test_models.py | 2dbc66aa067281880ecfd45709da1eadbd7cea70 | [
"MIT"
] | permissive | TaiSakuma/acondbs | 16d3bf32a3bd62a81a8575ed2433844acc4fc2a1 | 990ab44ce4081cc0e04148a8375f7ce7081c2dee | refs/heads/master | 2021-05-26T16:09:39.772512 | 2020-04-21T17:58:41 | 2020-04-21T17:58:41 | 254,131,992 | 0 | 0 | MIT | 2020-04-08T15:48:28 | 2020-04-08T15:48:27 | null | UTF-8 | Python | false | false | 460 | py | from acondbs.db.sa import sa
# __________________________________________________________________||
def test_models(app):
'''test the models declared
'''
expected = {
'simulations', 'simulation_file_paths',
'maps', 'map_file_paths',
'beams', 'beam_file_paths'
}
model_names =... | [
"tai.sakuma@gmail.com"
] | tai.sakuma@gmail.com |
d95162a0c5e7b99f7717e2edcb78e2546dd0d3ca | 564ccf876cd04d199dd2364e2e138989598be98d | /Stock/venv/Lib/site-packages/statsmodels/multivariate/tests/test_factor.py | abb54ed36e7206b64d0ff837686b95c7cd8db69f | [] | no_license | hcz2000/pywork | 7eedcc7d53d85036b823a2ed96a1bffe761a8aec | 345820faa87de131203a98932a039725ff2bebda | refs/heads/master | 2023-08-15T10:48:36.176886 | 2023-07-26T09:23:09 | 2023-07-26T09:23:09 | 134,735,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,771 | py | # -*- coding: utf-8 -*-
import warnings
from statsmodels.compat.pandas import PD_LT_1_4
import os
import numpy as np
import pandas as pd
from statsmodels.multivariate.factor import Factor
from numpy.testing import (assert_equal, assert_array_almost_equal, assert_,
assert_raises, assert_ar... | [
"huangchangzhan@hotmail.com"
] | huangchangzhan@hotmail.com |
6f97590f8abcda2a4dafacaf8bbebbfc853f1fad | f78a027c0073685f554fece35906bc61adcc0eaa | /tenable/sc/accept_risks.py | ec14863f793f08b1d60dfa76e4cda8fa2458c8a2 | [
"MIT"
] | permissive | hdsiles/pyTenable | c235e8d89f79c70f96e4cc56fcfcca5202f6932a | 86296990755f43ed6211ee293b189bbe741b22c9 | refs/heads/master | 2020-04-24T07:11:27.317161 | 2019-02-20T21:20:07 | 2019-02-20T21:20:07 | 171,790,514 | 0 | 0 | MIT | 2019-02-21T03:05:18 | 2019-02-21T03:05:18 | null | UTF-8 | Python | false | false | 10,595 | py | '''
accept_risks
============
.. warning:: This module is flagged as "beta", and may change.
The following methods allow for interaction into the Tenable.sc
`Accept Risk <https://docs.tenable.com/sccv/api/Accept-Risk-Rule.html>`_ API.
Methods available on ``sc.accept_risks``:
.. rst-class:: hide-signature
.. autoc... | [
"steve@chigeek.com"
] | steve@chigeek.com |
7720303c24c0be9856fb62ddbf3740ccfd24190a | 35e95fa04f4ba9d54244503f36fa29dfde8a0f75 | /docs/source/conf.py | 29952c93ff0a78a6a61a9b1e39647ceaddba1af7 | [
"MIT"
] | permissive | sanjana-dev/pMuTT | e4d949582337d93620d069a5d0592520b4ccd093 | 2246cffa875b4aa06ba0d7dec99a866b179e2e0e | refs/heads/master | 2020-11-29T16:16:27.337590 | 2019-12-12T16:59:16 | 2019-12-12T16:59:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,651 | py | # -*- coding: utf-8 -*-
#
# Configuration file for the Sphinx documentation builder.
#
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup ------------------------------------------------------------... | [
"jonathanalym@gmail.com"
] | jonathanalym@gmail.com |
e6a7d567f745661c1573b2541231bfcb08a5de43 | 5c335469a9198d61e2095293d06ce78e781726d0 | /python/Semester 1/Tutorials/Tutorial 10/Problem5.py | 0009cf6d74244aeb60117c57758a3646c01cb532 | [] | no_license | LaurenceGA/programmingProjects | 5e203b450d11bff9cdb652661934ec3f797a6860 | 1fe3ea9a89be4c32cd68dd46da7a842b933c438b | refs/heads/master | 2021-01-15T10:59:09.890932 | 2017-06-18T11:20:28 | 2017-06-18T11:20:28 | 36,592,569 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python
__author__ = 'Laurence Armstrong'
authorship_string = "{} created on {} by {} ({})\n{}\n".format(
"Problem5.py", "25/05/15", __author__, 15062061, "-----" * 15) \
if __name__ == '__main__' else ""
print(authorship_string, end="")
def get_details():
title = input("Title: ")
if tit... | [
"lorryarmstrong@gmail.com"
] | lorryarmstrong@gmail.com |
26f5e40567cd2201cd0369e9fa6957b2b1ad1a94 | 37c243e2f0aab70cbf38013d1d91bfc3a83f7972 | /pp7TeV/HeavyIonsAnalysis/JetAnalysis/python/jets/ak2CaloJetSequence_pPb_mc_bTag_cff.py | c487933c933e39e160512fb8ad38e7b52a68e56d | [] | no_license | maoyx/CMSWork | 82f37256833cbe4c60cb8df0b4eb68ceb12b65e7 | 501456f3f3e0f11e2f628b40e4d91e29668766d5 | refs/heads/master | 2021-01-01T18:47:55.157534 | 2015-03-12T03:47:15 | 2015-03-12T03:47:15 | 10,951,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,696 | py |
import FWCore.ParameterSet.Config as cms
from PhysicsTools.PatAlgos.patHeavyIonSequences_cff import *
from HeavyIonsAnalysis.JetAnalysis.inclusiveJetAnalyzer_cff import *
from HeavyIonsAnalysis.JetAnalysis.bTaggers_cff import *
from RecoJets.JetProducers.JetIDParams_cfi import *
ak2Calomatch = patJetGenJetMatch.clon... | [
"yaxian.mao@cern.ch"
] | yaxian.mao@cern.ch |
853343599b84552784d51c77d51a4ebb35546e67 | 0232863fe1e0111b7b8641ef720b888584ed5ab3 | /venv/bin/django-admin | 91812a8852cc20c5950d49c2be084f3044b867b0 | [] | no_license | Smikhalcv/orm_migrations | fbc90322414e0e77707afa74410daf7c2e7bc703 | 1431d83f0bdddea3b0801556e9e35513dd121727 | refs/heads/master | 2022-12-04T10:11:21.180579 | 2020-08-31T10:14:21 | 2020-08-31T10:14:21 | 291,681,714 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | #!/home/dell-ubuntu/Документы/Python/django/orm_migrations/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"Smikhalcv@yandex.ru"
] | Smikhalcv@yandex.ru | |
05029970f89ac9d562ce26601e5dc8e55d0f8313 | 3ef70fe63acaa665e2b163f30f1abd0a592231c1 | /stackoverflow/venv/lib/python3.6/site-packages/twisted/conch/ssh/connection.py | 16ef6444a0539d1bb857d8fd0212dc4499882dbc | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | wistbean/learn_python3_spider | 14914b63691ac032955ba1adc29ad64976d80e15 | 40861791ec4ed3bbd14b07875af25cc740f76920 | refs/heads/master | 2023-08-16T05:42:27.208302 | 2023-03-30T17:03:58 | 2023-03-30T17:03:58 | 179,152,420 | 14,403 | 3,556 | MIT | 2022-05-20T14:08:34 | 2019-04-02T20:19:54 | Python | UTF-8 | Python | false | false | 26,151 | py | # -*- test-case-name: twisted.conch.test.test_connection -*-
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.
"""
This module contains the implementation of the ssh-connection service, which
allows access to the shell and port-forwarding.
Maintainer: Paul Swartz
"""
from __future__ import divis... | [
"354142480@qq.com"
] | 354142480@qq.com |
5431783e06c845aae4765079bfd50eda31b68404 | af29d4d447f03485b7b736a914e5620148e17a09 | /FirstPy/game0.py | 31ffa46fe7f3c4649b4e360e087b1a28a04efc27 | [] | no_license | Flyhiee/YesPython | e2649f40e083d2a609fbc37619e68b5bc8d46482 | 642fc4d2d6b8c1f68607823a9dd03fa18ef014c0 | refs/heads/master | 2020-04-16T09:43:43.203844 | 2019-01-31T03:11:09 | 2019-01-31T03:11:09 | 165,474,880 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | print("Welcome!")
g = input("Guess the number: ")
guess = int(g)
if guess == 5:
print("You win!")
else:
print("You lose!")
print("Game over!")
| [
"Aps@localhost.localdomain"
] | Aps@localhost.localdomain |
1eaf182b0e73247e26c9e8358da022870f789f95 | 3649dce8b44c72bbfee56adf4e29ca6c5ba2703a | /code_up2767.py | ae839227919c462ed08a8a7aa67ef53ff3a18735 | [] | no_license | beOk91/code_up | 03c7aca76e955e3a59d797299749e7fc2457f24a | ca1042ce216cc0a80e9b3d3ad363bc29c4ed7690 | refs/heads/master | 2022-12-06T08:23:00.788315 | 2020-08-20T11:21:59 | 2020-08-20T11:21:59 | 284,844,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 243 | py | k,n=map(int,input().strip().split())
k_list=list(map(int,input().strip().split()))
for i in range(k,n):
sum=0
for j in range(i-1,i-k-1,-1):
sum+=k_list[j]
k_list.append(sum)
print(k_list[n-1]%100007)
"""
2 3
7 7 14
1,
""" | [
"be_ok91@naver.com"
] | be_ok91@naver.com |
aeb0b56dea0c1e975ee0bc44ba268aa0fa073b6d | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /SdGE4ZBtuMKyxDqQ6_11.py | 2e4abab70e2ebb9141017db55244f13d9a4fe0c1 | [] | 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 | 511 | py | """
Create a function that takes a string and returns the first character that
repeats. If there is no repeat of a character, then return "-1".
### Examples
first_repeat("legolas") ➞ "l"
first_repeat("Gandalf") ➞ "a"
first_repeat("Balrog") ➞ "-1"
first_repeat("Isildur") ➞ "-1"
### N... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
7ebe17e04fc46ba0c5301b9c134504b0a8a7ebcb | f2af0ade7716ef8441c9c085f3297f66a0cbcfec | /app/passion_applets/object_page/applets/games/word_spell.py | 5918f1ba2149c5081dc826fce5b2862f235cb490 | [] | no_license | vectorhuztt/study_center_applets_copy | 09fa0d2aafa55bb3cebfcf72ea4c64ebcfad54a5 | e162b6999ebd879ed2833ab54d15591e4864fa70 | refs/heads/master | 2022-09-16T15:18:23.161164 | 2020-06-05T01:39:28 | 2020-06-05T01:39:28 | 269,503,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,271 | py | import random
import string
import time
from selenium.webdriver.common.by import By
from app.passion_applets.object_page.applets.common import CommonPage
from app.passion_applets.object_page.applets.games.word_reform import ReformWordGame
from conf.decorator import teststep
class WordSpellGame(CommonPage):
def... | [
"vectorztt@163.com"
] | vectorztt@163.com |
53bce614ae220236a08bbd5dc7b205c4aed9d7a1 | 3777658387aa9e78d7c04202d7fd47d59b9e1271 | /images/corner_detection.py | abf9f4ccfd6fa888532ab46528130cf60a510f7f | [] | no_license | jocoder22/PythonDataScience | 709363ada65b6db61ee73c27d8be60587a74f072 | c5a9af42e41a52a7484db0732ac93b5945ade8bb | refs/heads/master | 2022-11-08T17:21:08.548942 | 2022-10-27T03:21:53 | 2022-10-27T03:21:53 | 148,178,242 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | #!/usr/bin/env python
import os
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
# import matplotlib.image as mpimg
import cv2
from skimage import io, exposure
from skimage.feature import hog
def print2(*args):
for arg in args:
print(arg, end='\n\n')
sp = {"sep":"\n\n", "end":"\n\n... | [
"okigbookey@gmail.com"
] | okigbookey@gmail.com |
2e4d94adf3df80850558430a6d6e600a9f3aa1b7 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/contrib/timeseries/python/timeseries/model_utils.py | 249975a83e3669875aa693d97311fff716dbf8b7 | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 4,115 | py | # 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
#
# Unless required by... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
feff111ff9f8504c1e9fe1ed1302d348f5120e23 | 63c261c8bfd7c15f6cdb4a08ea2354a6cd2b7761 | /acaizerograu/acaizerograu/env/Scripts/pilfile.py | 1261f3a53d2c0e74d9317192e9b38c5f23dc8bb5 | [] | no_license | filhosdaputa/AcaiZero | 93295498d95bcc13d020f2255e6b87a12cff04bf | 99a775f823d98a0b7b10e685936f1c12ccd1a70a | refs/heads/master | 2022-10-29T05:31:10.512990 | 2017-08-11T13:49:06 | 2017-08-11T13:49:06 | 149,019,853 | 0 | 1 | null | 2022-10-18T00:41:16 | 2018-09-16T17:38:48 | JavaScript | UTF-8 | Python | false | false | 2,734 | py | #!C:\Users\IGOR\Source\Repos\AcaiZero\acaizerograu\acaizerograu\env\Scripts\python.exe
#
# The Python Imaging Library.
# $Id$
#
# a utility to identify image files
#
# this script identifies image files, extracting size and
# pixel mode information for known file formats. Note that
# you don't need the PIL C extension... | [
"igor-peres@hotmail.com"
] | igor-peres@hotmail.com |
9bb7f7bcd1ff8fe2c8ca5d83a2b9b489a473dba8 | 0a3e24df172a206a751217e5f85b334f39983101 | /Design Pattern/mytest.py | 16a6f34bcba5218fc479b4cc79867dbbf33df36d | [] | no_license | yeboahd24/python202 | 1f399426a1f46d72da041ab3d138c582c695462d | d785a038183e52941e0cee8eb4f6cedd3c6a35ed | refs/heads/main | 2023-05-06T04:14:19.336839 | 2021-02-10T02:53:19 | 2021-02-10T02:53:19 | 309,841,303 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py |
class AgeValidator(object):
"""docstring for Student"""
def __init__(self, age):
self._age = age
self._name = None
def __get__(self, instance, owner):
if self._age is None:
raise ValueError(f'{self._age}: is not set')
if self._age < 18:
raise ValueError(f'{self._age} must be greater than... | [
"noreply@github.com"
] | yeboahd24.noreply@github.com |
b335745902329e09d03ed7d0b83fc9fbebbc4a2c | 47b4a652bf47afbff07a7148c3b4a94b86f85bb2 | /swap_start/auto_playok_com/debug/debug_state.py | 860ae0d1fec53e1bcb3151062b77c6f9bf99d71d | [
"MIT"
] | permissive | yudongqiu/gomoku | 3423253dcac52c0b738249900f1e86b31ca99524 | 4a95f2a5008f31fed5cb92c6bd6d55f9669ddd06 | refs/heads/master | 2022-10-28T09:16:38.939698 | 2021-01-30T21:01:48 | 2021-01-30T21:01:48 | 84,468,572 | 3 | 1 | MIT | 2022-09-30T09:03:45 | 2017-03-09T17:12:22 | Python | UTF-8 | Python | false | false | 1,528 | py | # coding: utf-8
import numpy as np
import AI_debug
from tf_model import load_existing_model
board_size=15
def read_board_state(f):
# default
black_stones = set()
white_stones = set()
board = [black_stones, white_stones]
last_move = None
playing = 0
# read and parse board
for line in ope... | [
"saviorbruce@gmail.com"
] | saviorbruce@gmail.com |
825c81bfb2926ce343f78e46f9a4f7df0c279581 | 65dd982b7791b11b4f6e02b8c46300098d9b5bb3 | /heat-2014.2.1/heat/openstack/common/strutils.py | bd690b0829141d35b2aca22297f15e92314c9359 | [
"Apache-2.0"
] | permissive | xiongmeng1108/openstack_gcloud | 83f58b97e333d86d141493b262d3c2261fd823ac | d5d3e4f8d113a626f3da811b8e48742d35550413 | refs/heads/master | 2021-01-10T01:21:13.911165 | 2016-03-25T08:21:14 | 2016-03-25T08:21:14 | 54,700,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,007 | py | # Copyright 2011 OpenStack Foundation.
# 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 req... | [
"cs_xm@126.com"
] | cs_xm@126.com |
738f342dc72bafe4df18bfca2f9beaa61bcf7526 | 2c4efe2ce49a900c68348f50e71802994c84900a | /braindecode/braindecode/venv1/Lib/site-packages/numba/pycc/__init__.py | 20f60564072472c96972fbdf850306034aaf0c7b | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | sisi2/Masterthesis | b508632526e82b23c2efb34729141bfdae078fa0 | 7ce17644af47db4ad62764ed062840a10afe714d | refs/heads/master | 2022-11-19T15:21:28.272824 | 2018-08-13T15:02:20 | 2018-08-13T15:02:20 | 131,345,102 | 2 | 1 | null | 2022-11-15T14:08:07 | 2018-04-27T21:09:21 | Python | UTF-8 | Python | false | false | 3,769 | py | # -*- coding: utf-8 -*-
from __future__ import print_function, division, absolute_import
import os
import logging
import subprocess
import tempfile
import sys
# Public API
from .cc import CC
from .decorators import export, exportmany
def get_ending(args):
if args.llvm:
return ".bc"
... | [
"dansyefila@gmail.com"
] | dansyefila@gmail.com |
ed958dd42c7a14865477f3186bac33e217d934c0 | 5ec06dab1409d790496ce082dacb321392b32fe9 | /clients/python/generated/swaggeraemosgi/model/org_apache_sling_scripting_sightly_js_impl_jsapi_sly_bindings_values_prov_properties.py | bd5e147154970e87e3f26d09972fdb4faefab966 | [
"Apache-2.0"
] | permissive | shinesolutions/swagger-aem-osgi | e9d2385f44bee70e5bbdc0d577e99a9f2525266f | c2f6e076971d2592c1cbd3f70695c679e807396b | refs/heads/master | 2022-10-29T13:07:40.422092 | 2021-04-09T07:46:03 | 2021-04-09T07:46:03 | 190,217,155 | 3 | 3 | Apache-2.0 | 2022-10-05T03:26:20 | 2019-06-04T14:23:28 | null | UTF-8 | Python | false | false | 7,125 | py | """
Adobe Experience Manager OSGI config (AEM) API
Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API # noqa: E501
The version of the OpenAPI document: 1.0.0-pre.0
Contact: opensource@shinesolutions.com
Generated by: https://openapi-generator.t... | [
"cliffano@gmail.com"
] | cliffano@gmail.com |
386aef704c39f9ff78b51e326d7b5f9648aa8c20 | a4ea525e226d6c401fdb87a6e9adfdc5d07e6020 | /src/azure-cli/azure/cli/command_modules/ams/tests/latest/test_ams_asset_track_scenarios.py | 1473bfb655a7598b6f756712f888f44ca3befcfb | [
"MIT",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MPL-2.0",
"LGPL-2.1-only",
"Apache-2.0",
"LGPL-2.1-or-later",
"BSD-2-Clause"
] | permissive | Azure/azure-cli | 13340eeca2e288e66e84d393fa1c8a93d46c8686 | a40fd14ad0b6e89720a2e58d4d9be3a6ce1535ca | refs/heads/dev | 2023-08-17T06:25:37.431463 | 2023-08-17T06:00:10 | 2023-08-17T06:00:10 | 51,040,886 | 4,018 | 3,310 | MIT | 2023-09-14T11:11:05 | 2016-02-04T00:21:51 | Python | UTF-8 | Python | false | false | 15,145 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
2ca8d537c01563e7b278dbb6e2b6594cbbc80763 | 99e494d9ca83ebafdbe6fbebc554ab229edcbacc | /.history/Day 1/Test/Answers/NegativeMarking_20210304211434.py | 57b1e9d86c4af6e1af80ae1355f111567af35e11 | [] | no_license | Datta2901/CCC | c0364caa1e4937bc7bce68e4847c8d599aef0f59 | 4debb2c1c70df693d0e5f68b5798bd9c7a7ef3dc | refs/heads/master | 2023-04-19T10:05:12.372578 | 2021-04-23T12:50:08 | 2021-04-23T12:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 444 | py | t = int(input())
for i in range(t):
questions,requiredscore = map(int,input().split())
if questions * 4 < requiredscore:
print(-1)
continue
attempt = (requiredscore/questions) + 3
accuracy = attempt / 7
print(format(accuracy*100,'.2f')
# Here Accuracy can be find by using ... | [
"manikanta2901@gmail.com"
] | manikanta2901@gmail.com |
3987a84881cb00c259e5f634796e5624fed300d3 | 6674f4300961d9ca7fbfb667734fb91b26fc7881 | /cutter.py | 23a52d5ea2f98dd23c1e6879e0862a329c9e6fb2 | [] | no_license | seffka/sounds | 2d1232c5e2a0bf4ca5ab2fae06e515ec078aab4a | 84770ed73a47f42af847012cd987f0e3b6a15db6 | refs/heads/master | 2021-01-12T00:13:13.331170 | 2017-01-19T15:06:55 | 2017-01-19T15:06:55 | 78,686,903 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,623 | py | import sys
sys.path.append('/Users/seffka/DSPMA/sms-tools/software/models/')
from utilFunctions import wavread, wavwrite
from scipy.signal import get_window
import matplotlib.pyplot as plt
import numpy as np
import os
from os import listdir
from os.path import isfile, join, splitext
import essentia
import essentia.stan... | [
"seva@ringrows.ru"
] | seva@ringrows.ru |
012aaaa9e7fdbf6d4aeeaa7fa858790eab08e2eb | f576f0ea3725d54bd2551883901b25b863fe6688 | /sdk/security/azure-mgmt-security/azure/mgmt/security/v2023_02_01_preview/aio/operations/_health_report_operations.py | 852329018d706ec02c3aa68d58b22afb9b4dd791 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | Azure/azure-sdk-for-python | 02e3838e53a33d8ba27e9bcc22bd84e790e4ca7c | c2ca191e736bb06bfbbbc9493e8325763ba990bb | refs/heads/main | 2023-09-06T09:30:13.135012 | 2023-09-06T01:08:06 | 2023-09-06T01:08:06 | 4,127,088 | 4,046 | 2,755 | MIT | 2023-09-14T21:48:49 | 2012-04-24T16:46:12 | Python | UTF-8 | Python | false | false | 4,653 | py | # pylint: disable=too-many-lines
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRe... | [
"noreply@github.com"
] | Azure.noreply@github.com |
b90e6ea708395e48959ab1848de991922eb9a778 | adb6314474c49d3780005f110115c2323f3a343e | /hr_employee_updation/__manifest__.py | 4284e142f966d701c0fb80489b75c3f16dfa8b04 | [] | no_license | viethoang66666/seatek_viet | d86996a215ae426a5dce3054360f204e3d0867a1 | 5ebad7ede4690e1bb9e2c1063abf677e675631b4 | refs/heads/master | 2023-04-25T00:37:17.236513 | 2021-05-12T10:07:00 | 2021-05-12T10:07:00 | 366,660,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,817 | py | # -*- coding: utf-8 -*-
###################################################################################
# A part of Open HRMS Project <https://www.openhrms.com>
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>).
# Author: Jesni Banu (<https... | [
"vincenthoang271201@gmail.com"
] | vincenthoang271201@gmail.com |
6b062341d5d9055c048a0f573b4535d9fdd25741 | 930bc970069d8cbcfb36725a90492eff50638ecc | /code/dk-iris-pipeline/airflow_home/dags/iris-dag.py | 293423870eb24c0bad97b6b4bc19c1f95bd27dbe | [
"MIT"
] | permissive | databill86/airflow4ds | 4770d856569c4db4b55b2d9dfda010e21c4cd790 | b5ae213f7169c54d31f4eca58d235ec6b09fd56f | refs/heads/master | 2021-09-25T17:26:43.340747 | 2018-10-24T16:09:49 | 2018-10-24T16:09:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 997 | py | import sys
import os
PROJECT_DIRECTORY = os.getenv(key='AIRFLOW_HOME')
sys.path.append(PROJECT_DIRECTORY)
from src import get_raw_iris, get_clean_iris
import datetime as dt
from airflow import DAG
from airflow.operators.bash_operator import BashOperator
from airflow.operators.python_operator import PythonOperator
d... | [
"dushyant.khosla@pmi.com"
] | dushyant.khosla@pmi.com |
d25faa0b2ef3fc7ee416c23bf66da07d35197723 | 3f84ff1f506287bf0bb3b0840947e3ef23f22c87 | /04day/6-王者游戏私有方法.py | 8b73d2a76e870dc88eac560b0f4a097706823bd4 | [] | no_license | 2099454967/wbx | 34b61c0fc98a227562ea7822f2fa56c5d01d3654 | 316e7ac7351b532cb134aec0740e045261015920 | refs/heads/master | 2020-03-18T06:09:58.544919 | 2018-05-28T13:01:19 | 2018-05-28T13:01:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 464 | py | class Game():
def __init__(self):
self.__size = 100
def getSize(self):
return self.__size
def setSize(self,size):
self.__size = size
#大招要想发动,必须要有蓝
#加了两个下划线,就不能直接调用了
def __dazhao(self,mp):
print("十步杀一人")
def fadazhao(self,mp):
if mp <= 80:
print("蓝不够")
else:
self.__dazhao(mp)
wangzhe = ... | [
"2099454967@qq.com"
] | 2099454967@qq.com |
95d1e9159392dcaf85675e26e0bdec4db28e9fea | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /nmoohLwP962r6P355_7.py | 0bc8cd0fa601e62247825d104fab5cc4f71290af | [] | 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 | 1,574 | py | """
In this challenge, you have to establish if the digits of a given number form
a straight arithmetic sequence (either increasing or decreasing). A straight
sequence has an equal step between every pair of digits.
Given an integer `n`, implement a function that returns:
* `"Not Straight"` if `n` is lower than ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
772024ffe81f495ca9834e7489711dd25fcd010b | 7bb34b9837b6304ceac6ab45ce482b570526ed3c | /external/webkit/Source/WebCore/WebCore.gyp/scripts/action_makenames.py | ecf543f44980bab6edee79a875d0e89de645676e | [
"Apache-2.0",
"LGPL-2.0-only",
"BSD-2-Clause",
"LGPL-2.1-only",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LicenseRef-scancode-other-copyleft"
] | permissive | ghsecuritylab/android_platform_sony_nicki | 7533bca5c13d32a8d2a42696344cc10249bd2fd8 | 526381be7808e5202d7865aa10303cb5d249388a | refs/heads/master | 2021-02-28T20:27:31.390188 | 2013-10-15T07:57:51 | 2013-10-15T07:57:51 | 245,730,217 | 0 | 0 | Apache-2.0 | 2020-03-08T00:59:27 | 2020-03-08T00:59:26 | null | UTF-8 | Python | false | false | 6,871 | py | #!/usr/bin/python
#
# Copyright (C) 2009 Google Inc. 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, this list ... | [
"gahlotpercy@gmail.com"
] | gahlotpercy@gmail.com |
d39c97d024cef112b1e44e961021e9d7cff0637d | 917c44bfb0b6fdcce7ad4148e6cbd89fd0e61901 | /tests/factories.py | ca87699b78e4d8b4e95ab6e339d458ceda503f02 | [] | no_license | onepercentclub/django-bb-salesforce | 39c3a0071d52b0c021c545aa32aeca310ad6a1ec | 6d00a9521271612a174d7e66dc65a6751f1636f4 | refs/heads/master | 2021-01-21T04:33:06.979227 | 2016-07-15T08:58:28 | 2016-07-15T08:58:28 | 32,444,339 | 0 | 1 | null | 2016-07-15T08:58:28 | 2015-03-18T07:31:47 | Python | UTF-8 | Python | false | false | 1,450 | py | import factory
from tests.models import Member, Country, SubRegion, Region, Address
class MemberFactory(factory.DjangoModelFactory):
FACTORY_FOR = Member
username = factory.Sequence(lambda n: u'jd_{0}'.format(n))
first_name = factory.Sequence(lambda f: u'John_{0}'.format(f))
last_name = factory.Seque... | [
"loek@1procentclub.nl"
] | loek@1procentclub.nl |
f0f11595eb6cb036039a579f42b8e3513cebbdf1 | 655c51822cc0484a7cfab9d0de6e9f1fde144dba | /autoserver/api/src/plugins/memory.py | 053f8b6098248b8bc598047631f4fbaf6a175412 | [] | no_license | summer93/CMDB | 6f1988749cc8078cd219d4dd44f5dfcb0f2cc8f7 | 62c714354870c9b984f722efdf62e0d78bcf1450 | refs/heads/master | 2021-01-15T18:26:45.928105 | 2017-08-10T09:24:33 | 2017-08-10T09:24:33 | 99,783,857 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,628 | py | from repository import models
class Memory(object):
def __init__(self):
pass
@classmethod
def initial(cls):
return cls()
def process(self,server_info,hostname,server_obj):
print('start')
# ############### 处理内存信息 ##################
new_memory_dict = server_inf... | [
"mcdull9393@gmail.com"
] | mcdull9393@gmail.com |
9ac50c0ee92de53c33c21cabe6fe78b6597c7f90 | 30ee21b97e6105288101d1031ed7f96aaf6e141e | /lib/_org/stemma_soil_sensor/seesaw.py | 44e86e096d1fb9c2c0e9aa3883dd97e705d298c1 | [] | no_license | josmet52/micropython | b3d1d69ad7eb6832ce26c15e3580dae99b5bb87f | d8f2267b556ba3b15861898c2c2eb5e086dcf9ce | refs/heads/main | 2023-06-13T06:18:30.151497 | 2021-07-09T10:14:25 | 2021-07-09T10:14:25 | 353,124,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,189 | py | """
This is a lightweight port from CircuitPython to MicroPython
of Dean Miller's https://github.com/adafruit/Adafruit_CircuitPython_seesaw/blob/master/adafruit_seesaw/seesaw.py
* Author(s): Mihai Dinculescu
Implementation Notes
--------------------
**Hardware:**
* Adafruit ATSAMD09 Breakout with SeeSaw: https://www... | [
"joseph.metrailler@bluewin.ch"
] | joseph.metrailler@bluewin.ch |
0a1633e7f5726b1b1a413b9103d0b62f676f3cbd | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/arc050/A/4582561.py | 4957d0b097731037be60f433dc686459d0a3ffb7 | [] | 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 | 66 | py | C, c = input().split()
print('Yes' if C == c.upper() else 'No') | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
e497b5560b1432d4414794b40c5d8c8d8ce1e288 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_lifted.py | 40e546c7fcc541ef50d02efb32fc82ae8192b35f | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 226 | py |
from xai.brain.wordbase.nouns._lift import _LIFT
#calss header
class _LIFTED(_LIFT, ):
def __init__(self,):
_LIFT.__init__(self)
self.name = "LIFTED"
self.specie = 'nouns'
self.basic = "lift"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
d16b3fca1a54c3a45ff1c1042b286a16635babe0 | 6970cd9ca073ae7becabcbc58cbd9e9f567b9d23 | /imgaug/augmenters/__init__.py | 47bca888063c5b7432f56c9cb67b256237ed91d7 | [
"MIT"
] | permissive | Liuxiang0358/imgaug | 02c7eb57152ebdd7e92a8779a74c98c8ee041cc0 | 3a0c787ed32729dc47c06ea62c20c42997ad4305 | refs/heads/master | 2020-07-03T00:44:42.866083 | 2019-08-10T10:23:18 | 2019-08-10T10:23:18 | 201,729,987 | 1 | 0 | MIT | 2019-08-11T07:01:49 | 2019-08-11T07:01:49 | null | UTF-8 | Python | false | false | 598 | py | from __future__ import absolute_import
from imgaug.augmenters.arithmetic import *
from imgaug.augmenters.blend import *
from imgaug.augmenters.blur import *
from imgaug.augmenters.color import *
from imgaug.augmenters.contrast import *
from imgaug.augmenters.convolutional import *
from imgaug.augmenters.edges import *
... | [
"kontakt@ajung.name"
] | kontakt@ajung.name |
44db22541fa13bb0514ef0a372f738e3da9b270b | 6933b96b9c10ca70da57b1b384126e20fa21d9b2 | /FTP全自动采集爆破/sqlite0.5/test.py | 05ef237848989a15f4732d62c26b3018bf0eb7c9 | [] | no_license | Dawson0x00/scan | 5bb2e85756b8e86ba43f6d63182a7e806c560bfc | e9f274e26ac924a47cf3216e707dc1a724937775 | refs/heads/master | 2021-01-19T14:12:59.107938 | 2017-02-22T02:51:27 | 2017-02-22T02:51:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,367 | py | #!/usr/local/bin/python
#-*- coding: UTF-8 -*-
queue = []
def enQ():
queue.append(raw_input('Enter new string: ').strip())
#调用list的列表的pop()函数.pop(0)为列表的第一个元素
def deQ(): #www.2cto.com
if len(queue) == 0:
print 'Cannot pop from an empty queue!'
else:
print 'Removed [', queue.pop(0) ,']'
de... | [
"voilet@voiletdeMacBook-Pro-2.local"
] | voilet@voiletdeMacBook-Pro-2.local |
521f6e601d211e16f6f2ec8d5e0818cd6b21b957 | 4d4485378bec02daa527c12a6051be4254a86589 | /usr/models/layerbylayer/tfnmt_model.py | cdbd294355c140c8c07dc7f2368279074b8e43af | [
"Apache-2.0"
] | permissive | colmantse/tensor2tensor-usr | 163f5bff5e94dea75760e76fa4b07b6b2657a74c | 8129cc7de2bb880dc328b4189ed613b26015c151 | refs/heads/master | 2021-07-13T01:22:29.626739 | 2017-10-10T00:53:54 | 2017-10-10T00:53:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 248 | py | # coding=utf-8
"""Layer-by-layer model definitions."""
from tensor2tensor.utils import registry
from tensor2tensor.utils import t2t_model
from tensor2tensor.layers import common_layers
from usr import utils as usr_utils
import tensorflow as tf
| [
"fstahlberg@gmail.com"
] | fstahlberg@gmail.com |
d1b18b6f214a8f4dda769d317c09e88b0bae2d87 | 5830b76dda9c2d0b62b1929f3a5be26606089c8c | /alembic/env.py | 2b67e16b02665b1e8cf828f13f800f454cb0cd94 | [] | no_license | umatbro/minikametr | 0356eaff1c011b26065479cb417648ddf18f4796 | 4844e707c24559b3ad61b89f017a177fb52a5384 | refs/heads/master | 2023-08-25T02:30:25.753701 | 2021-10-11T10:18:10 | 2021-10-11T10:18:10 | 415,385,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,167 | py | from logging.config import fileConfig
from sqlalchemy import engine_from_config
from sqlalchemy import pool
from alembic import context
from db import DATABASE_URL
from models import * # noqa
# this is the Alembic Config object, which provides
# access to the values within the .ini file in use.
config = context.co... | [
"umatbroo@gmail.com"
] | umatbroo@gmail.com |
b291e92f85bca69d74a58603ffcc38c2215c29b2 | 26bd175ffb3bd204db5bcb70eec2e3dfd55fbe9f | /exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/monitoring/librato_annotation.py | 6ee3895763b1496c9b4c9cf358c1564d0a715a01 | [
"GPL-3.0-only",
"MIT",
"GPL-3.0-or-later",
"CC0-1.0",
"GPL-1.0-or-later"
] | permissive | tr3ck3r/linklight | 37814ed19173d893cdff161355d70a1cf538239b | 5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7 | refs/heads/master | 2021-04-11T04:33:02.727318 | 2020-03-25T17:38:41 | 2020-03-25T17:38:41 | 248,992,437 | 0 | 0 | MIT | 2020-03-21T14:26:25 | 2020-03-21T14:26:25 | null | UTF-8 | Python | false | false | 5,451 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# (C) Seth Edwards, 2014
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
's... | [
"joshuamadison+gh@gmail.com"
] | joshuamadison+gh@gmail.com |
437e3b76c5db61174df0709315d5522b40f253a9 | 6fa7f99d3d3d9b177ef01ebf9a9da4982813b7d4 | /LSpPdiycJ75MiwvgQ_23.py | b36b16ff2450b87301651121df6fdfacf4586124 | [] | 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 | 128 | py |
import math
def grid_pos(lst):
return (math.factorial((lst[0])+(lst[1])))/((math.factorial(lst[0]))*math.factorial(lst[1]))
| [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
dabc8ad186e73d5e2493027f46098c5e57ecf998 | 9d74cbd676e629f8acdc68a4bac3dea0a98b9776 | /yc204/779.py | a67f3265cfaf192ec25967ebdf2dfdcd4f940743 | [
"MIT"
] | permissive | c-yan/yukicoder | 01166de35e8059eaa8e3587456bba52f35bd0e44 | dcfd89b0a03759156dcea8c2e61a7705543dc0d4 | refs/heads/master | 2022-03-20T06:50:48.225922 | 2022-02-25T15:48:50 | 2022-02-25T15:48:50 | 237,735,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 141 | py | Y, M, D = map(int, input().split())
s = '%04d%02d%02d' % (Y, M, D)
if '19890108' <= s <= '20190430':
print('Yes')
else:
print('No')
| [
"c-yan@users.noreply.github.com"
] | c-yan@users.noreply.github.com |
4e516a93303283e18e6694b9df114a2fffd8fce6 | 13b72e5c48f5f7213d9a569f699dc1554bc363dd | /demo/library/use_sf_2.py | a4a0a1fadf2c873065d272eabfe43c0dc0192d99 | [] | no_license | srikanthpragada/PYTHON_02_MAR_2021 | 6997fece4ad627bb767c0bca5a5e166369087e68 | 5dfd0c471378bd22379ac0d66f8785d4d315017b | refs/heads/master | 2023-04-04T20:28:22.738042 | 2021-04-17T14:19:48 | 2021-04-17T14:19:48 | 344,498,123 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | from mylib import *
print(string_funs.hasupper('Abc')) | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
7e4616203464603cd0f1a2b181256c57a50b7d60 | b20b8858b5da05c60e7dac02feb1187f88cc3294 | /djangoproj/djangoapp/csc/nl/ja/utterance.py | f9d4798c1f3d2281a4dfe50b869a1ffb4b6df3d7 | [
"MIT"
] | permissive | pbarton666/buzz_bot | 18f15322e072d784e0916c5b8c147b53df5dc9d4 | 9f44c66e8ecb10e231f70989421f164d7a55029a | refs/heads/master | 2021-01-10T05:26:43.809377 | 2015-09-25T20:04:58 | 2015-09-25T20:04:58 | 43,027,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from csc.nl.ja.debug import *
from csc.nl.ja.util import *
from csc.nl.ja.tree import *
import MeCab
import CaboCha
import re
class JaUtterance(JaTreeBranch, JaLanguageNode):
''' Represents an entire utterance '''
def __init__(self, children):
JaTreeBranch.__init__(self)
self.children = ch... | [
"barton.pj@gmail.com"
] | barton.pj@gmail.com |
b61371ddb6434f40ce292a1daa67942fd1dc6e2f | 80b545522375b2b8bbfdff0f540b1172e53b140c | /core/views.py | b4ff506ea7c62eb6707ebbbca84f665d297348f3 | [] | no_license | DuncanMoyo/django-ecommerce-website | 18e1e8dcf358de6758ad7974a703145ed5cab4db | 21783c3d4159adffabbfc522099cf9c55346bed8 | refs/heads/master | 2022-12-11T15:14:51.039929 | 2019-08-31T20:48:59 | 2019-08-31T20:48:59 | 196,033,607 | 0 | 0 | null | 2022-12-08T05:51:59 | 2019-07-09T15:14:11 | JavaScript | UTF-8 | Python | false | false | 17,248 | py | from django.shortcuts import render, get_object_or_404, redirect
from .models import Item, Order, OrderItem, Address, Payment, Coupon, Refund
from django.views.generic import ListView, View, DetailView
from django.utils import timezone
from django.contrib import messages
from django.core.exceptions import ObjectDoesNot... | [
"duncanfmoyo@gmail.com"
] | duncanfmoyo@gmail.com |
2bfec92c85686a48a0bf480793637b9b2fbe0c90 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/voice-service/azext_voice_service/__init__.py | 74808adfe69dcf2b4492cb572043ecf8ee1296d8 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 1,563 | py | # --------------------------------------------------------------------------------------------
# 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 aaz-dev-tools
# --------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
1c9c05109df0cd972f65b8c29bd5c952deceb307 | c83bb15f5f4ec5c5d2b2e05a7222eaf1fd4f49e5 | /myops_run.py | ad4beb49c9217b542c766c3de0bd0d6f15327695 | [
"Apache-2.0"
] | permissive | Xinya-liuliu/MyoPS2020 | 47fd2a0a3dd050ae128a1ddbe3b9b966e0cb45e0 | 6ac6157070315c7917a59954476682c1144f3845 | refs/heads/main | 2023-07-31T22:27:31.485620 | 2021-09-24T05:39:33 | 2021-09-24T05:39:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | # -*- coding: utf-8 -*-
from __future__ import print_function, division
import os
import sys
from pymic.util.parse_config import parse_config
from pymic.net_run.agent_seg import SegmentationAgent
from path_config import path_dict
def main():
if(len(sys.argv) < 4):
print('Number of arguments should be 4. e.... | [
"wguotai@gmail.com"
] | wguotai@gmail.com |
50074aa47c4416235453ba945d4a0326e34c5eb4 | 06e359c19c14a549d28ce8ab62a6e1e5f40f0ea8 | /ScikitLearn/unsupervised/biClusteringL.py | 8b78e68f28cf461c745d7aebe4febc5c7c318e19 | [
"Apache-2.0"
] | permissive | thomasearnest/MDeepLearn | 90c6f4c6d5f148f91b1ce95471cad42baee26977 | 00eb7211a3a40a9da02114923647dfd6ac24f138 | refs/heads/master | 2021-10-20T07:27:33.168927 | 2019-02-26T13:37:48 | 2019-02-26T13:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
-------------------------------------------------
File Name:biClusteringL
Description : 双聚类,对行列同时进行聚类
Email : autuanliu@163.com
Date:2018/1/1
"""
from sklearn.cluster.bicluster import SpectralCoclustering
from sklearn.datasets import make_biclusters
from s... | [
"autuanliu@163.com"
] | autuanliu@163.com |
b39073640b54f81c5cab62529f62b21ee9042550 | 57120090948f99de2258a6f01a0cc65443441ce9 | /hyperclass/exe/hyperclass/IndianaPines.py | 867c2bd892b75164b4d35fd74fe05a5cd177b27f | [] | no_license | MysteriousSonOfGod/hyperclass | c67eff91f6f0f64fa4a92f8567243ef5cd8fa3c8 | e8cec11b364e8b049e7432b95ce20a2c5de94235 | refs/heads/master | 2023-01-28T16:42:09.289664 | 2020-12-07T22:54:50 | 2020-12-07T22:54:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,443 | py | from hyperclass.gui.application import HCApplication
from hyperclass.data.manager import dataManager
from hyperclass.gui.labels import labelsManager
from hyperclass.gui.spatial.application import SpatialAppConsole
import sys
ref_file = "/Users/tpmaxwel/Dropbox/Tom/Data/Aviris/IndianPines/documentation/Site3_Project_an... | [
"thomas.maxwell@nasa.gov"
] | thomas.maxwell@nasa.gov |
5f44dbc1c1096fa46abc233b27ca9419b8772346 | 8a9ad387c58bfcda5806211397450d728aadbd80 | /myenv/bin/easy_install | 0320e8f6112973120de32ab5ca4d3ce46bb468cc | [] | no_license | miyago/my-1st-blog | 9a7f92799ac04785ff9e0a28199920af5ca88c19 | 5bc8d28823e1d9059600d2808efecf52e262aa2a | refs/heads/master | 2020-04-23T01:21:05.853519 | 2019-02-15T10:32:59 | 2019-02-15T10:32:59 | 170,809,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271 | #!/mnt/d/GitLab/testdjango/djangogirls/myenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"you@example.com"
] | you@example.com | |
3dbbb9d3f258c8d80d132dd44156efd15a3ad0bb | 2af1489471d199861b2e7cd63676d842eb65ec5a | /channelstream/wsgi_app.py | 3af579f0067e57ade46e4412500c4da566c0c211 | [
"BSD-3-Clause"
] | permissive | webclinic017/channelstream | 637df12982817bd6c74fc1cb91c8571e5c551eef | 73434adca2812a682b739f86bf1ca320e1f1603c | refs/heads/master | 2023-05-12T15:55:13.453463 | 2020-10-21T19:08:08 | 2020-10-21T19:08:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,229 | py | import datetime
import uuid
import importlib
from pyramid.authentication import AuthTktAuthenticationPolicy
from pyramid.authorization import ACLAuthorizationPolicy
from pyramid.config import Configurator
from pyramid.renderers import JSON
from pyramid.security import NO_PERMISSION_REQUIRED
from channelstream import ... | [
"info@webreactor.eu"
] | info@webreactor.eu |
f86cf73fb42b39100b549b4648351468bffff0c4 | 9672b0bd6c73f35fdcc04dcf884d2e8425e78359 | /resources/exceptions.py | 96182522c64fecb5138ccb6a30069f52aef07680 | [
"MIT"
] | permissive | surfedushare/pol-research | a91d5b6c95184719d721e3a8541e36b77a9ed1c6 | 5d07782fba0a894e934efb1dd199b6a4a19f678b | refs/heads/master | 2022-01-07T00:50:24.427941 | 2019-05-02T12:29:53 | 2019-05-02T12:29:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 201 | py | class DGResourceException(Exception):
def __init__(self, message, resource):
super().__init__(message)
self.resource = resource
class DGShellError(DGResourceException):
pass
| [
"email@fakoberkers.nl"
] | email@fakoberkers.nl |
fe7f50a000e9b56ff52ec396658796c65e6df426 | f2cc1dc87486833613fb83543c68784849fd7319 | /addons/random_data_generator/__init__.py | 50cf640fd111b0d52751d006390358b0da42d1dd | [] | no_license | EduardoUrzuaBo/platziChallenge | cc953e2615653d575cf079bceea4fdcad75a4da0 | a8f06c98f14ee58db47848ec287dcd105b685dcb | refs/heads/master | 2023-07-29T10:44:16.469765 | 2021-09-05T20:14:42 | 2021-09-05T20:14:42 | 403,379,274 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | from .random_data_generator import RandomDataGenerator
| [
"eduardourzuabo@gmail.com"
] | eduardourzuabo@gmail.com |
c161b56d5d336d5b33f873a135e6ff06d4a82968 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_74/931.py | 67218b9c71e79a373560e676c36322fa8eb846ab | [] | 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 | 2,047 | py | import sys
class Runner(object):
def __init__(self, test_case):
self.test_case = test_case
self.state = {
"O": 1,
"B": 1,
}
def run(self):
def done():
return not bool(self.test_case.instructions)
def next(robot):
next_butt... | [
"miliar1732@gmail.com"
] | miliar1732@gmail.com |
3aa380bc45ee5078c114892476157413ad664058 | 908655251066427f654ee33ebdf804f9f302fcc3 | /Tests/CartPoleAST/Test/ast_reward.py | c8213b436bd92572cc9153556fabc64880fe402c | [] | no_license | maxiaoba/MCTSPO | be567f80f1dcf5c35ac857a1e6690e1ac599a59d | eedfccb5a94e089bd925b58f3d65eef505378bbc | refs/heads/main | 2023-07-05T02:20:16.752650 | 2021-07-06T06:04:40 | 2021-07-06T06:04:40 | 381,811,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py |
# useful packages for math and debugging
import numpy as np
import pdb
# Define the class, inherit from the base
class ASTReward(object):
def __init__(self):
pass
def give_reward(self, action, **kwargs):
"""
returns the reward for a given time step
Input
-----
... | [
"xiaobaima@DNab421bb2.stanford.edu"
] | xiaobaima@DNab421bb2.stanford.edu |
209da61669af27b11a8a5affd1de64c8fb12117a | d312ced5d6a06d35937b3f3d6a7415746ef06f71 | /weibo2rss/urls.py | 6db52f1cd121a8c315918fba590d36665f1c5d7c | [] | no_license | chu888chu888/Python-SAE-weibo2rss | 931ccaf2cd8438ebbfd6eff3b65a54b88e63e999 | 80f0c9e862505218a4284fcebd67276e8b372e31 | refs/heads/master | 2020-04-10T08:44:54.448809 | 2012-12-09T07:07:34 | 2012-12-09T07:07:34 | 9,112,168 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 594 | py | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, include, url
from weibo2rss.views import *
urlpatterns = patterns('',
url(r'^$', getfeedurl), # 主页
url(r'^callback/$', callback), # 微博授权返回页
url(r'^timeline/(?P<uid>\d+)/$', timeline), # 微博timeline rss页,通过user id获取
url(r'^favorite... | [
"zhu327@gmail.com"
] | zhu327@gmail.com |
34b2d24f65f93831c306c1d5e2fc2783c605cea3 | 3f48e3308674212408c3b6ca972eb4f793bf142b | /f7_chipseq/f7_diff_binding_on_UTX_sep_k4me1/f1_differential_binding_figs/py4c_heatmap_across_CellTypes_k27ac_increased.py | d8d3e09d9ee4e0d87d9e5c650b7f448484669bd7 | [] | no_license | zanglab/utx_code | 8497840ace81e0337f92f04fafbb691f0ed24865 | 32fc7851207f650b3cc78974ab798f8606099e56 | refs/heads/main | 2023-06-28T17:38:33.231877 | 2021-07-27T01:31:00 | 2021-07-27T01:31:00 | 388,648,753 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,138 | py | import sys,argparse
import os,glob,re
import numpy as np
import pandas as pd
import matplotlib
# matplotlib.use('Agg')
from matplotlib import gridspec
import matplotlib.pyplot as plt
matplotlib.rcParams['font.size']=14
matplotlib.rcParams["font.sans-serif"] = ["Arial", "Liberation Sans", "Bitstream Vera Sans"]
matplotl... | [
"zhenjia.sdu@gmail.com"
] | zhenjia.sdu@gmail.com |
d536b7df1b4b365bb585e612059f09bc083f533b | a2d44f3c89acb7424cc2771f5c0a926e2d902c77 | /transformers/src/transformers/image_utils.py | 951d682c944f2d94717a44fa909c6a0151e442a2 | [
"Apache-2.0"
] | permissive | amazon-science/masked-diffusion-lm | 94845ff123eb586fca0247b0db7baf12dfee6a6d | 16b0294398d596198bc9f75375eaa6814f792dcb | refs/heads/main | 2023-08-03T02:23:14.301531 | 2023-05-04T19:54:58 | 2023-05-04T19:54:58 | 626,021,474 | 38 | 0 | Apache-2.0 | 2023-08-14T22:24:30 | 2023-04-10T16:19:44 | Python | UTF-8 | Python | false | false | 12,839 | py | # coding=utf-8
# Copyright 2021 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable... | [
"astonz@amazon.com"
] | astonz@amazon.com |
02455e17cb15c2f1da50bd50f0afd2b4b54e1341 | ed81cc186915e55cd0fbf3ba7717193f68290c46 | /mcq_v2/quiz_qus/migrations/0003_auto_20181001_2205.py | 6e738716db91f38e7b7068f599b4a9b1aeb263ec | [] | no_license | MMIL/MCQ_Module_V2 | ea07daf8845afd5023edbea716b0f3808f921e06 | 02586652971eb8d5b952ac8542172a57ab909c3e | refs/heads/master | 2022-12-11T22:34:12.547492 | 2020-03-02T17:23:20 | 2020-03-02T17:23:20 | 146,754,594 | 1 | 4 | null | 2022-11-22T02:52:48 | 2018-08-30T13:34:56 | CSS | UTF-8 | Python | false | false | 387 | py | # Generated by Django 2.1.1 on 2018-10-01 22:05
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quiz_qus', '0002_question_qus_id'),
]
operations = [
migrations.AlterField(
model_name='question',
name='qus_id',
... | [
"dwevediar@gmail.com"
] | dwevediar@gmail.com |
14a76995fb36ee801799c35e39e7112c522601c9 | 7b13e6acb2a1f26936462ed795ee4508b4088042 | /算法题目/算法题目/动态规划/最长公共子序列/最长公共子序列.py | 57720483fde66ff1f0318f2fcec1681da5c3ea10 | [] | no_license | guojia60180/algorithm | ed2b0fd63108f30cd596390e64ae659666d1c2c6 | ea81ff2722c7c350be5e1f0cd6d4290d366f2988 | refs/heads/master | 2020-04-19T08:25:55.110548 | 2019-05-13T13:29:39 | 2019-05-13T13:29:39 | 168,076,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 995 | py | #Author guo
'''
动态规划想法
定义二维数组dp[i][j]用来存储最长公共子序列的长度
其中dp[i][j]表示S1前i个字符与S2前j个字符最长公共子序列长度
考虑S1i与S2j是否值相等分为两种情况
相等时,dp[i][j]=dp[i-1][j-2]+1
不相等时,取最大值
'''
#递归
def recursive_lcs(stra,strb):
if len(stra)==0 or len(strb)==0:
return 0
if stra[0]==strb[0]:
return recursive_lcs(stra[1:],strb[1:])+1
... | [
"44565715+guojia60180@users.noreply.github.com"
] | 44565715+guojia60180@users.noreply.github.com |
1a46bb5ed824ced4f62fc30a3ac0f058c451d445 | 5368c5c131da8ab226015cfd561cc3016c60fc82 | /venv/bin/chardetect | 8ae64b45acdfbfbd24ea506daac71d53d66b8ec8 | [] | no_license | ojudsonleo/DevCode | d621eed2d6555fa9c3fc37314edfc0646c4d1710 | ee22b9ed560275f276672d62e219c8d429726c23 | refs/heads/main | 2023-05-27T10:50:15.593840 | 2021-06-08T05:53:45 | 2021-06-08T05:53:45 | 374,292,419 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | #!/home/admin/Desktop/Python/env/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ojudsonleo@gmail.com"
] | ojudsonleo@gmail.com | |
cb76a7dfc791e4ea861199bb4573e6a0bed1781d | 5545d3c3e910ccb5b45b2277a71ad3c3ea3caedc | /jamenson/runtime/bases.py | 0f10210b6209ad6eb4bc9aa0a786f28149df0744 | [
"Apache-2.0"
] | permissive | matthagy/Jamenson | 61de19c71da6e133bf7d8efbb933a1036cf1e6f5 | 18a0fdd60b3d56ed4a6d4e792132535324490634 | refs/heads/master | 2016-09-11T04:31:28.895242 | 2013-04-04T00:14:44 | 2013-04-04T00:14:44 | 1,781,863 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py |
class CachingBase(object):
class __metaclass__(type):
def __new__(cls, name, bases, dct):
dct = dict(dct)
dct['_cache'] = dict()
return type.__new__(cls, name, bases, dct)
def __new__(cls, *args):
key = cls.get_key(*args)
try:
return cl... | [
"hagy@gatech.edu"
] | hagy@gatech.edu |
126228681daae08e9c75e7866d9198d157b849a6 | 6fcfb638fa725b6d21083ec54e3609fc1b287d9e | /python/quantopian_zipline/zipline-master/zipline/testing/fixtures.py | 01cecdbce22e170f4469abd7318caa878cb6f902 | [] | no_license | LiuFang816/SALSTM_py_data | 6db258e51858aeff14af38898fef715b46980ac1 | d494b3041069d377d6a7a9c296a14334f2fa5acc | refs/heads/master | 2022-12-25T06:39:52.222097 | 2019-12-12T08:49:07 | 2019-12-12T08:49:07 | 227,546,525 | 10 | 7 | null | 2022-12-19T02:53:01 | 2019-12-12T07:29:39 | Python | UTF-8 | Python | false | false | 51,181 | py | import sqlite3
from unittest import TestCase
from contextlib2 import ExitStack
from logbook import NullHandler, Logger
from six import with_metaclass, iteritems
from toolz import flip
import pandas as pd
import responses
from .core import (
create_daily_bar_data,
create_minute_bar_data,
tmp_dir,
)
from ..... | [
"659338505@qq.com"
] | 659338505@qq.com |
2acee63d49602f2e3ab752718b4bc360ec9853c8 | 5c03660a8a1ac0bba95a6135173f86340a6a12fb | /backend/devforum_25636/urls.py | 2bc18982be14afb0e5607b2f4455270537dfb0e3 | [] | no_license | crowdbotics-apps/devforum-25636 | c6bfaaab79f4b0113ac3d3522ba7196f19682f39 | dbea60ca19e1aca0ede436666ef82a54ed1f1c9e | refs/heads/master | 2023-04-03T06:39:23.212304 | 2021-04-12T05:08:26 | 2021-04-12T05:08:26 | 357,064,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,211 | py | """devforum_25636 URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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')
Clas... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a04c7206a90f059fc1e7a64f2ee14889c8afdec6 | 4a74ec1b7e299540b924bce4928537a51fc00ff5 | /day24_day30/day30/최소비용.py | d89cf0abe4576789fbcb40888e9bf1e4dbc0130c | [] | no_license | yeonlang/algorithm | ef74b2592818495f29f6de5f44f81ccf307efa59 | ab788658bb781773c489cac8c6e8d2bea48fda07 | refs/heads/master | 2020-04-22T20:25:46.243355 | 2019-05-08T15:17:45 | 2019-05-08T15:17:45 | 170,641,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | import sys
sys.stdin = open("최소비용.txt")
def ispass(ny,nx,y,x):
if 0<=ny<N and 0<=nx<N :
if data[ny][nx]-data[y][x]>0:
if visited[ny][nx] == -1 or visited[ny][nx] > data[ny][nx] - data[y][x] + visited[y][x] + 1:
visited[ny][nx] = data[ny][nx] - data[y][x] + visited[y][x] + 1
... | [
"naspy001@gmail.com"
] | naspy001@gmail.com |
0051cc3d11fc72f806d6a37142f0100c2f5e6541 | 34965549da4706d3c8da21d06840452a35eef383 | /dff_drfcn/config/config.py | e9038e61e56fa4fb9835ad460e68437ad5080162 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"Apache-2.0",
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | xvjiarui/Deep-Feature-Flow | 50410b650b4ae2754530a4e64891c04a0a3106fe | a6a860dbd76660260b461a7fbb3a674765f52b0c | refs/heads/master | 2020-03-19T16:01:27.637599 | 2018-07-05T15:38:10 | 2018-07-05T15:38:10 | 136,696,520 | 0 | 0 | null | 2018-06-09T06:20:30 | 2018-06-09T06:20:30 | null | UTF-8 | Python | false | false | 6,561 | py | # --------------------------------------------------------
# Deep Feature Flow
# Copyright (c) 2016 by Contributors
# Copyright (c) 2017 Microsoft
# Licensed under The Apache-2.0 License [see LICENSE for details]
# Modified by Xizhou Zhu, Yuwen Xiong, Bin Xiao
# --------------------------------------------------------
... | [
"xvjiarui0826@gmail.com"
] | xvjiarui0826@gmail.com |
c5c82c9f5560f4c2e4856e167c89d545433bb57d | 83de24182a7af33c43ee340b57755e73275149ae | /aliyun-python-sdk-ververica/aliyunsdkververica/request/v20200501/TableExistsRequest.py | 137bb321ebbe22b34e009f2bfc35f45f452013f6 | [
"Apache-2.0"
] | permissive | aliyun/aliyun-openapi-python-sdk | 4436ca6c57190ceadbc80f0b1c35b1ab13c00c7f | 83fd547946fd6772cf26f338d9653f4316c81d3c | refs/heads/master | 2023-08-04T12:32:57.028821 | 2023-08-04T06:00:29 | 2023-08-04T06:00:29 | 39,558,861 | 1,080 | 721 | NOASSERTION | 2023-09-14T08:51:06 | 2015-07-23T09:39:45 | Python | UTF-8 | Python | false | false | 2,144 | py | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
58499b0b8766249579f224c8aae66b0468d1c391 | 24d9f077593b33c707b12d3a00cf91750f740729 | /src/114. Flatten Binary Tree to Linked List.py | ca38f01ee8f682f594eaea6f2db7d9fe6f7ac343 | [
"Apache-2.0"
] | permissive | xiaonanln/myleetcode-python | 274c8b8d7c29fd74dd11beb845180fb4e415dcd1 | 95d282f21a257f937cd22ef20c3590a69919e307 | refs/heads/master | 2021-01-22T21:45:59.786543 | 2019-04-21T15:24:23 | 2019-04-21T15:24:23 | 85,474,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,072 | py | """
Given a binary tree, flatten it to a linked list in-place.
For example,
Given
1
/ \
2 5
/ \ \
3 4 6
The flattened tree should look like:
1
\
2
\
3
\
4
\
5
\
6
"""
# Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# ... | [
"xiaonanln@gmail.com"
] | xiaonanln@gmail.com |
a698ed601f3b430730ee2f2a7f75671b0eee1904 | 4992af29261214cb1e74375fc36dd51fd95db703 | /sparkmagic/sparkmagic/kernels/sparkrkernel/sparkrkernel.py | 12553364bb11624f8a652b7828b98250bb92c1f2 | [
"BSD-3-Clause"
] | permissive | logicalclocks/sparkmagic | 9ef7ec0c124a8a317f14bb39b6a2b041ed1b8151 | 4f14b6ca54ac5fa54451392eafd5dd10721c000c | refs/heads/master | 2023-05-31T23:30:52.208643 | 2023-02-28T08:21:16 | 2023-02-28T08:21:16 | 134,001,978 | 1 | 11 | NOASSERTION | 2023-03-02T10:57:00 | 2018-05-18T20:38:38 | Python | UTF-8 | Python | false | false | 980 | py | # Copyright (c) 2015 aggftw@gmail.com
# Distributed under the terms of the Modified BSD License.
from sparkmagic.utils.constants import LANG_R
from sparkmagic.kernels.wrapperkernel.sparkkernelbase import SparkKernelBase
class SparkRKernel(SparkKernelBase):
def __init__(self, **kwargs):
implementation = '... | [
"noreply@github.com"
] | logicalclocks.noreply@github.com |
de77c75c5f975b4bbb813f8ff2747bef83345417 | ca2c6bb4435138eae83d9776a672239651aac9bc | /week03/pymysql_insert.py | 3b59c21070bb191d0f72fbf83794156c1865dcda | [] | no_license | git-guozhijia/Python006-006 | 83b48180229d5be661cb2c3f12944b300a90db5a | 99642c351bc5ebe6dab4a7287bfa3234c37d1a90 | refs/heads/main | 2023-04-08T17:31:00.003482 | 2021-04-16T03:15:35 | 2021-04-16T03:15:35 | 323,208,392 | 0 | 0 | null | 2020-12-21T02:15:12 | 2020-12-21T02:15:12 | null | UTF-8 | Python | false | false | 662 | py | import pymysql
def insert_func(id, name):
db = pymysql.connect(host='localhost', port=3306, user='root', password='guozhijia123', db='test_db')
try:
with db.cursor() as cursor:
mysql = "insert into book (`id`, `name`) value (%s, %s)"
data = (id, name)
cursor.execute(... | [
"18811572354@139.com"
] | 18811572354@139.com |
18050b373866ff46bc02391fb395be2e900b67cf | 81c8aaec0ca8d9b345943d1f2324ace61eb034c6 | /backend/markly/actions/models.py | ea833b1f906ff8abe47b7fca3af8265506c5991f | [
"MIT"
] | permissive | salmanAndroidDev/markly | ba1c2e0107e79e4940ab2b5dd9455b877e044e25 | c2b8c4a2fd99b6e2c374e127f62b10adbf143b7c | refs/heads/main | 2023-06-02T21:18:03.710345 | 2021-06-25T18:28:54 | 2021-06-25T18:28:54 | 377,372,093 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,143 | py | from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
from django.db import models
class Action(models.Model):
"""Action model to store activities"""
user = models.ForeignKey('auth.User',
related_name='actions',... | [
"salmanAndB@outlook.com"
] | salmanAndB@outlook.com |
5347a031cf1d724a4364c563f6146a7b1fd9d704 | 0b793bce2da8c3d09b7956c0672ddbffd46feaed | /atcoder/abc/abc099_a.py | 265c0dc1e76bf1d57b077606affa1275787475aa | [
"MIT"
] | permissive | knuu/competitive-programming | c6c4e08fb231937d988bdc5a60a8ad6b31b97616 | 16bc68fdaedd6f96ae24310d697585ca8836ab6e | refs/heads/master | 2021-01-17T09:39:02.647688 | 2020-11-07T03:17:22 | 2020-11-07T03:17:22 | 27,886,732 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | N = int(input())
if N >= 1000:
print("ABD")
else:
print("ABC")
| [
"premier3next@gmail.com"
] | premier3next@gmail.com |
a664186b38b7feff544ed14e7958602120136940 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1729+371/sdB_pg_1729+371_coadd.py | 568443ae3e489c9b6fd876c2f3788f0e49d3b805 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[262.892625,37.091864], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_pg_1729+371/sdB_pg_1729+371_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdB/sdB... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
577715b397b24f4ec51a97efd4e327fa70364739 | b521802cca8e4ee4ff5a5ffe59175a34f2f6d763 | /maya/maya-utils/Scripts/Animation/2019-2-15 Tim Cam_Route_Manager/.history/Cam_Main/Cam_Main/Cam_Item_Layout_20190120130831.py | a494cbe4ba2060bce865f8dd670ec855a9bc01b7 | [] | no_license | all-in-one-of/I-Do-library | 2edf68b29558728ce53fe17168694ad0353a076e | 8972ebdcf1430ccc207028d8482210092acf02ce | refs/heads/master | 2021-01-04T06:58:57.871216 | 2019-12-16T04:52:20 | 2019-12-16T04:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,346 | py | # -*- coding:utf-8 -*-
# Require Header
import os
import json
from functools import partial
# Sys Header
import sys
import traceback
import subprocess
from Qt.QtCore import *
from Qt.QtGui import *
from Qt.QtWidgets import *
def loadUiType(uiFile):
import plugin.Qt as Qt
if Qt.__binding__.startswith('PyQt'):... | [
"2595715768@qq.com"
] | 2595715768@qq.com |
ef25f3a063b414c81d5e3c7eb6c51c98a5144a94 | ae0f37ebb76bce44c5e366d62424b5ef411f94b3 | /assignment_BKIT/assignment1/src/test/LexerSuite.py | 643aa0ec780c469e53b31073bdf7945e3634103f | [] | no_license | khangsk/PPL | a30b656a8a70b8f6dd96ce39f57d3540495a5a26 | b8e3a04210796e03ff257c05cd1e60923f016d2f | refs/heads/master | 2023-02-21T09:28:25.216162 | 2021-01-18T09:35:15 | 2021-01-18T09:35:15 | 306,542,959 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,383 | py | import unittest
from TestUtils import TestLexer
class LexerSuite(unittest.TestCase):
def test1_lower_identifier(self):
"""test identifiers"""
self.assertTrue(TestLexer.checkLexeme("abc","abc,<EOF>",101))
def test2_lower_upper_id(self):
self.assertTrue(TestLexer.checkLexeme("Va... | [
"hoanggiakhangsk@gmail.com"
] | hoanggiakhangsk@gmail.com |
a4d5f9dbd7ff9760239211ade45c0106a72a2774 | 5ff8f807d6318f41843c645f6da60a9bc43ede80 | /fabfile.py | be5aa937ae9f3288eeceff30d3bcb3d4effda0db | [] | no_license | notmissingout/notmissingout_old | e0de2484ad68083aa892f96e44c900ff09f59a40 | ed2521205679da61345a3335b99151bc0b952689 | refs/heads/master | 2021-06-18T03:06:28.420937 | 2017-05-14T09:37:34 | 2017-05-14T09:37:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | true | false | 7,302 | py | """Manage a remotely-installed WSGI app on a Unix-like system, with
environment variables controlling a lot of the WSGI app's
functionality (12 Factor style).
All remote access to the app is done via an `invoke` script, which
contains the environment variables, which is created during setup.
Sensitive ones should be p... | [
"richard@tartarus.org"
] | richard@tartarus.org |
76a08fcfefed1b045ec3b43c0f851dffda21bfbd | 357fefa288745c9ab3bc276a7ef0bc815f3fec2a | /src/gui/coverage.py | c483bb12db046aecb856f12f3f34c4b03eb1372e | [
"MIT"
] | permissive | jdvelasq/techminer | 61da47f44719e462732627edcc1094fab6c173f1 | 7a34a9fd684ce56cfbab583fa1bb71c1669035f9 | refs/heads/main | 2023-03-15T23:26:22.876051 | 2023-03-13T21:47:24 | 2023-03-13T21:47:24 | 204,352,276 | 0 | 1 | MIT | 2019-12-09T02:37:11 | 2019-08-25T21:34:19 | Jupyter Notebook | UTF-8 | Python | false | false | 1,198 | py | from techminer.gui.bigraph_analysis import App
import pandas as pd
import ipywidgets as widgets
from ipywidgets import GridspecLayout, Layout
from IPython.display import display
class App:
def __init__(self) -> None:
self.app_layout = GridspecLayout(9, 4, height="870px")
self.output = widgets.Ou... | [
"jdvelasq@unal.edu.co"
] | jdvelasq@unal.edu.co |
44fef314424eaf2f58f5213dbe42ff75bdeb0352 | 4eddc1ba3a0a207e70bfb7addf73c18b1a0e19fc | /benchmark.py | 77fb873d01b719f263403ec6c853ffa6754beff9 | [
"MIT"
] | permissive | vibiu/validater | 558284b1811a1bdadbcb072620245cd1e78fd33d | 687791f4d234d379f392fdb64064276833d08666 | refs/heads/master | 2020-12-24T10:39:29.655705 | 2016-05-24T22:41:33 | 2016-05-24T22:41:33 | 62,855,916 | 0 | 0 | null | 2016-07-08T03:29:12 | 2016-07-08T03:29:12 | null | UTF-8 | Python | false | false | 1,830 | py | from timeit import timeit
setup = """
from io import BytesIO
import json
from ijson.backends.python import basic_parse
from ijson.backends.yajl2_cffi import basic_parse as cbasic_parse
from validater import parse, validate
schema = parse([{"userid": "int"}])
data_normal = json.dumps([{"userid": "123"}], ensure_ascii=F... | [
"guyskk@qq.com"
] | guyskk@qq.com |
934c8ece44a8065aa3beb29e3efc8fe2b8064a3f | b01b2f5662cf94e63763b83ddd62194414429447 | /model/recognition_model/CAPSOCR/capsule.py | affd36346ba279b42283b041c313cc168c150b23 | [
"MIT"
] | permissive | TBSuperMan/FudanOCR | 8e4f946c9eac5d98583ff0c366c3cc78c6da0baa | e6b18b0eefaf832b2eb7198f5df79e00bd4cee36 | refs/heads/master | 2023-04-20T18:36:05.871982 | 2020-04-29T09:46:25 | 2020-04-29T09:46:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,491 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import math
class PrimaryCaps(nn.Module):
r"""Creates a primary convolutional capsule layer
that outputs a pose matrix and an activation.
Note that for computation convenience, pose matrix
are stored in fi... | [
"576194329@qq.com"
] | 576194329@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.