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
6ccaf0b7923ddbcf05dbd74de253ca863a8a52de
57db61160494659af43ee255d1e6ab2af6617114
/ultron-api/contact/admin.py
92b8324a11994ac12b4367be09b970e401577cbe
[]
no_license
gloompi/ultron-studio
fc667d563467b386a8dec04a6079e7cdcfedc5a7
ec2ae8051644df2433b931c7e0228e75eaf20990
refs/heads/master
2023-06-25T19:22:45.119315
2019-12-08T05:53:02
2019-12-08T05:53:02
226,545,035
0
0
null
2023-06-10T00:22:15
2019-12-07T16:44:16
JavaScript
UTF-8
Python
false
false
205
py
from django.contrib import admin from .models import Contact class ContactAdmin(admin.ModelAdmin): list_display = ('id', 'title') # Register your models here. admin.site.register(Contact, ContactAdmin)
aca820fb2f94f242539ff4b7b1b2ab02fbc5a555
148072ce210ca4754ea4a37d83057e2cf2fdc5a1
/src/core/w3af/w3af/plugins/attack/db/sqlmap/tamper/charencode.py
6d1a46727fed80594ad45d9e5cbf3e7aa2e118f8
[]
no_license
ycc1746582381/webfuzzer
8d42fceb55c8682d6c18416b8e7b23f5e430c45f
0d9aa35c3218dc58f81c429cae0196e4c8b7d51b
refs/heads/master
2021-06-14T18:46:59.470232
2017-03-14T08:49:27
2017-03-14T08:49:27
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,491
py
#!/usr/bin/env python """ Copyright (c) 2006-2015 sqlmap developers (http://sqlmap.org/) See the file 'doc/COPYING' for copying permission """ import string from lib.core.enums import PRIORITY __priority__ = PRIORITY.LOWEST def dependencies(): pass def tamper(payload, **kwargs): """ Url-encodes all ...
38b2275bab017121700f29468db3da539f3d450e
bab33c23fc02dc171395b34c5c88fcf83a95cb96
/test/Transforms/test_Transforms.py
ec1905520dfce9a46bb05990c38fae7639a0f5b3
[]
no_license
heliy/nornir-imageregistration
a623ad00c0c253bcc925306920824affaa414810
368bc245ef2c7be630f0cdc8c448adb62b797d5a
refs/heads/master
2020-05-07T16:59:02.268951
2018-02-27T01:22:57
2018-02-27T01:22:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
12,922
py
''' Created on Mar 18, 2013 @author: u0490822 ''' import os import unittest from nornir_imageregistration.transforms import * from nornir_imageregistration.transforms.rbftransform import \ RBFWithLinearCorrection import numpy as np ### MirrorTransformPoints### ### A simple four control point mapping on two 20...
89953cc562f5821db41a06a6c2c67cef8e4197ab
67cfe3567f0a961123c561538624be28044ec852
/backend/girltalk_15424/urls.py
d6ab5c8e6f4bb8b2bb8d6c9afad9be43542c8a78
[]
no_license
crowdbotics-apps/girltalk-15424
b732f7f6fc04fedd1acd99a2acfd129af71cc010
770efb300bc8297faea15e7b6a94c7a755fa8cf7
refs/heads/master
2023-02-04T02:55:52.708635
2020-04-04T05:21:02
2020-04-04T05:21:02
252,916,119
0
0
null
2023-01-26T16:28:35
2020-04-04T05:20:13
JavaScript
UTF-8
Python
false
false
1,914
py
"""girltalk_15424 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...
d1ca6c351122bf427bc8a5012370cfc1a2fa3cc8
6570bfdb26a41d99620debec5541e789b3c613f3
/Others/Mercari/binary.py
c7514cc5228a9257b4679b4b065a41dd9d90ea3f
[]
no_license
ameet-1997/Competitive_Coding
bc30f37ae034efe7bb63f71241792fc53c323a50
a9824430cf0458516ddd88655c1eca1f42ff3f0a
refs/heads/master
2021-05-10T14:07:15.209770
2018-01-22T19:22:13
2018-01-22T19:22:13
118,500,812
0
0
null
null
null
null
UTF-8
Python
false
false
45
py
n=input()+1 while'11'in bin(n):n+=1 print n
1dcceb03a81d2043094a05404cce1de425ad775d
4ff90da76cb447db065896a06573258a27fc8878
/itchat/components/login.py
709b8307350c9a7bc7e422e7fe610d2d585d68f0
[ "MIT" ]
permissive
wosenbo/ItChat
9455c79a57f7b5d5f03be86d652b428eb248299f
36a3a027bb8dc19f0ceb4b8a44e943a60b2286ef
refs/heads/master
2021-01-12T09:18:38.605240
2017-04-07T01:18:53
2017-04-07T01:18:53
76,820,262
0
0
null
2016-12-19T02:13:56
2016-12-19T02:13:56
null
UTF-8
Python
false
false
12,311
py
import os, sys, time, re, io import threading import json, xml.dom.minidom import copy, pickle, random import traceback, logging import requests from .. import config, utils from ..returnvalues import ReturnValue from .contact import update_local_chatrooms from .messages import produce_msg logger = logg...
598e66cd794150397c8cf73002b440126b93541a
951fc0da7384b961726999e5451a10e2783462c4
/script.module.ATFTV/addon.py
08dc093ce00ace1411bebb0134af1dcc39de1c05
[]
no_license
vphuc81/MyRepository
eaf7b8531b2362f0e0de997a67b889bc114cd7c2
9bf8aca6de07fcd91bcec573f438f29e520eb87a
refs/heads/master
2022-01-02T15:07:35.821826
2021-12-24T05:57:58
2021-12-24T05:57:58
37,680,232
6
10
null
null
null
null
UTF-8
Python
false
false
7,622
py
# -*- coding: utf-8 -*- # # Copyright (C) 2016,2017,2018 RACC # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This...
3040be782248c917cdc83a55505739f977559922
bf2d010229aece071359662f4fef44e48ba57951
/dynamic_range_parallel_pipeline.py
6432414ec8f72d79b72df4a68b82b80d29b6a4bc
[]
no_license
Osrip/CriticalEvolution
b97398f74e2fc5b54c9ab92765b08ce3bf97257e
f77cae8acc626cb4c6d64d5a44fdf00310309c2e
refs/heads/master
2021-06-24T03:44:03.283017
2021-04-03T13:09:42
2021-04-03T13:09:42
215,332,038
1
0
null
null
null
null
UTF-8
Python
false
false
12,763
py
import os from multiprocessing import Pool import argparse import train import copy from automatic_plot_helper import detect_all_isings from automatic_plot_helper import load_isings_from_list from automatic_plot_helper import load_settings from automatic_plot_helper import all_sim_names_in_parallel_folder import time i...
dac3f89e9ff6dcef5bdf7d2f7588c8933dd9afa1
c5291e50a3c72c885922378573a0ad423fcedf05
/elastic/MainApp/__init__.py
a45576712bb6d54a6826b931b0fc69c4e1e0d94d
[]
no_license
raghurammanyam/django-projects
bcc3ed6285882af437a2995514cef33760fb063e
dd20ae354f7f111a0176a1cc047c099bd23e9f05
refs/heads/master
2022-12-12T19:22:31.698114
2018-12-09T09:41:45
2018-12-09T09:41:45
137,443,359
0
0
null
2022-11-22T03:01:07
2018-06-15T05:08:15
Python
UTF-8
Python
false
false
51
py
#default_app_config = 'MainApp.apps.MainappConfig'
5eb44788937ca1fbf4a8a624dde9701a7a41231b
8ac22dadac75a6968209997eae693db312deeef3
/tenant_customer/__init__.py
108c3893fe1910b15d16abd89dfadfd2b7dfad02
[ "BSD-2-Clause" ]
permissive
smegurus/smegurus-django
9b7c420d35806850da7e3ce66cffccfbc263bea2
053973b5ff0b997c52bfaca8daf8e07db64a877c
refs/heads/master
2022-11-29T08:43:43.596459
2019-01-09T01:47:03
2019-01-09T01:47:03
159,753,141
1
0
BSD-4-Clause
2022-11-22T01:37:38
2018-11-30T01:52:03
HTML
UTF-8
Python
false
false
65
py
default_app_config = 'tenant_customer.apps.TenantCustomerConfig'
ec6aeb30c25573caf0925da3c3ed23837c47509c
c5347ba3bbd2f4f2c7eefa50b2be2cdef94fa8d1
/src/plugin/binkit/functions_match_viewer.py
e51dfe5ede3784977760930618561dbc7c858513
[]
no_license
ohjeongwook/binkit
ebc1d58db6ff6950a632cbc8f98ce7078475670f
cfd183d5fa2860f78071d35424d55cae8ca80e60
refs/heads/master
2022-12-23T16:43:59.812706
2020-10-05T01:34:57
2020-10-05T01:34:57
266,231,657
68
9
null
null
null
null
UTF-8
Python
false
false
9,088
py
import thread import traceback import idaapi import idc import ida_bytes from PyQt5 import QtGui, QtCore, QtWidgets from client import * from Queue import Queue from threading import Thread def sync_worker(queue): syncers = {} while True: commands = queue.get() queue.task_done() if not ...
bc687d5bb4cf86f031a3ecd8470bf3c53f0497b8
4fd3f6c6ce06199d554101f796c0f6fc7eca074f
/0x04-python-more_data_structures/4-only_diff_elements.py
383927b3db341ed3619e6a785f0868335cd45a56
[]
no_license
Joldiazch/holbertonschool-higher_level_programming
64f453aaf492b5473319a1b5e7e338bc7964fa7b
c9127882ffed3b72b2a517824770adafa63a9042
refs/heads/master
2020-09-29T03:12:47.497695
2020-05-15T04:05:13
2020-05-15T04:05:13
226,935,286
1
0
null
null
null
null
UTF-8
Python
false
false
98
py
#!/usr/bin/python3 def only_diff_elements(set_1, set_2): return set_1 - set_2 | set_2 - set_1
fc9d27bcb01c7fe4e3ef1115a053ef8ac3b732cd
1925c535d439d2d47e27ace779f08be0b2a75750
/microsoft/implement_rand10_with_rand7.py
0f89680adba0923d2798aa8ebf8bb297ca0fc640
[]
no_license
arthurDz/algorithm-studies
ee77d716041671c4b8bb757d8d96f3d10b6589f7
1e4d23dd0c40df34f58d71c7ca3e6491be732075
refs/heads/master
2023-04-27T12:17:06.209278
2021-04-30T20:16:18
2021-04-30T20:16:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
736
py
# Given a function rand7 which generates a uniform random integer in the range 1 to 7, write a function rand10 which generates a uniform random integer in the range 1 to 10. # Do NOT use system's Math.random(). # Example 1: # Input: 1 # Output: [7] # Example 2: # Input: 2 # Output: [8,4] # Example 3: # Input: 3...
fc27042eaae21fea6ee015e954980fd672a2c584
ff6248be9573caec94bea0fa2b1e4b6bf0aa682b
/StudentProblem/10.21.11.40/8/1569575464.py
03f7325643668c7c922036efc5b29701c3522051
[]
no_license
LennartElbe/codeEvo
0e41b1a7705204e934ef71a5a28c047366c10f71
e89b329bc9edd37d5d9986f07ca8a63d50686882
refs/heads/master
2020-12-21T17:28:25.150352
2020-03-26T10:22:35
2020-03-26T10:22:35
236,498,032
0
0
null
null
null
null
UTF-8
Python
false
false
1,719
py
import functools import typing import string import random import pytest class Leaf0: def __init__ (self, value): self.value = value class Node0: def __init__ (self, left, right, value=None): self.value = value self.left = left self.right = right ## Lösung Teil 1. def Leaf(Leaf0): def __init...
7e4e28d2c13d17fdd64f8dd33933b84f8a9c95db
cbcdf195338307b0c9756549a9bffebf3890a657
/django-stubs/core/cache/backends/base.pyi
52f2910b56950d0d0b50af70cb6a198f97a8879f
[ "MIT" ]
permissive
mattbasta/django-stubs
bc482edf5c6cdf33b85005c2638484049c52851b
8978ad471f2cec0aa74256fe491e2e07887f1006
refs/heads/master
2020-04-27T08:38:22.694104
2019-03-06T09:05:08
2019-03-06T09:05:24
174,178,933
1
0
MIT
2019-03-06T16:18:01
2019-03-06T16:18:00
null
UTF-8
Python
false
false
2,590
pyi
from collections import OrderedDict from typing import Any, Callable, Dict, List, Optional, Union from django.core.exceptions import ImproperlyConfigured class InvalidCacheBackendError(ImproperlyConfigured): ... class CacheKeyWarning(RuntimeWarning): ... DEFAULT_TIMEOUT: Any MEMCACHE_MAX_KEY_LENGTH: int def default...
0165d25c1c0c68a71343c15d575f22e270017e69
e29734c2b3543a05a28b6bc460c3248ea37aaf5c
/apps/course/migrations/0015_auto_20190424_1717.py
36961cbabe8320fc898752c336f25bbec6d02e5d
[]
no_license
simida0755/PopularBlogs
fda6dbe06751dde013ba57f73c708fd7106a49ee
3a86989232206d0727223306c0e2d2c62d35fa9b
refs/heads/master
2020-05-21T15:54:09.853341
2019-05-13T02:15:28
2019-05-13T02:15:28
186,101,555
5
1
null
null
null
null
UTF-8
Python
false
false
434
py
# Generated by Django 2.0.2 on 2019-04-24 17:17 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('course', '0014_auto_20190424_1716'), ] operations = [ migrations.AlterField( model_name='course', name='image', ...
82bbbe9b40505d1dc9a8185d84f30a264647c3a4
6c90a52d5be46fe4bd920acef07b2e53d2e4b42c
/runner.py
52b14e24661e02f9b9948a2cb41441de6ec05b45
[]
no_license
amoretti86/supervind
fb3f335f0400011af937fc0e5d29e98688ed885c
6444b88acf0c51e32b54206619cb6bcb438bdd26
refs/heads/master
2021-04-26T23:25:05.347404
2018-03-05T04:58:46
2018-03-05T04:58:46
123,989,516
0
0
null
2018-03-05T22:55:18
2018-03-05T22:55:18
null
UTF-8
Python
false
false
12,926
py
# Copyright 2018 Daniel Hernandez Diaz, Columbia University # # 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 applicabl...
2b9bee86ebd1b08f2a0f0400abf395c09608c7e8
5de3f612df0dbda712b39403dbafb0617e597651
/build/pal_behaviour_msgs/catkin_generated/pkg.installspace.context.pc.py
8706a70930366093c2aaea8520ef1c40fd260a4a
[]
no_license
AdriiTrujillo/tiago_public_ws
1bd62d51c2eb694d07db83738f7bebd582d8126c
6eaeabd1ec177df837b81fd9f42887318128766b
refs/heads/main
2023-04-03T13:09:09.749190
2021-04-01T10:05:43
2021-04-01T10:05:43
350,026,041
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
# generated from catkin/cmake/template/pkg.context.pc.in CATKIN_PACKAGE_PREFIX = "" PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else [] PROJECT_CATKIN_DEPENDS = "message_runtime;std_msgs;actionlib_msgs".replace(';', ' ') PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') ...
7a7b7ac0f8c14cc1a4756aa69a85c707f0d0cb51
2826bdf11463b199f20be351f514bcb16f35d04e
/.history/ftp_20210407055256.py
b44e9d312cd6276dfc7c23b78b965740f32bf6a1
[]
no_license
Roarcannotprogramming/Sec_Client_Server
9efdb7e4c3e729cd6b5052b0ca0e23c14459ebc0
38f491e0e643e372c546eca73f9cf16c36513568
refs/heads/master
2023-04-11T12:40:12.780834
2021-04-17T15:53:47
2021-04-17T15:53:47
353,070,974
0
0
null
null
null
null
UTF-8
Python
false
false
11,984
py
import socket, ssl, os, sys """ 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 0x00 | version | hb | request | unused | path length | 0x04 | ...
d156167ce165ac16bab92f480187ddf3da7430eb
f07a42f652f46106dee4749277d41c302e2b7406
/Data Set/bug-fixing-5/b2e3e8c0718142d4cb0387f46cd77c15b67cc1e9-<get_random_string>-bug.py
9b873176526ac647a2e151598420e0deb76c070d
[]
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
182
py
def get_random_string(length=8, choices=(string.ascii_letters + string.digits)): '\n Generate random string\n ' return ''.join([choice(choices) for i in range(length)])
9d9bec682b8409ccc2d18ac3c64f1c22b5a01199
163bbb4e0920dedd5941e3edfb2d8706ba75627d
/Code/CodeRecords/2551/60603/312775.py
3038d6419acf664fc4ed2b489ef7cb65c0727f17
[]
no_license
AdamZhouSE/pythonHomework
a25c120b03a158d60aaa9fdc5fb203b1bb377a19
ffc5606817a666aa6241cfab27364326f5c066ff
refs/heads/master
2022-11-24T08:05:22.122011
2020-07-28T16:21:24
2020-07-28T16:21:24
259,576,640
2
1
null
null
null
null
UTF-8
Python
false
false
323
py
def change(a,b): for i in range(a-1,b): li[i]=0 if li[i]==1 else 1 def que(a,b): return sum(li[a-1:b]) n,m = [int(x) for x in input().split()] li = [0]*n for i in range(m): s = [int(x) for x in input().split()] if s[0]==0: change(s[1],s[2]) elif s[0]==1: print(que(s[1],s[2...
b0b638794415687755cbdb2be2b4c90db79e1c55
bc2cdb1e438efaf67131e975ac4db80b4dc43385
/src/public/message/migrations/0003_pushmessage.py
a4cc7fb3829a923d5a18ec9f447e1971018bd4f1
[]
no_license
Shadow-linux/ops-for-study
cf4d55409ebc6f27d454bea60886cd154c994484
115b567948d25a64e423a6cdc89bc8337896afe2
refs/heads/master
2023-01-14T13:35:56.880896
2019-09-23T05:01:31
2019-09-23T05:01:31
209,781,758
2
0
null
2023-01-04T10:55:45
2019-09-20T12:08:11
Python
UTF-8
Python
false
false
1,062
py
# Generated by Django 2.0.1 on 2019-04-17 21:45 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('message', '0002_auto_20190416_1144'), ] operations = [ migrations.CreateModel( name='PushMessage', fields=[ ...
4ee5c7635d1d388cb4d468d7dc04515ac9df2ccd
26d6c34df00a229dc85ad7326de6cb5672be7acc
/msgraph-cli-extensions/v1_0/personalcontacts_v1_0/azext_personalcontacts_v1_0/vendored_sdks/personalcontacts/aio/_personal_contacts.py
0c6cf4d05bbae3c59e563ab9a028bb2e8874efa7
[ "MIT" ]
permissive
BrianTJackett/msgraph-cli
87f92471f68f85e44872939d876b9ff5f0ae6b2c
78a4b1c73a23b85c070fed2fbca93758733f620e
refs/heads/main
2023-06-23T21:31:53.306655
2021-07-09T07:58:56
2021-07-09T07:58:56
386,993,555
0
0
NOASSERTION
2021-07-17T16:56:05
2021-07-17T16:56:05
null
UTF-8
Python
false
false
3,990
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 may ...
e742907f523101322df4966977e82fafc1446f34
2c4ad0e41e495b1be29ac54f3552f5a4bcfb8d8b
/apps/comments/views.py
0c004c9e007472a3dba19ad976acbe6ce31052d7
[]
no_license
buzzzzx/blogforzly
7de8f01e767e01f30d7dab8ffb2243484de24f4a
163a26c7518ed13c7f3a58cd12d455748b60ab6d
refs/heads/master
2022-03-09T14:43:00.098795
2019-08-06T13:13:08
2019-08-06T13:13:08
114,436,672
1
0
null
null
null
null
UTF-8
Python
false
false
1,032
py
from django.shortcuts import render, get_object_or_404, redirect from .models import Comment from .forms import CommentForm from blog.models import Post from utils.send_email import send # Create your views here. def post_comment(request, post_pk): post = get_object_or_404(Post, pk=post_pk) if request.meth...
1cdc2bcc69cfb9db96d5c781083c1bc817ff9f01
387cf5f72ed6679a4d9e04bddd16998a190c4caf
/problems/programmers/lv4/pgs-12983-wrong.py
69760552fe4acfa3898004c7c8b095f9f458bbe3
[]
no_license
CodyBuilder-dev/Algorithm-Coding-Test
db4ee1e7565fbcef3140192225167eff42ad5c02
cca5c4ba8bc31679ab00aceccfd8d9d39c232f72
refs/heads/master
2021-07-24T00:34:41.888289
2021-07-21T14:29:00
2021-07-21T14:29:00
219,123,221
1
0
null
null
null
null
UTF-8
Python
false
false
881
py
""" 제목 : 단어 퍼즐 아이디어 : 거스름돈과 비슷한 dp (1) DP 값 저장 - key는 strs의 i번재 단어까지 서서 t의 j번째를 만드는 것 - j번째 까지냐 vs j번째 만이냐 - value는 최소값 (2) 초기화 - dp[0][0] ~ dp[0][len(t)-1]는 초기화할 수 있음 (3) 점화식 - dp[i][j] 는, min(dp[i-1][j], dp[i][j-k] (k = strs에 담긴 원소들의 길이))인가? """ from math import inf def solution(strs, t): dp = [[inf]*len...
5d86db5ca4849c4a3d056fe445f5af21bcb558e8
4c7fc810eb442b386969bf345b4dc6ef3152c783
/src/transformers/models/encoder_decoder/modeling_tf_encoder_decoder.py
c74865617cf76d513cfa10379dcd8d43d8b825e4
[ "Apache-2.0" ]
permissive
newcodevelop/transformers
fbcef5d703b12febf6e76e84e3f0493769fb9d37
e8d1bd7427021d2114ec159b2c90c6b1fcddeae7
refs/heads/main
2023-03-15T11:45:09.906184
2022-08-30T07:26:17
2022-08-30T07:26:17
254,360,734
0
1
Apache-2.0
2020-04-09T12:07:09
2020-04-09T12:07:08
null
UTF-8
Python
false
false
36,192
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...
0e48b30a06104cba35625dfe97b6f03f276fffcb
c553f9d608c435cd7f19c9be0ef512307295a837
/daemin/greedy/실전문제/1.모험가길드.py
cfc80dc0c3cd461720a12db2077c822dd132f7b8
[]
no_license
Green0v0/Algorithm
2d089e7c016997c1fb5e1094ddeeb80cd1ce0485
ab9b387e63550ef1b5dfe0f851163b16fbd42c88
refs/heads/main
2023-05-24T05:37:17.125671
2021-06-16T05:35:52
2021-06-16T05:35:52
330,944,982
1
2
null
null
null
null
UTF-8
Python
false
false
1,317
py
# n = int(input()) # k = list(map(int,input().split(" "))) n= 5 data = [2,3,1,2,2] data.sort() # 원본 변경 / True 가 내림차순이다. result = 0 # 그룹 갯수 count = 0 # 모험가의 수 """ 1. 기본 로직은 공포도가 작은 탐험가 부터 (숫자가 작은) 그룹을 이뤄 나가는것이다. 2. count 에 일단 모험가를 1개 넣어주고 다음 모험가(i)가 1보다 작거나 같으면 그룹이 되어나간다. 3. 1보다 크다면 result(그룹)이 되지 못하고 반복문으로 올라가서 다음...
00b204dd1c59a7f8d99f85a898d26452b44fb647
0cbd245ba67ada0dd04e8a61471b2bc2bbacdc47
/App09_RealEstate_DataMiner/app9.py
8c7df6853b363cbc8fa964ed55f68f41a46db523
[]
no_license
ptsouth97/pythonapps
7ed0a121f35669d0bb177d88ef9aa09828bea813
ee239a02c553fb9d2672f50a4b4c49b4ea4396f0
refs/heads/master
2021-01-12T04:31:31.687181
2017-02-05T21:07:42
2017-02-05T21:07:42
77,632,442
0
0
null
null
null
null
UTF-8
Python
false
false
2,577
py
import os import csv from data_types import Purchase import statistics def main(): print_header() filename = get_data_file() # print(filename) data = load_file(filename) query_data(data) def print_header(): print('------------------------') print(' Real Estate App') print('------------------------') prin...
caef56b59f3154376c50d4336649aec1100d0102
2f6d017dedc68588b2615d65c1e8ca8bcdd90446
/api/dynamic_tests_v2/cumsum.py
64fc792e50a19fb1e753faa601710dbef87b366e
[]
no_license
hysunflower/benchmark
70fc952a4eb1545208543627539d72e991cef78a
c14f99c15b4be9e11f56ea378ca15d9c3da23bab
refs/heads/master
2022-06-30T07:04:14.986050
2022-06-15T02:43:04
2022-06-15T02:43:04
224,449,279
1
0
null
2019-11-27T14:29:29
2019-11-27T14:29:29
null
UTF-8
Python
false
false
1,479
py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
c83eadf7b9b9967c1507e6da8273883512787e28
13ea58f72fa96e2455609fb452b5f3b98e94f846
/sfepy/postprocess/plot_cmesh.py
4319e5a25f131980a112ea817a562980f7b29e29
[ "BSD-3-Clause" ]
permissive
vondrejc/sfepy
4284ee47979b89d9e504b72b91689a9ce0c3a5ec
8e427af699c4b2858eb096510057abb3ae7e28e8
refs/heads/master
2021-01-24T00:09:18.722674
2014-08-20T12:37:03
2014-08-20T14:25:56
12,810,199
0
2
null
null
null
null
UTF-8
Python
false
false
2,538
py
""" Functions to visualize the CMesh geometry and topology. """ import matplotlib.pyplot as plt from sfepy.postprocess.plot_dofs import _get_axes def plot_wireframe(ax, cmesh, color='k', show=False): """ Plot a finite element mesh as a wireframe using edges connectivity. """ coors = cmesh.coors di...
83b6c3223a9ea60b7456b4e43317b1614cfe87e0
7ce05272d21c903abc85ebc74544009aacd80c82
/Advance_Python/Socket_Programming/socket_programs/client.py
cead5a5a2d925f83e46f72d6bbd4a1b3d48a2ce3
[]
no_license
sachinyadav3496/PythonInternBatch2018
8899a866f60a39b4c7eff4f5bc79ec2586833403
8e2610ad80c39ea747e8a6547ebe540e7b019a79
refs/heads/master
2021-06-26T09:18:58.178457
2020-10-03T09:49:32
2020-10-03T09:49:32
136,880,809
18
34
null
2020-10-03T09:49:33
2018-06-11T05:56:26
Jupyter Notebook
UTF-8
Python
false
false
670
py
import socket server_socket = socket.socket() host = socket.gethostbyname(socket.gethostname()) # Give server address if server is on differnt machine port = 12345 #port no on which server is listing server_socket.connect((host,port)) print("Got Connection from server at {}:{} ".format(host,port)) while True : s...
a4ec925ffdf9afa9aff09c57049d796f503f32ea
524c168b1b7ab4644a612f692645ae56487dea8c
/fwork-backend/tina/projects/migrations/0013_auto_20141210_1040.py
ac9ab59da8ca199cb8221bccf33e483a8493f55f
[]
no_license
phamhongnhung2501/Taiga.Tina
b4fa730a9f9601e23ab19c6d937e7daf0386b1e2
8bc44de3a364ccd0e49e767b098589898dcabc10
refs/heads/master
2022-12-14T09:55:11.205228
2019-07-08T07:42:38
2019-07-08T07:42:38
195,760,755
0
0
null
2022-12-08T05:18:37
2019-07-08T07:39:32
Python
UTF-8
Python
false
false
995
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations from django.db import connection from tina.projects.userstories.models import * from tina.projects.tasks.models import * from tina.projects.issues.models import * from tina.projects.models import * def _fix_tags_m...
46eb0092ec00ba666cc6bbdaa21bff606a02a170
6f594cc963795c69d8da3c30ca580c0405ef2d6e
/binaryTree/652FindDuplicateSubtrees.py
fbf0d850405b6d265b0194874f1be18bc6d4cea4
[]
no_license
lo-tp/leetcode
25933c5b25f64f881d43748d8b2763f69614a97f
4cc4d76c64e9d9aa3f53c5e9574e488c93e10a50
refs/heads/master
2022-09-07T20:32:58.487759
2022-09-05T03:39:50
2022-09-07T13:39:50
116,555,892
1
0
null
null
null
null
UTF-8
Python
false
false
2,259
py
from collections import defaultdict class Solution(object): def findDuplicateSubtrees(self, root): res, current, stack, data = [], '', [], defaultdict(lambda: 0) while stack or root: if root: stack.append((root, False, '')) root = root.left el...
9f238e46d438784023ea24f418acbc362d03107b
86813bf514f3e0257f92207f40a68443f08ee44b
/459 重复的子字符串/459 重复的子字符串.py
09445982e188b913bf7d0f47bd859239932d3471
[]
no_license
Aurora-yuan/Leetcode_Python3
4ce56679b48862c87addc8cd870cdd525c9d926c
720bb530850febc2aa67a56a7a0b3a85ab37f415
refs/heads/master
2021-07-12T13:23:19.399155
2020-10-21T03:14:36
2020-10-21T03:14:36
212,998,500
4
1
null
null
null
null
UTF-8
Python
false
false
415
py
#label: string difficulty: easy class Solution: def repeatedSubstringPattern(self, s: str) -> bool: n = len(s) for i in range(1,n//2+1): if n % i == 0: a = s[:i] j = i while j<n and s[j:j+i] == a: j += i ...
1e9a225fe5733b7b760390bc1f1511e3d4fc2649
99697559d046cdd04dd9068bd518e4da4177aaa2
/Finish/H065_Valid_Number.py
887cc224b572e863ae805b6987920e3864f81620
[]
no_license
Azurisky/Leetcode
3e3621ef15f2774cfdfac8c3018e2e4701760c3b
8fa215fb0d5b2e8f6a863756c874d0bdb2cffa04
refs/heads/master
2020-03-18T22:46:35.780864
2018-10-07T05:45:30
2018-10-07T05:45:30
135,364,168
0
0
null
null
null
null
UTF-8
Python
false
false
904
py
class Solution: def isNumber(self, s): """ :type s: str :rtype: bool """ if not s: return False # strip the heading and tailing spaces of the string s = s.strip() i = 0 res = signs = eE = dot = False while i < len(s): ...
74ab53846c7f95d413948f7ff2c3a206fcf660ca
d3b7a7a922eb9999f22c99c0cc3908d7289ca27e
/tests/end-to-end.py
e965fe6cbdead05f32e481356524c7034165020e
[ "Apache-2.0" ]
permissive
g3l0o/plaso
b668203c2c7cf8799a1c12824ee1bdc8befd3980
ae29d853a6bcdd1530ce9320a3af7b3f122941ac
refs/heads/master
2020-12-25T20:31:08.928709
2016-07-22T20:00:33
2016-07-22T20:00:33
null
0
0
null
null
null
null
UTF-8
Python
false
false
41,110
py
#!/usr/bin/python # -*- coding: utf-8 -*- """End-to-end test launcher.""" from __future__ import print_function import abc import argparse import difflib import logging import os import shutil import subprocess import sys import tempfile try: import ConfigParser as configparser except ImportError: import configpa...
a4687640887e3eaa056be17102156fb6c73301a5
71ef2ddc4a10c9f6be7b938dadbd25bb5accbe89
/bots/MyBot_alt2/MyBot_alt2.py
c5bd7445daa98e9422d2b37244815251b1dfaf0c
[]
no_license
NicoKNL/halite3
e06b72e68c102d5cf863b6efd7c2ef5b0c161ea2
60ccd9a36e13b447a481e242762379d38e71c1b1
refs/heads/master
2020-04-07T22:01:18.804779
2018-12-20T00:47:17
2018-12-20T00:47:17
158,751,122
0
0
null
null
null
null
UTF-8
Python
false
false
14,186
py
#!/usr/bin/env python3 # Python 3.6 # Import the Halite SDK, which will let you interact with the game. import hlt # This library contains constant values. from hlt import constants # This library contains direction metadata to better interface with the game. from hlt.positionals import Direction, Position # This l...
d5417d605f2204782ab1b6dd38bcb7262adc6354
99ae6372a5a5518543f9863a33ab21218a3a0768
/tests/test-all.py
31554599186717cf11032773e371545ac5143bde
[]
no_license
DANS-KNAW/parthenos-widget
7b3578a37402069e99da8eaf0d8cf52f32c12231
b549b76b7f16f1338cd80c6af7952963b3a8dd63
refs/heads/master
2022-07-17T23:07:25.238193
2021-11-03T08:36:55
2021-11-03T08:36:55
84,067,894
0
3
null
2021-11-03T08:36:55
2017-03-06T11:56:28
JavaScript
UTF-8
Python
false
false
684
py
#!/usr/bin/python from __future__ import print_function, absolute_import import sys import os sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '../'))) #import pytest from tests.config import MATRIX from parthenos.core.datatojson import * import uuid import httpretty import requests import panda...
c00bff8a97f2f0cd605b081aab99214bd019e9fd
fe42f1c1eefb2069eda1dd98821ba6049fb4f01a
/ML/P3DataAnalysisPandas/P4Combining.py
30cbbcdbd467feed161647f9dcf1775382909e7d
[]
no_license
hvn2001/LearnPython
c1b13f6685e6e62b3c9b612e88e624925f43eb6e
323595df8d69e84873f74819a36b5eb36b017773
refs/heads/master
2021-03-30T06:26:55.110963
2020-04-10T16:13:36
2020-04-10T16:13:36
248,025,126
0
0
null
null
null
null
UTF-8
Python
false
false
1,906
py
import pandas as pd print('------A. Concatenation------') df1 = pd.DataFrame({'c1': [1, 2], 'c2': [3, 4]}, index=['r1', 'r2']) df2 = pd.DataFrame({'c1': [5, 6], 'c2': [7, 8]}, index=['r1', 'r2']) df3 = pd.DataFrame({'c1': [5, 6], 'c2': [7, 8]}) concat = pd.concat([df1, df2], axi...
40c1b8c3ff03082a68e3d906964553c4da5afa44
0985dfc7b53f6bb80a6ee9c7b9cad4d7c31d2013
/dform/admin.py
bcef11df218893cdb425e1167f9e615755c14996
[ "MIT" ]
permissive
yonghuming/django-dform
6f237020573f5e5a5e1d8ed1a58ed5b944f31aef
3a8cb2ee61b5ea4719e6fc3bfb9ede66f468831e
refs/heads/master
2021-01-17T06:30:52.467715
2015-10-21T19:22:03
2015-10-21T19:22:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
9,128
py
from django.contrib import admin from django.core.urlresolvers import reverse, NoReverseMatch from awl.admintools import make_admin_obj_mixin from awl.rankedmodel.admintools import admin_link_move_up, admin_link_move_down from .fields import FIELD_CHOICES_DICT from .models import (Survey, SurveyVersion, Question, Que...
b3e5a17f360ef8e8b663ce5a0ab75242da5653b7
c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c
/cases/synthetic/coverage-big-2633.py
5aadfd5c6ad8f97ff1c98cd44fa7abe439d9a7dd
[]
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
13,350
py
count:int = 0 count2:int = 0 count3:int = 0 count4:int = 0 count5:int = 0 def foo(s: str) -> int: return len(s) def foo2(s: str, s2: str) -> int: return len(s) def foo3(s: str, s2: str, s3: str) -> int: return len(s) def foo4(s: str, s2: str, s3: str, s4: str) -> int: return len(s) def foo5(s: str,...
25a67c4819e5f76e8597007afbef568d28dcd9f0
63c8b9227a6b3178d918769042ecb060acc557be
/symphony/cli/pyinventory/graphql/add_service_endpoint_mutation.py
4f7d20fa43ca5e0c5407290c9053e8a3f6f0fe27
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
snwfdhmp/magma
7c4898db68d2668fd39ed25f73bb9a2bc5959066
8b3ff20a2717337a83c8ef531fa773a851d2e54d
refs/heads/master
2020-12-06T09:06:25.806497
2020-01-07T18:27:09
2020-01-07T18:28:51
232,418,366
1
0
NOASSERTION
2020-01-07T21:12:28
2020-01-07T21:12:27
null
UTF-8
Python
false
false
3,003
py
#!/usr/bin/env python3 # @generated AUTOGENERATED file. Do not Change! from dataclasses import dataclass, field from datetime import datetime from enum import Enum from functools import partial from typing import Any, Callable, List, Mapping, Optional from dataclasses_json import dataclass_json from marshmallow impor...
28e11970a757421df8a3c2d034a2856bde5b414f
93582aa46c835b66a2117bf24178fd80236af89d
/setup.py
e2eaee39d2b4d1cd674afe84307252167e1f9eba
[]
no_license
collective/collective.leadmedia
0fbe4e03421fcec6f026a80de80c4af28d2f218e
5fb3749861fd21859ae84686dc29f877859de45b
refs/heads/master
2023-08-24T01:19:19.470625
2019-07-23T13:30:53
2019-07-23T13:30:53
26,549,930
0
0
null
null
null
null
UTF-8
Python
false
false
1,061
py
from setuptools import setup, find_packages import os version = '0.1' setup(name='collective.leadmedia', version=version, description="Adds a slideshow to any dexterity folderish type.", long_description=open("README.rst").read(), classifiers=[ "Framework :: Plone", "Programmin...
326168d8de06212813ef98b555650a25305f7aab
fff561e0e4f351d85d038cf87569c23280622157
/cmsplugin_cascade/generic/cms_plugins.py
3eaaf072f99d2b3a564045fc617a550d4bb910eb
[ "MIT" ]
permissive
schacki/djangocms-cascade
9d3e9176e54c7cca619fdc6917c38b1588bc7c88
2809f701a1cfa17a53539fac4d9dadaa5ebe40b7
refs/heads/master
2021-01-20T22:02:42.959467
2015-12-23T19:31:07
2015-12-23T19:31:07
42,931,185
0
0
null
2015-09-22T12:02:53
2015-09-22T12:02:52
null
UTF-8
Python
false
false
1,881
py
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.forms import widgets from django.utils.html import format_html from django.utils.translation import ugettext_lazy as _ from cms.plugin_pool import plugin_pool from cmsplugin_cascade.fields import PartialFormField from cmsplugin_cascade.plugin_b...
0f60ebe14d9d2799e58cc2c5c412340c48ead03d
727f1bc2205c88577b419cf0036c029b8c6f7766
/out-bin/py/google/fhir/seqex/bundle_to_seqex_test.runfiles/pypi__nose_1_3_7/nose/case.py
cd5661e50fd58f7d63994967189c34fdb7209d2c
[ "Apache-2.0" ]
permissive
rasalt/fhir
55cf78feed3596a3101b86f9e9bbf6652c6ed4ad
d49883cc4d4986e11ca66058d5a327691e6e048a
refs/heads/master
2020-04-13T00:16:54.050913
2019-01-15T14:22:15
2019-01-15T14:22:15
160,260,223
0
0
Apache-2.0
2018-12-03T22:07:01
2018-12-03T22:07:01
null
UTF-8
Python
false
false
115
py
/home/rkharwar/.cache/bazel/_bazel_rkharwar/c4bcd65252c8f8250f091ba96375f9a5/external/pypi__nose_1_3_7/nose/case.py
311b3d5d01adbf281ec2f810b8579072154079d4
a32c2ee4e6b2b1c6f8db02320c4bd50b17940af5
/modules/YiXinNotSlot/YiXinRegister3.8/YiXinRegister.py
d216ecbed0ac33026d944068a185a506a142af16
[]
no_license
wszg5/studyGit
93d670884d4cba7445c4df3a5def8085e5bf9ac0
bebfc90bc38689990c2ddf52e5a2f7a02649ea00
refs/heads/master
2020-04-05T02:55:17.367722
2018-11-07T06:01:03
2018-11-07T06:01:03
156,494,390
2
2
null
null
null
null
UTF-8
Python
false
false
9,553
py
# coding:utf-8 import colorsys import os import random import string from PIL import Image from imageCode import imageCode from slot import Slot from smsCode import smsCode from uiautomator import Device from Repo import * from zservice import ZDevice class YiXinRegister: def __init__(self): self.repo =...
d1961e74a2e79af96908d797e62f8c02b98f3feb
6e68ef0a53ce48da79b4906d85fc9785deee4ca5
/Reverse/urls.py
393afb2306b734c2dd1c0ad59846b0a9bf76a76c
[]
no_license
shubhamkharose/CODEDAEMON
e3ed8050b5c43ec146c6d253d06121fc37cdb2d4
6df7af35c51f5f54b2e2167e3d64d163c9a688f9
refs/heads/master
2021-04-06T00:58:01.515828
2018-03-15T11:04:31
2018-03-15T11:04:31
125,353,062
1
4
null
2019-10-28T04:03:58
2018-03-15T10:48:53
JavaScript
UTF-8
Python
false
false
930
py
"""website URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/1.11/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: url(r'^$', views.home, name='home') Class-ba...
67175736189e77eb4d95c43ea91bc66748416e04
8a55b9000920b75f937073c043249090c13b04b1
/mlcomp/utils/config.py
b036f3030ec955ff17b4b4b841ebe710cec54587
[ "MIT" ]
permissive
jingmouren/mlcomp
209f43296325387447549d1d206ffaeab5739d8e
3fd251429be3892903ab6b3361bcd69c6ea9eeff
refs/heads/master
2020-07-10T04:31:26.928425
2019-08-22T10:07:07
2019-08-22T10:07:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,573
py
from collections import defaultdict from typing import List import os import json import albumentations as A from mlcomp import DATA_FOLDER from mlcomp.utils.io import yaml_load from mlcomp.utils.misc import dict_flatten, dict_unflatten class Config(dict): @property def data_folder(self): return os....
b75bd97af0d87c71caf404ca4aed646d76e18dca
2ef27655cd1deb9de4074249e559269abd334fa1
/6 kyu/Decipher Student Messages.py
cbe021ef697c6a0afe2e18953a1c584352271249
[]
no_license
sieczkah/Codewars_KATA
c7606b9a88693e2550af0ef55808f34c00e77b73
68d5d4a133a015e49bcdbff29ee45e3baefcd652
refs/heads/main
2023-05-06T03:59:01.403765
2021-05-24T19:36:34
2021-05-24T19:36:34
334,698,441
1
0
null
null
null
null
UTF-8
Python
false
false
354
py
"""https://www.codewars.com/kata/5a1a144f8ba914bbe800003f/train/python""" def decipher_message(message): lng = int(len(message) ** 0.5) # the coding square is always perfect so we need to know the lenght words = [message[i::lng] for i in range(lng)] # in 5x5 we take every 5th letter in 6x6 we take every 6...
959ee0746b95977a7b889b6b12e476719844568f
7516dfcd3d2e012d98fa3aec45aafe0e2c64ffe1
/py/utest/utest_fsoci.py
d3c0f7ac8809b0c7282c29600f364a91671f08a5
[]
no_license
ReiMatsuzaki/naewdy2
64e1c06a7eca228811c83e49eed57c9502ba1c2e
10f0110417b6d2699a688c64cdf39df0ef6d06c2
refs/heads/master
2021-03-16T10:12:02.856923
2018-03-15T03:30:00
2018-03-15T03:30:00
115,374,229
0
0
null
null
null
null
UTF-8
Python
false
false
910
py
import unittest from numpy import sqrt from naewdy2.fsoci import * class TestFsoci(unittest.TestCase): def test_sign_ai(self): self.assertAlmostEqual(0, sign_ai([1,2,3], 4)) self.assertAlmostEqual(1, sign_ai([1,2,3], 3)) self.assertAlmostEqual(-1, sign_ai([1,2,3], 2)) self.assertAlm...
c6887a8ffe4aaa0df0666ed9ab5b8c601c225868
941ace80571b53f53ab4e1f44d7b3ee9300e6a84
/chapter02/lxml_example.py
3bf1a23c01ccdd4989a11da724357915b61829e3
[ "MIT" ]
permissive
qigezai/python-scrap
81d3855caba095cab36f204a6b74c55f43cb7f15
3a9ad37a94008a8071b84e64d90c46f59580cca0
refs/heads/master
2021-10-10T06:26:18.023662
2019-01-07T14:46:19
2019-01-07T14:46:19
null
0
0
null
null
null
null
UTF-8
Python
false
false
443
py
#!/usr/bin/python2.7 # -*- coding:utf-8 -*- # Author: NetworkRanger # Date: 2019/1/5 下午4:50 import urllib2 import lxml.html def scrape(html): tree = lxml.html.fromstring(html) td = tree.cssselect('tr#places_neighbours__row > td.w2p_fw')[0] area = td.text_content() return area if __name__ == '__main...
10c3a4d5e3d2f35da492858f8236fd8081029116
3d19e1a316de4d6d96471c64332fff7acfaf1308
/Users/R/robertionita/bookyfy.py
9069f400e7f3e52096364d8732181bcdb8bb1ad9
[]
no_license
BerilBBJ/scraperwiki-scraper-vault
4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc
65ea6a943cc348a9caf3782b900b36446f7e137d
refs/heads/master
2021-12-02T23:55:58.481210
2013-09-30T17:02:59
2013-09-30T17:02:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,311
py
# bestsellers from the kindle book store import scraperwiki import lxml.html import time import re for x in range(1,6): html = scraperwiki.scrape("http://www.amazon.com/Best-Sellers-Kindle-Store-eBooks/zgbs/digital-text/154606011/ref=zg_bs_154606011_pg_" + str(x) + "?_encoding=UTF8&pg=" + str(x)) r...
dbddf5f34bf33ff7cb4facd928b2c338fa2e36bc
9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97
/sdBs/AllRun/galex_j20204+0704/sdB_GALEX_J20204+0704_lc.py
9e2b035b6d7b472d8473d414942cee17af805004
[]
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
355
py
from gPhoton.gAperture import gAperture def main(): gAperture(band="NUV", skypos=[305.1135,7.070683], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_GALEX_J20204+0704 /sdB_GALEX_J20204+0704_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3) ...
808ee195b759a16cb41071c38fd23df333d355a7
c25b4125b76654452fc2d5cc2f0f7a47643df177
/setup.py
bfee8ef032e3226e132a395cb98d6a4c1d1398ae
[ "MIT" ]
permissive
dfjsdkfj/grparks
416b7fdd68a533573c5f4bb53dd7bf748a80c221
365717804fafb27c6e3d65322b6fd6b2a9315aa7
refs/heads/master
2020-12-24T09:02:01.982187
2016-02-02T20:40:06
2016-02-02T20:40:06
null
0
0
null
null
null
null
UTF-8
Python
false
false
989
py
#!/usr/bin/env python """ Setup script for ParkFinder. """ import setuptools from parks import __project__, __version__ import os if os.path.exists('README.rst'): README = open('README.rst').read() else: README = "" # a placeholder, readme is generated on release CHANGES = open('CHANGES.md').read() setup...
0f9135810627817d11f44817e880b6272d23f56a
3b50605ffe45c412ee33de1ad0cadce2c5a25ca2
/python/paddle/fluid/tests/unittests/test_parallel_executor_inference_feed_partial_data.py
bd5b2c77983b93933e91520ae3ae0520e160ed9f
[ "Apache-2.0" ]
permissive
Superjomn/Paddle
f5f4072cf75ac9ecb0ff528876ee264b14bbf8d1
7a0b0dab8e58b6a3b28b3b82c43d55c9bd3d4188
refs/heads/develop
2023-02-04T20:27:54.244843
2023-01-26T15:31:14
2023-01-26T15:31:14
66,896,049
4
1
Apache-2.0
2023-04-14T02:29:52
2016-08-30T01:45:54
C++
UTF-8
Python
false
false
8,965
py
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
ba2090eb36670814f7650ef6ffa2e6fb27f37fb5
692654b45228d813c8dc4c9ade0a6836cd2e7f17
/other_tools/check_token.py
2904c24fc086dd871cd4ade0faf53c78feebc2da
[]
no_license
sunary/nlp
dd67dce0a2001670efe0e1dc5f5ef7b014845982
a9fa796118d51dd80cc9525d50247632caa00b7f
refs/heads/master
2021-01-22T10:02:44.975681
2017-05-20T08:43:23
2017-05-20T08:43:23
43,935,102
3
3
null
null
null
null
UTF-8
Python
false
false
2,720
py
__author__ = 'sunary' class CheckToken(): def __init__(self): self.checker_token = [] self.black_token = [] def set_checker(self, checker): self.checker_token = checker def add_token(self, token): ''' add token to the sorted list of token Args: ...
cc33910210b5a0f0c332798673e332c4b8cb7eb7
f8aa7306eeea9d2eafc400392acbdff931306e57
/tests/test_cli.py
abf9c2f77d6c6a7a256664301c1113bc18566435
[ "Apache-2.0" ]
permissive
b-jazz/warehouse
929d1a0e7b4de3fd0596ff8334bda31ab5856bdc
8c5414d709c6fd04c1b013ded680057a7def0833
refs/heads/master
2020-12-26T00:34:54.053900
2014-03-08T20:30:25
2014-03-08T20:30:25
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,425
py
# Copyright 2013 Donald Stufft # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
93250100f4dea25b292e8471b70ae83b71cce42f
e582d60b7996faf7b87c6d857613e63581d415b9
/elliot/recommender/visual_recommenders/VNPR/visual_neural_personalized_ranking_model.py
858a318f1ec3594cc6a9eef6e489659da71b7b15
[]
no_license
Abdel57Grota/Reenvisioning-the-comparison-between-Neural-Collaborative-Filtering-and-Matrix-Factorization
d6e51c32094550789673846acdf9891557b790c1
2a2b0148e881cf8ba45c48ad9d42f52421585284
refs/heads/main
2023-09-03T09:47:41.894117
2021-11-09T09:17:35
2021-11-09T09:17:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,024
py
""" Module description: """ __version__ = '0.1' __author__ = 'Vito Walter Anelli, Claudio Pomo, Daniele Malitesta, Felice Antonio Merra' __email__ = '[email protected], [email protected], [email protected], [email protected]' import os import numpy as np import tensorflow as tf from te...
a0e4d0fc0edadaf6b668bd6570f6c2ba34a2fc9e
a09740e643d6277ada23c82d8e87853a1cd1a9e5
/Z_ALL_FILE/Py/omdf5.py
b033ff3d43a5953248d534cd87fd3b5182354496
[ "Apache-2.0" ]
permissive
FuckBrains/omEngin
c5fb011887c8b272f9951df3880a879456f202e8
b8c04a5c2c12ffc3d0b67c2ceba9e5741d3f9195
refs/heads/main
2023-03-20T18:27:53.409976
2021-03-14T15:50:11
2021-03-14T15:50:11
null
0
0
null
null
null
null
UTF-8
Python
false
false
374
py
import pandas as pd dates=['April-10', 'April-11', 'April-12', 'April-13','April-14','April-16'] income1=[10,20,10,15,10,12] income2=[20,30,10,5,40,13] df=pd.DataFrame({"Date":dates, "Income_1":income1, "Income_2":income2}) print(df.apply(lambda row: "Total income in "+ row["Date"]+...
2068d1710140295cd665f7971b3655a7f2367e15
f0592d39eaf5f8bcbe46c4b16f6fa631be48887f
/tests/contrib/autoguide/test_hessian.py
f26a124db03826f7d6b1f111d1e4ca602e1d5ab1
[ "MIT" ]
permissive
wsgharvey/pyro
0bfc762a20c4bcbbe30e61adbcc2c33e32effdb5
5c3ef54050d9ad566e5965174d4ad51bd37e55dd
refs/heads/dev
2021-05-06T18:57:58.458691
2018-10-10T01:48:52
2018-10-10T01:48:52
111,995,379
0
0
null
2017-11-25T10:33:12
2017-11-25T10:33:12
null
UTF-8
Python
false
false
827
py
from __future__ import absolute_import, division, print_function import torch import pyro.distributions as dist from pyro.contrib.autoguide import _hessian from tests.common import assert_equal def test_mvn(): tmp = torch.randn(3, 10) cov = torch.matmul(tmp, tmp.t()) mvn = dist.MultivariateNormal(cov.ne...
745e078af6fac62e8b7d0448a12d31bb21a01a17
b1bc2e54f8cd35c9abb6fc4adb35b386c12fe6b4
/toontown/src/testenv/dayNight.py
195043c0675c5a8b4e4d78951c90f5ecf6c3de4e
[]
no_license
satire6/Anesidora
da3a44e2a49b85252b87b612b435fb4970469583
0e7bfc1fe29fd595df0b982e40f94c30befb1ec7
refs/heads/master
2022-12-16T20:05:13.167119
2020-09-11T16:58:04
2020-09-11T17:02:06
294,751,966
89
32
null
null
null
null
UTF-8
Python
false
false
8,266
py
from pandac.PandaModules import * from direct.interval.IntervalGlobal import * dayMusic = loader.loadMusic("phase_4/audio/bgm/TC_nbrhood.mid") # dayMusic = loader.loadMusic("phase_8/audio/bgm/TB_nbrhood.mid") # base.cr.playGame.hood.loader.snow.cleanup() nightMusic = loader.loadMusic("phase_8/audio/bgm/DL_nbrhood.mid"...
81fb67bfbbafced31af6e9a8ec85def9ce72c428
4b8b0be0588f9e5249729f165b72a6b38324837d
/glycresoft_ms2_classification/prediction_tools/__init__.py
52e2cd4a029490a37c2b53ed85f7619bf145d4ca
[]
no_license
GlycReSoft2/embed_tandem_ms_classifier
5e2f569f2b74f2f14f1c1c0cede32de99c150890
0495f2234562a9c5dd02d545800c077df2305387
refs/heads/master
2020-06-02T09:32:55.457664
2015-06-20T21:30:19
2015-06-20T21:30:19
22,615,207
0
0
null
null
null
null
UTF-8
Python
false
false
461
py
try: from data_processing import prepare_model_file from data_processing import save_model_file from data_processing import call_by_coverage from data_processing import determine_ambiguity from data_processing import PredictionResults from data_processing import convert_csv_to_nested from c...
b85a73a1586c716e42c86755109e4360e6d2a396
b6068ad0383967f40cf338b6005d728edb1b647f
/DeepQNet/RL_brain.py
1135e8eef781148a2f60be8b5d72d07114b31255
[]
no_license
WOW5678/ReinforcementLearning
8d0962232e7f4d9ea88e990f9bca98dad86f0ef0
5a8e1624fbecc5d39ca17ab2613a6555fe3d937f
refs/heads/master
2020-03-30T07:32:02.576419
2019-11-22T03:27:03
2019-11-22T03:27:03
150,946,581
3
2
null
null
null
null
UTF-8
Python
false
false
9,352
py
# -*- coding:utf-8 -*- ''' Create time: 2018/11/11 16:50 @Author: 大丫头 ''' """ This part of code is the DQN brain, which is a brain of the agent. All decisions are made in here. Using Tensorflow to build the neural network. View more on my tutorial page: https://morvanzhou.github.io/tutorials/ Using: Tensor...
49a442b058c1eb081db28a321b0d5020c9dec449
a622e8b295d799b7b9125e2b15243b8bdae1dc09
/1908/190826/미로문제/미로문제.py
58c26cc2d9d42d035507cc03d22855d8235c45a4
[]
no_license
otterji/algorithms
3a36c04bacc22c46f1ee220b3b129cda876db797
ebd0ade0cd1de8e489d015aa0b2833afeab3898e
refs/heads/master
2020-11-26T02:48:13.299848
2020-04-11T12:09:41
2020-04-11T12:09:41
228,942,526
0
0
null
null
null
null
UTF-8
Python
false
false
1,465
py
# 시작점과 끝점의 위치가 항상 1행은 아님. 중간일수도 있음. 제일 먼저 시작점 위치 찾기 # DFS로 풀어도됨 # 백트래킹으로 풀어도됨 # 도착할 수 있는지 여부 찾기 import sys sys.stdin = open("input.txt", "r") T = int(input()) for tc in range(1, T+1): N = int(input()) miro = [list(map(int,input())) for _ in range(N)] for i in range(N): for j in range(N): ...
7ca887133d33000f514b699d46925d3b00acac17
762742b3c5cb5706e93e12dbdc3f8c46fc65f0db
/Packs/OpenPhish/Integrations/OpenPhish_v2/OpenPhish_v2_test.py
7ceb301f00593b3b7e14527d6a35493b28e8f30c
[ "MIT" ]
permissive
EmersonElectricCo/content
018f95f7fe7de13819e093a3661587a18407e348
82c82bbee7d428f0b14991a88c67672e2c02f5af
refs/heads/master
2021-06-17T04:54:22.938033
2021-05-06T16:39:59
2021-05-06T16:39:59
161,693,191
2
0
MIT
2018-12-18T15:16:49
2018-12-13T20:47:26
Python
UTF-8
Python
false
false
10,139
py
from datetime import datetime import pytest import OpenPhish_v2 import demistomock as demisto from OpenPhish_v2 import ( Client, _is_reload_needed, remove_backslash, reload_command, status_command, url_command, ) from freezegun import freeze_time from test_data.api_raw import RAW_DATA MOCK_URL ...
e6a351cca118db0b1b7aa38308e588865881e958
bc441bb06b8948288f110af63feda4e798f30225
/cmdb_sdk/api/instance/import_instance_with_csv_pb2.py
61e3fc2fbb658d75940052b5048131ef784e637a
[ "Apache-2.0" ]
permissive
easyopsapis/easyops-api-python
23204f8846a332c30f5f3ff627bf220940137b6b
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
refs/heads/master
2020-06-26T23:38:27.308803
2020-06-16T07:25:41
2020-06-16T07:25:41
199,773,131
5
0
null
null
null
null
UTF-8
Python
false
true
9,094
py
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: import_instance_with_csv.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from go...
9f811d0e5fca8f23ad4e3fe6e2188485c4722a37
7ee8a3bc4fbe8e094a4acf0bc7dd58899a5f4d3e
/src/djnext_example/artist/migrations/0001_initial.py
47c807a90b452b75770bc42c2fff12d3e484a197
[]
no_license
yourlabs/djnext
95798acf66fb3b507ea701cce31e40f1bcdf2b1d
76516e2d76495300385223265878b5d30641c965
refs/heads/master
2023-02-09T06:40:07.051724
2018-05-13T21:37:24
2018-05-13T21:37:24
133,148,115
36
5
null
2023-01-26T03:23:41
2018-05-12T13:20:29
Python
UTF-8
Python
false
false
561
py
# Generated by Django 2.0.4 on 2018-05-12 17:14 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Artist', fields=[ ('id', models.AutoField(a...
34b64673ff08d394dce6f7563327c1fdc93549b7
256746f29f9995accd4fee35b9b8981264ca2e37
/Ch06/2017-9-25.py
7d2a5f71b389e7ec916d60249be31ee662dff0f2
[]
no_license
Vagacoder/Python_for_everyone
adadd55561b2200d461afbc1752157ad7326698e
b2a1d1dcbc3cce5499ecc68447e1a04a8e59dc66
refs/heads/master
2021-06-22T00:26:02.169461
2019-05-25T16:06:04
2019-05-25T16:06:04
114,508,951
0
0
null
null
null
null
UTF-8
Python
false
false
671
py
##Ch06 R6.5 from random import * count = 0 value = [] while count<10: randomNumber = randint(1,10) while randomNumber in value: randomNumber = randint(1, 10) value.append(randomNumber) count += 1 print (value) ##Ch06 R6.6 from random import * count = 0 value = [] while count<1...
57e6299d4c59ae36b3a95d328a5793886a62834a
d6f7ac9541ec803db6f3b528030f6dd94bf2c1fe
/bootcamp_module09/core/tests/test_student_59.py
9836fc05f38771dec8e001f19bb7483049077493
[ "BSD-3-Clause" ]
permissive
poloxu/bisb-bootcamp-2021-module09
c6182abf2b04621e79cec21102da23aabd4fb307
46c146e2ffdeebf3b95abcd8fe382f982ce67cb6
refs/heads/master
2023-07-29T23:22:22.874853
2021-09-17T16:59:55
2021-09-17T16:59:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
757
py
from bootcamp_module09.core.student_59 import count_substring # noqa def test_count_substring_single(): test_string = "CGCTAGCGT" test_substring = "TAG" expected_count = 1 observed_count = count_substring(test_string, test_substring) assert expected_count == observed_count def test_count_subst...
1c87a0e2825e26309b4244af6a2ee779071d0f2c
8015f1c62a2cb4efd21aa8938336913bf8117868
/bamap/ba3962.pngMap.py
48a92f7f1c037ff2bf416b51ebe1915236974ca6
[]
no_license
GamerNoTitle/Beepers-and-OLED
675b5e3c179df0f0e27b42bf594c43860d03b9af
afe1340e5394ae96bda5f9022a8a66824368091e
refs/heads/master
2020-04-20T00:09:47.122471
2019-04-29T04:59:35
2019-04-29T04:59:35
168,515,579
4
2
null
null
null
null
UTF-8
Python
false
false
8,468
py
ba3962.pngMap = [ '11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111', '11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111', '1111111111111111111111111111111111111...
4a1d6bf2ad0501abe44630ea764ba4fb0f30dd56
09e57dd1374713f06b70d7b37a580130d9bbab0d
/data/cirq_new/cirq_program/startCirq_pragma227.py
2ebfa1038e0dd1e6ab87822f17605f3c0fadb833
[ "BSD-3-Clause" ]
permissive
UCLA-SEAL/QDiff
ad53650034897abb5941e74539e3aee8edb600ab
d968cbc47fe926b7f88b4adf10490f1edd6f8819
refs/heads/main
2023-08-05T04:52:24.961998
2021-09-19T02:56:16
2021-09-19T02:56:16
405,159,939
2
0
null
null
null
null
UTF-8
Python
false
false
2,536
py
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 5/15/20 4:49 PM # @File : grover.py # qubit number=4 # total number=14 import cirq import cirq.google as cg from typing import Optional import sys from math import log2 import numpy as np class Opty(cirq.PointOptimizer): def optimization_at( ...
e7dd7163634a0bbdb9a9cad543458590b2bb5119
955f9d3fb34af54de2f046d17bbac11c1474819e
/abc174/c.py
8d677e68c2c1a02bfe30bd9fe642311a51a3f835
[]
no_license
shimewtr/AtCoderPracticePython
5bb4c28119fced2d111bd1810e0e290f25b6a191
f3c22ec1f7a36a27848070c5c6ca4e1717b04ac6
refs/heads/master
2023-01-12T17:28:44.770138
2020-11-19T22:50:22
2020-11-19T22:50:22
204,830,292
0
0
null
null
null
null
UTF-8
Python
false
false
1,279
py
import sys from io import StringIO import unittest import logging logging.basicConfig(level=logging.DEBUG) def resolve(): k = int(input()) if k % 2 == 0: print(-1) else: ans = 1 check = True while (check): tmp = 0 for i in range(ans): ...
1ea03400ca87f6315d33824b3426b6fb0d74d1c5
4589a9ea76e458793ad78059839b81d365f433de
/athena_automation/athenataf/tests/configuration/system/admin/delete_test_scenarios/DeleteTestScenarios.py
8914ef5a124a3da9001bacaf87ea36bba1885e95
[]
no_license
cash2one/reautomation_handoff
5e2c4c432d8f658d1b57211782744bd0b56c52f6
7ef83572d659db35036189eb394f99de1369db5a
refs/heads/master
2020-05-22T17:56:33.214080
2015-07-13T07:51:18
2015-07-13T07:51:18
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,105
py
import logging logger = logging.getLogger('athenataf') from athenataf.lib.functionality.test.ConfigurationTest import ConfigurationTest class DeleteTestScenarios(ConfigurationTest): ''' Test class for System Admin DeleteTestScenarios. ''' def test_ath_11329_delete_view_only_guest_registration_only_non_default...
fd2b4017602792ace836e55c845558ba791a3588
8afb5afd38548c631f6f9536846039ef6cb297b9
/_PYTHON/DATA_STRUC_PYTHON_NOTES/python-prac/mini-scripts/python_Generate_Random_Number.txt.py
98b69a5707be5d3b566f616421eb1f62442fefe9
[ "MIT" ]
permissive
bgoonz/UsefulResourceRepo2.0
d87588ffd668bb498f7787b896cc7b20d83ce0ad
2cb4b45dd14a230aa0e800042e893f8dfb23beda
refs/heads/master
2023-03-17T01:22:05.254751
2022-08-11T03:18:22
2022-08-11T03:18:22
382,628,698
10
12
MIT
2022-10-10T14:13:54
2021-07-03T13:58:52
null
UTF-8
Python
false
false
60
py
from numpy import random x = random.randint(100) print(x)
8ab3069b9a328363bbbfd0ad67638a4ac549183c
15f321878face2af9317363c5f6de1e5ddd9b749
/solutions_python/Problem_116/770.py
c1b36eac52d21c7e378886958c50e72ea92b665e
[]
no_license
dr-dos-ok/Code_Jam_Webscraper
c06fd59870842664cd79c41eb460a09553e1c80a
26a35bf114a3aa30fc4c677ef069d95f41665cc0
refs/heads/master
2020-04-06T08:17:40.938460
2018-10-14T10:12:47
2018-10-14T10:12:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,196
py
# Solver for Tic-Tac-Toe-Tomek game import numpy as np fin = open('A-large.in') fout = open('testout_large.txt', 'w') def CheckWinner(A, player_char, not_player_char): # Check if X wins Acopy = A Acopy = np.where(Acopy=='.', 0, Acopy) Acopy = np.where(Acopy==not_player_char,0,Acopy) Acopy = np.where(Acopy==...
6264a0b4aebc98ab2fd8d75d31f9861aece0fde2
59de7788673ade984b9c9fbc33664a7cbdba67d3
/res/scripts/client/gui/scaleform/daapi/view/meta/fortchoicedivisionwindowmeta.py
12eb657baafa06583d6ac8fb7bce9fbd90dcdb1c
[]
no_license
webiumsk/WOT-0.9.15-CT
3fa24ab37a6c91b7073034afb2f355efa5b7fe36
fbd194fbaa6bdece51c7a68fc35bbb5257948341
refs/heads/master
2020-12-24T21:27:23.175774
2016-05-01T13:47:44
2016-05-01T13:47:44
57,600,180
0
0
null
null
null
null
WINDOWS-1250
Python
false
false
1,202
py
# 2016.05.01 15:22:42 Střední Evropa (letní čas) # Embedded file name: scripts/client/gui/Scaleform/daapi/view/meta/FortChoiceDivisionWindowMeta.py from gui.Scaleform.framework.entities.abstract.AbstractWindowView import AbstractWindowView class FortChoiceDivisionWindowMeta(AbstractWindowView): """ DO NOT MODI...
285a2caa90b61ae628ae8b0c2b62c3ae736ac74f
aace5cbeeb567b017984898297192ea6b5c5993f
/文件操作/csv/03pd按照列写入csv文件.py
67d0d5a2673a07fd7481e0836c2853236a6457af
[ "MIT" ]
permissive
Litao439420999/Spider
4eb27fc332b9a97c9917c236c3653809c2229ac3
47d70ec92936b8bea87c641df47ea30e5dde86a1
refs/heads/master
2023-03-24T19:02:22.857250
2021-03-14T02:07:59
2021-03-14T02:07:59
null
0
0
null
null
null
null
UTF-8
Python
false
false
813
py
''' Description: 参考:https://blog.csdn.net/weixin_43245453/article/details/90054820?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-4.control Author: HCQ Company(School): UCAS Email: 175626...
0846ce23d72a96dd3abeb6c06cb588f10a9f6824
24dabf63ba445fa4df205b5c9bbe89f9d7230527
/transfer_learning/tools/double_iterator.py
244733768081f4b153ad922e06ce30643145c6df
[]
no_license
marco-willi/hco-experiments
e51ea5581eefb4fc3b46fb4337b9f04eb52640fb
7f3076b476e3311ed22d2db37c6d075e43d0d61f
refs/heads/master
2021-01-22T04:09:37.706108
2018-01-03T20:44:46
2018-01-03T20:44:46
92,433,439
1
0
null
2017-08-21T03:49:27
2017-05-25T18:40:03
Python
UTF-8
Python
false
false
2,987
py
""" Double Iterator - Outer (slower) ImageGenerator that serves large batches of data that just fit into memory - Inner (numpy) ImageGenerator that serves smaller batches of data """ # import modules from keras.preprocessing.image import ImageDataGenerator from keras.preprocessing.image import Iterator class Doubl...
f46483143cee2b1cfa802c56d800dd7312457b50
14e19bcaaf917924e7bb78e4f7e6b42662ff5164
/fancy_month01/day17_fancy/day17_teacher/demo05.py
5e119a78d204ea68d697a808609411ce80758693
[]
no_license
Lzffancy/Aid_study
5b3538443ca0ad1107a83ef237459b035fef70d0
4ba5e5045371490d68459edd1f0a94963e0295b1
refs/heads/master
2023-02-22T19:11:00.867446
2021-01-25T13:01:35
2021-01-25T13:01:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
467
py
""" 闭包 三大要素: 有外有内 内使用外 外返回内 字面思想: 封闭内存空间 作用: 外部函数栈帧执行后,不释放. 等待内部函数重复使用 """ def func01(): a = 100 def func02(): print(a) return func02 # 返回但没有执行内部函数. # 调用外部函数,得到内部函数 res = func01() res() res()
511a610b4208faf06340813b7dc036f4cefe122c
67971c2c66bce8e9746810592f71a33fcbbeb260
/tests/test_database/test_playlist.py
cd1653bbcdf1c25933f2071b41dce51c388a761b
[ "MIT" ]
permissive
holing/LinDouFm
78ade890c974b967ba3102cf93c31dee1bfcde09
463618599e2f3111c7fc2dd251940e9c4981b40b
refs/heads/master
2021-01-17T03:39:53.758021
2015-01-18T14:13:36
2015-01-18T14:13:36
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,809
py
# coding:utf-8 from database.playlist import playlist from database.music import music_model from database.channel import channel_model from tests.test_database.test_music import get_test_music def test_playlist(): #添加测试频道 channel_name = u"test_channel_name" channel_uuid = u"mk_tes...
[ "root@ubuntu.(none)" ]
root@ubuntu.(none)
63463a703612e5da4d3698590f690f700b1e48e0
7f57c12349eb4046c40c48acb35b0f0a51a344f6
/2015/RotateList_v0.py
cc1c94e88855fbce957c86bc6277c56718a5008b
[]
no_license
everbird/leetcode-py
0a1135952a93b93c02dcb9766a45e481337f1131
b093920748012cddb77258b1900c6c177579bff8
refs/heads/master
2022-12-13T07:53:31.895212
2022-12-10T00:48:39
2022-12-10T00:48:39
11,116,752
2
0
null
null
null
null
UTF-8
Python
false
false
1,120
py
#!/usr/bin/env python # encoding: utf-8 # Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None def print_l(head): if head: print head.val if head.next: print_l(head.next) class Solution: # @param {ListNode}...
8a7a2e55befff55fa7322db16f944dccb8bddcb3
f33b30743110532ddae286ba1b34993e61669ab7
/Optimal Division.py
171cb2effb649a0cb56f16ae0f104dba31b07f47
[]
no_license
c940606/leetcode
fe9dcee7a5daa4d52999d5f53253dd6dd33c348b
631df2ce6892a6fbb3e435f57e90d85f8200d125
refs/heads/master
2021-07-10T14:01:26.164966
2020-08-16T10:46:16
2020-08-16T10:46:16
186,588,449
3
0
null
null
null
null
UTF-8
Python
false
false
430
py
class Solution(object): def optimalDivision(self, nums): """ :type nums: List[int] :rtype: str """ n = len(nums) if n == 0: return if n == 1: return nums[0] if n == 2: return str(nums[0]) + "/" + str(nums[1]) res = str(nums[0]) res += "/" res += "(" + str(nums[1]) for i in range(2,n): ...
7b2653c28ca84b62142d0978452bfbd4823f4d88
e28fad299c396ff153e5df666443e335a033b657
/mms/stories/views.py
183a6686c66e73e2b676c20eb9843e75bcd8bf7c
[]
no_license
easherma/mms_django
387b179ab74bf4447fa7acefa6ac84f0423edb1f
1ae30ae8bc30550dce19e288ae43759a8155f8ad
refs/heads/master
2021-01-10T18:08:01.586356
2017-01-12T20:44:09
2017-01-12T20:44:09
71,917,502
0
0
null
2017-02-20T19:08:29
2016-10-25T16:36:14
HTML
UTF-8
Python
false
false
2,896
py
from django.contrib.auth.models import User from stories.models import Story, Submission, Waypoint from stories.serializers import StorySerializer, UserSerializer, SubmissionSerializer, WaypointSerializer from rest_framework import viewsets from rest_framework.renderers import TemplateHTMLRenderer from rest_framework.r...
d39c7fb78ac2d32f16918615fb0f8dadb4a8b9d1
7af9841dfdeb7192cee9f5bc5ae24ebabeeebdcc
/project/admin.py
06b0a54f6791eeb4a8343c0af355c73e99ad51a5
[]
no_license
dimansion/bepy
513d1d6b8c6f679ce97f46741b50b73dabf20484
dd92999b9fb0d65e9479372718409785a8d26d26
refs/heads/master
2020-06-28T11:27:02.204255
2016-11-14T11:26:32
2016-11-14T11:26:32
67,694,755
0
0
null
null
null
null
UTF-8
Python
false
false
560
py
from django.contrib import admin from project.models import Page, Content class ContentInline(admin.TabularInline): model = Content prepopulated_fields = {'slug':('name',)} class PageAdmin(admin.ModelAdmin): list_display = ('title', 'published_date',) prepopulated_fields = {'slug':('title',)} in...
8810e20c0d4928a9c3b0dbf23ef6590ec448b754
128d593efd591dc83a3aef2d4bfad39e73ee637e
/python_code/complete/no128
a8958da736adcb09069e0cf51a44cd9584ed2446
[]
no_license
jwan/ProjectEuler
93be87d89cc58516d503dd5ed53bdbd706748cda
65aec4f87b8899db6bad94a36412a28a4b4527e9
refs/heads/master
2021-01-17T08:21:46.654529
2011-05-02T23:11:35
2011-05-02T23:11:35
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,574
#!/usr/bin/env python # 1 --> (2,3,4,5,6,7) # [1] 1 # [2,...,7] 6 # [8,...,19] 12 # [20,...,37] 18 # [38,...,61] 24 # f(k) = 3k^2 - 3k + 1 # f(k) = elements before layer k if k > 0 #Layer 0 # 1 -- (1,1) -- (2,1),(2,2),(2,3),(2,4),(2,5),(2,6) # Layer 1 # 2 -- (2,1) -- (1,1), (2,2),(2,6), (3,1),(3,2),(3,12) C # 3 ...
1c0718148e9e9ebb9bdd52de8a5d00b60b6504b5
29c58b3bec6ac0fcdb3070efc118600ee92004da
/test/test_email_html_dto.py
92e5827bb8e4596c35ee57d8c9ef29da4ca517f5
[ "MIT" ]
permissive
mailslurp/mailslurp-client-python
a2b5a0545206714bd4462ae517f242852b52aaf9
5c9a7cfdd5ea8bf671928023e7263847353d92c4
refs/heads/master
2023-06-23T00:41:36.257212
2023-06-14T10:10:14
2023-06-14T10:10:14
204,662,133
8
0
null
null
null
null
UTF-8
Python
false
false
1,824
py
# coding: utf-8 """ MailSlurp API MailSlurp is an API for sending and receiving emails from dynamically allocated email addresses. It's designed for developers and QA teams to test applications, process inbound emails, send templated notifications, attachments, and more. ## Resources - [Homepage](https://ww...
6d04d8977bbb04374efd4d17378fdc14d5da1a84
a721e4ca65b79ce725c7b5b43539c963a3b55290
/Halloween_Sale.py
ce32b629161728b86e99fa33e4cc4101e5a4e754
[]
no_license
joydas65/Hackerrank-Problems
0832d7cfd1de7e5df4dba76326ede735edc9afea
a16b3b0ebb65e7597f8f6417047da4d415a818c7
refs/heads/master
2022-06-21T12:47:55.241409
2022-06-18T18:21:08
2022-06-18T18:21:08
159,071,834
9
0
null
null
null
null
UTF-8
Python
false
false
254
py
p,d,m,s = map(int, input().split()) ans = 0 while s >= p: ans += 1 if p <= m: s -= p elif p > m: s -= p p -= d if p <= m: p = m print(ans)
d06f68298b85070352f8aed0d2e30edf7ed61d84
4a5caabe31670ab44fe5097df3971d434fc9ca3f
/kgpy/optics/coordinate/decenter.py
d5438c129063ab4f46b7d9b63e6badcb0be0e0d5
[]
no_license
ngoldsworth/kgpy
c61d64d39a4da011ad7a42566dbeb6ef88266dea
d751fca7f6cc6e762fdc954113f55d407055349d
refs/heads/master
2022-11-27T14:25:01.972415
2020-07-30T23:24:10
2020-07-30T23:24:10
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,157
py
import dataclasses import numpy as np from astropy import units as u import kgpy.mixin __all__ = ['Decenter'] @dataclasses.dataclass class Decenter(kgpy.mixin.Broadcastable): x: u.Quantity = 0 * u.mm y: u.Quantity = 0 * u.mm @classmethod def promote(cls, value: 'Decenter'): return cls(value...
efacad244c5ae011bae81166d0c9355ca56c784c
430a146307fd1f64781a91ab60e79b45a231da28
/l10n/admin.py
347fd6f73abc0b496fa0697dde92dcc90646fdff
[ "BSD-2-Clause", "MIT" ]
permissive
rsalmaso/django-fluo-l10n
61455df2154538db665a9414285a85b7538c81c6
e7b298748a4461407cffe4987a4453db6722c53a
refs/heads/master
2021-01-18T23:56:46.507679
2016-01-03T14:34:37
2016-01-03T14:34:37
48,949,291
0
0
null
null
null
null
UTF-8
Python
false
false
1,689
py
# -*- coding: utf-8 -*- # Copyright (C) 2007-2016, Raffaele Salmaso <[email protected]> # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation...
e2ff82125ca55f866ce113b6933b903002731bc8
70280955a5382d73e58395eba78c119a400f4ce7
/asakatsu/0609/4.py
9f554c1b35208567493334073d67e3034afea623
[]
no_license
cohock13/atcoder
a7d0e26a10a4e58690347a2e36839c2f503a79ba
d268aa68fc96203eab94d021bd158cf84bdb00bc
refs/heads/master
2021-01-03T00:41:31.055553
2020-10-27T12:28:06
2020-10-27T12:28:06
239,839,477
0
0
null
null
null
null
UTF-8
Python
false
false
874
py
H,W = map(int,input().split()) m = [list(map(int,input().split())) for _ in range(H)] ans = [] for i in range(H): if i%2 == 0:##左->右 for j in range(W): if m[i][j]%2: if j == W-1: if i != H-1: ans.append((i+1,j+1,i+2,j+1))...
76dea297ed9137e442997eb9ab7a890747ca3906
bf076ab3f9dd5c1860474665be646f89937f1a7f
/settings.py
9acef3e24318d42f1f56f72b921037982218e7f2
[ "MIT" ]
permissive
telminov/sonm-cdn-dns
f66f16fed0c67ed6f862410777f0c0fc3c87b27f
960395f2e7f8d79b5dd2623919ccf89e964fe4ac
refs/heads/master
2020-03-26T21:12:38.279423
2018-09-04T07:58:01
2018-09-04T07:58:01
145,374,340
0
0
MIT
2018-09-04T07:58:02
2018-08-20T06:16:27
Python
UTF-8
Python
false
false
156
py
NODE_MANAGER_URL = 'http://node-manager.cdn.sonm.soft-way.biz' NODE_MANAGER_TOKEN = '123' CDN_DOMAIN = 'cdn-sonm.soft-way.biz.' IP_STACK_ACCESS_KEY = '123'
ed8971e2218caea9e25d1d713f2f26676d439af4
672b6ac4700056d6f648ae52b6e58590ea1944b7
/ch8code/equal.py
36ff9125ab4400b04a58d3afdbf37ee5580673f9
[]
no_license
CodedQuen/NumPy-Beginner-s-Guide
1715de85dae1aea856a613462b132eb2e463170e
8946c33ac02d61d310bd4b9095cd814add75d7d1
refs/heads/master
2022-11-06T10:37:23.821207
2020-06-27T03:19:19
2020-06-27T03:19:19
275,289,940
0
0
null
null
null
null
UTF-8
Python
false
false
79
py
import numpy as np print "Equal?", np.testing.assert_equal((1, 2), (1, 3))
20d0368ac8cbfbff2bd5fb04603008994795b7ad
721406d87f5086cfa0ab8335a936ece839ab2451
/.venv/lib/python3.8/site-packages/opencensus/metrics/export/metric.py
658a27e45125376833965c07c6c3db599f5498f8
[ "MIT" ]
permissive
MarkusMeyer13/graph-teams-presence
661296b763fe9e204fe1e057e8bd6ff215ab3936
c302b79248f31623a1b209e098afc4f85d96228d
refs/heads/main
2023-07-09T03:34:57.344692
2021-07-29T07:16:45
2021-07-29T07:16:45
389,268,821
0
0
MIT
2021-07-29T07:16:46
2021-07-25T05:23:08
Python
UTF-8
Python
false
false
3,224
py
# Copyright 2018, OpenCensus 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 applicable law or agreed...
dea8529b2857b268b43b97008302392c88a6f157
f82757475ea13965581c2147ff57123b361c5d62
/gi-stubs/repository/GtkSource/StyleSchemeChooserButtonClass.py
ee48a3e369d5c26602de032c6f2bf718a121d7bc
[]
no_license
ttys3/pygobject-stubs
9b15d1b473db06f47e5ffba5ad0a31d6d1becb57
d0e6e93399212aada4386d2ce80344eb9a31db48
refs/heads/master
2022-09-23T12:58:44.526554
2020-06-06T04:15:00
2020-06-06T04:15:00
269,693,287
8
2
null
2020-06-05T15:57:54
2020-06-05T15:57:54
null
UTF-8
Python
false
false
4,893
py
# encoding: utf-8 # module gi.repository.GtkSource # from /usr/lib64/girepository-1.0/GtkSource-3.0.typelib # by generator 1.147 """ An object which wraps an introspection typelib. This wrapping creates a python module like representation of the typelib using gi repository as a foundation. Accessing attributes...
979c07a99a4de6deead71a30be7e764a1d398bd8
f900a9f48fe24c6a581bcb28ad1885cfe5743f80
/Chapter_11/test_name_function.py
1f6c6b10bf1eed5b8cf64f797faded06b16b0b93
[]
no_license
Anjali-225/PythonCrashCourse
76e63415e789f38cee019cd3ea155261ae2e8398
f9b9649fe0b758c04861dad4d88058d48837a365
refs/heads/master
2022-12-03T21:35:07.428613
2020-08-18T11:42:58
2020-08-18T11:42:58
288,430,981
0
0
null
null
null
null
UTF-8
Python
false
false
613
py
import unittest from name_function import get_formatted_name class NamesTestCase(unittest.TestCase): """Tests for 'name_function.py'.""" def test_first_last_name(self): """Do names like 'Janis Joplin' work?""" formatted_name = get_formatted_name('janis', 'joplin') self.assertEqual(formatted_name, 'Ja...
df3287e337b27feb9ec0bb40be295e9b74ceef18
56243d3bf67d8bc7770ab5d12e2ef812e69196de
/setup.py
2b0c2bbc8e7dd85974ea6e4e24c97eba9dac99fd
[ "MIT" ]
permissive
William-Lake/comparing_lists
a48542bb9c2d8a0de701d2d01b049664ff02e7c0
d9d53c89d4a36b1843bc536655cf8831afd4a2d4
refs/heads/master
2020-04-02T15:40:44.574432
2019-01-30T18:34:56
2019-01-30T18:34:56
154,578,261
0
0
null
null
null
null
UTF-8
Python
false
false
1,528
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import setup, find_packages with open('README.rst') as readme_file: readme = readme_file.read() with open('HISTORY.rst') as history_file: history = history_file.read() requirements = [ ] setup_requirements = [ ] test_re...
[ "noreply" ]
noreply
4d352b30c38ee5240aa74ad3e2bd79c7693bfa0a
c50e7eb190802d7849c0d0cea02fb4d2f0021777
/src/notification-hub/azext_notification_hub/vendored_sdks/notificationhubs/models/notification_hubs_management_client_enums.py
f97b28ab81f5bed1408323aa284ef1b8c81d6704
[ "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
789
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 ...
49db302c96c35f528c5f252b1a2f9596dea8b8ad
63f9a0d150cbef75f4e6e8246dc7ecac3f3b6d09
/python/ray/serve/examples/echo_full.py
9639f1a258d95e7009d0f3ab0520bc1ed59235a0
[ "Apache-2.0", "MIT" ]
permissive
ray-project/maze-raylit
79f0a5af9fe4bdc13a2d5b3919da867ed5439aab
a03cd14a50d87d58effea1d749391af530d7609c
refs/heads/master
2023-01-23T04:23:35.178501
2020-12-04T22:34:14
2020-12-04T22:34:14
318,274,659
5
0
Apache-2.0
2020-12-04T22:34:15
2020-12-03T17:47:58
Python
UTF-8
Python
false
false
1,465
py
import time import requests import ray import ray.serve as serve # initialize ray serve system. ray.init(num_cpus=10) client = serve.start() # a backend can be a function or class. # it can be made to be invoked from web as well as python. def echo_v1(flask_request): response = flask_request.args.get("response...
98413f87180c601da3d941fbf79ed8b5fb9d4e36
d2a2546165b3db6295a3f21972dda8ab9aab7846
/src/vehicles/road_thief_supplies.py
41875538a6ae4bb32f8ce3800c922d8d5fd5e778
[]
no_license
andythenorth/road-hog
bab12b133dd674f0e6d7ae87498675f8da96b982
1800d57d4ce904e7041f24646c393b37903d9466
refs/heads/main
2022-09-26T19:57:31.006800
2022-09-17T10:09:37
2022-09-17T10:09:37
214,848,659
1
2
null
null
null
null
UTF-8
Python
false
false
542
py
from road_vehicle import SuppliesHauler, DieselRoadVehicle consist = SuppliesHauler(id='road_thief_supplies', base_numeric_id=560, name='Road Thief', power=720, vehicle_life=40, intro_date=1989)...
81a57cd8a99f18eced67a63639f21d53f756df5d
9d30115d59ed821a5c7aecf2318b5e0ed22c9676
/src/codewars/python/8kyu/binary_addition.py
c09a98f894ac53f951b41e2efa477772038c98b0
[]
no_license
garigari-kun/til
02c7bf05274d1077b454e1f7d4a7355849441524
b71f36a66045ab7da7f4a97f7e18de2aaa05f493
refs/heads/master
2020-04-16T02:13:45.727909
2018-12-16T01:26:40
2018-12-16T01:26:40
56,369,670
0
0
null
null
null
null
UTF-8
Python
false
false
311
py
""" 7kyu Binary Addition Implement a function that adds two numbers together and returns their sum in binary. The conversion can be done before, or after the addition. The binary number returned should be a string. """ def add_binary(a,b): answer = a + b binary = bin(answer)[2:] return binary